Class StreamMetastorePartitionsRequest.Builder (3.9.2)

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

Static 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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamMetastorePartitionsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamMetastorePartitionsRequest.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public StreamMetastorePartitionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StreamMetastorePartitionsRequest.Builder
Overrides

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

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamMetastorePartitionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StreamMetastorePartitionsRequest.Builder
Overrides

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.

clone()

public StreamMetastorePartitionsRequest.Builder clone()
Returns
Type Description
StreamMetastorePartitionsRequest.Builder
Overrides

getDefaultInstanceForType()

public StreamMetastorePartitionsRequest getDefaultInstanceForType()
Returns
Type Description
StreamMetastorePartitionsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StreamMetastorePartitionsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StreamMetastorePartitionsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamMetastorePartitionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamMetastorePartitionsRequest.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public StreamMetastorePartitionsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamMetastorePartitionsRequest.Builder
Overrides

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 String

The 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 ByteString

The bytes for parent to set.

Returns
Type Description
StreamMetastorePartitionsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StreamMetastorePartitionsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StreamMetastorePartitionsRequest.Builder
Overrides

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 boolean

The skipExistingPartitions to set.

Returns
Type Description
StreamMetastorePartitionsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamMetastorePartitionsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamMetastorePartitionsRequest.Builder
Overrides