Class DirectedReadOptions.ExcludeReplicas (6.79.0)

public static final class DirectedReadOptions.ExcludeReplicas extends GeneratedMessageV3 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > DirectedReadOptions.ExcludeReplicas

Static Fields

REPLICA_SELECTIONS_FIELD_NUMBER

public static final int REPLICA_SELECTIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DirectedReadOptions.ExcludeReplicas getDefaultInstance()
Returns
Type Description
DirectedReadOptions.ExcludeReplicas

getDescriptor()

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

newBuilder()

public static DirectedReadOptions.ExcludeReplicas.Builder newBuilder()
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder

newBuilder(DirectedReadOptions.ExcludeReplicas prototype)

public static DirectedReadOptions.ExcludeReplicas.Builder newBuilder(DirectedReadOptions.ExcludeReplicas prototype)
Parameter
Name Description
prototype DirectedReadOptions.ExcludeReplicas
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder

parseDelimitedFrom(InputStream input)

public static DirectedReadOptions.ExcludeReplicas parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DirectedReadOptions.ExcludeReplicas
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DirectedReadOptions.ExcludeReplicas parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DirectedReadOptions.ExcludeReplicas
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DirectedReadOptions.ExcludeReplicas parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DirectedReadOptions.ExcludeReplicas
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DirectedReadOptions.ExcludeReplicas parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DirectedReadOptions.ExcludeReplicas
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DirectedReadOptions.ExcludeReplicas parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DirectedReadOptions.ExcludeReplicas
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DirectedReadOptions.ExcludeReplicas parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DirectedReadOptions.ExcludeReplicas
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DirectedReadOptions.ExcludeReplicas parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DirectedReadOptions.ExcludeReplicas
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DirectedReadOptions.ExcludeReplicas parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DirectedReadOptions.ExcludeReplicas
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DirectedReadOptions.ExcludeReplicas parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DirectedReadOptions.ExcludeReplicas
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DirectedReadOptions.ExcludeReplicas parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DirectedReadOptions.ExcludeReplicas
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DirectedReadOptions.ExcludeReplicas parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DirectedReadOptions.ExcludeReplicas
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DirectedReadOptions.ExcludeReplicas parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DirectedReadOptions.ExcludeReplicas
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DirectedReadOptions.ExcludeReplicas> parser()
Returns
Type Description
Parser<ExcludeReplicas>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<DirectedReadOptions.ExcludeReplicas> getParserForType()
Returns
Type Description
Parser<ExcludeReplicas>
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

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
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DirectedReadOptions.ExcludeReplicas.Builder newBuilderForType()
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DirectedReadOptions.ExcludeReplicas.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DirectedReadOptions.ExcludeReplicas.Builder toBuilder()
Returns
Type Description
DirectedReadOptions.ExcludeReplicas.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException