Class DirectedReadOptions.ExcludeReplicas.Builder (6.101.1)
6.111.1 (latest)
6.111.0
6.108.0
6.107.0
6.103.0
6.102.1
6.101.1
6.100.0
6.99.0
6.98.1
6.97.1
6.96.1
6.95.1
6.94.0
6.93.0
6.89.0
6.88.0
6.87.0
6.86.0
6.85.0
6.83.0
6.82.0
6.80.1
6.79.0
6.77.0
6.74.1
6.72.0
6.71.0
6.69.0
6.68.0
6.66.0
6.65.1
6.62.0
6.60.0
6.58.0
6.57.0
6.56.0
6.55.0
6.54.0
6.53.0
6.52.1
6.51.0
6.50.1
6.49.0
6.25.1
6.24.0
6.23.4
6.22.0
6.21.2
6.20.0
6.19.1
6.18.0
6.17.4
6.14.1
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 )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DirectedReadOptions . ExcludeReplicas . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final DirectedReadOptions . ExcludeReplicas . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-14 UTC."],[],[]]