public static final class DirectedReadOptions.ExcludeReplicas.Builder extends GeneratedMessage.Builder<DirectedReadOptions.ExcludeReplicas.Builder> implements DirectedReadOptions.ExcludeReplicasOrBuilder
An ExcludeReplicas contains a repeated set of ReplicaSelection that should
be excluded from serving requests.
Protobuf type google.spanner.v1.DirectedReadOptions.ExcludeReplicas
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllReplicaSelections(Iterable<? extends DirectedReadOptions.ReplicaSelection> values)
public DirectedReadOptions.ExcludeReplicas.Builder addAllReplicaSelections(Iterable<? extends DirectedReadOptions.ReplicaSelection> values)
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.spanner.v1.DirectedReadOptions.ReplicaSelection>
|
addReplicaSelections(DirectedReadOptions.ReplicaSelection value)
public DirectedReadOptions.ExcludeReplicas.Builder addReplicaSelections(DirectedReadOptions.ReplicaSelection value)
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
addReplicaSelections(DirectedReadOptions.ReplicaSelection.Builder builderForValue)
public DirectedReadOptions.ExcludeReplicas.Builder addReplicaSelections(DirectedReadOptions.ReplicaSelection.Builder builderForValue)
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
addReplicaSelections(int index, DirectedReadOptions.ReplicaSelection value)
public DirectedReadOptions.ExcludeReplicas.Builder addReplicaSelections(int index, DirectedReadOptions.ReplicaSelection value)
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
addReplicaSelections(int index, DirectedReadOptions.ReplicaSelection.Builder builderForValue)
public DirectedReadOptions.ExcludeReplicas.Builder addReplicaSelections(int index, DirectedReadOptions.ReplicaSelection.Builder builderForValue)
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
addReplicaSelectionsBuilder()
public DirectedReadOptions.ReplicaSelection.Builder addReplicaSelectionsBuilder()
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
addReplicaSelectionsBuilder(int index)
public DirectedReadOptions.ReplicaSelection.Builder addReplicaSelectionsBuilder(int index)
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
| Parameter |
| Name |
Description |
index |
int
|
build()
public DirectedReadOptions.ExcludeReplicas build()
buildPartial()
public DirectedReadOptions.ExcludeReplicas buildPartial()
clear()
public DirectedReadOptions.ExcludeReplicas.Builder clear()
Overrides
clearReplicaSelections()
public DirectedReadOptions.ExcludeReplicas.Builder clearReplicaSelections()
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
getDefaultInstanceForType()
public DirectedReadOptions.ExcludeReplicas getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getReplicaSelections(int index)
public DirectedReadOptions.ReplicaSelection getReplicaSelections(int index)
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
| Parameter |
| Name |
Description |
index |
int
|
getReplicaSelectionsBuilder(int index)
public DirectedReadOptions.ReplicaSelection.Builder getReplicaSelectionsBuilder(int index)
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
| Parameter |
| Name |
Description |
index |
int
|
getReplicaSelectionsBuilderList()
public List<DirectedReadOptions.ReplicaSelection.Builder> getReplicaSelectionsBuilderList()
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
getReplicaSelectionsCount()
public int getReplicaSelectionsCount()
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
| Returns |
| Type |
Description |
int |
|
getReplicaSelectionsList()
public List<DirectedReadOptions.ReplicaSelection> getReplicaSelectionsList()
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
getReplicaSelectionsOrBuilder(int index)
public DirectedReadOptions.ReplicaSelectionOrBuilder getReplicaSelectionsOrBuilder(int index)
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
| Parameter |
| Name |
Description |
index |
int
|
getReplicaSelectionsOrBuilderList()
public List<? extends DirectedReadOptions.ReplicaSelectionOrBuilder> getReplicaSelectionsOrBuilderList()
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
| Returns |
| Type |
Description |
List<? extends com.google.spanner.v1.DirectedReadOptions.ReplicaSelectionOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public DirectedReadOptions.ExcludeReplicas.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DirectedReadOptions.ExcludeReplicas.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeFrom(DirectedReadOptions.ExcludeReplicas other)
public DirectedReadOptions.ExcludeReplicas.Builder mergeFrom(DirectedReadOptions.ExcludeReplicas other)
removeReplicaSelections(int index)
public DirectedReadOptions.ExcludeReplicas.Builder removeReplicaSelections(int index)
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
| Parameter |
| Name |
Description |
index |
int
|
setReplicaSelections(int index, DirectedReadOptions.ReplicaSelection value)
public DirectedReadOptions.ExcludeReplicas.Builder setReplicaSelections(int index, DirectedReadOptions.ReplicaSelection value)
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
setReplicaSelections(int index, DirectedReadOptions.ReplicaSelection.Builder builderForValue)
public DirectedReadOptions.ExcludeReplicas.Builder setReplicaSelections(int index, DirectedReadOptions.ReplicaSelection.Builder builderForValue)
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;