Class StreamMetastorePartitionsRequest (3.10.2)

public final class StreamMetastorePartitionsRequest extends 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > StreamMetastorePartitionsRequest

Static Fields

METASTORE_PARTITIONS_FIELD_NUMBER

public static final int METASTORE_PARTITIONS_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

SKIP_EXISTING_PARTITIONS_FIELD_NUMBER

public static final int SKIP_EXISTING_PARTITIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StreamMetastorePartitionsRequest getDefaultInstance()
Returns
Type Description
StreamMetastorePartitionsRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static StreamMetastorePartitionsRequest.Builder newBuilder()
Returns
Type Description
StreamMetastorePartitionsRequest.Builder

newBuilder(StreamMetastorePartitionsRequest prototype)

public static StreamMetastorePartitionsRequest.Builder newBuilder(StreamMetastorePartitionsRequest prototype)
Parameter
Name Description
prototype StreamMetastorePartitionsRequest
Returns
Type Description
StreamMetastorePartitionsRequest.Builder

parseDelimitedFrom(InputStream input)

public static StreamMetastorePartitionsRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamMetastorePartitionsRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamMetastorePartitionsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamMetastorePartitionsRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StreamMetastorePartitionsRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StreamMetastorePartitionsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StreamMetastorePartitionsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamMetastorePartitionsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StreamMetastorePartitionsRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StreamMetastorePartitionsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StreamMetastorePartitionsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamMetastorePartitionsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StreamMetastorePartitionsRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StreamMetastorePartitionsRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamMetastorePartitionsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamMetastorePartitionsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StreamMetastorePartitionsRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamMetastorePartitionsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamMetastorePartitionsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamMetastorePartitionsRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StreamMetastorePartitionsRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StreamMetastorePartitionsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StreamMetastorePartitionsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamMetastorePartitionsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StreamMetastorePartitionsRequest> parser()
Returns
Type Description
Parser<StreamMetastorePartitionsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public StreamMetastorePartitionsRequest getDefaultInstanceForType()
Returns
Type Description
StreamMetastorePartitionsRequest

getMetastorePartitions(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
MetastorePartition

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];

Returns
Type Description
int

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];

Returns
Type Description
List<MetastorePartition>

getMetastorePartitionsOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
MetastorePartitionOrBuilder

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];

Returns
Type Description
List<? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartitionOrBuilder>

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) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

public Parser<StreamMetastorePartitionsRequest> getParserForType()
Returns
Type Description
Parser<StreamMetastorePartitionsRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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];

Returns
Type Description
boolean

The skipExistingPartitions.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public StreamMetastorePartitionsRequest.Builder newBuilderForType()
Returns
Type Description
StreamMetastorePartitionsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StreamMetastorePartitionsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StreamMetastorePartitionsRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public StreamMetastorePartitionsRequest.Builder toBuilder()
Returns
Type Description
StreamMetastorePartitionsRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException