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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int METASTORE_PARTITIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PARENT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SKIP_EXISTING_PARTITIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static StreamMetastorePartitionsRequest getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static StreamMetastorePartitionsRequest.Builder newBuilder()
public static StreamMetastorePartitionsRequest.Builder newBuilder(StreamMetastorePartitionsRequest prototype)
public static StreamMetastorePartitionsRequest parseDelimitedFrom(InputStream input)
public static StreamMetastorePartitionsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamMetastorePartitionsRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static StreamMetastorePartitionsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static StreamMetastorePartitionsRequest parseFrom(ByteString data)
public static StreamMetastorePartitionsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StreamMetastorePartitionsRequest parseFrom(CodedInputStream input)
public static StreamMetastorePartitionsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamMetastorePartitionsRequest parseFrom(InputStream input)
public static StreamMetastorePartitionsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamMetastorePartitionsRequest parseFrom(ByteBuffer data)
public static StreamMetastorePartitionsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<StreamMetastorePartitionsRequest> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public StreamMetastorePartitionsRequest getDefaultInstanceForType()
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
|
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 |
|
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];
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
|
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> |
|
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.
|
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.
|
public Parser<StreamMetastorePartitionsRequest> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public StreamMetastorePartitionsRequest.Builder newBuilderForType()
protected StreamMetastorePartitionsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public StreamMetastorePartitionsRequest.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides