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 type google.spanner.v1.ExecuteBatchDmlRequest.Statement
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getSql

      public String getSql()
       Required. The DML string.
       
      string sql = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSql in interface ExecuteBatchDmlRequest.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:
      getSqlBytes in interface ExecuteBatchDmlRequest.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:
      hasParams in interface ExecuteBatchDmlRequest.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:
      getParams in interface ExecuteBatchDmlRequest.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:
      getParamsOrBuilder in interface ExecuteBatchDmlRequest.StatementOrBuilder
    • getParamTypesCount

      public int getParamTypesCount()
      Description copied from interface: ExecuteBatchDmlRequest.StatementOrBuilder
       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:
      getParamTypesCount in interface ExecuteBatchDmlRequest.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:
      containsParamTypes in interface ExecuteBatchDmlRequest.StatementOrBuilder
    • getParamTypes

      @Deprecated public Map<String,Type> getParamTypes()
      Deprecated.
      Use getParamTypesMap() instead.
      Specified by:
      getParamTypes in interface ExecuteBatchDmlRequest.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:
      getParamTypesMap in interface ExecuteBatchDmlRequest.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:
      getParamTypesOrDefault in interface ExecuteBatchDmlRequest.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:
      getParamTypesOrThrow in interface ExecuteBatchDmlRequest.StatementOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ExecuteBatchDmlRequest.Statement.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ExecuteBatchDmlRequest.Statement.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.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:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public ExecuteBatchDmlRequest.Statement getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder