Class StreamMetastorePartitionsRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsRequest
All Implemented Interfaces:
StreamMetastorePartitionsRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class StreamMetastorePartitionsRequest extends com.google.protobuf.GeneratedMessageV3 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.v1alpha.StreamMetastorePartitionsRequest
See Also:
  • Field Details

    • PARENT_FIELD_NUMBER

      public static final int PARENT_FIELD_NUMBER
      See Also:
    • METASTORE_PARTITIONS_FIELD_NUMBER

      public static final int METASTORE_PARTITIONS_FIELD_NUMBER
      See Also:
    • SKIP_EXISTING_PARTITIONS_FIELD_NUMBER

      public static final int SKIP_EXISTING_PARTITIONS_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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.
    • getMetastorePartitionsList

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

      public int getMetastorePartitionsCount()
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1alpha.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.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetastorePartitions in interface StreamMetastorePartitionsRequestOrBuilder
    • getMetastorePartitionsOrBuilder

      public MetastorePartitionOrBuilder getMetastorePartitionsOrBuilder(int index)
       Optional. A list of metastore partitions to be added to the table.
       
      repeated .google.cloud.bigquery.storage.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMetastorePartitionsOrBuilder in interface StreamMetastorePartitionsRequestOrBuilder
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static StreamMetastorePartitionsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamMetastorePartitionsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamMetastorePartitionsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamMetastorePartitionsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamMetastorePartitionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamMetastorePartitionsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamMetastorePartitionsRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StreamMetastorePartitionsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StreamMetastorePartitionsRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static StreamMetastorePartitionsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StreamMetastorePartitionsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StreamMetastorePartitionsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public StreamMetastorePartitionsRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static StreamMetastorePartitionsRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected StreamMetastorePartitionsRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static StreamMetastorePartitionsRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<StreamMetastorePartitionsRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<StreamMetastorePartitionsRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public StreamMetastorePartitionsRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder