Interface ExecuteBatchDmlRequest.StatementOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ExecuteBatchDmlRequest.Statement, ExecuteBatchDmlRequest.Statement.Builder
Enclosing class:
ExecuteBatchDmlRequest

public static interface ExecuteBatchDmlRequest.StatementOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.
    com.google.protobuf.Struct
    Parameter names and values that bind to placeholders in the DML string.
    com.google.protobuf.StructOrBuilder
    Parameter names and values that bind to placeholders in the DML string.
    Deprecated.
    int
    It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.
    It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.
    getParamTypesOrDefault(String key, Type defaultValue)
    It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.
    It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value.
    Required.
    com.google.protobuf.ByteString
    Required.
    boolean
    Parameter names and values that bind to placeholders in the DML string.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getSql

      String getSql()
       Required. The DML string.
       
      string sql = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The sql.
    • getSqlBytes

      com.google.protobuf.ByteString getSqlBytes()
       Required. The DML string.
       
      string sql = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The bytes for sql.
    • hasParams

      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;
      Returns:
      Whether the params field is set.
    • getParams

      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;
      Returns:
      The params.
    • getParamsOrBuilder

      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;
    • getParamTypesCount

      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][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

      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;
    • getParamTypes

      @Deprecated Map<String,Type> getParamTypes()
      Deprecated.
      Use getParamTypesMap() instead.
    • getParamTypesMap

      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;
    • getParamTypesOrDefault

      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;
    • getParamTypesOrThrow

      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;