Class DirectedReadOptions.IncludeReplicas.Builder (6.65.1)

public static final class DirectedReadOptions.IncludeReplicas.Builder extends GeneratedMessageV3.Builder<DirectedReadOptions.IncludeReplicas.Builder> implements DirectedReadOptions.IncludeReplicasOrBuilder

An IncludeReplicas contains a repeated set of ReplicaSelection which indicates the order in which replicas should be considered.

Protobuf type google.spanner.v1.DirectedReadOptions.IncludeReplicas

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllReplicaSelections(Iterable<? extends DirectedReadOptions.ReplicaSelection> values)

public DirectedReadOptions.IncludeReplicas.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.IncludeReplicas.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addReplicaSelections(DirectedReadOptions.ReplicaSelection value)

public DirectedReadOptions.IncludeReplicas.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.IncludeReplicas.Builder

addReplicaSelections(DirectedReadOptions.ReplicaSelection.Builder builderForValue)

public DirectedReadOptions.IncludeReplicas.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.IncludeReplicas.Builder

addReplicaSelections(int index, DirectedReadOptions.ReplicaSelection value)

public DirectedReadOptions.IncludeReplicas.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.IncludeReplicas.Builder

addReplicaSelections(int index, DirectedReadOptions.ReplicaSelection.Builder builderForValue)

public DirectedReadOptions.IncludeReplicas.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.IncludeReplicas.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.IncludeReplicas build()
Returns
Type Description
DirectedReadOptions.IncludeReplicas

buildPartial()

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

clear()

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

clearAutoFailoverDisabled()

public DirectedReadOptions.IncludeReplicas.Builder clearAutoFailoverDisabled()

If true, Spanner will not route requests to a replica outside the include_replicas list when all of the specified replicas are unavailable or unhealthy. Default value is false.

bool auto_failover_disabled = 2;

Returns
Type Description
DirectedReadOptions.IncludeReplicas.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReplicaSelections()

public DirectedReadOptions.IncludeReplicas.Builder clearReplicaSelections()

The directed read replica selector.

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

Returns
Type Description
DirectedReadOptions.IncludeReplicas.Builder

clone()

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

getAutoFailoverDisabled()

public boolean getAutoFailoverDisabled()

If true, Spanner will not route requests to a replica outside the include_replicas list when all of the specified replicas are unavailable or unhealthy. Default value is false.

bool auto_failover_disabled = 2;

Returns
Type Description
boolean

The autoFailoverDisabled.

getDefaultInstanceForType()

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

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.IncludeReplicas.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DirectedReadOptions.IncludeReplicas.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(DirectedReadOptions.IncludeReplicas other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DirectedReadOptions.IncludeReplicas.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DirectedReadOptions.IncludeReplicas.Builder
Overrides

removeReplicaSelections(int index)

public DirectedReadOptions.IncludeReplicas.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.IncludeReplicas.Builder

setAutoFailoverDisabled(boolean value)

public DirectedReadOptions.IncludeReplicas.Builder setAutoFailoverDisabled(boolean value)

If true, Spanner will not route requests to a replica outside the include_replicas list when all of the specified replicas are unavailable or unhealthy. Default value is false.

bool auto_failover_disabled = 2;

Parameter
Name Description
value boolean

The autoFailoverDisabled to set.

Returns
Type Description
DirectedReadOptions.IncludeReplicas.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public DirectedReadOptions.IncludeReplicas.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DirectedReadOptions.IncludeReplicas.Builder
Overrides

setReplicaSelections(int index, DirectedReadOptions.ReplicaSelection value)

public DirectedReadOptions.IncludeReplicas.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.IncludeReplicas.Builder

setReplicaSelections(int index, DirectedReadOptions.ReplicaSelection.Builder builderForValue)

public DirectedReadOptions.IncludeReplicas.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.IncludeReplicas.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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