public final class RequestOptions extends GeneratedMessageV3 implements RequestOptionsOrBuilder
Common request options for various APIs.
Protobuf type google.spanner.v1.RequestOptions
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > RequestOptionsImplements
RequestOptionsOrBuilderStatic Fields
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
Type | Description |
int |
REQUEST_TAG_FIELD_NUMBER
public static final int REQUEST_TAG_FIELD_NUMBER
Type | Description |
int |
TRANSACTION_TAG_FIELD_NUMBER
public static final int TRANSACTION_TAG_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static RequestOptions getDefaultInstance()
Type | Description |
RequestOptions |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static RequestOptions.Builder newBuilder()
Type | Description |
RequestOptions.Builder |
newBuilder(RequestOptions prototype)
public static RequestOptions.Builder newBuilder(RequestOptions prototype)
Name | Description |
prototype | RequestOptions |
Type | Description |
RequestOptions.Builder |
parseDelimitedFrom(InputStream input)
public static RequestOptions parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
RequestOptions |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RequestOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RequestOptions |
Type | Description |
IOException |
parseFrom(byte[] data)
public static RequestOptions parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
RequestOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RequestOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RequestOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static RequestOptions parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
RequestOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RequestOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RequestOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static RequestOptions parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
RequestOptions |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RequestOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RequestOptions |
Type | Description |
IOException |
parseFrom(InputStream input)
public static RequestOptions parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
RequestOptions |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RequestOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RequestOptions |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static RequestOptions parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
RequestOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RequestOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RequestOptions |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<RequestOptions> parser()
Type | Description |
Parser<RequestOptions> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public RequestOptions getDefaultInstanceForType()
Type | Description |
RequestOptions |
getParserForType()
public Parser<RequestOptions> getParserForType()
Type | Description |
Parser<RequestOptions> |
getPriority()
public RequestOptions.Priority getPriority()
Priority for the request.
.google.spanner.v1.RequestOptions.Priority priority = 1;
Type | Description |
RequestOptions.Priority | The priority. |
getPriorityValue()
public int getPriorityValue()
Priority for the request.
.google.spanner.v1.RequestOptions.Priority priority = 1;
Type | Description |
int | The enum numeric value on the wire for priority. |
getRequestTag()
public String getRequestTag()
A per-request tag which can be applied to queries or reads, used for
statistics collection.
Both request_tag and transaction_tag can be specified for a read or query
that belongs to a transaction.
This field is ignored for requests where it's not applicable (e.g.
CommitRequest).
Legal characters for request_tag
values are all printable characters
(ASCII 32 - 126) and the length of a request_tag is limited to 50
characters. Values that exceed this limit are truncated.
Any leading underscore (_) characters will be removed from the string.
string request_tag = 2;
Type | Description |
String | The requestTag. |
getRequestTagBytes()
public ByteString getRequestTagBytes()
A per-request tag which can be applied to queries or reads, used for
statistics collection.
Both request_tag and transaction_tag can be specified for a read or query
that belongs to a transaction.
This field is ignored for requests where it's not applicable (e.g.
CommitRequest).
Legal characters for request_tag
values are all printable characters
(ASCII 32 - 126) and the length of a request_tag is limited to 50
characters. Values that exceed this limit are truncated.
Any leading underscore (_) characters will be removed from the string.
string request_tag = 2;
Type | Description |
ByteString | The bytes for requestTag. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getTransactionTag()
public String getTransactionTag()
A tag used for statistics collection about this transaction.
Both request_tag and transaction_tag can be specified for a read or query
that belongs to a transaction.
The value of transaction_tag should be the same for all requests belonging
to the same transaction.
If this request doesn't belong to any transaction, transaction_tag will be
ignored.
Legal characters for transaction_tag
values are all printable characters
(ASCII 32 - 126) and the length of a transaction_tag is limited to 50
characters. Values that exceed this limit are truncated.
Any leading underscore (_) characters will be removed from the string.
string transaction_tag = 3;
Type | Description |
String | The transactionTag. |
getTransactionTagBytes()
public ByteString getTransactionTagBytes()
A tag used for statistics collection about this transaction.
Both request_tag and transaction_tag can be specified for a read or query
that belongs to a transaction.
The value of transaction_tag should be the same for all requests belonging
to the same transaction.
If this request doesn't belong to any transaction, transaction_tag will be
ignored.
Legal characters for transaction_tag
values are all printable characters
(ASCII 32 - 126) and the length of a transaction_tag is limited to 50
characters. Values that exceed this limit are truncated.
Any leading underscore (_) characters will be removed from the string.
string transaction_tag = 3;
Type | Description |
ByteString | The bytes for transactionTag. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public RequestOptions.Builder newBuilderForType()
Type | Description |
RequestOptions.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RequestOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
RequestOptions.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public RequestOptions.Builder toBuilder()
Type | Description |
RequestOptions.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |