Class BatchCreateMetastorePartitionsRequest.Builder (3.10.2)

public static final class BatchCreateMetastorePartitionsRequest.Builder extends GeneratedMessageV3.Builder<BatchCreateMetastorePartitionsRequest.Builder> implements BatchCreateMetastorePartitionsRequestOrBuilder

Request message for BatchCreateMetastorePartitions.

Protobuf type google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends CreateMetastorePartitionRequest> values)

public BatchCreateMetastorePartitionsRequest.Builder addAllRequests(Iterable<? extends CreateMetastorePartitionRequest> values)

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest>
Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRequests(CreateMetastorePartitionRequest value)

public BatchCreateMetastorePartitionsRequest.Builder addRequests(CreateMetastorePartitionRequest value)

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CreateMetastorePartitionRequest
Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder

addRequests(CreateMetastorePartitionRequest.Builder builderForValue)

public BatchCreateMetastorePartitionsRequest.Builder addRequests(CreateMetastorePartitionRequest.Builder builderForValue)

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CreateMetastorePartitionRequest.Builder
Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder

addRequests(int index, CreateMetastorePartitionRequest value)

public BatchCreateMetastorePartitionsRequest.Builder addRequests(int index, CreateMetastorePartitionRequest value)

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CreateMetastorePartitionRequest
Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder

addRequests(int index, CreateMetastorePartitionRequest.Builder builderForValue)

public BatchCreateMetastorePartitionsRequest.Builder addRequests(int index, CreateMetastorePartitionRequest.Builder builderForValue)

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CreateMetastorePartitionRequest.Builder
Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder

addRequestsBuilder()

public CreateMetastorePartitionRequest.Builder addRequestsBuilder()

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateMetastorePartitionRequest.Builder

addRequestsBuilder(int index)

public CreateMetastorePartitionRequest.Builder addRequestsBuilder(int index)

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateMetastorePartitionRequest.Builder

build()

public BatchCreateMetastorePartitionsRequest build()
Returns
Type Description
BatchCreateMetastorePartitionsRequest

buildPartial()

public BatchCreateMetastorePartitionsRequest buildPartial()
Returns
Type Description
BatchCreateMetastorePartitionsRequest

clear()

public BatchCreateMetastorePartitionsRequest.Builder clear()
Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public BatchCreateMetastorePartitionsRequest.Builder clearParent()

Required. Reference to the table to where the metastore partitions 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
BatchCreateMetastorePartitionsRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreateMetastorePartitionsRequest.Builder clearRequests()

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder

clearSkipExistingPartitions()

public BatchCreateMetastorePartitionsRequest.Builder clearSkipExistingPartitions()

Optional. Mimics the ifNotExists flag in IMetaStoreClient add_partitions(..). If the flag is set to false, the server will return ALREADY_EXISTS if any partition already exists. If the flag is set to true, the server will skip existing partitions and insert only the non-existing partitions.

bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BatchCreateMetastorePartitionsRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateMetastorePartitionsRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Reference to the table to where the metastore partitions 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 metastore partitions 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.

getRequests(int index)

public CreateMetastorePartitionRequest getRequests(int index)

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateMetastorePartitionRequest

getRequestsBuilder(int index)

public CreateMetastorePartitionRequest.Builder getRequestsBuilder(int index)

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateMetastorePartitionRequest.Builder

getRequestsBuilderList()

public List<CreateMetastorePartitionRequest.Builder> getRequestsBuilderList()

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRequestsList()

public List<CreateMetastorePartitionRequest> getRequestsList()

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CreateMetastorePartitionRequest>

getRequestsOrBuilder(int index)

public CreateMetastorePartitionRequestOrBuilder getRequestsOrBuilder(int index)

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreateMetastorePartitionRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreateMetastorePartitionRequestOrBuilder> getRequestsOrBuilderList()

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

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

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 if any partition already exists. If the flag is set to true, the server will skip existing partitions and insert only the non-existing partitions.

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(BatchCreateMetastorePartitionsRequest other)

public BatchCreateMetastorePartitionsRequest.Builder mergeFrom(BatchCreateMetastorePartitionsRequest other)
Parameter
Name Description
other BatchCreateMetastorePartitionsRequest
Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateMetastorePartitionsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRequests(int index)

public BatchCreateMetastorePartitionsRequest.Builder removeRequests(int index)

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public BatchCreateMetastorePartitionsRequest.Builder setParent(String value)

Required. Reference to the table to where the metastore partitions 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
BatchCreateMetastorePartitionsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateMetastorePartitionsRequest.Builder setParentBytes(ByteString value)

Required. Reference to the table to where the metastore partitions 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
BatchCreateMetastorePartitionsRequest.Builder

This builder for chaining.

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

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

setRequests(int index, CreateMetastorePartitionRequest value)

public BatchCreateMetastorePartitionsRequest.Builder setRequests(int index, CreateMetastorePartitionRequest value)

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CreateMetastorePartitionRequest
Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder

setRequests(int index, CreateMetastorePartitionRequest.Builder builderForValue)

public BatchCreateMetastorePartitionsRequest.Builder setRequests(int index, CreateMetastorePartitionRequest.Builder builderForValue)

Required. Requests to add metastore partitions to the table.

repeated .google.cloud.bigquery.storage.v1alpha.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CreateMetastorePartitionRequest.Builder
Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder

setSkipExistingPartitions(boolean value)

public BatchCreateMetastorePartitionsRequest.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 if any partition already exists. If the flag is set to true, the server will skip existing partitions and insert only the non-existing partitions.

bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The skipExistingPartitions to set.

Returns
Type Description
BatchCreateMetastorePartitionsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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