public static final class DirectedReadOptions.IncludeReplicas extends GeneratedMessageV3 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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > DirectedReadOptions.IncludeReplicasImplements
DirectedReadOptions.IncludeReplicasOrBuilderStatic Fields
AUTO_FAILOVER_DISABLED_FIELD_NUMBER
public static final int AUTO_FAILOVER_DISABLED_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
REPLICA_SELECTIONS_FIELD_NUMBER
public static final int REPLICA_SELECTIONS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static DirectedReadOptions.IncludeReplicas getDefaultInstance()
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static DirectedReadOptions.IncludeReplicas.Builder newBuilder()
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas.Builder |
newBuilder(DirectedReadOptions.IncludeReplicas prototype)
public static DirectedReadOptions.IncludeReplicas.Builder newBuilder(DirectedReadOptions.IncludeReplicas prototype)
Parameter | |
---|---|
Name | Description |
prototype |
DirectedReadOptions.IncludeReplicas |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas.Builder |
parseDelimitedFrom(InputStream input)
public static DirectedReadOptions.IncludeReplicas parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DirectedReadOptions.IncludeReplicas parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static DirectedReadOptions.IncludeReplicas parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DirectedReadOptions.IncludeReplicas parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static DirectedReadOptions.IncludeReplicas parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DirectedReadOptions.IncludeReplicas parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static DirectedReadOptions.IncludeReplicas parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DirectedReadOptions.IncludeReplicas parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static DirectedReadOptions.IncludeReplicas parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DirectedReadOptions.IncludeReplicas parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static DirectedReadOptions.IncludeReplicas parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DirectedReadOptions.IncludeReplicas parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<DirectedReadOptions.IncludeReplicas> parser()
Returns | |
---|---|
Type | Description |
Parser<IncludeReplicas> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
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 |
getParserForType()
public Parser<DirectedReadOptions.IncludeReplicas> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<IncludeReplicas> |
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 |
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> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public DirectedReadOptions.IncludeReplicas.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DirectedReadOptions.IncludeReplicas.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public DirectedReadOptions.IncludeReplicas.Builder toBuilder()
Returns | |
---|---|
Type | Description |
DirectedReadOptions.IncludeReplicas.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |