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.Builder
addAllNfsExportOptions(Iterable<? extends NfsExportOptions> values)
Nfs Export Options.Share.Builder
addNfsExportOptions(int index, NfsExportOptions value)
Nfs Export Options.Share.Builder
addNfsExportOptions(int index, NfsExportOptions.Builder builderForValue)
Nfs Export Options.Share.Builder
addNfsExportOptions(NfsExportOptions value)
Nfs Export Options.Share.Builder
addNfsExportOptions(NfsExportOptions.Builder builderForValue)
Nfs Export Options.NfsExportOptions.Builder
addNfsExportOptionsBuilder()
Nfs Export Options.NfsExportOptions.Builder
addNfsExportOptionsBuilder(int index)
Nfs Export Options.Share.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Share
build()
Share
buildPartial()
Share.Builder
clear()
Share.Builder
clearBackup()
Immutable.Share.Builder
clearCapacityGb()
File share capacity in gigabytes (GB).Share.Builder
clearCreateTime()
Output only.Share.Builder
clearDescription()
A description of the share with 2048 characters or less.Share.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Share.Builder
clearLabels()
Share.Builder
clearMountName()
The mount name of the share.Share.Builder
clearName()
Output only.Share.Builder
clearNfsExportOptions()
Nfs Export Options.Share.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Share.Builder
clearSource()
Share.Builder
clearState()
Output only.Share.Builder
clone()
boolean
containsLabels(String key)
Resource labels to represent user provided metadata.String
getBackup()
Immutable.com.google.protobuf.ByteString
getBackupBytes()
Immutable.long
getCapacityGb()
File share capacity in gigabytes (GB).com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.Share
getDefaultInstanceForType()
String
getDescription()
A description of the share with 2048 characters or less.com.google.protobuf.ByteString
getDescriptionBytes()
A description of the share with 2048 characters or less.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Resource labels to represent user provided metadata.Map<String,String>
getLabelsMap()
Resource labels to represent user provided metadata.String
getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.String
getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.String
getMountName()
The mount name of the share.com.google.protobuf.ByteString
getMountNameBytes()
The mount name of the share.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.NfsExportOptions
getNfsExportOptions(int index)
Nfs Export Options.NfsExportOptions.Builder
getNfsExportOptionsBuilder(int index)
Nfs Export Options.List<NfsExportOptions.Builder>
getNfsExportOptionsBuilderList()
Nfs Export Options.int
getNfsExportOptionsCount()
Nfs Export Options.List<NfsExportOptions>
getNfsExportOptionsList()
Nfs Export Options.NfsExportOptionsOrBuilder
getNfsExportOptionsOrBuilder(int index)
Nfs Export Options.List<? extends NfsExportOptionsOrBuilder>
getNfsExportOptionsOrBuilderList()
Nfs Export Options.Share.SourceCase
getSourceCase()
Share.State
getState()
Output only.int
getStateValue()
Output only.boolean
hasBackup()
Immutable.boolean
hasCreateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Share.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.Share.Builder
mergeFrom(Share other)
Share.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Share.Builder
mergeFrom(com.google.protobuf.Message other)
Share.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Share.Builder
putAllLabels(Map<String,String> values)
Resource labels to represent user provided metadata.Share.Builder
putLabels(String key, String value)
Resource labels to represent user provided metadata.Share.Builder
removeLabels(String key)
Resource labels to represent user provided metadata.Share.Builder
removeNfsExportOptions(int index)
Nfs Export Options.Share.Builder
setBackup(String value)
Immutable.Share.Builder
setBackupBytes(com.google.protobuf.ByteString value)
Immutable.Share.Builder
setCapacityGb(long value)
File share capacity in gigabytes (GB).Share.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.Share.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Share.Builder
setDescription(String value)
A description of the share with 2048 characters or less.Share.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
A description of the share with 2048 characters or less.Share.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Share.Builder
setMountName(String value)
The mount name of the share.Share.Builder
setMountNameBytes(com.google.protobuf.ByteString value)
The mount name of the share.Share.Builder
setName(String value)
Output only.Share.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Share.Builder
setNfsExportOptions(int index, NfsExportOptions value)
Nfs Export Options.Share.Builder
setNfsExportOptions(int index, NfsExportOptions.Builder builderForValue)
Nfs Export Options.Share.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Share.Builder
setState(Share.State value)
Output only.Share.Builder
setStateValue(int value)
Output only.Share.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
clear
public Share.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
getDefaultInstanceForType
public Share getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Share build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Share buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Share.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
setField
public Share.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
clearField
public Share.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
clearOneof
public Share.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
setRepeatedField
public Share.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
addRepeatedField
public Share.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
mergeFrom
public Share.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Share.Builder>
-
mergeFrom
public Share.Builder mergeFrom(Share other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Share.Builder>
- Throws:
IOException
-
getSourceCase
public Share.SourceCase getSourceCase()
- Specified by:
getSourceCase
in 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:
getName
in 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:
getNameBytes
in 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:
getMountName
in 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:
getMountNameBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getCapacityGb
in 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:
getNfsExportOptionsList
in 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:
getNfsExportOptionsCount
in 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:
getNfsExportOptions
in 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:
getNfsExportOptionsOrBuilder
in 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:
getNfsExportOptionsOrBuilderList
in 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:
getStateValue
in 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:
getState
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in interfaceShareOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ShareOrBuilder
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
- Specified by:
getLabelsCount
in interfaceShareOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
- Specified by:
containsLabels
in interfaceShareOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceShareOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
- Specified by:
getLabelsMap
in interfaceShareOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
- Specified by:
getLabelsOrDefault
in interfaceShareOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
- Specified by:
getLabelsOrThrow
in 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:
hasBackup
in 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:
getBackup
in 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:
getBackupBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
mergeUnknownFields
public final Share.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Share.Builder>
-
-