public static final class Replication.Builder extends GeneratedMessage.Builder<Replication.Builder> implements ReplicationOrBuilderReplication specifications.
Protobuf type google.cloud.filestore.v1beta1.Replication
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Replication.BuilderImplements
ReplicationOrBuilderStatic 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)Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.filestore.v1beta1.ReplicaConfig> |
| Returns | |
|---|---|
| Type | Description |
Replication.Builder |
|
addReplicas(ReplicaConfig value)
public Replication.Builder addReplicas(ReplicaConfig value)Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ReplicaConfig |
| Returns | |
|---|---|
| Type | Description |
Replication.Builder |
|
addReplicas(ReplicaConfig.Builder builderForValue)
public Replication.Builder addReplicas(ReplicaConfig.Builder builderForValue)Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ReplicaConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
Replication.Builder |
|
addReplicas(int index, ReplicaConfig value)
public Replication.Builder addReplicas(int index, ReplicaConfig value)Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| 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)Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ReplicaConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
Replication.Builder |
|
addReplicasBuilder()
public ReplicaConfig.Builder addReplicasBuilder()Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Returns | |
|---|---|
| Type | Description |
ReplicaConfig.Builder |
|
addReplicasBuilder(int index)
public ReplicaConfig.Builder addReplicasBuilder(int index)Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| 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 |
|
clearReplicas()
public Replication.Builder clearReplicas()Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Returns | |
|---|---|
| Type | Description |
Replication.Builder |
|
clearRole()
public Replication.Builder clearRole()Output only. The replication role.
.google.cloud.filestore.v1beta1.Replication.Role role = 1;
| Returns | |
|---|---|
| Type | Description |
Replication.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Replication getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Replication |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getReplicas(int index)
public ReplicaConfig getReplicas(int index)Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ReplicaConfig |
|
getReplicasBuilder(int index)
public ReplicaConfig.Builder getReplicasBuilder(int index)Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ReplicaConfig.Builder |
|
getReplicasBuilderList()
public List<ReplicaConfig.Builder> getReplicasBuilderList()Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getReplicasCount()
public int getReplicasCount()Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
getReplicasList()
public List<ReplicaConfig> getReplicasList()Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Returns | |
|---|---|
| Type | Description |
List<ReplicaConfig> |
|
getReplicasOrBuilder(int index)
public ReplicaConfigOrBuilder getReplicasOrBuilder(int index)Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ReplicaConfigOrBuilder |
|
getReplicasOrBuilderList()
public List<? extends ReplicaConfigOrBuilder> getReplicasOrBuilderList()Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.filestore.v1beta1.ReplicaConfigOrBuilder> |
|
getRole()
public Replication.Role getRole()Output only. The replication role.
.google.cloud.filestore.v1beta1.Replication.Role role = 1;
| Returns | |
|---|---|
| Type | Description |
Replication.Role |
The role. |
getRoleValue()
public int getRoleValue()Output only. The replication role.
.google.cloud.filestore.v1beta1.Replication.Role role = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for role. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Replication.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Replication.Builder |
|
removeReplicas(int index)
public Replication.Builder removeReplicas(int index)Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Replication.Builder |
|
setReplicas(int index, ReplicaConfig value)
public Replication.Builder setReplicas(int index, ReplicaConfig value)Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| 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)Replication configuration for the replica instance associated with this instance. Only a single replica is supported.
repeated .google.cloud.filestore.v1beta1.ReplicaConfig replicas = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ReplicaConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
Replication.Builder |
|
setRole(Replication.Role value)
public Replication.Builder setRole(Replication.Role value)Output only. The replication role.
.google.cloud.filestore.v1beta1.Replication.Role role = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Replication.RoleThe role to set. |
| Returns | |
|---|---|
| Type | Description |
Replication.Builder |
This builder for chaining. |
setRoleValue(int value)
public Replication.Builder setRoleValue(int value)Output only. The replication role.
.google.cloud.filestore.v1beta1.Replication.Role role = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for role to set. |
| Returns | |
|---|---|
| Type | Description |
Replication.Builder |
This builder for chaining. |