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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public 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.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
public ExecuteSqlRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ExecuteSqlRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ExecuteSqlRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ExecuteSqlRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
public ExecuteSqlRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
public ExecuteSqlRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
public ExecuteSqlRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
public ExecuteSqlRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
public ExecuteSqlRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
public ExecuteSqlRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ExecuteSqlRequest.Builder>
public ExecuteSqlRequest.Builder mergeFrom(ExecuteSqlRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
public ExecuteSqlRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ExecuteSqlRequest.Builder>
java.io.IOException
public java.lang.String getSession()
Required. The session in which the SQL query should be performed.
string session = 1;
getSession
in interface ExecuteSqlRequestOrBuilder
public ByteString getSessionBytes()
Required. The session in which the SQL query should be performed.
string session = 1;
getSessionBytes
in interface ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public java.lang.String getSql()
Required. The SQL query string.
string sql = 3;
getSql
in interface ExecuteSqlRequestOrBuilder
public ByteString getSqlBytes()
Required. The SQL query string.
string sql = 3;
getSqlBytes
in interface ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public int getParamTypesCount()
ExecuteSqlRequestOrBuilder
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;
getParamTypesCount
in interface ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public 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 ExecuteSqlRequestOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
public final ExecuteSqlRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>