Class BatchCreatePartitionsRequest.Builder

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

public static final class BatchCreatePartitionsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchCreatePartitionsRequest.Builder> implements BatchCreatePartitionsRequestOrBuilder
 Request message for the BatchCreatePartitions method.
 
Protobuf type google.cloud.biglake.hive.v1beta.BatchCreatePartitionsRequest
  • 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<BatchCreatePartitionsRequest.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<BatchCreatePartitionsRequest.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<BatchCreatePartitionsRequest.Builder>
    • getDefaultInstanceForType

      public BatchCreatePartitionsRequest 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 BatchCreatePartitionsRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public String getParent()
       Required. Reference to the table to where the partitions to be added, in
       the format of
       projects/{project}/catalogs/{catalogs}/databases/{database}/tables/{table}.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface BatchCreatePartitionsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Reference to the table to where the partitions to be added, in
       the format of
       projects/{project}/catalogs/{catalogs}/databases/{database}/tables/{table}.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface BatchCreatePartitionsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public BatchCreatePartitionsRequest.Builder setParent(String value)
       Required. Reference to the table to where the partitions to be added, in
       the format of
       projects/{project}/catalogs/{catalogs}/databases/{database}/tables/{table}.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. Reference to the table to where the partitions to be added, in
       the format of
       projects/{project}/catalogs/{catalogs}/databases/{database}/tables/{table}.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public BatchCreatePartitionsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Reference to the table to where the partitions to be added, in
       the format of
       projects/{project}/catalogs/{catalogs}/databases/{database}/tables/{table}.
       
      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.
    • getRequestsList

      public List<CreatePartitionRequest> getRequestsList()
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsList in interface BatchCreatePartitionsRequestOrBuilder
    • getRequestsCount

      public int getRequestsCount()
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsCount in interface BatchCreatePartitionsRequestOrBuilder
    • getRequests

      public CreatePartitionRequest getRequests(int index)
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequests in interface BatchCreatePartitionsRequestOrBuilder
    • setRequests

      public BatchCreatePartitionsRequest.Builder setRequests(int index, CreatePartitionRequest value)
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • setRequests

      public BatchCreatePartitionsRequest.Builder setRequests(int index, CreatePartitionRequest.Builder builderForValue)
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

      public BatchCreatePartitionsRequest.Builder addRequests(int index, CreatePartitionRequest value)
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

      public BatchCreatePartitionsRequest.Builder addRequests(int index, CreatePartitionRequest.Builder builderForValue)
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllRequests

      public BatchCreatePartitionsRequest.Builder addAllRequests(Iterable<? extends CreatePartitionRequest> values)
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearRequests

      public BatchCreatePartitionsRequest.Builder clearRequests()
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeRequests

      public BatchCreatePartitionsRequest.Builder removeRequests(int index)
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsBuilder

      public CreatePartitionRequest.Builder getRequestsBuilder(int index)
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsOrBuilder

      public CreatePartitionRequestOrBuilder getRequestsOrBuilder(int index)
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsOrBuilder in interface BatchCreatePartitionsRequestOrBuilder
    • getRequestsOrBuilderList

      public List<? extends CreatePartitionRequestOrBuilder> getRequestsOrBuilderList()
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsOrBuilderList in interface BatchCreatePartitionsRequestOrBuilder
    • addRequestsBuilder

      public CreatePartitionRequest.Builder addRequestsBuilder()
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequestsBuilder

      public CreatePartitionRequest.Builder addRequestsBuilder(int index)
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsBuilderList

      public List<CreatePartitionRequest.Builder> getRequestsBuilderList()
       Required. Requests to add partitions to the table.
       
      repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSkipExistingPartitions

      public boolean getSkipExistingPartitions()
       Optional. Corresponds to the `ifNotExists` flag in the Hive Metastore APIs.
       If the flag is set to false, the server will return ALREADY_EXISTS if any
       partition already exists. If the flag is set to true, the server will skip
       existing partitions and insert only the non-existing partitions.
       A maximum of 900 partitions can be inserted in a batch.
       
      bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSkipExistingPartitions in interface BatchCreatePartitionsRequestOrBuilder
      Returns:
      The skipExistingPartitions.
    • setSkipExistingPartitions

      public BatchCreatePartitionsRequest.Builder setSkipExistingPartitions(boolean value)
       Optional. Corresponds to the `ifNotExists` flag in the Hive Metastore APIs.
       If the flag is set to false, the server will return ALREADY_EXISTS if any
       partition already exists. If the flag is set to true, the server will skip
       existing partitions and insert only the non-existing partitions.
       A maximum of 900 partitions can be inserted in a batch.
       
      bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The skipExistingPartitions to set.
      Returns:
      This builder for chaining.
    • clearSkipExistingPartitions

      public BatchCreatePartitionsRequest.Builder clearSkipExistingPartitions()
       Optional. Corresponds to the `ifNotExists` flag in the Hive Metastore APIs.
       If the flag is set to false, the server will return ALREADY_EXISTS if any
       partition already exists. If the flag is set to true, the server will skip
       existing partitions and insert only the non-existing partitions.
       A maximum of 900 partitions can be inserted in a batch.
       
      bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.