Class PrepareQueryRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PrepareQueryRequest.Builder>
com.google.bigtable.v2.PrepareQueryRequest.Builder
All Implemented Interfaces:
PrepareQueryRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PrepareQueryRequest

public static final class PrepareQueryRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PrepareQueryRequest.Builder> implements PrepareQueryRequestOrBuilder
 Request message for Bigtable.PrepareQuery
 
Protobuf type google.bigtable.v2.PrepareQueryRequest
  • 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<PrepareQueryRequest.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PrepareQueryRequest.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<PrepareQueryRequest.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<PrepareQueryRequest.Builder>
    • getDefaultInstanceForType

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

      public PrepareQueryRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PrepareQueryRequest 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<PrepareQueryRequest.Builder>
    • setField

      public PrepareQueryRequest.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<PrepareQueryRequest.Builder>
    • clearField

      public PrepareQueryRequest.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<PrepareQueryRequest.Builder>
    • clearOneof

      public PrepareQueryRequest.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<PrepareQueryRequest.Builder>
    • setRepeatedField

      public PrepareQueryRequest.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<PrepareQueryRequest.Builder>
    • addRepeatedField

      public PrepareQueryRequest.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<PrepareQueryRequest.Builder>
    • mergeFrom

      public PrepareQueryRequest.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<PrepareQueryRequest.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<PrepareQueryRequest.Builder>
    • mergeFrom

      public PrepareQueryRequest.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<PrepareQueryRequest.Builder>
      Throws:
      IOException
    • getDataFormatCase

      public PrepareQueryRequest.DataFormatCase getDataFormatCase()
      Specified by:
      getDataFormatCase in interface PrepareQueryRequestOrBuilder
    • clearDataFormat

      public PrepareQueryRequest.Builder clearDataFormat()
    • getInstanceName

      public String getInstanceName()
       Required. The unique name of the instance against which the query should be
       executed.
       Values are of the form `projects/<project>/instances/<instance>`
       
      string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getInstanceName in interface PrepareQueryRequestOrBuilder
      Returns:
      The instanceName.
    • getInstanceNameBytes

      public com.google.protobuf.ByteString getInstanceNameBytes()
       Required. The unique name of the instance against which the query should be
       executed.
       Values are of the form `projects/<project>/instances/<instance>`
       
      string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getInstanceNameBytes in interface PrepareQueryRequestOrBuilder
      Returns:
      The bytes for instanceName.
    • setInstanceName

      public PrepareQueryRequest.Builder setInstanceName(String value)
       Required. The unique name of the instance against which the query should be
       executed.
       Values are of the form `projects/<project>/instances/<instance>`
       
      string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The instanceName to set.
      Returns:
      This builder for chaining.
    • clearInstanceName

      public PrepareQueryRequest.Builder clearInstanceName()
       Required. The unique name of the instance against which the query should be
       executed.
       Values are of the form `projects/<project>/instances/<instance>`
       
      string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setInstanceNameBytes

      public PrepareQueryRequest.Builder setInstanceNameBytes(com.google.protobuf.ByteString value)
       Required. The unique name of the instance against which the query should be
       executed.
       Values are of the form `projects/<project>/instances/<instance>`
       
      string instance_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for instanceName to set.
      Returns:
      This builder for chaining.
    • getAppProfileId

      public String getAppProfileId()
       Optional. This value specifies routing for preparing the query. Note that
       this `app_profile_id` is only used for preparing the query. The actual
       query execution will use the app profile specified in the
       `ExecuteQueryRequest`. If not specified, the `default` application profile
       will be used.
       
      string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAppProfileId in interface PrepareQueryRequestOrBuilder
      Returns:
      The appProfileId.
    • getAppProfileIdBytes

      public com.google.protobuf.ByteString getAppProfileIdBytes()
       Optional. This value specifies routing for preparing the query. Note that
       this `app_profile_id` is only used for preparing the query. The actual
       query execution will use the app profile specified in the
       `ExecuteQueryRequest`. If not specified, the `default` application profile
       will be used.
       
      string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAppProfileIdBytes in interface PrepareQueryRequestOrBuilder
      Returns:
      The bytes for appProfileId.
    • setAppProfileId

      public PrepareQueryRequest.Builder setAppProfileId(String value)
       Optional. This value specifies routing for preparing the query. Note that
       this `app_profile_id` is only used for preparing the query. The actual
       query execution will use the app profile specified in the
       `ExecuteQueryRequest`. If not specified, the `default` application profile
       will be used.
       
      string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The appProfileId to set.
      Returns:
      This builder for chaining.
    • clearAppProfileId

      public PrepareQueryRequest.Builder clearAppProfileId()
       Optional. This value specifies routing for preparing the query. Note that
       this `app_profile_id` is only used for preparing the query. The actual
       query execution will use the app profile specified in the
       `ExecuteQueryRequest`. If not specified, the `default` application profile
       will be used.
       
      string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAppProfileIdBytes

      public PrepareQueryRequest.Builder setAppProfileIdBytes(com.google.protobuf.ByteString value)
       Optional. This value specifies routing for preparing the query. Note that
       this `app_profile_id` is only used for preparing the query. The actual
       query execution will use the app profile specified in the
       `ExecuteQueryRequest`. If not specified, the `default` application profile
       will be used.
       
      string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for appProfileId to set.
      Returns:
      This builder for chaining.
    • getQuery

      public String getQuery()
       Required. The query string.
       
      string query = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuery in interface PrepareQueryRequestOrBuilder
      Returns:
      The query.
    • getQueryBytes

      public com.google.protobuf.ByteString getQueryBytes()
       Required. The query string.
       
      string query = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQueryBytes in interface PrepareQueryRequestOrBuilder
      Returns:
      The bytes for query.
    • setQuery

      public PrepareQueryRequest.Builder setQuery(String value)
       Required. The query string.
       
      string query = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The query to set.
      Returns:
      This builder for chaining.
    • clearQuery

      public PrepareQueryRequest.Builder clearQuery()
       Required. The query string.
       
      string query = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setQueryBytes

      public PrepareQueryRequest.Builder setQueryBytes(com.google.protobuf.ByteString value)
       Required. The query string.
       
      string query = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for query to set.
      Returns:
      This builder for chaining.
    • hasProtoFormat

      public boolean hasProtoFormat()
       Protocol buffer format as described by ProtoSchema and ProtoRows
       messages.
       
      .google.bigtable.v2.ProtoFormat proto_format = 4;
      Specified by:
      hasProtoFormat in interface PrepareQueryRequestOrBuilder
      Returns:
      Whether the protoFormat field is set.
    • getProtoFormat

      public ProtoFormat getProtoFormat()
       Protocol buffer format as described by ProtoSchema and ProtoRows
       messages.
       
      .google.bigtable.v2.ProtoFormat proto_format = 4;
      Specified by:
      getProtoFormat in interface PrepareQueryRequestOrBuilder
      Returns:
      The protoFormat.
    • setProtoFormat

      public PrepareQueryRequest.Builder setProtoFormat(ProtoFormat value)
       Protocol buffer format as described by ProtoSchema and ProtoRows
       messages.
       
      .google.bigtable.v2.ProtoFormat proto_format = 4;
    • setProtoFormat

      public PrepareQueryRequest.Builder setProtoFormat(ProtoFormat.Builder builderForValue)
       Protocol buffer format as described by ProtoSchema and ProtoRows
       messages.
       
      .google.bigtable.v2.ProtoFormat proto_format = 4;
    • mergeProtoFormat

      public PrepareQueryRequest.Builder mergeProtoFormat(ProtoFormat value)
       Protocol buffer format as described by ProtoSchema and ProtoRows
       messages.
       
      .google.bigtable.v2.ProtoFormat proto_format = 4;
    • clearProtoFormat

      public PrepareQueryRequest.Builder clearProtoFormat()
       Protocol buffer format as described by ProtoSchema and ProtoRows
       messages.
       
      .google.bigtable.v2.ProtoFormat proto_format = 4;
    • getProtoFormatBuilder

      public ProtoFormat.Builder getProtoFormatBuilder()
       Protocol buffer format as described by ProtoSchema and ProtoRows
       messages.
       
      .google.bigtable.v2.ProtoFormat proto_format = 4;
    • getProtoFormatOrBuilder

      public ProtoFormatOrBuilder getProtoFormatOrBuilder()
       Protocol buffer format as described by ProtoSchema and ProtoRows
       messages.
       
      .google.bigtable.v2.ProtoFormat proto_format = 4;
      Specified by:
      getProtoFormatOrBuilder in interface PrepareQueryRequestOrBuilder
    • getParamTypesCount

      public int getParamTypesCount()
      Description copied from interface: PrepareQueryRequestOrBuilder
       Required. `param_types` is a map of parameter identifier strings to their
       `Type`s.
      
       In query string, a parameter placeholder consists of the
       `@` character followed by the parameter name (for example, `@firstName`) in
       the query string.
      
       For example, if param_types["firstName"] = Bytes then @firstName will be a
       query parameter of type Bytes. The specific `Value` to be used for the
       query execution must be sent in `ExecuteQueryRequest` in the `params` map.
       
      map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParamTypesCount in interface PrepareQueryRequestOrBuilder
    • containsParamTypes

      public boolean containsParamTypes(String key)
       Required. `param_types` is a map of parameter identifier strings to their
       `Type`s.
      
       In query string, a parameter placeholder consists of the
       `@` character followed by the parameter name (for example, `@firstName`) in
       the query string.
      
       For example, if param_types["firstName"] = Bytes then @firstName will be a
       query parameter of type Bytes. The specific `Value` to be used for the
       query execution must be sent in `ExecuteQueryRequest` in the `params` map.
       
      map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      containsParamTypes in interface PrepareQueryRequestOrBuilder
    • getParamTypes

      @Deprecated public Map<String,Type> getParamTypes()
      Deprecated.
      Use getParamTypesMap() instead.
      Specified by:
      getParamTypes in interface PrepareQueryRequestOrBuilder
    • getParamTypesMap

      public Map<String,Type> getParamTypesMap()
       Required. `param_types` is a map of parameter identifier strings to their
       `Type`s.
      
       In query string, a parameter placeholder consists of the
       `@` character followed by the parameter name (for example, `@firstName`) in
       the query string.
      
       For example, if param_types["firstName"] = Bytes then @firstName will be a
       query parameter of type Bytes. The specific `Value` to be used for the
       query execution must be sent in `ExecuteQueryRequest` in the `params` map.
       
      map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParamTypesMap in interface PrepareQueryRequestOrBuilder
    • getParamTypesOrDefault

      public Type getParamTypesOrDefault(String key, Type defaultValue)
       Required. `param_types` is a map of parameter identifier strings to their
       `Type`s.
      
       In query string, a parameter placeholder consists of the
       `@` character followed by the parameter name (for example, `@firstName`) in
       the query string.
      
       For example, if param_types["firstName"] = Bytes then @firstName will be a
       query parameter of type Bytes. The specific `Value` to be used for the
       query execution must be sent in `ExecuteQueryRequest` in the `params` map.
       
      map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParamTypesOrDefault in interface PrepareQueryRequestOrBuilder
    • getParamTypesOrThrow

      public Type getParamTypesOrThrow(String key)
       Required. `param_types` is a map of parameter identifier strings to their
       `Type`s.
      
       In query string, a parameter placeholder consists of the
       `@` character followed by the parameter name (for example, `@firstName`) in
       the query string.
      
       For example, if param_types["firstName"] = Bytes then @firstName will be a
       query parameter of type Bytes. The specific `Value` to be used for the
       query execution must be sent in `ExecuteQueryRequest` in the `params` map.
       
      map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParamTypesOrThrow in interface PrepareQueryRequestOrBuilder
    • clearParamTypes

      public PrepareQueryRequest.Builder clearParamTypes()
    • removeParamTypes

      public PrepareQueryRequest.Builder removeParamTypes(String key)
       Required. `param_types` is a map of parameter identifier strings to their
       `Type`s.
      
       In query string, a parameter placeholder consists of the
       `@` character followed by the parameter name (for example, `@firstName`) in
       the query string.
      
       For example, if param_types["firstName"] = Bytes then @firstName will be a
       query parameter of type Bytes. The specific `Value` to be used for the
       query execution must be sent in `ExecuteQueryRequest` in the `params` map.
       
      map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED];
    • getMutableParamTypes

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

      public PrepareQueryRequest.Builder putParamTypes(String key, Type value)
       Required. `param_types` is a map of parameter identifier strings to their
       `Type`s.
      
       In query string, a parameter placeholder consists of the
       `@` character followed by the parameter name (for example, `@firstName`) in
       the query string.
      
       For example, if param_types["firstName"] = Bytes then @firstName will be a
       query parameter of type Bytes. The specific `Value` to be used for the
       query execution must be sent in `ExecuteQueryRequest` in the `params` map.
       
      map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED];
    • putAllParamTypes

      public PrepareQueryRequest.Builder putAllParamTypes(Map<String,Type> values)
       Required. `param_types` is a map of parameter identifier strings to their
       `Type`s.
      
       In query string, a parameter placeholder consists of the
       `@` character followed by the parameter name (for example, `@firstName`) in
       the query string.
      
       For example, if param_types["firstName"] = Bytes then @firstName will be a
       query parameter of type Bytes. The specific `Value` to be used for the
       query execution must be sent in `ExecuteQueryRequest` in the `params` map.
       
      map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED];
    • putParamTypesBuilderIfAbsent

      public Type.Builder putParamTypesBuilderIfAbsent(String key)
       Required. `param_types` is a map of parameter identifier strings to their
       `Type`s.
      
       In query string, a parameter placeholder consists of the
       `@` character followed by the parameter name (for example, `@firstName`) in
       the query string.
      
       For example, if param_types["firstName"] = Bytes then @firstName will be a
       query parameter of type Bytes. The specific `Value` to be used for the
       query execution must be sent in `ExecuteQueryRequest` in the `params` map.
       
      map<string, .google.bigtable.v2.Type> param_types = 6 [(.google.api.field_behavior) = REQUIRED];
    • setUnknownFields

      public final PrepareQueryRequest.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<PrepareQueryRequest.Builder>
    • mergeUnknownFields

      public final PrepareQueryRequest.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<PrepareQueryRequest.Builder>