Class ExecuteBatchDmlRequest.Statement.Builder

    • Method Detail

      • 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.Builder<ExecuteBatchDmlRequest.Statement.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField 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>
      • 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

        public ExecuteBatchDmlRequest.Statement 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
      • 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>
      • 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

        public ExecuteBatchDmlRequest.Statement.Builder setSql​(String value)
         Required. The DML string.
         
        string sql = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The sql to set.
        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

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