Package com.google.spanner.v1
Class ExecuteSqlRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
com.google.spanner.v1.ExecuteSqlRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ExecuteSqlRequestOrBuilder,Cloneable
- Enclosing class:
- ExecuteSqlRequest
public static final class ExecuteSqlRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
implements ExecuteSqlRequestOrBuilder
The request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql].Protobuf type
google.spanner.v1.ExecuteSqlRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()If this is for a partitioned query and this field is set to `true`, the request is executed with Spanner Data Boost independent compute resources.Directed read options for this request.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Parameter names and values that bind to placeholders in the SQL string.If present, results will be restricted to the specified partition previously created using PartitionQuery().Used to control the amount of debugging information returned in [ResultSetStats][google.spanner.v1.ResultSetStats].Query optimizer configuration to use for the given query.Common options for this request.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.A per-transaction sequence number used to identify this request.Required.clearSql()Required.The transaction to use.clone()booleancontainsParamTypes(String key) It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.booleanIf this is for a partitioned query and this field is set to `true`, the request is executed with Spanner Data Boost independent compute resources.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDirected read options for this request.Directed read options for this request.Directed read options for this request.Deprecated.com.google.protobuf.StructParameter names and values that bind to placeholders in the SQL string.com.google.protobuf.Struct.BuilderParameter names and values that bind to placeholders in the SQL string.com.google.protobuf.StructOrBuilderParameter names and values that bind to placeholders in the SQL string.Deprecated.intIt is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.getParamTypesOrDefault(String key, Type defaultValue) It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.com.google.protobuf.ByteStringIf present, results will be restricted to the specified partition previously created using PartitionQuery().Used to control the amount of debugging information returned in [ResultSetStats][google.spanner.v1.ResultSetStats].intUsed to control the amount of debugging information returned in [ResultSetStats][google.spanner.v1.ResultSetStats].Query optimizer configuration to use for the given query.Query optimizer configuration to use for the given query.Query optimizer configuration to use for the given query.Common options for this request.Common options for this request.Common options for this request.com.google.protobuf.ByteStringIf 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.Required.com.google.protobuf.ByteStringRequired.getSql()Required.com.google.protobuf.ByteStringRequired.The transaction to use.The transaction to use.The transaction to use.booleanDirected read options for this request.booleanParameter names and values that bind to placeholders in the SQL string.booleanQuery optimizer configuration to use for the given query.booleanCommon options for this request.booleanThe transaction to use.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanDirected read options for this request.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ExecuteSqlRequest other) mergeParams(com.google.protobuf.Struct value) Parameter names and values that bind to placeholders in the SQL string.Query optimizer configuration to use for the given query.Common options for this request.The transaction to use.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllParamTypes(Map<String, Type> values) It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.putParamTypes(String key, Type value) It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.removeParamTypes(String key) It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.setDataBoostEnabled(boolean value) If this is for a partitioned query and this field is set to `true`, the request is executed with Spanner Data Boost independent compute resources.Directed read options for this request.setDirectedReadOptions(DirectedReadOptions.Builder builderForValue) Directed read options for this request.setParams(com.google.protobuf.Struct value) Parameter names and values that bind to placeholders in the SQL string.setParams(com.google.protobuf.Struct.Builder builderForValue) Parameter names and values that bind to placeholders in the SQL string.setPartitionToken(com.google.protobuf.ByteString value) If present, results will be restricted to the specified partition previously created using PartitionQuery().Used to control the amount of debugging information returned in [ResultSetStats][google.spanner.v1.ResultSetStats].setQueryModeValue(int value) Used to control the amount of debugging information returned in [ResultSetStats][google.spanner.v1.ResultSetStats].Query optimizer configuration to use for the given query.setQueryOptions(ExecuteSqlRequest.QueryOptions.Builder builderForValue) Query optimizer configuration to use for the given query.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestOptions(RequestOptions value) Common options for this request.setRequestOptions(RequestOptions.Builder builderForValue) Common options for this request.setResumeToken(com.google.protobuf.ByteString value) 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.setSeqno(long value) A per-transaction sequence number used to identify this request.setSession(String value) Required.setSessionBytes(com.google.protobuf.ByteString value) Required.Required.setSqlBytes(com.google.protobuf.ByteString value) Required.The transaction to use.setTransaction(TransactionSelector.Builder builderForValue) The transaction to use.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ExecuteSqlRequest.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<ExecuteSqlRequest.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<ExecuteSqlRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<ExecuteSqlRequest.Builder>
-
setField
public ExecuteSqlRequest.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<ExecuteSqlRequest.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
-
setRepeatedField
public ExecuteSqlRequest.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<ExecuteSqlRequest.Builder>
-
addRepeatedField
public ExecuteSqlRequest.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<ExecuteSqlRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExecuteSqlRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
-
mergeFrom
public ExecuteSqlRequest.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<ExecuteSqlRequest.Builder>- Throws:
IOException
-
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.
-
setSession
Required. The session in which the SQL query should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The session to set.- Returns:
- This builder for chaining.
-
clearSession
Required. The session in which the SQL query should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setSessionBytes
Required. The session in which the SQL query should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for session to set.- Returns:
- This builder for chaining.
-
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
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.
-
setTransaction
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; -
setTransaction
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; -
mergeTransaction
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; -
clearTransaction
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; -
getTransactionBuilder
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; -
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
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.
-
setSql
Required. The SQL string.
string sql = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The sql to set.- Returns:
- This builder for chaining.
-
clearSql
Required. The SQL string.
string sql = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSqlBytes
Required. The SQL string.
string sql = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for sql to set.- Returns:
- This builder for chaining.
-
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.
-
setParams
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; -
setParams
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; -
mergeParams
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; -
clearParams
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; -
getParamsBuilder
public com.google.protobuf.Struct.Builder getParamsBuilder()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; -
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
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.UsegetParamTypesMap()instead.- Specified by:
getParamTypesin interfaceExecuteSqlRequestOrBuilder
-
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
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
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
-
clearParamTypes
-
removeParamTypes
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; -
getMutableParamTypes
Deprecated.Use alternate mutation accessors instead. -
putParamTypes
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; -
putAllParamTypes
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; -
putParamTypesBuilderIfAbsent
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; -
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.
-
setResumeToken
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;- Parameters:
value- The resumeToken to set.- Returns:
- This builder for chaining.
-
clearResumeToken
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;- Returns:
- This builder for chaining.
-
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.
-
setQueryModeValue
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;- Parameters:
value- The enum numeric value on the wire for queryMode to set.- Returns:
- This builder for chaining.
-
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.
-
setQueryMode
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;- Parameters:
value- The queryMode to set.- Returns:
- This builder for chaining.
-
clearQueryMode
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;- Returns:
- This builder for chaining.
-
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.
-
setPartitionToken
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;- Parameters:
value- The partitionToken to set.- Returns:
- This builder for chaining.
-
clearPartitionToken
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;- Returns:
- This builder for chaining.
-
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.
-
setSeqno
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;- Parameters:
value- The seqno to set.- Returns:
- This builder for chaining.
-
clearSeqno
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;- Returns:
- This builder for chaining.
-
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
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10;- Specified by:
getQueryOptionsin interfaceExecuteSqlRequestOrBuilder- Returns:
- The queryOptions.
-
setQueryOptions
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10; -
setQueryOptions
public ExecuteSqlRequest.Builder setQueryOptions(ExecuteSqlRequest.QueryOptions.Builder builderForValue) Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10; -
mergeQueryOptions
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10; -
clearQueryOptions
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10; -
getQueryOptionsBuilder
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10; -
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
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;- Specified by:
getRequestOptionsin interfaceExecuteSqlRequestOrBuilder- Returns:
- The requestOptions.
-
setRequestOptions
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11; -
setRequestOptions
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11; -
mergeRequestOptions
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11; -
clearRequestOptions
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11; -
getRequestOptionsBuilder
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11; -
getRequestOptionsOrBuilder
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;- Specified by:
getRequestOptionsOrBuilderin interfaceExecuteSqlRequestOrBuilder
-
hasDirectedReadOptions
public boolean hasDirectedReadOptions()Directed read options for this request.
.google.spanner.v1.DirectedReadOptions directed_read_options = 15;- Specified by:
hasDirectedReadOptionsin interfaceExecuteSqlRequestOrBuilder- Returns:
- Whether the directedReadOptions field is set.
-
getDirectedReadOptions
Directed read options for this request.
.google.spanner.v1.DirectedReadOptions directed_read_options = 15;- Specified by:
getDirectedReadOptionsin interfaceExecuteSqlRequestOrBuilder- Returns:
- The directedReadOptions.
-
setDirectedReadOptions
Directed read options for this request.
.google.spanner.v1.DirectedReadOptions directed_read_options = 15; -
setDirectedReadOptions
public ExecuteSqlRequest.Builder setDirectedReadOptions(DirectedReadOptions.Builder builderForValue) Directed read options for this request.
.google.spanner.v1.DirectedReadOptions directed_read_options = 15; -
mergeDirectedReadOptions
Directed read options for this request.
.google.spanner.v1.DirectedReadOptions directed_read_options = 15; -
clearDirectedReadOptions
Directed read options for this request.
.google.spanner.v1.DirectedReadOptions directed_read_options = 15; -
getDirectedReadOptionsBuilder
Directed read options for this request.
.google.spanner.v1.DirectedReadOptions directed_read_options = 15; -
getDirectedReadOptionsOrBuilder
Directed read options for this request.
.google.spanner.v1.DirectedReadOptions directed_read_options = 15;- Specified by:
getDirectedReadOptionsOrBuilderin interfaceExecuteSqlRequestOrBuilder
-
getDataBoostEnabled
public boolean getDataBoostEnabled()If this is for a partitioned query and this field is set to `true`, the request is executed with Spanner Data Boost independent compute resources. If the field is set to `true` but the request does not set `partition_token`, the API returns an `INVALID_ARGUMENT` error.
bool data_boost_enabled = 16;- Specified by:
getDataBoostEnabledin interfaceExecuteSqlRequestOrBuilder- Returns:
- The dataBoostEnabled.
-
setDataBoostEnabled
If this is for a partitioned query and this field is set to `true`, the request is executed with Spanner Data Boost independent compute resources. If the field is set to `true` but the request does not set `partition_token`, the API returns an `INVALID_ARGUMENT` error.
bool data_boost_enabled = 16;- Parameters:
value- The dataBoostEnabled to set.- Returns:
- This builder for chaining.
-
clearDataBoostEnabled
If this is for a partitioned query and this field is set to `true`, the request is executed with Spanner Data Boost independent compute resources. If the field is set to `true` but the request does not set `partition_token`, the API returns an `INVALID_ARGUMENT` error.
bool data_boost_enabled = 16;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ExecuteSqlRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
-
mergeUnknownFields
public final ExecuteSqlRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
-