public static final class DirectedReadOptions.ExcludeReplicas.Builder extends GeneratedMessageV3.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DirectedReadOptions.ExcludeReplicas.BuilderImplements
DirectedReadOptions.ExcludeReplicasOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
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> |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.ExcludeReplicas.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DirectedReadOptions.ExcludeReplicas.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.ExcludeReplicas.Builder |
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;
Parameter | |
---|---|
Name | Description |
value |
DirectedReadOptions.ReplicaSelection |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.ExcludeReplicas.Builder |
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;
Parameter | |
---|---|
Name | Description |
builderForValue |
DirectedReadOptions.ReplicaSelection.Builder |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.ExcludeReplicas.Builder |
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;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
DirectedReadOptions.ReplicaSelection |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.ExcludeReplicas.Builder |
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;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
DirectedReadOptions.ReplicaSelection.Builder |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.ExcludeReplicas.Builder |
addReplicaSelectionsBuilder()
public DirectedReadOptions.ReplicaSelection.Builder addReplicaSelectionsBuilder()
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
Returns | |
---|---|
Type | Description |
DirectedReadOptions.ReplicaSelection.Builder |
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 |