Class Replication.Builder (1.61.0)

public static final class Replication.Builder extends GeneratedMessageV3.Builder<Replication.Builder> implements ReplicationOrBuilder

Replication specifications.

Protobuf type google.cloud.filestore.v1.Replication

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllReplicas(Iterable<? extends ReplicaConfig> values)

public Replication.Builder addAllReplicas(Iterable<? extends ReplicaConfig> values)

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.filestore.v1.ReplicaConfig>
Returns
Type Description
Replication.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Replication.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Replication.Builder
Overrides

addReplicas(ReplicaConfig value)

public Replication.Builder addReplicas(ReplicaConfig value)

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ReplicaConfig
Returns
Type Description
Replication.Builder

addReplicas(ReplicaConfig.Builder builderForValue)

public Replication.Builder addReplicas(ReplicaConfig.Builder builderForValue)

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ReplicaConfig.Builder
Returns
Type Description
Replication.Builder

addReplicas(int index, ReplicaConfig value)

public Replication.Builder addReplicas(int index, ReplicaConfig value)

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ReplicaConfig
Returns
Type Description
Replication.Builder

addReplicas(int index, ReplicaConfig.Builder builderForValue)

public Replication.Builder addReplicas(int index, ReplicaConfig.Builder builderForValue)

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ReplicaConfig.Builder
Returns
Type Description
Replication.Builder

addReplicasBuilder()

public ReplicaConfig.Builder addReplicasBuilder()

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ReplicaConfig.Builder

addReplicasBuilder(int index)

public ReplicaConfig.Builder addReplicasBuilder(int index)

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ReplicaConfig.Builder

build()

public Replication build()
Returns
Type Description
Replication

buildPartial()

public Replication buildPartial()
Returns
Type Description
Replication

clear()

public Replication.Builder clear()
Returns
Type Description
Replication.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Replication.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Replication.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Replication.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Replication.Builder
Overrides

clearReplicas()

public Replication.Builder clearReplicas()

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Replication.Builder

clearRole()

public Replication.Builder clearRole()

Optional. The replication role.

.google.cloud.filestore.v1.Replication.Role role = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Replication.Builder

This builder for chaining.

clone()

public Replication.Builder clone()
Returns
Type Description
Replication.Builder
Overrides

getDefaultInstanceForType()

public Replication getDefaultInstanceForType()
Returns
Type Description
Replication

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getReplicas(int index)

public ReplicaConfig getReplicas(int index)

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ReplicaConfig

getReplicasBuilder(int index)

public ReplicaConfig.Builder getReplicasBuilder(int index)

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ReplicaConfig.Builder

getReplicasBuilderList()

public List<ReplicaConfig.Builder> getReplicasBuilderList()

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getReplicasCount()

public int getReplicasCount()

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getReplicasList()

public List<ReplicaConfig> getReplicasList()

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ReplicaConfig>

getReplicasOrBuilder(int index)

public ReplicaConfigOrBuilder getReplicasOrBuilder(int index)

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ReplicaConfigOrBuilder

getReplicasOrBuilderList()

public List<? extends ReplicaConfigOrBuilder> getReplicasOrBuilderList()

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.filestore.v1.ReplicaConfigOrBuilder>

getRole()

public Replication.Role getRole()

Optional. The replication role.

.google.cloud.filestore.v1.Replication.Role role = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Replication.Role

The role.

getRoleValue()

public int getRoleValue()

Optional. The replication role.

.google.cloud.filestore.v1.Replication.Role role = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for role.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Replication other)

public Replication.Builder mergeFrom(Replication other)
Parameter
Name Description
other Replication
Returns
Type Description
Replication.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Replication.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Replication.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Replication.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Replication.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Replication.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Replication.Builder
Overrides

removeReplicas(int index)

public Replication.Builder removeReplicas(int index)

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Replication.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Replication.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Replication.Builder
Overrides

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

public Replication.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Replication.Builder
Overrides

setReplicas(int index, ReplicaConfig value)

public Replication.Builder setReplicas(int index, ReplicaConfig value)

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ReplicaConfig
Returns
Type Description
Replication.Builder

setReplicas(int index, ReplicaConfig.Builder builderForValue)

public Replication.Builder setReplicas(int index, ReplicaConfig.Builder builderForValue)

Optional. Replication configuration for the replica instance associated with this instance. Only a single replica is supported.

repeated .google.cloud.filestore.v1.ReplicaConfig replicas = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ReplicaConfig.Builder
Returns
Type Description
Replication.Builder

setRole(Replication.Role value)

public Replication.Builder setRole(Replication.Role value)

Optional. The replication role.

.google.cloud.filestore.v1.Replication.Role role = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Replication.Role

The role to set.

Returns
Type Description
Replication.Builder

This builder for chaining.

setRoleValue(int value)

public Replication.Builder setRoleValue(int value)

Optional. The replication role.

.google.cloud.filestore.v1.Replication.Role role = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
Replication.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Replication.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Replication.Builder
Overrides