Class Instance.Builder (1.7.0)

public static final class Instance.Builder extends GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder

A Cloud Filestore instance.

Protobuf type google.cloud.filestore.v1beta1.Instance

Implements

InstanceOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllFileShares(Iterable<? extends FileShareConfig> values)

public Instance.Builder addAllFileShares(Iterable<? extends FileShareConfig> values)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.filestore.v1beta1.FileShareConfig>
Returns
TypeDescription
Instance.Builder

addAllNetworks(Iterable<? extends NetworkConfig> values)

public Instance.Builder addAllNetworks(Iterable<? extends NetworkConfig> values)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.filestore.v1beta1.NetworkConfig>
Returns
TypeDescription
Instance.Builder

addFileShares(FileShareConfig value)

public Instance.Builder addFileShares(FileShareConfig value)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameter
NameDescription
valueFileShareConfig
Returns
TypeDescription
Instance.Builder

addFileShares(FileShareConfig.Builder builderForValue)

public Instance.Builder addFileShares(FileShareConfig.Builder builderForValue)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameter
NameDescription
builderForValueFileShareConfig.Builder
Returns
TypeDescription
Instance.Builder

addFileShares(int index, FileShareConfig value)

public Instance.Builder addFileShares(int index, FileShareConfig value)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameters
NameDescription
indexint
valueFileShareConfig
Returns
TypeDescription
Instance.Builder

addFileShares(int index, FileShareConfig.Builder builderForValue)

public Instance.Builder addFileShares(int index, FileShareConfig.Builder builderForValue)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameters
NameDescription
indexint
builderForValueFileShareConfig.Builder
Returns
TypeDescription
Instance.Builder

addFileSharesBuilder()

public FileShareConfig.Builder addFileSharesBuilder()

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Returns
TypeDescription
FileShareConfig.Builder

addFileSharesBuilder(int index)

public FileShareConfig.Builder addFileSharesBuilder(int index)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileShareConfig.Builder

addNetworks(NetworkConfig value)

public Instance.Builder addNetworks(NetworkConfig value)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameter
NameDescription
valueNetworkConfig
Returns
TypeDescription
Instance.Builder

addNetworks(NetworkConfig.Builder builderForValue)

public Instance.Builder addNetworks(NetworkConfig.Builder builderForValue)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameter
NameDescription
builderForValueNetworkConfig.Builder
Returns
TypeDescription
Instance.Builder

addNetworks(int index, NetworkConfig value)

public Instance.Builder addNetworks(int index, NetworkConfig value)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameters
NameDescription
indexint
valueNetworkConfig
Returns
TypeDescription
Instance.Builder

addNetworks(int index, NetworkConfig.Builder builderForValue)

public Instance.Builder addNetworks(int index, NetworkConfig.Builder builderForValue)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameters
NameDescription
indexint
builderForValueNetworkConfig.Builder
Returns
TypeDescription
Instance.Builder

addNetworksBuilder()

public NetworkConfig.Builder addNetworksBuilder()

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Returns
TypeDescription
NetworkConfig.Builder

addNetworksBuilder(int index)

public NetworkConfig.Builder addNetworksBuilder(int index)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Instance build()
Returns
TypeDescription
Instance

buildPartial()

public Instance buildPartial()
Returns
TypeDescription
Instance

clear()

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

clearCreateTime()

public Instance.Builder clearCreateTime()

Output only. The time when the instance was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Instance.Builder

clearDescription()

public Instance.Builder clearDescription()

The description of the instance (2048 characters or less).

string description = 2;

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearEtag()

public Instance.Builder clearEtag()

Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.

string etag = 12;

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFileShares()

public Instance.Builder clearFileShares()

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Returns
TypeDescription
Instance.Builder

clearLabels()

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

clearName()

public Instance.Builder clearName()

Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.

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

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearNetworks()

public Instance.Builder clearNetworks()

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Returns
TypeDescription
Instance.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSatisfiesPzs()

public Instance.Builder clearSatisfiesPzs()

Output only. Reserved for future use.

.google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Instance.Builder

clearState()

public Instance.Builder clearState()

Output only. The instance state.

.google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearStatusMessage()

public Instance.Builder clearStatusMessage()

Output only. Additional information about the instance state, if available.

string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clearTier()

public Instance.Builder clearTier()

The service tier of the instance.

.google.cloud.filestore.v1beta1.Instance.Tier tier = 8;

Returns
TypeDescription
Instance.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 9;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the instance 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 instance 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 instance was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Instance getDefaultInstanceForType()
Returns
TypeDescription
Instance

getDescription()

public String getDescription()

The description of the instance (2048 characters or less).

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the instance (2048 characters or less).

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.

string etag = 12;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.

string etag = 12;

Returns
TypeDescription
ByteString

The bytes for etag.

getFileShares(int index)

public FileShareConfig getFileShares(int index)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileShareConfig

getFileSharesBuilder(int index)

public FileShareConfig.Builder getFileSharesBuilder(int index)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileShareConfig.Builder

getFileSharesBuilderList()

public List<FileShareConfig.Builder> getFileSharesBuilderList()

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Returns
TypeDescription
List<Builder>

getFileSharesCount()

public int getFileSharesCount()

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Returns
TypeDescription
int

getFileSharesList()

public List<FileShareConfig> getFileSharesList()

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Returns
TypeDescription
List<FileShareConfig>

getFileSharesOrBuilder(int index)

public FileShareConfigOrBuilder getFileSharesOrBuilder(int index)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileShareConfigOrBuilder

getFileSharesOrBuilderList()

public List<? extends FileShareConfigOrBuilder> getFileSharesOrBuilderList()

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Returns
TypeDescription
List<? extends com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>

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 = 9;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Resource labels to represent user provided metadata.

map<string, string> labels = 9;

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 = 9;

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 = 9;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

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 instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_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 instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.

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

Returns
TypeDescription
ByteString

The bytes for name.

getNetworks(int index)

public NetworkConfig getNetworks(int index)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfig

getNetworksBuilder(int index)

public NetworkConfig.Builder getNetworksBuilder(int index)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfig.Builder

getNetworksBuilderList()

public List<NetworkConfig.Builder> getNetworksBuilderList()

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Returns
TypeDescription
List<Builder>

getNetworksCount()

public int getNetworksCount()

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Returns
TypeDescription
int

getNetworksList()

public List<NetworkConfig> getNetworksList()

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Returns
TypeDescription
List<NetworkConfig>

getNetworksOrBuilder(int index)

public NetworkConfigOrBuilder getNetworksOrBuilder(int index)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfigOrBuilder

getNetworksOrBuilderList()

public List<? extends NetworkConfigOrBuilder> getNetworksOrBuilderList()

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Returns
TypeDescription
List<? extends com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>

getSatisfiesPzs()

public BoolValue getSatisfiesPzs()

Output only. Reserved for future use.

.google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BoolValue

The satisfiesPzs.

getSatisfiesPzsBuilder()

public BoolValue.Builder getSatisfiesPzsBuilder()

Output only. Reserved for future use.

.google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getSatisfiesPzsOrBuilder()

public BoolValueOrBuilder getSatisfiesPzsOrBuilder()

Output only. Reserved for future use.

.google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BoolValueOrBuilder

getState()

public Instance.State getState()

Output only. The instance state.

.google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Instance.State

The state.

getStateValue()

public int getStateValue()

Output only. The instance state.

.google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getStatusMessage()

public String getStatusMessage()

Output only. Additional information about the instance state, if available.

string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The statusMessage.

getStatusMessageBytes()

public ByteString getStatusMessageBytes()

Output only. Additional information about the instance state, if available.

string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for statusMessage.

getTier()

public Instance.Tier getTier()

The service tier of the instance.

.google.cloud.filestore.v1beta1.Instance.Tier tier = 8;

Returns
TypeDescription
Instance.Tier

The tier.

getTierValue()

public int getTierValue()

The service tier of the instance.

.google.cloud.filestore.v1beta1.Instance.Tier tier = 8;

Returns
TypeDescription
int

The enum numeric value on the wire for tier.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the instance was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasSatisfiesPzs()

public boolean hasSatisfiesPzs()

Output only. Reserved for future use.

.google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the satisfiesPzs field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Instance.Builder mergeCreateTime(Timestamp value)

Output only. The time when the instance was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Instance.Builder

mergeFrom(Instance other)

public Instance.Builder mergeFrom(Instance other)
Parameter
NameDescription
otherInstance
Returns
TypeDescription
Instance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSatisfiesPzs(BoolValue value)

public Instance.Builder mergeSatisfiesPzs(BoolValue value)

Output only. Reserved for future use.

.google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueBoolValue
Returns
TypeDescription
Instance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

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

Resource labels to represent user provided metadata.

map<string, string> labels = 9;

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

putLabels(String key, String value)

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

Resource labels to represent user provided metadata.

map<string, string> labels = 9;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Instance.Builder

removeFileShares(int index)

public Instance.Builder removeFileShares(int index)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Builder

removeLabels(String key)

public Instance.Builder removeLabels(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 9;

Parameter
NameDescription
keyString
Returns
TypeDescription
Instance.Builder

removeNetworks(int index)

public Instance.Builder removeNetworks(int index)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Builder

setCreateTime(Timestamp value)

public Instance.Builder setCreateTime(Timestamp value)

Output only. The time when the instance was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Instance.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Instance.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the instance was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Instance.Builder

setDescription(String value)

public Instance.Builder setDescription(String value)

The description of the instance (2048 characters or less).

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Instance.Builder setDescriptionBytes(ByteString value)

The description of the instance (2048 characters or less).

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setEtag(String value)

public Instance.Builder setEtag(String value)

Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.

string etag = 12;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Instance.Builder setEtagBytes(ByteString value)

Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.

string etag = 12;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileShares(int index, FileShareConfig value)

public Instance.Builder setFileShares(int index, FileShareConfig value)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameters
NameDescription
indexint
valueFileShareConfig
Returns
TypeDescription
Instance.Builder

setFileShares(int index, FileShareConfig.Builder builderForValue)

public Instance.Builder setFileShares(int index, FileShareConfig.Builder builderForValue)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameters
NameDescription
indexint
builderForValueFileShareConfig.Builder
Returns
TypeDescription
Instance.Builder

setName(String value)

public Instance.Builder setName(String value)

Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Instance.Builder setNameBytes(ByteString value)

Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setNetworks(int index, NetworkConfig value)

public Instance.Builder setNetworks(int index, NetworkConfig value)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameters
NameDescription
indexint
valueNetworkConfig
Returns
TypeDescription
Instance.Builder

setNetworks(int index, NetworkConfig.Builder builderForValue)

public Instance.Builder setNetworks(int index, NetworkConfig.Builder builderForValue)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameters
NameDescription
indexint
builderForValueNetworkConfig.Builder
Returns
TypeDescription
Instance.Builder

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

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

setSatisfiesPzs(BoolValue value)

public Instance.Builder setSatisfiesPzs(BoolValue value)

Output only. Reserved for future use.

.google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueBoolValue
Returns
TypeDescription
Instance.Builder

setSatisfiesPzs(BoolValue.Builder builderForValue)

public Instance.Builder setSatisfiesPzs(BoolValue.Builder builderForValue)

Output only. Reserved for future use.

.google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Instance.Builder

setState(Instance.State value)

public Instance.Builder setState(Instance.State value)

Output only. The instance state.

.google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueInstance.State

The state to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setStateValue(int value)

public Instance.Builder setStateValue(int value)

Output only. The instance state.

.google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setStatusMessage(String value)

public Instance.Builder setStatusMessage(String value)

Output only. Additional information about the instance state, if available.

string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The statusMessage to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setStatusMessageBytes(ByteString value)

public Instance.Builder setStatusMessageBytes(ByteString value)

Output only. Additional information about the instance state, if available.

string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for statusMessage to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setTier(Instance.Tier value)

public Instance.Builder setTier(Instance.Tier value)

The service tier of the instance.

.google.cloud.filestore.v1beta1.Instance.Tier tier = 8;

Parameter
NameDescription
valueInstance.Tier

The tier to set.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setTierValue(int value)

public Instance.Builder setTierValue(int value)

The service tier of the instance.

.google.cloud.filestore.v1beta1.Instance.Tier tier = 8;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Instance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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