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,
Object value) |
ExecuteSqlRequest |
build() |
ExecuteSqlRequest |
buildPartial() |
ExecuteSqlRequest.Builder |
clear() |
ExecuteSqlRequest.Builder |
clearField(Descriptors.FieldDescriptor field) |
ExecuteSqlRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
ExecuteSqlRequest.Builder |
clearParams()
Parameter names and values that bind to placeholders in the SQL string.
|
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 |
clearQueryOptions()
Query optimizer configuration to use for the given query.
|
ExecuteSqlRequest.Builder |
clearRequestOptions()
Common options for this request.
|
ExecuteSqlRequest.Builder |
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.
|
ExecuteSqlRequest.Builder |
clearSeqno()
A per-transaction sequence number used to identify this request.
|
ExecuteSqlRequest.Builder |
clearSession()
Required.
|
ExecuteSqlRequest.Builder |
clearSql()
Required.
|
ExecuteSqlRequest.Builder |
clearTransaction()
The transaction to use.
|
ExecuteSqlRequest.Builder |
clone() |
boolean |
containsParamTypes(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() |
Map<String,Type> |
getMutableParamTypes()
Deprecated.
|
Struct |
getParams()
Parameter names and values that bind to placeholders in the SQL string.
|
Struct.Builder |
getParamsBuilder()
Parameter names and values that bind to placeholders in the SQL string.
|
StructOrBuilder |
getParamsOrBuilder()
Parameter names and values that bind to placeholders in the SQL string.
|
Map<String,Type> |
getParamTypes()
Deprecated.
|
int |
getParamTypesCount()
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
Map<String,Type> |
getParamTypesMap()
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
Type |
getParamTypesOrDefault(String key,
Type defaultValue)
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
Type |
getParamTypesOrThrow(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].
|
ExecuteSqlRequest.QueryOptions |
getQueryOptions()
Query optimizer configuration to use for the given query.
|
ExecuteSqlRequest.QueryOptions.Builder |
getQueryOptionsBuilder()
Query optimizer configuration to use for the given query.
|
ExecuteSqlRequest.QueryOptionsOrBuilder |
getQueryOptionsOrBuilder()
Query optimizer configuration to use for the given query.
|
RequestOptions |
getRequestOptions()
Common options for this request.
|
RequestOptions.Builder |
getRequestOptionsBuilder()
Common options for this request.
|
RequestOptionsOrBuilder |
getRequestOptionsOrBuilder()
Common options for this request.
|
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.
|
long |
getSeqno()
A per-transaction sequence number used to identify this request.
|
String |
getSession()
Required.
|
ByteString |
getSessionBytes()
Required.
|
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()
Parameter names and values that bind to placeholders in the SQL string.
|
boolean |
hasQueryOptions()
Query optimizer configuration to use for the given query.
|
boolean |
hasRequestOptions()
Common options for this request.
|
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)
Parameter names and values that bind to placeholders in the SQL string.
|
ExecuteSqlRequest.Builder |
mergeQueryOptions(ExecuteSqlRequest.QueryOptions value)
Query optimizer configuration to use for the given query.
|
ExecuteSqlRequest.Builder |
mergeRequestOptions(RequestOptions value)
Common options for this request.
|
ExecuteSqlRequest.Builder |
mergeTransaction(TransactionSelector value)
The transaction to use.
|
ExecuteSqlRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
ExecuteSqlRequest.Builder |
putAllParamTypes(Map<String,Type> values)
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
ExecuteSqlRequest.Builder |
putParamTypes(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(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,
Object value) |
ExecuteSqlRequest.Builder |
setParams(Struct.Builder builderForValue)
Parameter names and values that bind to placeholders in the SQL string.
|
ExecuteSqlRequest.Builder |
setParams(Struct value)
Parameter names and values that bind to placeholders in the SQL string.
|
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 |
setQueryOptions(ExecuteSqlRequest.QueryOptions.Builder builderForValue)
Query optimizer configuration to use for the given query.
|
ExecuteSqlRequest.Builder |
setQueryOptions(ExecuteSqlRequest.QueryOptions value)
Query optimizer configuration to use for the given query.
|
ExecuteSqlRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
ExecuteSqlRequest.Builder |
setRequestOptions(RequestOptions.Builder builderForValue)
Common options for this request.
|
ExecuteSqlRequest.Builder |
setRequestOptions(RequestOptions value)
Common options for this request.
|
ExecuteSqlRequest.Builder |
setResumeToken(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.
|
ExecuteSqlRequest.Builder |
setSeqno(long value)
A per-transaction sequence number used to identify this request.
|
ExecuteSqlRequest.Builder |
setSession(String value)
Required.
|
ExecuteSqlRequest.Builder |
setSessionBytes(ByteString value)
Required.
|
ExecuteSqlRequest.Builder |
setSql(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, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
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, 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, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ExecuteSqlRequest.Builder>
public ExecuteSqlRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, 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 IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ExecuteSqlRequest.Builder>
IOException
public String getSession()
Required. The session in which the SQL query should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getSession
in interface ExecuteSqlRequestOrBuilder
public 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) = { ... }
getSessionBytes
in interface ExecuteSqlRequestOrBuilder
public ExecuteSqlRequest.Builder setSession(String value)
Required. The session in which the SQL query should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The session to set.public ExecuteSqlRequest.Builder clearSession()
Required. The session in which the SQL query should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public ExecuteSqlRequest.Builder setSessionBytes(ByteString value)
Required. The session in which the SQL query should be performed.
string session = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value
- The bytes for session to set.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;
hasTransaction
in interface ExecuteSqlRequestOrBuilder
public TransactionSelector getTransaction()
The transaction to use. For queries, if none is provided, the default is a temporary read-only transaction with strong concurrency. Standard DML statements require a read-write transaction. To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction. Partitioned DML requires an existing Partitioned DML transaction ID.
.google.spanner.v1.TransactionSelector transaction = 2;
getTransaction
in interface ExecuteSqlRequestOrBuilder
public ExecuteSqlRequest.Builder setTransaction(TransactionSelector value)
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;
public ExecuteSqlRequest.Builder setTransaction(TransactionSelector.Builder builderForValue)
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;
public ExecuteSqlRequest.Builder mergeTransaction(TransactionSelector value)
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;
public ExecuteSqlRequest.Builder 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;
public TransactionSelector.Builder 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;
public TransactionSelectorOrBuilder getTransactionOrBuilder()
The transaction to use. For queries, if none is provided, the default is a temporary read-only transaction with strong concurrency. Standard DML statements require a read-write transaction. To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction. Partitioned DML requires an existing Partitioned DML transaction ID.
.google.spanner.v1.TransactionSelector transaction = 2;
getTransactionOrBuilder
in interface ExecuteSqlRequestOrBuilder
public String getSql()
Required. The SQL string.
string sql = 3 [(.google.api.field_behavior) = REQUIRED];
getSql
in interface ExecuteSqlRequestOrBuilder
public ByteString getSqlBytes()
Required. The SQL string.
string sql = 3 [(.google.api.field_behavior) = REQUIRED];
getSqlBytes
in interface ExecuteSqlRequestOrBuilder
public ExecuteSqlRequest.Builder setSql(String value)
Required. The SQL string.
string sql = 3 [(.google.api.field_behavior) = REQUIRED];
value
- The sql to set.public ExecuteSqlRequest.Builder clearSql()
Required. The SQL string.
string sql = 3 [(.google.api.field_behavior) = REQUIRED];
public ExecuteSqlRequest.Builder setSqlBytes(ByteString value)
Required. The SQL string.
string sql = 3 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for sql to set.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;
hasParams
in interface ExecuteSqlRequestOrBuilder
public 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;
getParams
in interface ExecuteSqlRequestOrBuilder
public ExecuteSqlRequest.Builder setParams(Struct value)
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;
public ExecuteSqlRequest.Builder setParams(Struct.Builder builderForValue)
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;
public ExecuteSqlRequest.Builder mergeParams(Struct value)
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;
public ExecuteSqlRequest.Builder 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;
public 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;
public 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;
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 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;
getParamTypesCount
in interface ExecuteSqlRequestOrBuilder
public boolean containsParamTypes(String key)
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.
map<string, .google.spanner.v1.Type> param_types = 5;
containsParamTypes
in interface ExecuteSqlRequestOrBuilder
@Deprecated public Map<String,Type> getParamTypes()
getParamTypesMap()
instead.getParamTypes
in interface ExecuteSqlRequestOrBuilder
public Map<String,Type> getParamTypesMap()
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.
map<string, .google.spanner.v1.Type> param_types = 5;
getParamTypesMap
in interface ExecuteSqlRequestOrBuilder
public Type getParamTypesOrDefault(String key, Type defaultValue)
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.
map<string, .google.spanner.v1.Type> param_types = 5;
getParamTypesOrDefault
in interface ExecuteSqlRequestOrBuilder
public Type getParamTypesOrThrow(String key)
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.
map<string, .google.spanner.v1.Type> param_types = 5;
getParamTypesOrThrow
in interface ExecuteSqlRequestOrBuilder
public ExecuteSqlRequest.Builder clearParamTypes()
public ExecuteSqlRequest.Builder removeParamTypes(String key)
It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type `BYTES` and values of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, `param_types` can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.
map<string, .google.spanner.v1.Type> param_types = 5;
@Deprecated public Map<String,Type> getMutableParamTypes()
public ExecuteSqlRequest.Builder putParamTypes(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 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;
public ExecuteSqlRequest.Builder putAllParamTypes(Map<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 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;
public 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;
getResumeToken
in interface ExecuteSqlRequestOrBuilder
public ExecuteSqlRequest.Builder setResumeToken(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. 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;
value
- The resumeToken to set.public ExecuteSqlRequest.Builder 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;
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;
value
- The enum numeric value on the wire for queryMode to set.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;
value
- The queryMode to set.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;
value
- The partitionToken to set.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 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;
getSeqno
in interface ExecuteSqlRequestOrBuilder
public ExecuteSqlRequest.Builder setSeqno(long value)
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;
value
- The seqno to set.public ExecuteSqlRequest.Builder 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;
public boolean hasQueryOptions()
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10;
hasQueryOptions
in interface ExecuteSqlRequestOrBuilder
public ExecuteSqlRequest.QueryOptions getQueryOptions()
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10;
getQueryOptions
in interface ExecuteSqlRequestOrBuilder
public ExecuteSqlRequest.Builder setQueryOptions(ExecuteSqlRequest.QueryOptions value)
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10;
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;
public ExecuteSqlRequest.Builder mergeQueryOptions(ExecuteSqlRequest.QueryOptions value)
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10;
public ExecuteSqlRequest.Builder clearQueryOptions()
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10;
public ExecuteSqlRequest.QueryOptions.Builder getQueryOptionsBuilder()
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10;
public ExecuteSqlRequest.QueryOptionsOrBuilder getQueryOptionsOrBuilder()
Query optimizer configuration to use for the given query.
.google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10;
getQueryOptionsOrBuilder
in interface ExecuteSqlRequestOrBuilder
public boolean hasRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
hasRequestOptions
in interface ExecuteSqlRequestOrBuilder
public RequestOptions getRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
getRequestOptions
in interface ExecuteSqlRequestOrBuilder
public ExecuteSqlRequest.Builder setRequestOptions(RequestOptions value)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
public ExecuteSqlRequest.Builder setRequestOptions(RequestOptions.Builder builderForValue)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
public ExecuteSqlRequest.Builder mergeRequestOptions(RequestOptions value)
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
public ExecuteSqlRequest.Builder clearRequestOptions()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
public RequestOptions.Builder getRequestOptionsBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
public RequestOptionsOrBuilder getRequestOptionsOrBuilder()
Common options for this request.
.google.spanner.v1.RequestOptions request_options = 11;
getRequestOptionsOrBuilder
in interface ExecuteSqlRequestOrBuilder
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>
Copyright © 2022 Google LLC. All rights reserved.