public static final class StreamMetastorePartitionsRequest.Builder extends 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.v1alpha.StreamMetastorePartitionsRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
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];
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];
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];
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];
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];
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
|
public StreamMetastorePartitionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public StreamMetastorePartitionsRequest build()
public StreamMetastorePartitionsRequest buildPartial()
public StreamMetastorePartitionsRequest.Builder clear()
Overrides
public StreamMetastorePartitionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
public StreamMetastorePartitionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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) = { ... }
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];
public StreamMetastorePartitionsRequest.Builder clone()
Overrides
public StreamMetastorePartitionsRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 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
|
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];
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 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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public StreamMetastorePartitionsRequest.Builder mergeFrom(StreamMetastorePartitionsRequest other)
public StreamMetastorePartitionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public StreamMetastorePartitionsRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final StreamMetastorePartitionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
public StreamMetastorePartitionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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];
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];
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 |
String
The parent to set.
|
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 |
ByteString
The bytes for parent to set.
|
public StreamMetastorePartitionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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 |
boolean
The skipExistingPartitions to set.
|
public final StreamMetastorePartitionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides