Class Instance.Builder (1.35.0)

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

A Filestore instance.

Protobuf type google.cloud.filestore.v1.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.v1.FileShareConfig file_shares = 10;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.filestore.v1.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.v1.NetworkConfig networks = 11;

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

addAllSuspensionReasons(Iterable<? extends Instance.SuspensionReason> values)

public Instance.Builder addAllSuspensionReasons(Iterable<? extends Instance.SuspensionReason> values)

Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.

repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.filestore.v1.Instance.SuspensionReason>

The suspensionReasons to add.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

addAllSuspensionReasonsValue(Iterable<Integer> values)

public Instance.Builder addAllSuspensionReasonsValue(Iterable<Integer> values)

Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.

repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for suspensionReasons to add.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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

addSuspensionReasons(Instance.SuspensionReason value)

public Instance.Builder addSuspensionReasons(Instance.SuspensionReason value)

Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.

repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueInstance.SuspensionReason

The suspensionReasons to add.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

addSuspensionReasonsValue(int value)

public Instance.Builder addSuspensionReasonsValue(int value)

Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.

repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for suspensionReasons to add.

Returns
TypeDescription
Instance.Builder

This builder for chaining.

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