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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DirectedReadOptions.ExcludeReplicas.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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
clearField(Descriptors.FieldDescriptor field)
public DirectedReadOptions.ExcludeReplicas.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DirectedReadOptions.ExcludeReplicas.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearReplicaSelections()
public DirectedReadOptions.ExcludeReplicas.Builder clearReplicaSelections()
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
clone()
public DirectedReadOptions.ExcludeReplicas.Builder clone()
Overrides
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 GeneratedMessageV3.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)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DirectedReadOptions.ExcludeReplicas.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public DirectedReadOptions.ExcludeReplicas.Builder setField(Descriptors.FieldDescriptor field, Object value)