Package com.google.spanner.v1
Class ExecuteSqlRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.spanner.v1.ExecuteSqlRequest
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ExecuteSqlRequestOrBuilder,Serializable
public final class ExecuteSqlRequest extends com.google.protobuf.GeneratedMessageV3 implements ExecuteSqlRequestOrBuilder
The request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql].
Protobuf typegoogle.spanner.v1.ExecuteSqlRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExecuteSqlRequest.BuilderThe request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql].static classExecuteSqlRequest.QueryModeMode in which the statement must be processed.static classExecuteSqlRequest.QueryOptionsQuery optimizer configuration.static interfaceExecuteSqlRequest.QueryOptionsOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDATA_BOOST_ENABLED_FIELD_NUMBERstatic intPARAM_TYPES_FIELD_NUMBERstatic intPARAMS_FIELD_NUMBERstatic intPARTITION_TOKEN_FIELD_NUMBERstatic intQUERY_MODE_FIELD_NUMBERstatic intQUERY_OPTIONS_FIELD_NUMBERstatic intREQUEST_OPTIONS_FIELD_NUMBERstatic intRESUME_TOKEN_FIELD_NUMBERstatic intSEQNO_FIELD_NUMBERstatic intSESSION_FIELD_NUMBERstatic intSQL_FIELD_NUMBERstatic intTRANSACTION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsParamTypes(String key)It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.booleanequals(Object obj)booleangetDataBoostEnabled()If this is for a partitioned read and this field is set to `true`, the request will be executed via Spanner independent compute resources.static ExecuteSqlRequestgetDefaultInstance()ExecuteSqlRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.StructgetParams()Parameter names and values that bind to placeholders in the SQL string.com.google.protobuf.StructOrBuildergetParamsOrBuilder()Parameter names and values that bind to placeholders in the SQL string.Map<String,Type>getParamTypes()Deprecated.intgetParamTypesCount()It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.Map<String,Type>getParamTypesMap()It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.TypegetParamTypesOrDefault(String key, Type defaultValue)It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.TypegetParamTypesOrThrow(String key)It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.com.google.protobuf.Parser<ExecuteSqlRequest>getParserForType()com.google.protobuf.ByteStringgetPartitionToken()If present, results will be restricted to the specified partition previously created using PartitionQuery().ExecuteSqlRequest.QueryModegetQueryMode()Used to control the amount of debugging information returned in [ResultSetStats][google.spanner.v1.ResultSetStats].intgetQueryModeValue()Used to control the amount of debugging information returned in [ResultSetStats][google.spanner.v1.ResultSetStats].ExecuteSqlRequest.QueryOptionsgetQueryOptions()Query optimizer configuration to use for the given query.ExecuteSqlRequest.QueryOptionsOrBuildergetQueryOptionsOrBuilder()Query optimizer configuration to use for the given query.RequestOptionsgetRequestOptions()Common options for this request.RequestOptionsOrBuildergetRequestOptionsOrBuilder()Common options for this request.com.google.protobuf.ByteStringgetResumeToken()If this request is resuming a previously interrupted SQL statement execution, `resume_token` should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption.longgetSeqno()A per-transaction sequence number used to identify this request.intgetSerializedSize()StringgetSession()Required.com.google.protobuf.ByteStringgetSessionBytes()Required.StringgetSql()Required.com.google.protobuf.ByteStringgetSqlBytes()Required.TransactionSelectorgetTransaction()The transaction to use.TransactionSelectorOrBuildergetTransactionOrBuilder()The transaction to use.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasParams()Parameter names and values that bind to placeholders in the SQL string.booleanhasQueryOptions()Query optimizer configuration to use for the given query.booleanhasRequestOptions()Common options for this request.booleanhasTransaction()The transaction to use.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static ExecuteSqlRequest.BuildernewBuilder()static ExecuteSqlRequest.BuildernewBuilder(ExecuteSqlRequest prototype)ExecuteSqlRequest.BuildernewBuilderForType()protected ExecuteSqlRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ExecuteSqlRequestparseDelimitedFrom(InputStream input)static ExecuteSqlRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExecuteSqlRequestparseFrom(byte[] data)static ExecuteSqlRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExecuteSqlRequestparseFrom(com.google.protobuf.ByteString data)static ExecuteSqlRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExecuteSqlRequestparseFrom(com.google.protobuf.CodedInputStream input)static ExecuteSqlRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExecuteSqlRequestparseFrom(InputStream input)static ExecuteSqlRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExecuteSqlRequestparseFrom(ByteBuffer data)static ExecuteSqlRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ExecuteSqlRequest>parser()ExecuteSqlRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SESSION_FIELD_NUMBER
public static final int SESSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRANSACTION_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SQL_FIELD_NUMBER
public static final int SQL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARAMS_FIELD_NUMBER
public static final int PARAMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARAM_TYPES_FIELD_NUMBER
public static final int PARAM_TYPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESUME_TOKEN_FIELD_NUMBER
public static final int RESUME_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUERY_MODE_FIELD_NUMBER
public static final int QUERY_MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARTITION_TOKEN_FIELD_NUMBER
public static final int PARTITION_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEQNO_FIELD_NUMBER
public static final int SEQNO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUERY_OPTIONS_FIELD_NUMBER
public static final int QUERY_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_OPTIONS_FIELD_NUMBER
public static final int REQUEST_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_BOOST_ENABLED_FIELD_NUMBER
public static final int DATA_BOOST_ENABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSession
public String getSession()
Required. The session in which the SQL query should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getSessionin interfaceExecuteSqlRequestOrBuilder- Returns:
- The session.
-
getSessionBytes
public com.google.protobuf.ByteString getSessionBytes()
Required. The session in which the SQL query should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getSessionBytesin interfaceExecuteSqlRequestOrBuilder- Returns:
- The bytes for session.
-
hasTransaction
public boolean hasTransaction()
The transaction to use. For queries, if none is provided, the default is a temporary read-only transaction with strong concurrency. Standard DML statements require a read-write transaction. To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction. Partitioned DML requires an existing Partitioned DML transaction ID.
.google.spanner.v1.TransactionSelector transaction = 2;- Specified by:
hasTransactionin interfaceExecuteSqlRequestOrBuilder- Returns:
- Whether the transaction field is set.
-
getTransaction
public TransactionSelector getTransaction()
The transaction to use. For queries, if none is provided, the default is a temporary read-only transaction with strong concurrency. Standard DML statements require a read-write transaction. To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction. Partitioned DML requires an existing Partitioned DML transaction ID.
.google.spanner.v1.TransactionSelector transaction = 2;- Specified by:
getTransactionin interfaceExecuteSqlRequestOrBuilder- Returns:
- The transaction.
-
getTransactionOrBuilder
public TransactionSelectorOrBuilder getTransactionOrBuilder()
The transaction to use. For queries, if none is provided, the default is a temporary read-only transaction with strong concurrency. Standard DML statements require a read-write transaction. To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction. Partitioned DML requires an existing Partitioned DML transaction ID.
.google.spanner.v1.TransactionSelector transaction = 2;- Specified by:
getTransactionOrBuilderin interfaceExecuteSqlRequestOrBuilder
-
getSql
public String getSql()
Required. The SQL string.
string sql = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSqlin interfaceExecuteSqlRequestOrBuilder- Returns:
- The sql.
-
getSqlBytes
public com.google.protobuf.ByteString getSqlBytes()
Required. The SQL string.
string sql = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSqlBytesin interfaceExecuteSqlRequestOrBuilder- Returns:
- The bytes for sql.
-
hasParams
public boolean hasParams()
Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`). Parameter names must conform to the naming requirements of identifiers as specified at https://cloud.google.com/spanner/docs/lexical#identifiers. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id > @msg_id AND id < @msg_id + 100"` It is an error to execute a SQL statement with unbound parameters.
.google.protobuf.Struct params = 4;- Specified by:
hasParamsin interfaceExecuteSqlRequestOrBuilder- Returns:
- Whether the params field is set.
-
getParams
public com.google.protobuf.Struct getParams()
Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`). Parameter names must conform to the naming requirements of identifiers as specified at https://cloud.google.com/spanner/docs/lexical#identifiers. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id > @msg_id AND id < @msg_id + 100"` It is an error to execute a SQL statement with unbound parameters.
.google.protobuf.Struct params = 4;- Specified by:
getParamsin interfaceExecuteSqlRequestOrBuilder- Returns:
- The params.
-
getParamsOrBuilder
public com.google.protobuf.StructOrBuilder getParamsOrBuilder()
Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the `@` character followed by the parameter name (for example, `@firstName`). Parameter names must conform to the naming requirements of identifiers as specified at https://cloud.google.com/spanner/docs/lexical#identifiers. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: `"WHERE id > @msg_id AND id < @msg_id + 100"` It is an error to execute a SQL statement with unbound parameters.
.google.protobuf.Struct params = 4;- Specified by:
getParamsOrBuilderin interfaceExecuteSqlRequestOrBuilder
-
getParamTypesCount
public int getParamTypesCount()
Description copied from interface:ExecuteSqlRequestOrBuilderIt is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.
map<string, .google.spanner.v1.Type> param_types = 5;- Specified by:
getParamTypesCountin interfaceExecuteSqlRequestOrBuilder
-
containsParamTypes
public boolean containsParamTypes(String key)
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.
map<string, .google.spanner.v1.Type> param_types = 5;- Specified by:
containsParamTypesin interfaceExecuteSqlRequestOrBuilder
-
getParamTypes
@Deprecated public Map<String,Type> getParamTypes()
Deprecated.UsegetParamTypesMap()instead.- Specified by:
getParamTypesin interfaceExecuteSqlRequestOrBuilder
-
getParamTypesMap
public Map<String,Type> getParamTypesMap()
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.
map<string, .google.spanner.v1.Type> param_types = 5;- Specified by:
getParamTypesMapin interfaceExecuteSqlRequestOrBuilder
-
getParamTypesOrDefault
public Type getParamTypesOrDefault(String key, Type defaultValue)
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.
map<string, .google.spanner.v1.Type> param_types = 5;- Specified by:
getParamTypesOrDefaultin interfaceExecuteSqlRequestOrBuilder
-
getParamTypesOrThrow
public Type getParamTypesOrThrow(String key)
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.
map<string, .google.spanner.v1.Type> param_types = 5;- Specified by:
getParamTypesOrThrowin interfaceExecuteSqlRequestOrBuilder
-
getResumeToken
public com.google.protobuf.ByteString getResumeToken()
If this request is resuming a previously interrupted SQL statement execution, `resume_token` should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this enables the new SQL statement execution to resume where the last one left off. The rest of the request parameters must exactly match the request that yielded this token.
bytes resume_token = 6;- Specified by:
getResumeTokenin interfaceExecuteSqlRequestOrBuilder- Returns:
- The resumeToken.
-
getQueryModeValue
public int getQueryModeValue()
Used to control the amount of debugging information returned in [ResultSetStats][google.spanner.v1.ResultSetStats]. If [partition_token][google.spanner.v1.ExecuteSqlRequest.partition_token] is set, [query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode] can only be set to [QueryMode.NORMAL][google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL].
.google.spanner.v1.ExecuteSqlRequest.QueryMode query_mode = 7;- Specified by:
getQueryModeValuein interfaceExecuteSqlRequestOrBuilder- Returns:
- The enum numeric value on the wire for queryMode.
-
getQueryMode
public ExecuteSqlRequest.QueryMode getQueryMode()
Used to control the amount of debugging information returned in [ResultSetStats][google.spanner.v1.ResultSetStats]. If [partition_token][google.spanner.v1.ExecuteSqlRequest.partition_token] is set, [query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode] can only be set to [QueryMode.NORMAL][google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL].
.google.spanner.v1.ExecuteSqlRequest.QueryMode query_mode = 7;- Specified by:
getQueryModein interfaceExecuteSqlRequestOrBuilder- Returns:
- The queryMode.
-
getPartitionToken
public com.google.protobuf.ByteString getPartitionToken()
If present, results will be restricted to the specified partition previously created using PartitionQuery(). There must be an exact match for the values of fields common to this message and the PartitionQueryRequest message used to create this partition_token.
bytes partition_token = 8;- Specified by:
getPartitionTokenin interfaceExecuteSqlRequestOrBuilder- Returns:
- The partitionToken.
-
getSeqno
public long getSeqno()
A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one will succeed. The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution. Required for DML statements. Ignored for queries.
int64 seqno = 9;- Specified by:
getSeqnoin interfaceExecuteSqlRequestOrBuilder- Returns:
- The seqno.
-
hasQueryOptions
public boolean hasQueryOptions()
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10;- Specified by:
hasQueryOptionsin interfaceExecuteSqlRequestOrBuilder- Returns:
- Whether the queryOptions field is set.
-
getQueryOptions
public ExecuteSqlRequest.QueryOptions getQueryOptions()
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10;- Specified by:
getQueryOptionsin interfaceExecuteSqlRequestOrBuilder- Returns:
- The queryOptions.
-
getQueryOptionsOrBuilder
public ExecuteSqlRequest.QueryOptionsOrBuilder getQueryOptionsOrBuilder()
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10;- Specified by:
getQueryOptionsOrBuilderin interfaceExecuteSqlRequestOrBuilder
-
hasRequestOptions
public boolean hasRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;- Specified by:
hasRequestOptionsin interfaceExecuteSqlRequestOrBuilder- Returns:
- Whether the requestOptions field is set.
-
getRequestOptions
public RequestOptions getRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;- Specified by:
getRequestOptionsin interfaceExecuteSqlRequestOrBuilder- Returns:
- The requestOptions.
-
getRequestOptionsOrBuilder
public RequestOptionsOrBuilder getRequestOptionsOrBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;- Specified by:
getRequestOptionsOrBuilderin interfaceExecuteSqlRequestOrBuilder
-
getDataBoostEnabled
public boolean getDataBoostEnabled()
If this is for a partitioned read and this field is set to `true`, the request will be executed via Spanner independent compute resources. If the field is set to `true` but the request does not set `partition_token`, the API will return an `INVALID_ARGUMENT` error.
bool data_boost_enabled = 15;- Specified by:
getDataBoostEnabledin interfaceExecuteSqlRequestOrBuilder- Returns:
- The dataBoostEnabled.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ExecuteSqlRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteSqlRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteSqlRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteSqlRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteSqlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteSqlRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteSqlRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ExecuteSqlRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ExecuteSqlRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ExecuteSqlRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ExecuteSqlRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ExecuteSqlRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ExecuteSqlRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ExecuteSqlRequest.Builder newBuilder()
-
newBuilder
public static ExecuteSqlRequest.Builder newBuilder(ExecuteSqlRequest prototype)
-
toBuilder
public ExecuteSqlRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ExecuteSqlRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ExecuteSqlRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ExecuteSqlRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<ExecuteSqlRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ExecuteSqlRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-