Class DirectedReadOptions.ExcludeReplicas.Builder (6.56.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.v1.DirectedReadOptions.ReplicaSelection>
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DirectedReadOptions.ExcludeReplicas.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDirectedReadOptions.ReplicaSelection
Returns
TypeDescription
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
NameDescription
builderForValueDirectedReadOptions.ReplicaSelection.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDirectedReadOptions.ReplicaSelection
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDirectedReadOptions.ReplicaSelection.Builder
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas.Builder

addReplicaSelectionsBuilder()

public DirectedReadOptions.ReplicaSelection.Builder addReplicaSelectionsBuilder()

The directed read replica selector.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DirectedReadOptions.ReplicaSelection.Builder

build()

public DirectedReadOptions.ExcludeReplicas build()
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas

buildPartial()

public DirectedReadOptions.ExcludeReplicas buildPartial()
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas

clear()

public DirectedReadOptions.ExcludeReplicas.Builder clear()
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DirectedReadOptions.ExcludeReplicas.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DirectedReadOptions.ExcludeReplicas.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
DirectedReadOptions.ExcludeReplicas.Builder

clone()

public DirectedReadOptions.ExcludeReplicas.Builder clone()
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas.Builder
Overrides

getDefaultInstanceForType()

public DirectedReadOptions.ExcludeReplicas getDefaultInstanceForType()
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getReplicaSelectionsCount()

public int getReplicaSelectionsCount()

The directed read replica selector.

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

Returns
TypeDescription
int

getReplicaSelectionsList()

public List<DirectedReadOptions.ReplicaSelection> getReplicaSelectionsList()

The directed read replica selector.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DirectedReadOptions.ReplicaSelectionOrBuilder

getReplicaSelectionsOrBuilderList()

public List<? extends DirectedReadOptions.ReplicaSelectionOrBuilder> getReplicaSelectionsOrBuilderList()

The directed read replica selector.

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

Returns
TypeDescription
List<? extends com.google.spanner.v1.DirectedReadOptions.ReplicaSelectionOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DirectedReadOptions.ExcludeReplicas.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DirectedReadOptions.ExcludeReplicas.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas.Builder
Overrides

mergeFrom(DirectedReadOptions.ExcludeReplicas other)

public DirectedReadOptions.ExcludeReplicas.Builder mergeFrom(DirectedReadOptions.ExcludeReplicas other)
Parameter
NameDescription
otherDirectedReadOptions.ExcludeReplicas
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DirectedReadOptions.ExcludeReplicas.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DirectedReadOptions.ExcludeReplicas.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueDirectedReadOptions.ReplicaSelection
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDirectedReadOptions.ReplicaSelection.Builder
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DirectedReadOptions.ExcludeReplicas.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DirectedReadOptions.ExcludeReplicas.Builder
Overrides