public static final class Share.Builder extends GeneratedMessageV3.Builder<Share.Builder> implements ShareOrBuilder
A Filestore share.
Protobuf type google.cloud.filestore.v1beta1.Share
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Share.BuilderImplements
ShareOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllNfsExportOptions(Iterable<? extends NfsExportOptions> values)
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;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.filestore.v1beta1.NfsExportOptions> |
Returns | |
---|---|
Type | Description |
Share.Builder |
addNfsExportOptions(NfsExportOptions value)
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;
Parameter | |
---|---|
Name | Description |
value | NfsExportOptions |
Returns | |
---|---|
Type | Description |
Share.Builder |
addNfsExportOptions(NfsExportOptions.Builder builderForValue)
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;
Parameter | |
---|---|
Name | Description |
builderForValue | NfsExportOptions.Builder |
Returns | |
---|---|
Type | Description |
Share.Builder |
addNfsExportOptions(int index, NfsExportOptions value)
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;
Parameters | |
---|---|
Name | Description |
index | int |
value | NfsExportOptions |
Returns | |
---|---|
Type | Description |
Share.Builder |
addNfsExportOptions(int index, NfsExportOptions.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | NfsExportOptions.Builder |
Returns | |
---|---|
Type | Description |
Share.Builder |
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;
Returns | |
---|---|
Type | Description |
NfsExportOptions.Builder |
addNfsExportOptionsBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
NfsExportOptions.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Share.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Share.Builder |
build()
public Share build()
Returns | |
---|---|
Type | Description |
Share |
buildPartial()
public Share buildPartial()
Returns | |
---|---|
Type | Description |
Share |
clear()
public Share.Builder clear()
Returns | |
---|---|
Type | Description |
Share.Builder |
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 | |
---|---|
Type | Description |
Share.Builder | This builder for chaining. |
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];
Returns | |
---|---|
Type | Description |
Share.Builder |
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 | |
---|---|
Type | Description |
Share.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Share.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Share.Builder |
clearLabels()
public Share.Builder clearLabels()
Returns | |
---|---|
Type | Description |
Share.Builder |
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 | |
---|---|
Type | Description |
Share.Builder | 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 | |
---|---|
Type | Description |
Share.Builder | This builder for chaining. |
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;
Returns | |
---|---|
Type | Description |
Share.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Share.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Share.Builder |
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 | |
---|---|
Type | Description |
Share.Builder | This builder for chaining. |
clone()
public Share.Builder clone()
Returns | |
---|---|
Type | Description |
Share.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
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;
Returns | |
---|---|
Type | Description |
long | The capacityGb. |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Share getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Share |
getDescription()
public String getDescription()
A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 3;
Returns | |
---|---|
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 3;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
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;
Returns | |
---|---|
Type | Description |
String | The mountName. |
getMountNameBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for mountName. |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
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];
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public 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];
Returns | |
---|---|
Type | Description |
< |