Package com.google.spanner.v1
Class RequestOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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.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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
clear
public RequestOptions.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
getDefaultInstanceForType
public RequestOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RequestOptions build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RequestOptions buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RequestOptions.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
setField
public RequestOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
clearField
public RequestOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
clearOneof
public RequestOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
setRepeatedField
public RequestOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
addRepeatedField
public RequestOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
mergeFrom
public RequestOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RequestOptions.Builder>
-
mergeFrom
public RequestOptions.Builder mergeFrom(RequestOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getPriorityValue
in 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:
getPriority
in 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:
getRequestTag
in 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:
getRequestTagBytes
in 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:
getTransactionTag
in 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:
getTransactionTagBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
mergeUnknownFields
public final RequestOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RequestOptions.Builder>
-
-