Class CreateHiveCatalogRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateHiveCatalogRequest.Builder>
com.google.cloud.biglake.hive.v1beta.CreateHiveCatalogRequest.Builder
All Implemented Interfaces:
CreateHiveCatalogRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateHiveCatalogRequest

public static final class CreateHiveCatalogRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateHiveCatalogRequest.Builder> implements CreateHiveCatalogRequestOrBuilder
 Request message for the CreateHiveCatalog method.
 
Protobuf type google.cloud.biglake.hive.v1beta.CreateHiveCatalogRequest
  • Method Details

    • getDescriptor

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

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

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

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

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

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

    • isInitialized

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

      public CreateHiveCatalogRequest.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<CreateHiveCatalogRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource where this catalog will be created.
       Format: projects/{project_id_or_number}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateHiveCatalogRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource where this catalog will be created.
       Format: projects/{project_id_or_number}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateHiveCatalogRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateHiveCatalogRequest.Builder setParent(String value)
       Required. The parent resource where this catalog will be created.
       Format: projects/{project_id_or_number}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateHiveCatalogRequest.Builder clearParent()
       Required. The parent resource where this catalog will be created.
       Format: projects/{project_id_or_number}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateHiveCatalogRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource where this catalog will be created.
       Format: projects/{project_id_or_number}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasHiveCatalog

      public boolean hasHiveCatalog()
       Required. The catalog to create.
       The `name` field does not need to be provided. Gets copied over from
       catalog_id.
       
      .google.cloud.biglake.hive.v1beta.HiveCatalog hive_catalog = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasHiveCatalog in interface CreateHiveCatalogRequestOrBuilder
      Returns:
      Whether the hiveCatalog field is set.
    • getHiveCatalog

      public HiveCatalog getHiveCatalog()
       Required. The catalog to create.
       The `name` field does not need to be provided. Gets copied over from
       catalog_id.
       
      .google.cloud.biglake.hive.v1beta.HiveCatalog hive_catalog = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHiveCatalog in interface CreateHiveCatalogRequestOrBuilder
      Returns:
      The hiveCatalog.
    • setHiveCatalog

      public CreateHiveCatalogRequest.Builder setHiveCatalog(HiveCatalog value)
       Required. The catalog to create.
       The `name` field does not need to be provided. Gets copied over from
       catalog_id.
       
      .google.cloud.biglake.hive.v1beta.HiveCatalog hive_catalog = 2 [(.google.api.field_behavior) = REQUIRED];
    • setHiveCatalog

      public CreateHiveCatalogRequest.Builder setHiveCatalog(HiveCatalog.Builder builderForValue)
       Required. The catalog to create.
       The `name` field does not need to be provided. Gets copied over from
       catalog_id.
       
      .google.cloud.biglake.hive.v1beta.HiveCatalog hive_catalog = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeHiveCatalog

      public CreateHiveCatalogRequest.Builder mergeHiveCatalog(HiveCatalog value)
       Required. The catalog to create.
       The `name` field does not need to be provided. Gets copied over from
       catalog_id.
       
      .google.cloud.biglake.hive.v1beta.HiveCatalog hive_catalog = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearHiveCatalog

      public CreateHiveCatalogRequest.Builder clearHiveCatalog()
       Required. The catalog to create.
       The `name` field does not need to be provided. Gets copied over from
       catalog_id.
       
      .google.cloud.biglake.hive.v1beta.HiveCatalog hive_catalog = 2 [(.google.api.field_behavior) = REQUIRED];
    • getHiveCatalogBuilder

      public HiveCatalog.Builder getHiveCatalogBuilder()
       Required. The catalog to create.
       The `name` field does not need to be provided. Gets copied over from
       catalog_id.
       
      .google.cloud.biglake.hive.v1beta.HiveCatalog hive_catalog = 2 [(.google.api.field_behavior) = REQUIRED];
    • getHiveCatalogOrBuilder

      public HiveCatalogOrBuilder getHiveCatalogOrBuilder()
       Required. The catalog to create.
       The `name` field does not need to be provided. Gets copied over from
       catalog_id.
       
      .google.cloud.biglake.hive.v1beta.HiveCatalog hive_catalog = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHiveCatalogOrBuilder in interface CreateHiveCatalogRequestOrBuilder
    • getHiveCatalogId

      public String getHiveCatalogId()
       Required. The Hive Catalog ID to use for the catalog that will become the
       final component of the catalog's resource name. The maximum length is 256
       characters.
       
      string hive_catalog_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHiveCatalogId in interface CreateHiveCatalogRequestOrBuilder
      Returns:
      The hiveCatalogId.
    • getHiveCatalogIdBytes

      public com.google.protobuf.ByteString getHiveCatalogIdBytes()
       Required. The Hive Catalog ID to use for the catalog that will become the
       final component of the catalog's resource name. The maximum length is 256
       characters.
       
      string hive_catalog_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHiveCatalogIdBytes in interface CreateHiveCatalogRequestOrBuilder
      Returns:
      The bytes for hiveCatalogId.
    • setHiveCatalogId

      public CreateHiveCatalogRequest.Builder setHiveCatalogId(String value)
       Required. The Hive Catalog ID to use for the catalog that will become the
       final component of the catalog's resource name. The maximum length is 256
       characters.
       
      string hive_catalog_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The hiveCatalogId to set.
      Returns:
      This builder for chaining.
    • clearHiveCatalogId

      public CreateHiveCatalogRequest.Builder clearHiveCatalogId()
       Required. The Hive Catalog ID to use for the catalog that will become the
       final component of the catalog's resource name. The maximum length is 256
       characters.
       
      string hive_catalog_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setHiveCatalogIdBytes

      public CreateHiveCatalogRequest.Builder setHiveCatalogIdBytes(com.google.protobuf.ByteString value)
       Required. The Hive Catalog ID to use for the catalog that will become the
       final component of the catalog's resource name. The maximum length is 256
       characters.
       
      string hive_catalog_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for hiveCatalogId to set.
      Returns:
      This builder for chaining.
    • getPrimaryLocation

      public String getPrimaryLocation()
       Required. The GCP region that specifies where the catalog metadata is
       stored, e.g. us-central1, EU, etc.
       
      string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrimaryLocation in interface CreateHiveCatalogRequestOrBuilder
      Returns:
      The primaryLocation.
    • getPrimaryLocationBytes

      public com.google.protobuf.ByteString getPrimaryLocationBytes()
       Required. The GCP region that specifies where the catalog metadata is
       stored, e.g. us-central1, EU, etc.
       
      string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPrimaryLocationBytes in interface CreateHiveCatalogRequestOrBuilder
      Returns:
      The bytes for primaryLocation.
    • setPrimaryLocation

      public CreateHiveCatalogRequest.Builder setPrimaryLocation(String value)
       Required. The GCP region that specifies where the catalog metadata is
       stored, e.g. us-central1, EU, etc.
       
      string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The primaryLocation to set.
      Returns:
      This builder for chaining.
    • clearPrimaryLocation

      public CreateHiveCatalogRequest.Builder clearPrimaryLocation()
       Required. The GCP region that specifies where the catalog metadata is
       stored, e.g. us-central1, EU, etc.
       
      string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPrimaryLocationBytes

      public CreateHiveCatalogRequest.Builder setPrimaryLocationBytes(com.google.protobuf.ByteString value)
       Required. The GCP region that specifies where the catalog metadata is
       stored, e.g. us-central1, EU, etc.
       
      string primary_location = 4 [json_name = "primary_location", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for primaryLocation to set.
      Returns:
      This builder for chaining.