Class Share.Builder (1.20.0)

public static final class Share.Builder extends GeneratedMessageV3.Builder<Share.Builder> implements ShareOrBuilder

A Filestore share.

Protobuf type google.cloud.filestore.v1beta1.Share

Implements

ShareOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.filestore.v1beta1.NfsExportOptions>
Returns
TypeDescription
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
NameDescription
valueNfsExportOptions
Returns
TypeDescription
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
NameDescription
builderForValueNfsExportOptions.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueNfsExportOptions
Returns
TypeDescription
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
NameDescription
indexint
builderForValueNfsExportOptions.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
NfsExportOptions.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Share.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Share.Builder
Overrides

build()

public Share build()
Returns
TypeDescription
Share

buildPartial()

public Share buildPartial()
Returns
TypeDescription
Share

clear()

public Share.Builder clear()
Returns
TypeDescription
Share.Builder
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
Share.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Share.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Share.Builder
Overrides

clearLabels()

public Share.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Share.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Share.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Share.Builder
Overrides

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
TypeDescription
Share.Builder

This builder for chaining.

clone()

public Share.Builder clone()
Returns
TypeDescription
Share.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Share getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Resource labels to represent user provided metadata.

map<string, string> labels = 8;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Resource labels to represent user provided metadata.

map<string, string> labels = 8;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for mountName.

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
<