Class NfsShare.Builder (0.40.0)

public static final class NfsShare.Builder extends GeneratedMessageV3.Builder<NfsShare.Builder> implements NfsShareOrBuilder

An NFS share.

Protobuf type google.cloud.baremetalsolution.v2.NfsShare

Implements

NfsShareOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllAllowedClients(Iterable<? extends NfsShare.AllowedClient> values)

public NfsShare.Builder addAllAllowedClients(Iterable<? extends NfsShare.AllowedClient> values)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClient>
Returns
TypeDescription
NfsShare.Builder

addAllowedClients(NfsShare.AllowedClient value)

public NfsShare.Builder addAllowedClients(NfsShare.AllowedClient value)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameter
NameDescription
valueNfsShare.AllowedClient
Returns
TypeDescription
NfsShare.Builder

addAllowedClients(NfsShare.AllowedClient.Builder builderForValue)

public NfsShare.Builder addAllowedClients(NfsShare.AllowedClient.Builder builderForValue)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameter
NameDescription
builderForValueNfsShare.AllowedClient.Builder
Returns
TypeDescription
NfsShare.Builder

addAllowedClients(int index, NfsShare.AllowedClient value)

public NfsShare.Builder addAllowedClients(int index, NfsShare.AllowedClient value)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameters
NameDescription
indexint
valueNfsShare.AllowedClient
Returns
TypeDescription
NfsShare.Builder

addAllowedClients(int index, NfsShare.AllowedClient.Builder builderForValue)

public NfsShare.Builder addAllowedClients(int index, NfsShare.AllowedClient.Builder builderForValue)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameters
NameDescription
indexint
builderForValueNfsShare.AllowedClient.Builder
Returns
TypeDescription
NfsShare.Builder

addAllowedClientsBuilder()

public NfsShare.AllowedClient.Builder addAllowedClientsBuilder()

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Returns
TypeDescription
NfsShare.AllowedClient.Builder

addAllowedClientsBuilder(int index)

public NfsShare.AllowedClient.Builder addAllowedClientsBuilder(int index)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
NfsShare.AllowedClient.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NfsShare build()
Returns
TypeDescription
NfsShare

buildPartial()

public NfsShare buildPartial()
Returns
TypeDescription
NfsShare

clear()

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

clearAllowedClients()

public NfsShare.Builder clearAllowedClients()

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Returns
TypeDescription
NfsShare.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public NfsShare.Builder clearId()

Output only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future.

string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

clearLabels()

public NfsShare.Builder clearLabels()
Returns
TypeDescription
NfsShare.Builder

clearName()

public NfsShare.Builder clearName()

Immutable. The name of the NFS share.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

clearNfsShareId()

public NfsShare.Builder clearNfsShareId()

Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use id instead.

string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequestedSizeGib()

public NfsShare.Builder clearRequestedSizeGib()

The requested size, in GiB.

int64 requested_size_gib = 7;

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

clearState()

public NfsShare.Builder clearState()

Output only. The state of the NFS share.

.google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

clearStorageType()

public NfsShare.Builder clearStorageType()

Immutable. The storage type of the underlying volume.

.google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

clearVolume()

public NfsShare.Builder clearVolume()

Output only. The underlying volume of the share. Created automatically during provisioning.

string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAllowedClients(int index)

public NfsShare.AllowedClient getAllowedClients(int index)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
NfsShare.AllowedClient

getAllowedClientsBuilder(int index)

public NfsShare.AllowedClient.Builder getAllowedClientsBuilder(int index)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
NfsShare.AllowedClient.Builder

getAllowedClientsBuilderList()

public List<NfsShare.AllowedClient.Builder> getAllowedClientsBuilderList()

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Returns
TypeDescription
List<Builder>

getAllowedClientsCount()

public int getAllowedClientsCount()

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Returns
TypeDescription
int

getAllowedClientsList()

public List<NfsShare.AllowedClient> getAllowedClientsList()

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Returns
TypeDescription
List<AllowedClient>

getAllowedClientsOrBuilder(int index)

public NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder(int index)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
NfsShare.AllowedClientOrBuilder

getAllowedClientsOrBuilderList()

public List<? extends NfsShare.AllowedClientOrBuilder> getAllowedClientsOrBuilderList()

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Returns
TypeDescription
List<? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>

getDefaultInstanceForType()

public NfsShare getDefaultInstanceForType()
Returns
TypeDescription
NfsShare

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

Output only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future.

string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future.

string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for id.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 6;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 6;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

map<string, string> labels = 6;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Immutable. The name of the NFS share.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The name of the NFS share.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for name.

getNfsShareId()

public String getNfsShareId()

Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use id instead.

string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The nfsShareId.

getNfsShareIdBytes()

public ByteString getNfsShareIdBytes()

Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use id instead.

string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for nfsShareId.

getRequestedSizeGib()

public long getRequestedSizeGib()

The requested size, in GiB.

int64 requested_size_gib = 7;

Returns
TypeDescription
long

The requestedSizeGib.

getState()

public NfsShare.State getState()

Output only. The state of the NFS share.

.google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NfsShare.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the NFS share.

.google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getStorageType()

public NfsShare.StorageType getStorageType()

Immutable. The storage type of the underlying volume.

.google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
NfsShare.StorageType

The storageType.

getStorageTypeValue()

public int getStorageTypeValue()

Immutable. The storage type of the underlying volume.

.google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
int

The enum numeric value on the wire for storageType.

getVolume()

public String getVolume()

Output only. The underlying volume of the share. Created automatically during provisioning.

string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The volume.

getVolumeBytes()

public ByteString getVolumeBytes()

Output only. The underlying volume of the share. Created automatically during provisioning.

string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for volume.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NfsShare other)

public NfsShare.Builder mergeFrom(NfsShare other)
Parameter
NameDescription
otherNfsShare
Returns
TypeDescription
NfsShare.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NfsShare.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NfsShare.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NfsShare.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NfsShare.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NfsShare.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NfsShare.Builder
Overrides

putAllLabels(Map<String,String> values)

public NfsShare.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs.

map<string, string> labels = 6;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
NfsShare.Builder

putLabels(String key, String value)

public NfsShare.Builder putLabels(String key, String value)

Labels as key value pairs.

map<string, string> labels = 6;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
NfsShare.Builder

removeAllowedClients(int index)

public NfsShare.Builder removeAllowedClients(int index)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
NfsShare.Builder

removeLabels(String key)

public NfsShare.Builder removeLabels(String key)

Labels as key value pairs.

map<string, string> labels = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
NfsShare.Builder

setAllowedClients(int index, NfsShare.AllowedClient value)

public NfsShare.Builder setAllowedClients(int index, NfsShare.AllowedClient value)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameters
NameDescription
indexint
valueNfsShare.AllowedClient
Returns
TypeDescription
NfsShare.Builder

setAllowedClients(int index, NfsShare.AllowedClient.Builder builderForValue)

public NfsShare.Builder setAllowedClients(int index, NfsShare.AllowedClient.Builder builderForValue)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameters
NameDescription
indexint
builderForValueNfsShare.AllowedClient.Builder
Returns
TypeDescription
NfsShare.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public NfsShare.Builder setId(String value)

Output only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future.

string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

setIdBytes(ByteString value)

public NfsShare.Builder setIdBytes(ByteString value)

Output only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future.

string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

setName(String value)

public NfsShare.Builder setName(String value)

Immutable. The name of the NFS share.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NfsShare.Builder setNameBytes(ByteString value)

Immutable. The name of the NFS share.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

setNfsShareId(String value)

public NfsShare.Builder setNfsShareId(String value)

Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use id instead.

string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The nfsShareId to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

setNfsShareIdBytes(ByteString value)

public NfsShare.Builder setNfsShareIdBytes(ByteString value)

Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use id instead.

string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for nfsShareId to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NfsShare.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NfsShare.Builder
Overrides

setRequestedSizeGib(long value)

public NfsShare.Builder setRequestedSizeGib(long value)

The requested size, in GiB.

int64 requested_size_gib = 7;

Parameter
NameDescription
valuelong

The requestedSizeGib to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

setState(NfsShare.State value)

public NfsShare.Builder setState(NfsShare.State value)

Output only. The state of the NFS share.

.google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueNfsShare.State

The state to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

setStateValue(int value)

public NfsShare.Builder setStateValue(int value)

Output only. The state of the NFS share.

.google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

setStorageType(NfsShare.StorageType value)

public NfsShare.Builder setStorageType(NfsShare.StorageType value)

Immutable. The storage type of the underlying volume.

.google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueNfsShare.StorageType

The storageType to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

setStorageTypeValue(int value)

public NfsShare.Builder setStorageTypeValue(int value)

Immutable. The storage type of the underlying volume.

.google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueint

The enum numeric value on the wire for storageType to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final NfsShare.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NfsShare.Builder
Overrides

setVolume(String value)

public NfsShare.Builder setVolume(String value)

Output only. The underlying volume of the share. Created automatically during provisioning.

string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The volume to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.

setVolumeBytes(ByteString value)

public NfsShare.Builder setVolumeBytes(ByteString value)

Output only. The underlying volume of the share. Created automatically during provisioning.

string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for volume to set.

Returns
TypeDescription
NfsShare.Builder

This builder for chaining.