public static final class ExecuteBatchDmlRequest.Statement.Builder extends GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder> implements ExecuteBatchDmlRequest.StatementOrBuilder
A single DML statement.
Protobuf type google.spanner.v1.ExecuteBatchDmlRequest.Statement
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExecuteBatchDmlRequest.Statement.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ExecuteBatchDmlRequest.Statement build()
buildPartial()
public ExecuteBatchDmlRequest.Statement buildPartial()
clear()
public ExecuteBatchDmlRequest.Statement.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ExecuteBatchDmlRequest.Statement.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ExecuteBatchDmlRequest.Statement.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParamTypes()
public ExecuteBatchDmlRequest.Statement.Builder clearParamTypes()
clearParams()
public ExecuteBatchDmlRequest.Statement.Builder clearParams()
Parameter names and values that bind to placeholders in the DML string.
A parameter placeholder consists of the @
character followed by the
parameter name (for example, @firstName
). Parameter names can contain
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 a SQL statement with unbound parameters.
.google.protobuf.Struct params = 2;
clearSql()
public ExecuteBatchDmlRequest.Statement.Builder clearSql()
Required. The DML string.
string sql = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public ExecuteBatchDmlRequest.Statement.Builder clone()
Overrides
containsParamTypes(String key)
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 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 for more information
about SQL types.
map<string, .google.spanner.v1.Type> param_types = 3;
Parameter |
Name |
Description |
key |
String
|
getDefaultInstanceForType()
public ExecuteBatchDmlRequest.Statement getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableParamTypes() (deprecated)
public Map<String,Type> getMutableParamTypes()
Use alternate mutation accessors instead.
getParamTypes() (deprecated)
public Map<String,Type> getParamTypes()
getParamTypesCount()
public int getParamTypesCount()
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 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 for more information
about SQL types.
map<string, .google.spanner.v1.Type> param_types = 3;
Returns |
Type |
Description |
int |
|
getParamTypesMap()
public Map<String,Type> getParamTypesMap()
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value. For example, values of type BYTES
and values
of type STRING
both