public static final class StreamMetastorePartitionsRequest.Builder extends GeneratedMessage.Builder<StreamMetastorePartitionsRequest.Builder> implements StreamMetastorePartitionsRequestOrBuilderThe 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
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StreamMetastorePartitionsRequest.BuilderImplements
StreamMetastorePartitionsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllMetastorePartitions(Iterable<? extends MetastorePartition> values)
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.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.bigquery.storage.v1alpha.MetastorePartition> |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
|
addMetastorePartitions(MetastorePartition value)
public StreamMetastorePartitionsRequest.Builder addMetastorePartitions(MetastorePartition value)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 |
value |
MetastorePartition |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
|
addMetastorePartitions(MetastorePartition.Builder builderForValue)
public StreamMetastorePartitionsRequest.Builder addMetastorePartitions(MetastorePartition.Builder builderForValue)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 |
builderForValue |
MetastorePartition.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
|
addMetastorePartitions(int index, MetastorePartition value)
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.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
MetastorePartition |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
|
addMetastorePartitions(int index, MetastorePartition.Builder builderForValue)
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.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
MetastorePartition.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
|
addMetastorePartitionsBuilder()
public MetastorePartition.Builder addMetastorePartitionsBuilder()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 |
MetastorePartition.Builder |
|
addMetastorePartitionsBuilder(int index)
public MetastorePartition.Builder addMetastorePartitionsBuilder(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.Builder |
|
build()
public StreamMetastorePartitionsRequest build()| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest |
|
buildPartial()
public StreamMetastorePartitionsRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest |
|
clear()
public StreamMetastorePartitionsRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
|
clearMetastorePartitions()
public StreamMetastorePartitionsRequest.Builder clearMetastorePartitions()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 |
StreamMetastorePartitionsRequest.Builder |
|
clearParent()
public StreamMetastorePartitionsRequest.Builder 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 | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
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 | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public StreamMetastorePartitionsRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
|
getMetastorePartitionsBuilder(int index)
public MetastorePartition.Builder getMetastorePartitionsBuilder(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.Builder |
|
getMetastorePartitionsBuilderList()
public List<MetastorePartition.Builder> getMetastorePartitionsBuilderList()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<Builder> |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(StreamMetastorePartitionsRequest other)
public StreamMetastorePartitionsRequest.Builder mergeFrom(StreamMetastorePartitionsRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
StreamMetastorePartitionsRequest |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StreamMetastorePartitionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StreamMetastorePartitionsRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
|
removeMetastorePartitions(int index)
public StreamMetastorePartitionsRequest.Builder removeMetastorePartitions(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 |
StreamMetastorePartitionsRequest.Builder |
|
setMetastorePartitions(int index, MetastorePartition value)
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.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
MetastorePartition |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
|
setMetastorePartitions(int index, MetastorePartition.Builder builderForValue)
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.v1alpha.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
MetastorePartition.Builder |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
|
setParent(String value)
public StreamMetastorePartitionsRequest.Builder setParent(String 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public StreamMetastorePartitionsRequest.Builder setParentBytes(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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
This builder for chaining. |
setSkipExistingPartitions(boolean value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe skipExistingPartitions to set. |
| Returns | |
|---|---|
| Type | Description |
StreamMetastorePartitionsRequest.Builder |
This builder for chaining. |