Class BatchCreateMetastorePartitionsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMetastorePartitionsRequest.Builder>
com.google.cloud.bigquery.storage.v1beta.BatchCreateMetastorePartitionsRequest.Builder
All Implemented Interfaces:
BatchCreateMetastorePartitionsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchCreateMetastorePartitionsRequest

public static final class BatchCreateMetastorePartitionsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateMetastorePartitionsRequest.Builder> implements BatchCreateMetastorePartitionsRequestOrBuilder
 Request message for BatchCreateMetastorePartitions.
 
Protobuf type google.cloud.bigquery.storage.v1beta.BatchCreateMetastorePartitionsRequest
  • Method Details

    • getDescriptor

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

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

      public BatchCreateMetastorePartitionsRequest 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

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

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

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

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

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

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

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

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

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

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

       Required. Reference to the table to where the metastore partitions to be
       added, in the format of
       projects/{project}/locations/{location}/datasets/{dataset}/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 metastore partitions to be
       added, in the format of
       projects/{project}/locations/{location}/datasets/{dataset}/tables/{table}.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public BatchCreateMetastorePartitionsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Reference to the table to where the metastore partitions to be
       added, in the format of
       projects/{project}/locations/{location}/datasets/{dataset}/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<CreateMetastorePartitionRequest> getRequestsList()
       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsList in interface BatchCreateMetastorePartitionsRequestOrBuilder
    • getRequestsCount

      public int getRequestsCount()
       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsCount in interface BatchCreateMetastorePartitionsRequestOrBuilder
    • getRequests

      public CreateMetastorePartitionRequest getRequests(int index)
       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequests in interface BatchCreateMetastorePartitionsRequestOrBuilder
    • setRequests

       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • setRequests

       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllRequests

       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearRequests

       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeRequests

      public BatchCreateMetastorePartitionsRequest.Builder removeRequests(int index)
       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsBuilder

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

      public CreateMetastorePartitionRequestOrBuilder getRequestsOrBuilder(int index)
       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsOrBuilder in interface BatchCreateMetastorePartitionsRequestOrBuilder
    • getRequestsOrBuilderList

      public List<? extends CreateMetastorePartitionRequestOrBuilder> getRequestsOrBuilderList()
       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsOrBuilderList in interface BatchCreateMetastorePartitionsRequestOrBuilder
    • addRequestsBuilder

      public CreateMetastorePartitionRequest.Builder addRequestsBuilder()
       Required. Requests to add metastore partitions to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
    • addRequestsBuilder

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

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

      public boolean getSkipExistingPartitions()
       Optional. Mimics the ifNotExists flag in IMetaStoreClient
       add_partitions(..). 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 BatchCreateMetastorePartitionsRequestOrBuilder
      Returns:
      The skipExistingPartitions.
    • setSkipExistingPartitions

      public BatchCreateMetastorePartitionsRequest.Builder setSkipExistingPartitions(boolean value)
       Optional. Mimics the ifNotExists flag in IMetaStoreClient
       add_partitions(..). 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 BatchCreateMetastorePartitionsRequest.Builder clearSkipExistingPartitions()
       Optional. Mimics the ifNotExists flag in IMetaStoreClient
       add_partitions(..). 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.
    • getTraceId

      public String getTraceId()
       Optional. Optional trace id to be used for debugging. It is expected that
       the client sets the same `trace_id` for all the batches in the same
       operation, so that it is possible to tie together the logs to all the
       batches in the same operation. Limited to 256 characters. This is expected,
       but not required, to be globally unique.
       
      string trace_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTraceId in interface BatchCreateMetastorePartitionsRequestOrBuilder
      Returns:
      The traceId.
    • getTraceIdBytes

      public com.google.protobuf.ByteString getTraceIdBytes()
       Optional. Optional trace id to be used for debugging. It is expected that
       the client sets the same `trace_id` for all the batches in the same
       operation, so that it is possible to tie together the logs to all the
       batches in the same operation. Limited to 256 characters. This is expected,
       but not required, to be globally unique.
       
      string trace_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTraceIdBytes in interface BatchCreateMetastorePartitionsRequestOrBuilder
      Returns:
      The bytes for traceId.
    • setTraceId

       Optional. Optional trace id to be used for debugging. It is expected that
       the client sets the same `trace_id` for all the batches in the same
       operation, so that it is possible to tie together the logs to all the
       batches in the same operation. Limited to 256 characters. This is expected,
       but not required, to be globally unique.
       
      string trace_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The traceId to set.
      Returns:
      This builder for chaining.
    • clearTraceId

       Optional. Optional trace id to be used for debugging. It is expected that
       the client sets the same `trace_id` for all the batches in the same
       operation, so that it is possible to tie together the logs to all the
       batches in the same operation. Limited to 256 characters. This is expected,
       but not required, to be globally unique.
       
      string trace_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setTraceIdBytes

      public BatchCreateMetastorePartitionsRequest.Builder setTraceIdBytes(com.google.protobuf.ByteString value)
       Optional. Optional trace id to be used for debugging. It is expected that
       the client sets the same `trace_id` for all the batches in the same
       operation, so that it is possible to tie together the logs to all the
       batches in the same operation. Limited to 256 characters. This is expected,
       but not required, to be globally unique.
       
      string trace_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for traceId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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