Class DirectedReadOptions.ExcludeReplicas.Builder (6.68.0)

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

Static 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
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;

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
Returns
Type Description
DirectedReadOptions.ReplicaSelection.Builder

build()

public DirectedReadOptions.ExcludeReplicas build()
Returns
Type Description
DirectedReadOptions.ExcludeReplicas

buildPartial()

public DirectedReadOptions.ExcludeReplicas buildPartial()
Returns
Type Description
DirectedReadOptions.ExcludeReplicas

clear()

public DirectedReadOptions.ExcludeReplicas.Builder clear()
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DirectedReadOptions.ExcludeReplicas.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DirectedReadOptions.ExcludeReplicas.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder
Overrides

clearReplicaSelections()

public DirectedReadOptions.ExcludeReplicas.Builder clearReplicaSelections()

The directed read replica selector.

repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;

Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder

clone()

public DirectedReadOptions.ExcludeReplicas.Builder clone()
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder
Overrides

getDefaultInstanceForType()

public DirectedReadOptions.ExcludeReplicas getDefaultInstanceForType()
Returns
Type Description
DirectedReadOptions.ExcludeReplicas

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Returns
Type Description
DirectedReadOptions.ReplicaSelection

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
Returns
Type Description
DirectedReadOptions.ReplicaSelection.Builder

getReplicaSelectionsBuilderList()

public List<DirectedReadOptions.ReplicaSelection.Builder> getReplicaSelectionsBuilderList()

The directed read replica selector.

repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
List<ReplicaSelection>

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
Returns
Type Description
DirectedReadOptions.ReplicaSelectionOrBuilder

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DirectedReadOptions.ExcludeReplicas.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DirectedReadOptions.ExcludeReplicas.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder
Overrides

mergeFrom(DirectedReadOptions.ExcludeReplicas other)

public DirectedReadOptions.ExcludeReplicas.Builder mergeFrom(DirectedReadOptions.ExcludeReplicas other)
Parameter
Name Description
other DirectedReadOptions.ExcludeReplicas
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DirectedReadOptions.ExcludeReplicas.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder
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
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DirectedReadOptions.ExcludeReplicas.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DirectedReadOptions.ExcludeReplicas.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder
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;

Parameters
Name Description
index int
value DirectedReadOptions.ReplicaSelection
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder

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;

Parameters
Name Description
index int
builderForValue DirectedReadOptions.ReplicaSelection.Builder
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DirectedReadOptions.ExcludeReplicas.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder
Overrides