Package com.google.spanner.v1
Class ExecuteBatchDmlRequest.Statement
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.spanner.v1.ExecuteBatchDmlRequest.Statement
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ExecuteBatchDmlRequest.StatementOrBuilder,Serializable
- Enclosing class:
- ExecuteBatchDmlRequest
public static final class ExecuteBatchDmlRequest.Statement extends com.google.protobuf.GeneratedMessageV3 implements ExecuteBatchDmlRequest.StatementOrBuilder
A single DML statement.
Protobuf typegoogle.spanner.v1.ExecuteBatchDmlRequest.Statement- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExecuteBatchDmlRequest.Statement.BuilderA single DML statement.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intPARAM_TYPES_FIELD_NUMBERstatic intPARAMS_FIELD_NUMBERstatic intSQL_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsParamTypes(String key)It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.booleanequals(Object obj)static ExecuteBatchDmlRequest.StatementgetDefaultInstance()ExecuteBatchDmlRequest.StatementgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.StructgetParams()Parameter names and values that bind to placeholders in the DML string.com.google.protobuf.StructOrBuildergetParamsOrBuilder()Parameter names and values that bind to placeholders in the DML string.Map<String,Type>getParamTypes()Deprecated.intgetParamTypesCount()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.TypegetParamTypesOrDefault(String key, Type defaultValue)It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.TypegetParamTypesOrThrow(String key)It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.com.google.protobuf.Parser<ExecuteBatchDmlRequest.Statement>getParserForType()intgetSerializedSize()StringgetSql()Required.com.google.protobuf.ByteStringgetSqlBytes()Required.com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasParams()Parameter names and values that bind to placeholders in the DML string.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static ExecuteBatchDmlRequest.Statement.BuildernewBuilder()static ExecuteBatchDmlRequest.Statement.BuildernewBuilder(ExecuteBatchDmlRequest.Statement prototype)ExecuteBatchDmlRequest.Statement.BuildernewBuilderForType()protected ExecuteBatchDmlRequest.Statement.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ExecuteBatchDmlRequest.StatementparseDelimitedFrom(InputStream input)static ExecuteBatchDmlRequest.StatementparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExecuteBatchDmlRequest.StatementparseFrom(byte[] data)static ExecuteBatchDmlRequest.StatementparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExecuteBatchDmlRequest.StatementparseFrom(com.google.protobuf.ByteString data)static ExecuteBatchDmlRequest.StatementparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExecuteBatchDmlRequest.StatementparseFrom(com.google.protobuf.CodedInputStream input)static ExecuteBatchDmlRequest.StatementparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExecuteBatchDmlRequest.StatementparseFrom(InputStream input)static ExecuteBatchDmlRequest.StatementparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ExecuteBatchDmlRequest.StatementparseFrom(ByteBuffer data)static ExecuteBatchDmlRequest.StatementparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ExecuteBatchDmlRequest.Statement>parser()ExecuteBatchDmlRequest.Statement.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SQL_FIELD_NUMBER
public static final int SQL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARAMS_FIELD_NUMBER
public static final int PARAMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARAM_TYPES_FIELD_NUMBER
public static final int PARAM_TYPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSql
public String getSql()
Required. The DML string.
string sql = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSqlin interfaceExecuteBatchDmlRequest.StatementOrBuilder- Returns:
- The sql.
-
getSqlBytes
public com.google.protobuf.ByteString getSqlBytes()
Required. The DML string.
string sql = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSqlBytesin interfaceExecuteBatchDmlRequest.StatementOrBuilder- Returns:
- The bytes for sql.
-
hasParams
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;- Specified by:
hasParamsin interfaceExecuteBatchDmlRequest.StatementOrBuilder- Returns:
- Whether the params field is set.
-
getParams
public 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;- Specified by:
getParamsin interfaceExecuteBatchDmlRequest.StatementOrBuilder- Returns:
- The params.
-
getParamsOrBuilder
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;- Specified by:
getParamsOrBuilderin interfaceExecuteBatchDmlRequest.StatementOrBuilder
-
getParamTypesCount
public int getParamTypesCount()
Description copied from interface: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;- Specified by:
getParamTypesCountin interfaceExecuteBatchDmlRequest.StatementOrBuilder
-
containsParamTypes
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.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;- Specified by:
containsParamTypesin interfaceExecuteBatchDmlRequest.StatementOrBuilder
-
getParamTypes
@Deprecated public Map<String,Type> getParamTypes()
Deprecated.UsegetParamTypesMap()instead.- Specified by:
getParamTypesin interfaceExecuteBatchDmlRequest.StatementOrBuilder
-
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 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;- Specified by:
getParamTypesMapin interfaceExecuteBatchDmlRequest.StatementOrBuilder
-
getParamTypesOrDefault
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.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;- Specified by:
getParamTypesOrDefaultin interfaceExecuteBatchDmlRequest.StatementOrBuilder
-
getParamTypesOrThrow
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.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;- Specified by:
getParamTypesOrThrowin interfaceExecuteBatchDmlRequest.StatementOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ExecuteBatchDmlRequest.Statement parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteBatchDmlRequest.Statement parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteBatchDmlRequest.Statement parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteBatchDmlRequest.Statement parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteBatchDmlRequest.Statement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteBatchDmlRequest.Statement parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ExecuteBatchDmlRequest.Statement parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ExecuteBatchDmlRequest.Statement parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ExecuteBatchDmlRequest.Statement parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ExecuteBatchDmlRequest.Statement parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ExecuteBatchDmlRequest.Statement parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ExecuteBatchDmlRequest.Statement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ExecuteBatchDmlRequest.Statement.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ExecuteBatchDmlRequest.Statement.Builder newBuilder()
-
newBuilder
public static ExecuteBatchDmlRequest.Statement.Builder newBuilder(ExecuteBatchDmlRequest.Statement prototype)
-
toBuilder
public ExecuteBatchDmlRequest.Statement.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ExecuteBatchDmlRequest.Statement.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ExecuteBatchDmlRequest.Statement getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ExecuteBatchDmlRequest.Statement> parser()
-
getParserForType
public com.google.protobuf.Parser<ExecuteBatchDmlRequest.Statement> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ExecuteBatchDmlRequest.Statement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-