public static final class ExecuteBatchDmlRequest.Statement.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder> implements ExecuteBatchDmlRequest.StatementOrBuilder
A single DML statement.Protobuf type
google.spanner.v1.ExecuteBatchDmlRequest.Statement| Modifier and Type | Method and Description |
|---|---|
ExecuteBatchDmlRequest.Statement.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ExecuteBatchDmlRequest.Statement |
build() |
ExecuteBatchDmlRequest.Statement |
buildPartial() |
ExecuteBatchDmlRequest.Statement.Builder |
clear() |
ExecuteBatchDmlRequest.Statement.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ExecuteBatchDmlRequest.Statement.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ExecuteBatchDmlRequest.Statement.Builder |
clearParams()
Parameter names and values that bind to placeholders in the DML string.
|
ExecuteBatchDmlRequest.Statement.Builder |
clearParamTypes() |
ExecuteBatchDmlRequest.Statement.Builder |
clearSql()
Required.
|
ExecuteBatchDmlRequest.Statement.Builder |
clone() |
boolean |
containsParamTypes(String key)
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
ExecuteBatchDmlRequest.Statement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,Type> |
getMutableParamTypes()
Deprecated.
|
com.google.protobuf.Struct |
getParams()
Parameter names and values that bind to placeholders in the DML string.
|
com.google.protobuf.Struct.Builder |
getParamsBuilder()
Parameter names and values that bind to placeholders in the DML string.
|
com.google.protobuf.StructOrBuilder |
getParamsOrBuilder()
Parameter names and values that bind to placeholders in the DML 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.
|
String |
getSql()
Required.
|
com.google.protobuf.ByteString |
getSqlBytes()
Required.
|
boolean |
hasParams()
Parameter names and values that bind to placeholders in the DML string.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
ExecuteBatchDmlRequest.Statement.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ExecuteBatchDmlRequest.Statement.Builder |
mergeFrom(ExecuteBatchDmlRequest.Statement other) |
ExecuteBatchDmlRequest.Statement.Builder |
mergeFrom(com.google.protobuf.Message other) |
ExecuteBatchDmlRequest.Statement.Builder |
mergeParams(com.google.protobuf.Struct value)
Parameter names and values that bind to placeholders in the DML string.
|
ExecuteBatchDmlRequest.Statement.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ExecuteBatchDmlRequest.Statement.Builder |
putAllParamTypes(Map<String,Type> values)
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
ExecuteBatchDmlRequest.Statement.Builder |
putParamTypes(String key,
Type value)
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
ExecuteBatchDmlRequest.Statement.Builder |
removeParamTypes(String key)
It is not always possible for Cloud Spanner to infer the right SQL type
from a JSON value.
|
ExecuteBatchDmlRequest.Statement.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ExecuteBatchDmlRequest.Statement.Builder |
setParams(com.google.protobuf.Struct.Builder builderForValue)
Parameter names and values that bind to placeholders in the DML string.
|
ExecuteBatchDmlRequest.Statement.Builder |
setParams(com.google.protobuf.Struct value)
Parameter names and values that bind to placeholders in the DML string.
|
ExecuteBatchDmlRequest.Statement.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ExecuteBatchDmlRequest.Statement.Builder |
setSql(String value)
Required.
|
ExecuteBatchDmlRequest.Statement.Builder |
setSqlBytes(com.google.protobuf.ByteString value)
Required.
|
ExecuteBatchDmlRequest.Statement.Builder |
setUnknownFields(com.google.protobuf.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, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>public ExecuteBatchDmlRequest.Statement.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>public ExecuteBatchDmlRequest.Statement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ExecuteBatchDmlRequest.Statement build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ExecuteBatchDmlRequest.Statement buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ExecuteBatchDmlRequest.Statement.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>public ExecuteBatchDmlRequest.Statement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>public ExecuteBatchDmlRequest.Statement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>public ExecuteBatchDmlRequest.Statement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>public ExecuteBatchDmlRequest.Statement.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>public ExecuteBatchDmlRequest.Statement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>public ExecuteBatchDmlRequest.Statement.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExecuteBatchDmlRequest.Statement.Builder>public ExecuteBatchDmlRequest.Statement.Builder mergeFrom(ExecuteBatchDmlRequest.Statement other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>public ExecuteBatchDmlRequest.Statement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExecuteBatchDmlRequest.Statement.Builder>IOExceptionpublic String getSql()
Required. The DML string.
string sql = 1;getSql in interface ExecuteBatchDmlRequest.StatementOrBuilderpublic com.google.protobuf.ByteString getSqlBytes()
Required. The DML string.
string sql = 1;getSqlBytes in interface ExecuteBatchDmlRequest.StatementOrBuilderpublic ExecuteBatchDmlRequest.Statement.Builder setSql(String value)
Required. The DML string.
string sql = 1;value - The sql to set.public ExecuteBatchDmlRequest.Statement.Builder clearSql()
Required. The DML string.
string sql = 1;public ExecuteBatchDmlRequest.Statement.Builder setSqlBytes(com.google.protobuf.ByteString value)
Required. The DML string.
string sql = 1;value - The bytes for sql to set.public boolean hasParams()
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;hasParams in interface ExecuteBatchDmlRequest.StatementOrBuilderpublic com.google.protobuf.Struct getParams()
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;getParams in interface ExecuteBatchDmlRequest.StatementOrBuilderpublic ExecuteBatchDmlRequest.Statement.Builder setParams(com.google.protobuf.Struct value)
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;public ExecuteBatchDmlRequest.Statement.Builder setParams(com.google.protobuf.Struct.Builder builderForValue)
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;public ExecuteBatchDmlRequest.Statement.Builder mergeParams(com.google.protobuf.Struct value)
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;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;public com.google.protobuf.Struct.Builder getParamsBuilder()
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;public com.google.protobuf.StructOrBuilder getParamsOrBuilder()
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;getParamsOrBuilder in interface ExecuteBatchDmlRequest.StatementOrBuilderpublic int getParamTypesCount()
ExecuteBatchDmlRequest.StatementOrBuilderIt 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.ExecuteBatchDmlRequest.Statement.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 = 3;getParamTypesCount in interface ExecuteBatchDmlRequest.StatementOrBuilderpublic 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.ExecuteBatchDmlRequest.Statement.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 = 3;containsParamTypes in interface ExecuteBatchDmlRequest.StatementOrBuilder@Deprecated public Map<String,Type> getParamTypes()
getParamTypesMap() instead.getParamTypes in interface ExecuteBatchDmlRequest.StatementOrBuilderpublic 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.ExecuteBatchDmlRequest.Statement.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 = 3;getParamTypesMap in interface ExecuteBatchDmlRequest.StatementOrBuilderpublic 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.ExecuteBatchDmlRequest.Statement.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 = 3;getParamTypesOrDefault in interface ExecuteBatchDmlRequest.StatementOrBuilderpublic 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.ExecuteBatchDmlRequest.Statement.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 = 3;getParamTypesOrThrow in interface ExecuteBatchDmlRequest.StatementOrBuilderpublic ExecuteBatchDmlRequest.Statement.Builder clearParamTypes()
public ExecuteBatchDmlRequest.Statement.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.ExecuteBatchDmlRequest.Statement.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 = 3;@Deprecated public Map<String,Type> getMutableParamTypes()
public ExecuteBatchDmlRequest.Statement.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.ExecuteBatchDmlRequest.Statement.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 = 3;public ExecuteBatchDmlRequest.Statement.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.ExecuteBatchDmlRequest.Statement.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 = 3;public final ExecuteBatchDmlRequest.Statement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>public final ExecuteBatchDmlRequest.Statement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>Copyright © 2022 Google LLC. All rights reserved.