public static final class ExecuteSqlRequest.Builder extends 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| Modifier and Type | Method and Description |
|---|---|
ExecuteSqlRequest.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ExecuteSqlRequest |
build() |
ExecuteSqlRequest |
buildPartial() |
ExecuteSqlRequest.Builder |
clear() |
ExecuteSqlRequest.Builder |
clearField(Descriptors.FieldDescriptor field) |
ExecuteSqlRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
ExecuteSqlRequest.Builder |
clearParams()
The SQL query string can contain parameter placeholders.
|
ExecuteSqlRequest.Builder |
clearParamTypes() |
ExecuteSqlRequest.Builder |
clearPartitionToken()
If present, results will be restricted to the specified partition
previously created using PartitionQuery().
|
ExecuteSqlRequest.Builder |
clearQueryMode()
Used to control the amount of debugging information returned in
[ResultSetStats][google.spanner.v1.ResultSetStats].
|
ExecuteSqlRequest.Builder |
clearResumeToken()
If this request is resuming a previously interrupted SQL query
execution, `resume_token` should be copied from the last
[PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption.
|
ExecuteSqlRequest.Builder |
clearSession()
Required.
|
ExecuteSqlRequest.Builder |
clearSql()
Required.
|
ExecuteSqlRequest.Builder |
clearTransaction()
The transaction to use.
|
ExecuteSqlRequest.Builder |
clone() |
boolean |
containsParamTypes(java.lang.String key)
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
ExecuteSqlRequest |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.util.Map<java.lang.String,Type> |
getMutableParamTypes()
Deprecated.
|
Struct |
getParams()
The SQL query string can contain parameter placeholders.
|
Struct.Builder |
getParamsBuilder()
The SQL query string can contain parameter placeholders.
|
StructOrBuilder |
getParamsOrBuilder()
The SQL query string can contain parameter placeholders.
|
java.util.Map<java.lang.String,Type> |
getParamTypes()
Deprecated.
|
int |
getParamTypesCount()
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
java.util.Map<java.lang.String,Type> |
getParamTypesMap()
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
Type |
getParamTypesOrDefault(java.lang.String key,
Type defaultValue)
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
Type |
getParamTypesOrThrow(java.lang.String key)
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
ByteString |
getPartitionToken()
If present, results will be restricted to the specified partition
previously created using PartitionQuery().
|
ExecuteSqlRequest.QueryMode |
getQueryMode()
Used to control the amount of debugging information returned in
[ResultSetStats][google.spanner.v1.ResultSetStats].
|
int |
getQueryModeValue()
Used to control the amount of debugging information returned in
[ResultSetStats][google.spanner.v1.ResultSetStats].
|
ByteString |
getResumeToken()
If this request is resuming a previously interrupted SQL query
execution, `resume_token` should be copied from the last
[PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption.
|
java.lang.String |
getSession()
Required.
|
ByteString |
getSessionBytes()
Required.
|
java.lang.String |
getSql()
Required.
|
ByteString |
getSqlBytes()
Required.
|
TransactionSelector |
getTransaction()
The transaction to use.
|
TransactionSelector.Builder |
getTransactionBuilder()
The transaction to use.
|
TransactionSelectorOrBuilder |
getTransactionOrBuilder()
The transaction to use.
|
boolean |
hasParams()
The SQL query string can contain parameter placeholders.
|
boolean |
hasTransaction()
The transaction to use.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
ExecuteSqlRequest.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
ExecuteSqlRequest.Builder |
mergeFrom(ExecuteSqlRequest other) |
ExecuteSqlRequest.Builder |
mergeFrom(Message other) |
ExecuteSqlRequest.Builder |
mergeParams(Struct value)
The SQL query string can contain parameter placeholders.
|
ExecuteSqlRequest.Builder |
mergeTransaction(TransactionSelector value)
The transaction to use.
|
ExecuteSqlRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
ExecuteSqlRequest.Builder |
putAllParamTypes(java.util.Map<java.lang.String,Type> values)
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
ExecuteSqlRequest.Builder |
putParamTypes(java.lang.String key,
Type value)
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
ExecuteSqlRequest.Builder |
removeParamTypes(java.lang.String key)
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
ExecuteSqlRequest.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ExecuteSqlRequest.Builder |
setParams(Struct.Builder builderForValue)
The SQL query string can contain parameter placeholders.
|
ExecuteSqlRequest.Builder |
setParams(Struct value)
The SQL query string can contain parameter placeholders.
|
ExecuteSqlRequest.Builder |
setPartitionToken(ByteString value)
If present, results will be restricted to the specified partition
previously created using PartitionQuery().
|
ExecuteSqlRequest.Builder |
setQueryMode(ExecuteSqlRequest.QueryMode value)
Used to control the amount of debugging information returned in
[ResultSetStats][google.spanner.v1.ResultSetStats].
|
ExecuteSqlRequest.Builder |
setQueryModeValue(int value)
Used to control the amount of debugging information returned in
[ResultSetStats][google.spanner.v1.ResultSetStats].
|
ExecuteSqlRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ExecuteSqlRequest.Builder |
setResumeToken(ByteString value)
If this request is resuming a previously interrupted SQL query
execution, `resume_token` should be copied from the last
[PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption.
|
ExecuteSqlRequest.Builder |
setSession(java.lang.String value)
Required.
|
ExecuteSqlRequest.Builder |
setSessionBytes(ByteString value)
Required.
|
ExecuteSqlRequest.Builder |
setSql(java.lang.String value)
Required.
|
ExecuteSqlRequest.Builder |
setSqlBytes(ByteString value)
Required.
|
ExecuteSqlRequest.Builder |
setTransaction(TransactionSelector.Builder builderForValue)
The transaction to use.
|
ExecuteSqlRequest.Builder |
setTransaction(TransactionSelector value)
The transaction to use.
|
ExecuteSqlRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>public ExecuteSqlRequest.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>public ExecuteSqlRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic ExecuteSqlRequest build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic ExecuteSqlRequest buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic ExecuteSqlRequest.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>public ExecuteSqlRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>public ExecuteSqlRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>public ExecuteSqlRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>public ExecuteSqlRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>public ExecuteSqlRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>public ExecuteSqlRequest.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<ExecuteSqlRequest.Builder>public ExecuteSqlRequest.Builder mergeFrom(ExecuteSqlRequest other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>public ExecuteSqlRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<ExecuteSqlRequest.Builder>java.io.IOExceptionpublic java.lang.String getSession()
Required. The session in which the SQL query should be performed.
string session = 1;getSession in interface ExecuteSqlRequestOrBuilderpublic ByteString getSessionBytes()
Required. The session in which the SQL query should be performed.
string session = 1;getSessionBytes in interface ExecuteSqlRequestOrBuilderpublic ExecuteSqlRequest.Builder setSession(java.lang.String value)
Required. The session in which the SQL query should be performed.
string session = 1;public ExecuteSqlRequest.Builder clearSession()
Required. The session in which the SQL query should be performed.
string session = 1;public ExecuteSqlRequest.Builder setSessionBytes(ByteString value)
Required. The session in which the SQL query should be performed.
string session = 1;public boolean hasTransaction()
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;hasTransaction in interface ExecuteSqlRequestOrBuilderpublic TransactionSelector getTransaction()
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;getTransaction in interface ExecuteSqlRequestOrBuilderpublic ExecuteSqlRequest.Builder setTransaction(TransactionSelector value)
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;public ExecuteSqlRequest.Builder setTransaction(TransactionSelector.Builder builderForValue)
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;public ExecuteSqlRequest.Builder mergeTransaction(TransactionSelector value)
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;public ExecuteSqlRequest.Builder clearTransaction()
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;public TransactionSelector.Builder getTransactionBuilder()
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;public TransactionSelectorOrBuilder getTransactionOrBuilder()
The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.
.google.spanner.v1.TransactionSelector transaction = 2;getTransactionOrBuilder in interface ExecuteSqlRequestOrBuilderpublic java.lang.String getSql()
Required. The SQL query string.
string sql = 3;getSql in interface ExecuteSqlRequestOrBuilderpublic ByteString getSqlBytes()
Required. The SQL query string.
string sql = 3;getSqlBytes in interface ExecuteSqlRequestOrBuilderpublic ExecuteSqlRequest.Builder setSql(java.lang.String value)
Required. The SQL query string.
string sql = 3;public ExecuteSqlRequest.Builder clearSql()
Required. The SQL query string.
string sql = 3;public ExecuteSqlRequest.Builder setSqlBytes(ByteString value)
Required. The SQL query string.
string sql = 3;public boolean hasParams()
The SQL query string can contain parameter placeholders. A parameter placeholder consists of `'@'` followed by the parameter name. Parameter names consist of any combination of letters, numbers, and underscores. 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 an SQL query with unbound parameters. Parameter values are specified using `params`, which is a JSON object whose keys are parameter names, and whose values are the corresponding parameter values.
.google.protobuf.Struct params = 4;hasParams in interface ExecuteSqlRequestOrBuilderpublic Struct getParams()
The SQL query string can contain parameter placeholders. A parameter placeholder consists of `'@'` followed by the parameter name. Parameter names consist of any combination of letters, numbers, and underscores. 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 an SQL query with unbound parameters. Parameter values are specified using `params`, which is a JSON object whose keys are parameter names, and whose values are the corresponding parameter values.
.google.protobuf.Struct params = 4;getParams in interface ExecuteSqlRequestOrBuilderpublic ExecuteSqlRequest.Builder setParams(Struct value)
The SQL query string can contain parameter placeholders. A parameter placeholder consists of `'@'` followed by the parameter name. Parameter names consist of any combination of letters, numbers, and underscores. 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 an SQL query with unbound parameters. Parameter values are specified using `params`, which is a JSON object whose keys are parameter names, and whose values are the corresponding parameter values.
.google.protobuf.Struct params = 4;public ExecuteSqlRequest.Builder setParams(Struct.Builder builderForValue)
The SQL query string can contain parameter placeholders. A parameter placeholder consists of `'@'` followed by the parameter name. Parameter names consist of any combination of letters, numbers, and underscores. 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 an SQL query with unbound parameters. Parameter values are specified using `params`, which is a JSON object whose keys are parameter names, and whose values are the corresponding parameter values.
.google.protobuf.Struct params = 4;public ExecuteSqlRequest.Builder mergeParams(Struct value)
The SQL query string can contain parameter placeholders. A parameter placeholder consists of `'@'` followed by the parameter name. Parameter names consist of any combination of letters, numbers, and underscores. 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 an SQL query with unbound parameters. Parameter values are specified using `params`, which is a JSON object whose keys are parameter names, and whose values are the corresponding parameter values.
.google.protobuf.Struct params = 4;public ExecuteSqlRequest.Builder clearParams()
The SQL query string can contain parameter placeholders. A parameter placeholder consists of `'@'` followed by the parameter name. Parameter names consist of any combination of letters, numbers, and underscores. 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 an SQL query with unbound parameters. Parameter values are specified using `params`, which is a JSON object whose keys are parameter names, and whose values are the corresponding parameter values.
.google.protobuf.Struct params = 4;public Struct.Builder getParamsBuilder()
The SQL query string can contain parameter placeholders. A parameter placeholder consists of `'@'` followed by the parameter name. Parameter names consist of any combination of letters, numbers, and underscores. 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 an SQL query with unbound parameters. Parameter values are specified using `params`, which is a JSON object whose keys are parameter names, and whose values are the corresponding parameter values.
.google.protobuf.Struct params = 4;public StructOrBuilder getParamsOrBuilder()
The SQL query string can contain parameter placeholders. A parameter placeholder consists of `'@'` followed by the parameter name. Parameter names consist of any combination of letters, numbers, and underscores. 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 an SQL query with unbound parameters. Parameter values are specified using `params`, which is a JSON object whose keys are parameter names, and whose values are the corresponding parameter values.
.google.protobuf.Struct params = 4;getParamsOrBuilder in interface ExecuteSqlRequestOrBuilderpublic int getParamTypesCount()
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 query 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;getParamTypesCount in interface ExecuteSqlRequestOrBuilderpublic boolean containsParamTypes(java.lang.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 query 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;containsParamTypes in interface ExecuteSqlRequestOrBuilder@Deprecated public java.util.Map<java.lang.String,Type> getParamTypes()
getParamTypesMap() instead.getParamTypes in interface ExecuteSqlRequestOrBuilderpublic java.util.Map<java.lang.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 query 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;getParamTypesMap in interface ExecuteSqlRequestOrBuilderpublic Type getParamTypesOrDefault(java.lang.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 query 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;getParamTypesOrDefault in interface ExecuteSqlRequestOrBuilderpublic Type getParamTypesOrThrow(java.lang.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 query 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;getParamTypesOrThrow in interface ExecuteSqlRequestOrBuilderpublic ExecuteSqlRequest.Builder clearParamTypes()
public ExecuteSqlRequest.Builder removeParamTypes(java.lang.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 query 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;@Deprecated public java.util.Map<java.lang.String,Type> getMutableParamTypes()
public ExecuteSqlRequest.Builder putParamTypes(java.lang.String key, Type value)
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 query 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;public ExecuteSqlRequest.Builder putAllParamTypes(java.util.Map<java.lang.String,Type> values)
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 query 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;public ByteString getResumeToken()
If this request is resuming a previously interrupted SQL query execution, `resume_token` should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this enables the new SQL query 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;getResumeToken in interface ExecuteSqlRequestOrBuilderpublic ExecuteSqlRequest.Builder setResumeToken(ByteString value)
If this request is resuming a previously interrupted SQL query execution, `resume_token` should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this enables the new SQL query 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;public ExecuteSqlRequest.Builder clearResumeToken()
If this request is resuming a previously interrupted SQL query execution, `resume_token` should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this enables the new SQL query 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;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;getQueryModeValue in interface ExecuteSqlRequestOrBuilderpublic ExecuteSqlRequest.Builder setQueryModeValue(int value)
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;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;getQueryMode in interface ExecuteSqlRequestOrBuilderpublic ExecuteSqlRequest.Builder setQueryMode(ExecuteSqlRequest.QueryMode value)
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;public ExecuteSqlRequest.Builder 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;public 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;getPartitionToken in interface ExecuteSqlRequestOrBuilderpublic ExecuteSqlRequest.Builder setPartitionToken(ByteString value)
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;public ExecuteSqlRequest.Builder 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;public final ExecuteSqlRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>public final ExecuteSqlRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>