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
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.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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DirectedReadOptions.IncludeReplicas.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
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.IncludeReplicas build()
buildPartial()
public DirectedReadOptions.IncludeReplicas buildPartial()
clear()
public DirectedReadOptions.IncludeReplicas.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public DirectedReadOptions.IncludeReplicas.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DirectedReadOptions.IncludeReplicas.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearReplicaSelections()
public DirectedReadOptions.IncludeReplicas.Builder clearReplicaSelections()
The directed read replica selector.
repeated .google.spanner.v1.DirectedReadOptions.ReplicaSelection replica_selections = 1;
clone()
public DirectedReadOptions.IncludeReplicas.Builder clone()
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()
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.IncludeReplicas.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DirectedReadOptions.IncludeReplicas.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(DirectedReadOptions.IncludeReplicas other)
public DirectedReadOptions.IncludeReplicas.Builder mergeFrom(DirectedReadOptions.IncludeReplicas other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DirectedReadOptions.IncludeReplicas.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public DirectedReadOptions.IncludeReplicas.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DirectedReadOptions.IncludeReplicas.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final DirectedReadOptions.IncludeReplicas.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides