Class Share.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
- com.google.cloud.filestore.v1beta1.Share.Builder
-
- All Implemented Interfaces:
ShareOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Share
public static final class Share.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Share.Builder> implements ShareOrBuilder
A Filestore share.
Protobuf typegoogle.cloud.filestore.v1beta1.Share
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Share.BuilderaddAllNfsExportOptions(Iterable<? extends NfsExportOptions> values)Nfs Export Options.Share.BuilderaddNfsExportOptions(int index, NfsExportOptions value)Nfs Export Options.Share.BuilderaddNfsExportOptions(int index, NfsExportOptions.Builder builderForValue)Nfs Export Options.Share.BuilderaddNfsExportOptions(NfsExportOptions value)Nfs Export Options.Share.BuilderaddNfsExportOptions(NfsExportOptions.Builder builderForValue)Nfs Export Options.NfsExportOptions.BuilderaddNfsExportOptionsBuilder()Nfs Export Options.NfsExportOptions.BuilderaddNfsExportOptionsBuilder(int index)Nfs Export Options.Share.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Sharebuild()SharebuildPartial()Share.Builderclear()Share.BuilderclearBackup()Immutable.Share.BuilderclearCapacityGb()File share capacity in gigabytes (GB).Share.BuilderclearCreateTime()Output only.Share.BuilderclearDescription()A description of the share with 2048 characters or less.Share.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Share.BuilderclearLabels()Share.BuilderclearMountName()The mount name of the share.Share.BuilderclearName()Output only.Share.BuilderclearNfsExportOptions()Nfs Export Options.Share.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Share.BuilderclearSource()Share.BuilderclearState()Output only.Share.Builderclone()booleancontainsLabels(String key)Resource labels to represent user provided metadata.StringgetBackup()Immutable.com.google.protobuf.ByteStringgetBackupBytes()Immutable.longgetCapacityGb()File share capacity in gigabytes (GB).com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.SharegetDefaultInstanceForType()StringgetDescription()A description of the share with 2048 characters or less.com.google.protobuf.ByteStringgetDescriptionBytes()A description of the share with 2048 characters or less.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getLabels()Deprecated.intgetLabelsCount()Resource labels to represent user provided metadata.Map<String,String>getLabelsMap()Resource labels to represent user provided metadata.StringgetLabelsOrDefault(String key, String defaultValue)Resource labels to represent user provided metadata.StringgetLabelsOrThrow(String key)Resource labels to represent user provided metadata.StringgetMountName()The mount name of the share.com.google.protobuf.ByteStringgetMountNameBytes()The mount name of the share.Map<String,String>getMutableLabels()Deprecated.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.NfsExportOptionsgetNfsExportOptions(int index)Nfs Export Options.NfsExportOptions.BuildergetNfsExportOptionsBuilder(int index)Nfs Export Options.List<NfsExportOptions.Builder>getNfsExportOptionsBuilderList()Nfs Export Options.intgetNfsExportOptionsCount()Nfs Export Options.List<NfsExportOptions>getNfsExportOptionsList()Nfs Export Options.NfsExportOptionsOrBuildergetNfsExportOptionsOrBuilder(int index)Nfs Export Options.List<? extends NfsExportOptionsOrBuilder>getNfsExportOptionsOrBuilderList()Nfs Export Options.Share.SourceCasegetSourceCase()Share.StategetState()Output only.intgetStateValue()Output only.booleanhasBackup()Immutable.booleanhasCreateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Share.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.Share.BuildermergeFrom(Share other)Share.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Share.BuildermergeFrom(com.google.protobuf.Message other)Share.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Share.BuilderputAllLabels(Map<String,String> values)Resource labels to represent user provided metadata.Share.BuilderputLabels(String key, String value)Resource labels to represent user provided metadata.Share.BuilderremoveLabels(String key)Resource labels to represent user provided metadata.Share.BuilderremoveNfsExportOptions(int index)Nfs Export Options.Share.BuildersetBackup(String value)Immutable.Share.BuildersetBackupBytes(com.google.protobuf.ByteString value)Immutable.Share.BuildersetCapacityGb(long value)File share capacity in gigabytes (GB).Share.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.Share.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Share.BuildersetDescription(String value)A description of the share with 2048 characters or less.Share.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)A description of the share with 2048 characters or less.Share.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Share.BuildersetMountName(String value)The mount name of the share.Share.BuildersetMountNameBytes(com.google.protobuf.ByteString value)The mount name of the share.Share.BuildersetName(String value)Output only.Share.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.Share.BuildersetNfsExportOptions(int index, NfsExportOptions value)Nfs Export Options.Share.BuildersetNfsExportOptions(int index, NfsExportOptions.Builder builderForValue)Nfs Export Options.Share.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Share.BuildersetState(Share.State value)Output only.Share.BuildersetStateValue(int value)Output only.Share.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
clear
public Share.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
getDefaultInstanceForType
public Share getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Share build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Share buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Share.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
setField
public Share.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
clearField
public Share.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
clearOneof
public Share.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
setRepeatedField
public Share.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
addRepeatedField
public Share.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
mergeFrom
public Share.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Share.Builder>
-
mergeFrom
public Share.Builder mergeFrom(Share other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
mergeFrom
public Share.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Share.Builder>- Throws:
IOException
-
getSourceCase
public Share.SourceCase getSourceCase()
- Specified by:
getSourceCasein interfaceShareOrBuilder
-
clearSource
public Share.Builder clearSource()
-
getName
public String getName()
Output only. The resource name of the share, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceShareOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The resource name of the share, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceShareOrBuilder- Returns:
- The bytes for name.
-
setName
public Share.Builder setName(String value)
Output only. The resource name of the share, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Share.Builder clearName()
Output only. The resource name of the share, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
public Share.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the share, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getMountName
public String getMountName()
The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
string mount_name = 2;- Specified by:
getMountNamein interfaceShareOrBuilder- Returns:
- The mountName.
-
getMountNameBytes
public com.google.protobuf.ByteString getMountNameBytes()
The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
string mount_name = 2;- Specified by:
getMountNameBytesin interfaceShareOrBuilder- Returns:
- The bytes for mountName.
-
setMountName
public Share.Builder setMountName(String value)
The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
string mount_name = 2;- Parameters:
value- The mountName to set.- Returns:
- This builder for chaining.
-
clearMountName
public Share.Builder clearMountName()
The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
string mount_name = 2;- Returns:
- This builder for chaining.
-
setMountNameBytes
public Share.Builder setMountNameBytes(com.google.protobuf.ByteString value)
The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
string mount_name = 2;- Parameters:
value- The bytes for mountName to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 3;- Specified by:
getDescriptionin interfaceShareOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 3;- Specified by:
getDescriptionBytesin interfaceShareOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Share.Builder setDescription(String value)
A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Share.Builder clearDescription()
A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Share.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getCapacityGb
public long getCapacityGb()
File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0.
int64 capacity_gb = 4;- Specified by:
getCapacityGbin interfaceShareOrBuilder- Returns:
- The capacityGb.
-
setCapacityGb
public Share.Builder setCapacityGb(long value)
File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0.
int64 capacity_gb = 4;- Parameters:
value- The capacityGb to set.- Returns:
- This builder for chaining.
-
clearCapacityGb
public Share.Builder clearCapacityGb()
File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0.
int64 capacity_gb = 4;- Returns:
- This builder for chaining.
-
getNfsExportOptionsList
public List<NfsExportOptions> getNfsExportOptionsList()
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;- Specified by:
getNfsExportOptionsListin interfaceShareOrBuilder
-
getNfsExportOptionsCount
public int getNfsExportOptionsCount()
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;- Specified by:
getNfsExportOptionsCountin interfaceShareOrBuilder
-
getNfsExportOptions
public NfsExportOptions getNfsExportOptions(int index)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;- Specified by:
getNfsExportOptionsin interfaceShareOrBuilder
-
setNfsExportOptions
public Share.Builder setNfsExportOptions(int index, NfsExportOptions value)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
setNfsExportOptions
public Share.Builder setNfsExportOptions(int index, NfsExportOptions.Builder builderForValue)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
addNfsExportOptions
public Share.Builder addNfsExportOptions(NfsExportOptions value)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
addNfsExportOptions
public Share.Builder addNfsExportOptions(int index, NfsExportOptions value)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
addNfsExportOptions
public Share.Builder addNfsExportOptions(NfsExportOptions.Builder builderForValue)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
addNfsExportOptions
public Share.Builder addNfsExportOptions(int index, NfsExportOptions.Builder builderForValue)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
addAllNfsExportOptions
public Share.Builder addAllNfsExportOptions(Iterable<? extends NfsExportOptions> values)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
clearNfsExportOptions
public Share.Builder clearNfsExportOptions()
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
removeNfsExportOptions
public Share.Builder removeNfsExportOptions(int index)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
getNfsExportOptionsBuilder
public NfsExportOptions.Builder getNfsExportOptionsBuilder(int index)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
getNfsExportOptionsOrBuilder
public NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder(int index)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;- Specified by:
getNfsExportOptionsOrBuilderin interfaceShareOrBuilder
-
getNfsExportOptionsOrBuilderList
public List<? extends NfsExportOptionsOrBuilder> getNfsExportOptionsOrBuilderList()
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;- Specified by:
getNfsExportOptionsOrBuilderListin interfaceShareOrBuilder
-
addNfsExportOptionsBuilder
public NfsExportOptions.Builder addNfsExportOptionsBuilder()
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
addNfsExportOptionsBuilder
public NfsExportOptions.Builder addNfsExportOptionsBuilder(int index)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
getNfsExportOptionsBuilderList
public List<NfsExportOptions.Builder> getNfsExportOptionsBuilderList()
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
getStateValue
public int getStateValue()
Output only. The share state.
.google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceShareOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public Share.Builder setStateValue(int value)
Output only. The share state.
.google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public Share.State getState()
Output only. The share state.
.google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceShareOrBuilder- Returns:
- The state.
-
setState
public Share.Builder setState(Share.State value)
Output only. The share state.
.google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
public Share.Builder clearState()
Output only. The share state.
.google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceShareOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceShareOrBuilder- Returns:
- The createTime.
-
setCreateTime
public Share.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Share.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Share.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public Share.Builder clearCreateTime()
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceShareOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ShareOrBuilderResource labels to represent user provided metadata.
map<string, string> labels = 8;- Specified by:
getLabelsCountin interfaceShareOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;- Specified by:
containsLabelsin interfaceShareOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceShareOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata.
map<string, string> labels = 8;- Specified by:
getLabelsMapin interfaceShareOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;- Specified by:
getLabelsOrDefaultin interfaceShareOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;- Specified by:
getLabelsOrThrowin interfaceShareOrBuilder
-
clearLabels
public Share.Builder clearLabels()
-
removeLabels
public Share.Builder removeLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Share.Builder putLabels(String key, String value)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
-
putAllLabels
public Share.Builder putAllLabels(Map<String,String> values)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
-
hasBackup
public boolean hasBackup()
Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.string backup = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
hasBackupin interfaceShareOrBuilder- Returns:
- Whether the backup field is set.
-
getBackup
public String getBackup()
Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.string backup = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getBackupin interfaceShareOrBuilder- Returns:
- The backup.
-
getBackupBytes
public com.google.protobuf.ByteString getBackupBytes()
Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.string backup = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getBackupBytesin interfaceShareOrBuilder- Returns:
- The bytes for backup.
-
setBackup
public Share.Builder setBackup(String value)
Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.string backup = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The backup to set.- Returns:
- This builder for chaining.
-
clearBackup
public Share.Builder clearBackup()
Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.string backup = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setBackupBytes
public Share.Builder setBackupBytes(com.google.protobuf.ByteString value)
Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.string backup = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for backup to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Share.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
mergeUnknownFields
public final Share.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
-