Class ExecuteBatchDmlRequest.Statement.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
com.google.spanner.v1.ExecuteBatchDmlRequest.Statement.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ExecuteBatchDmlRequest.StatementOrBuilder, Cloneable
Enclosing class:
ExecuteBatchDmlRequest.Statement

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
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ExecuteBatchDmlRequest.Statement buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • setField

      public ExecuteBatchDmlRequest.Statement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • clearField

      public ExecuteBatchDmlRequest.Statement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • clearOneof

      public ExecuteBatchDmlRequest.Statement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • setRepeatedField

      public ExecuteBatchDmlRequest.Statement.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • addRepeatedField

      public ExecuteBatchDmlRequest.Statement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • mergeFrom

      public ExecuteBatchDmlRequest.Statement.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • mergeFrom

      public ExecuteBatchDmlRequest.Statement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExecuteBatchDmlRequest.Statement.Builder>
      Throws:
      IOException
    • 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.
    • setSql

       Required. The DML string.
       
      string sql = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The sql to set.
      Returns:
      This builder for chaining.
    • clearSql

       Required. The DML string.
       
      string sql = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSqlBytes

      public ExecuteBatchDmlRequest.Statement.Builder setSqlBytes(com.google.protobuf.ByteString value)
       Required. The DML string.
       
      string sql = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for sql to set.
      Returns:
      This builder for chaining.
    • 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.
    • setParams

      public 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;
    • setParams

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

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

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

      public ExecuteBatchDmlRequest.Statement.Builder clearParamTypes()
    • removeParamTypes

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

      @Deprecated public Map<String,Type> getMutableParamTypes()
      Deprecated.
      Use alternate mutation accessors instead.
    • putParamTypes

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

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

      public Type.Builder putParamTypesBuilderIfAbsent(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;
    • setUnknownFields

      public final ExecuteBatchDmlRequest.Statement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>
    • mergeUnknownFields

      public final ExecuteBatchDmlRequest.Statement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExecuteBatchDmlRequest.Statement.Builder>