Class StreamMetastorePartitionsRequest.Builder

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

public static final class StreamMetastorePartitionsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder> implements StreamMetastorePartitionsRequestOrBuilder
 The top-level message sent by the client to the
 [Partitions.StreamMetastorePartitions][] method.
 Follows the default gRPC streaming maximum size of 4 MB.
 
Protobuf type google.cloud.bigquery.storage.v1beta.StreamMetastorePartitionsRequest
  • 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<StreamMetastorePartitionsRequest.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<StreamMetastorePartitionsRequest.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<StreamMetastorePartitionsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public String getParent()
       Required. Reference to the table to where the partition 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 StreamMetastorePartitionsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Reference to the table to where the partition 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 StreamMetastorePartitionsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. Reference to the table to where the partition 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 partition 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 StreamMetastorePartitionsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Reference to the table to where the partition 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.
    • getMetastorePartitionsList

      public List<MetastorePartition> getMetastorePartitionsList()
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetastorePartitionsList in interface StreamMetastorePartitionsRequestOrBuilder
    • getMetastorePartitionsCount

      public int getMetastorePartitionsCount()
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetastorePartitionsCount in interface StreamMetastorePartitionsRequestOrBuilder
    • getMetastorePartitions

      public MetastorePartition getMetastorePartitions(int index)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetastorePartitions in interface StreamMetastorePartitionsRequestOrBuilder
    • setMetastorePartitions

      public StreamMetastorePartitionsRequest.Builder setMetastorePartitions(int index, MetastorePartition value)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setMetastorePartitions

      public StreamMetastorePartitionsRequest.Builder setMetastorePartitions(int index, MetastorePartition.Builder builderForValue)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addMetastorePartitions

      public StreamMetastorePartitionsRequest.Builder addMetastorePartitions(MetastorePartition value)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addMetastorePartitions

      public StreamMetastorePartitionsRequest.Builder addMetastorePartitions(int index, MetastorePartition value)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addMetastorePartitions

      public StreamMetastorePartitionsRequest.Builder addMetastorePartitions(MetastorePartition.Builder builderForValue)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addMetastorePartitions

      public StreamMetastorePartitionsRequest.Builder addMetastorePartitions(int index, MetastorePartition.Builder builderForValue)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllMetastorePartitions

      public StreamMetastorePartitionsRequest.Builder addAllMetastorePartitions(Iterable<? extends MetastorePartition> values)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearMetastorePartitions

      public StreamMetastorePartitionsRequest.Builder clearMetastorePartitions()
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeMetastorePartitions

      public StreamMetastorePartitionsRequest.Builder removeMetastorePartitions(int index)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getMetastorePartitionsBuilder

      public MetastorePartition.Builder getMetastorePartitionsBuilder(int index)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getMetastorePartitionsOrBuilder

      public MetastorePartitionOrBuilder getMetastorePartitionsOrBuilder(int index)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetastorePartitionsOrBuilder in interface StreamMetastorePartitionsRequestOrBuilder
    • getMetastorePartitionsOrBuilderList

      public List<? extends MetastorePartitionOrBuilder> getMetastorePartitionsOrBuilderList()
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetastorePartitionsOrBuilderList in interface StreamMetastorePartitionsRequestOrBuilder
    • addMetastorePartitionsBuilder

      public MetastorePartition.Builder addMetastorePartitionsBuilder()
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addMetastorePartitionsBuilder

      public MetastorePartition.Builder addMetastorePartitionsBuilder(int index)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getMetastorePartitionsBuilderList

      public List<MetastorePartition.Builder> getMetastorePartitionsBuilderList()
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
    • 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 on commit if any partition already exists. If the flag is
       set to true:
        1) the server will skip existing partitions
        insert only the non-existing partitions as part of the commit.
        2) The client must set the `skip_existing_partitions` field to true for
        all requests in the stream.
       
      bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSkipExistingPartitions in interface StreamMetastorePartitionsRequestOrBuilder
      Returns:
      The skipExistingPartitions.
    • setSkipExistingPartitions

      public StreamMetastorePartitionsRequest.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 on commit if any partition already exists. If the flag is
       set to true:
        1) the server will skip existing partitions
        insert only the non-existing partitions as part of the commit.
        2) The client must set the `skip_existing_partitions` field to true for
        all requests in the stream.
       
      bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The skipExistingPartitions to set.
      Returns:
      This builder for chaining.
    • clearSkipExistingPartitions

      public StreamMetastorePartitionsRequest.Builder clearSkipExistingPartitions()
       Optional. Mimics the ifNotExists flag in IMetaStoreClient
       add_partitions(..). If the flag is set to false, the server will return
       ALREADY_EXISTS on commit if any partition already exists. If the flag is
       set to true:
        1) the server will skip existing partitions
        insert only the non-existing partitions as part of the commit.
        2) The client must set the `skip_existing_partitions` field to true for
        all requests in the stream.
       
      bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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