public static final class RequestOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder> implements RequestOptionsOrBuilder
Common request options for various APIs.Protobuf type
google.spanner.v1.RequestOptions| Modifier and Type | Method and Description |
|---|---|
RequestOptions.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RequestOptions |
build() |
RequestOptions |
buildPartial() |
RequestOptions.Builder |
clear() |
RequestOptions.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RequestOptions.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RequestOptions.Builder |
clearPriority()
Priority for the request.
|
RequestOptions.Builder |
clearRequestTag()
A per-request tag which can be applied to queries or reads, used for
statistics collection.
|
RequestOptions.Builder |
clearTransactionTag()
A tag used for statistics collection about this transaction.
|
RequestOptions.Builder |
clone() |
RequestOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
RequestOptions.Priority |
getPriority()
Priority for the request.
|
int |
getPriorityValue()
Priority for the request.
|
String |
getRequestTag()
A per-request tag which can be applied to queries or reads, used for
statistics collection.
|
com.google.protobuf.ByteString |
getRequestTagBytes()
A per-request tag which can be applied to queries or reads, used for
statistics collection.
|
String |
getTransactionTag()
A tag used for statistics collection about this transaction.
|
com.google.protobuf.ByteString |
getTransactionTagBytes()
A tag used for statistics collection about this transaction.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RequestOptions.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RequestOptions.Builder |
mergeFrom(com.google.protobuf.Message other) |
RequestOptions.Builder |
mergeFrom(RequestOptions other) |
RequestOptions.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RequestOptions.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RequestOptions.Builder |
setPriority(RequestOptions.Priority value)
Priority for the request.
|
RequestOptions.Builder |
setPriorityValue(int value)
Priority for the request.
|
RequestOptions.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RequestOptions.Builder |
setRequestTag(String value)
A per-request tag which can be applied to queries or reads, used for
statistics collection.
|
RequestOptions.Builder |
setRequestTagBytes(com.google.protobuf.ByteString value)
A per-request tag which can be applied to queries or reads, used for
statistics collection.
|
RequestOptions.Builder |
setTransactionTag(String value)
A tag used for statistics collection about this transaction.
|
RequestOptions.Builder |
setTransactionTagBytes(com.google.protobuf.ByteString value)
A tag used for statistics collection about this transaction.
|
RequestOptions.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>public RequestOptions.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>public RequestOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RequestOptions build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RequestOptions buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RequestOptions.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>public RequestOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>public RequestOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>public RequestOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>public RequestOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>public RequestOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>public RequestOptions.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RequestOptions.Builder>public RequestOptions.Builder mergeFrom(RequestOptions other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>public RequestOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RequestOptions.Builder>IOExceptionpublic int getPriorityValue()
Priority for the request.
.google.spanner.v1.RequestOptions.Priority priority = 1;getPriorityValue in interface RequestOptionsOrBuilderpublic RequestOptions.Builder setPriorityValue(int value)
Priority for the request.
.google.spanner.v1.RequestOptions.Priority priority = 1;value - The enum numeric value on the wire for priority to set.public RequestOptions.Priority getPriority()
Priority for the request.
.google.spanner.v1.RequestOptions.Priority priority = 1;getPriority in interface RequestOptionsOrBuilderpublic RequestOptions.Builder setPriority(RequestOptions.Priority value)
Priority for the request.
.google.spanner.v1.RequestOptions.Priority priority = 1;value - The priority to set.public RequestOptions.Builder clearPriority()
Priority for the request.
.google.spanner.v1.RequestOptions.Priority priority = 1;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.
string request_tag = 2;getRequestTag in interface RequestOptionsOrBuilderpublic com.google.protobuf.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.
string request_tag = 2;getRequestTagBytes in interface RequestOptionsOrBuilderpublic RequestOptions.Builder setRequestTag(String value)
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.
string request_tag = 2;value - The requestTag to set.public RequestOptions.Builder clearRequestTag()
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.
string request_tag = 2;public RequestOptions.Builder setRequestTagBytes(com.google.protobuf.ByteString value)
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.
string request_tag = 2;value - The bytes for requestTag to set.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.
string transaction_tag = 3;getTransactionTag in interface RequestOptionsOrBuilderpublic com.google.protobuf.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.
string transaction_tag = 3;getTransactionTagBytes in interface RequestOptionsOrBuilderpublic RequestOptions.Builder setTransactionTag(String value)
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.
string transaction_tag = 3;value - The transactionTag to set.public RequestOptions.Builder clearTransactionTag()
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.
string transaction_tag = 3;public RequestOptions.Builder setTransactionTagBytes(com.google.protobuf.ByteString value)
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.
string transaction_tag = 3;value - The bytes for transactionTag to set.public final RequestOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>public final RequestOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>Copyright © 2021 Google LLC. All rights reserved.