Package com.google.spanner.v1
Class RequestOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
- com.google.spanner.v1.RequestOptions.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RequestOptionsOrBuilder,Cloneable
- Enclosing class:
- RequestOptions
public static final class RequestOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder> implements RequestOptionsOrBuilder
Common request options for various APIs.
Protobuf typegoogle.spanner.v1.RequestOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestOptions.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RequestOptionsbuild()RequestOptionsbuildPartial()RequestOptions.Builderclear()RequestOptions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RequestOptions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RequestOptions.BuilderclearPriority()Priority for the request.RequestOptions.BuilderclearRequestTag()A per-request tag which can be applied to queries or reads, used for statistics collection.RequestOptions.BuilderclearTransactionTag()A tag used for statistics collection about this transaction.RequestOptions.Builderclone()RequestOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()RequestOptions.PrioritygetPriority()Priority for the request.intgetPriorityValue()Priority for the request.StringgetRequestTag()A per-request tag which can be applied to queries or reads, used for statistics collection.com.google.protobuf.ByteStringgetRequestTagBytes()A per-request tag which can be applied to queries or reads, used for statistics collection.StringgetTransactionTag()A tag used for statistics collection about this transaction.com.google.protobuf.ByteStringgetTransactionTagBytes()A tag used for statistics collection about this transaction.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RequestOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RequestOptions.BuildermergeFrom(com.google.protobuf.Message other)RequestOptions.BuildermergeFrom(RequestOptions other)RequestOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RequestOptions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RequestOptions.BuildersetPriority(RequestOptions.Priority value)Priority for the request.RequestOptions.BuildersetPriorityValue(int value)Priority for the request.RequestOptions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RequestOptions.BuildersetRequestTag(String value)A per-request tag which can be applied to queries or reads, used for statistics collection.RequestOptions.BuildersetRequestTagBytes(com.google.protobuf.ByteString value)A per-request tag which can be applied to queries or reads, used for statistics collection.RequestOptions.BuildersetTransactionTag(String value)A tag used for statistics collection about this transaction.RequestOptions.BuildersetTransactionTagBytes(com.google.protobuf.ByteString value)A tag used for statistics collection about this transaction.RequestOptions.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
clear
public RequestOptions.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
getDefaultInstanceForType
public RequestOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RequestOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RequestOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RequestOptions.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
setField
public RequestOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
clearField
public RequestOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
clearOneof
public RequestOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
setRepeatedField
public RequestOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
addRepeatedField
public RequestOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
mergeFrom
public RequestOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RequestOptions.Builder>
-
mergeFrom
public RequestOptions.Builder mergeFrom(RequestOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
mergeFrom
public RequestOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RequestOptions.Builder>- Throws:
IOException
-
getPriorityValue
public int getPriorityValue()
Priority for the request.
.google.spanner.v1.RequestOptions.Priority priority = 1;- Specified by:
getPriorityValuein interfaceRequestOptionsOrBuilder- Returns:
- The enum numeric value on the wire for priority.
-
setPriorityValue
public RequestOptions.Builder setPriorityValue(int value)
Priority for the request.
.google.spanner.v1.RequestOptions.Priority priority = 1;- Parameters:
value- The enum numeric value on the wire for priority to set.- Returns:
- This builder for chaining.
-
getPriority
public RequestOptions.Priority getPriority()
Priority for the request.
.google.spanner.v1.RequestOptions.Priority priority = 1;- Specified by:
getPriorityin interfaceRequestOptionsOrBuilder- Returns:
- The priority.
-
setPriority
public RequestOptions.Builder setPriority(RequestOptions.Priority value)
Priority for the request.
.google.spanner.v1.RequestOptions.Priority priority = 1;- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
public RequestOptions.Builder clearPriority()
Priority for the request.
.google.spanner.v1.RequestOptions.Priority priority = 1;- Returns:
- This builder for chaining.
-
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;- Specified by:
getRequestTagin interfaceRequestOptionsOrBuilder- Returns:
- The requestTag.
-
getRequestTagBytes
public 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. Any leading underscore (_) characters will be removed from the string.
string request_tag = 2;- Specified by:
getRequestTagBytesin interfaceRequestOptionsOrBuilder- Returns:
- The bytes for requestTag.
-
setRequestTag
public 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. Any leading underscore (_) characters will be removed from the string.
string request_tag = 2;- Parameters:
value- The requestTag to set.- Returns:
- This builder for chaining.
-
clearRequestTag
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. Any leading underscore (_) characters will be removed from the string.
string request_tag = 2;- Returns:
- This builder for chaining.
-
setRequestTagBytes
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. Any leading underscore (_) characters will be removed from the string.
string request_tag = 2;- Parameters:
value- The bytes for requestTag to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getTransactionTagin interfaceRequestOptionsOrBuilder- Returns:
- The transactionTag.
-
getTransactionTagBytes
public 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. Any leading underscore (_) characters will be removed from the string.
string transaction_tag = 3;- Specified by:
getTransactionTagBytesin interfaceRequestOptionsOrBuilder- Returns:
- The bytes for transactionTag.
-
setTransactionTag
public 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. Any leading underscore (_) characters will be removed from the string.
string transaction_tag = 3;- Parameters:
value- The transactionTag to set.- Returns:
- This builder for chaining.
-
clearTransactionTag
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. Any leading underscore (_) characters will be removed from the string.
string transaction_tag = 3;- Returns:
- This builder for chaining.
-
setTransactionTagBytes
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. Any leading underscore (_) characters will be removed from the string.
string transaction_tag = 3;- Parameters:
value- The bytes for transactionTag to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RequestOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
mergeUnknownFields
public final RequestOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
-