Class BatchCreatePartitionsRequest.Builder (0.76.0)

public static final class BatchCreatePartitionsRequest.Builder extends GeneratedMessage.Builder<BatchCreatePartitionsRequest.Builder> implements BatchCreatePartitionsRequestOrBuilder

Request message for the BatchCreatePartitions method.

Protobuf type google.cloud.biglake.hive.v1beta.BatchCreatePartitionsRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends CreatePartitionRequest> values)

public BatchCreatePartitionsRequest.Builder addAllRequests(Iterable<? extends CreatePartitionRequest> values)

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.biglake.hive.v1beta.CreatePartitionRequest>
Returns
Type Description
BatchCreatePartitionsRequest.Builder

addRequests(CreatePartitionRequest value)

public BatchCreatePartitionsRequest.Builder addRequests(CreatePartitionRequest value)

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CreatePartitionRequest
Returns
Type Description
BatchCreatePartitionsRequest.Builder

addRequests(CreatePartitionRequest.Builder builderForValue)

public BatchCreatePartitionsRequest.Builder addRequests(CreatePartitionRequest.Builder builderForValue)

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CreatePartitionRequest.Builder
Returns
Type Description
BatchCreatePartitionsRequest.Builder

addRequests(int index, CreatePartitionRequest value)

public BatchCreatePartitionsRequest.Builder addRequests(int index, CreatePartitionRequest value)

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CreatePartitionRequest
Returns
Type Description
BatchCreatePartitionsRequest.Builder

addRequests(int index, CreatePartitionRequest.Builder builderForValue)

public BatchCreatePartitionsRequest.Builder addRequests(int index, CreatePartitionRequest.Builder builderForValue)

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CreatePartitionRequest.Builder
Returns
Type Description
BatchCreatePartitionsRequest.Builder

addRequestsBuilder()

public CreatePartitionRequest.Builder addRequestsBuilder()

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreatePartitionRequest.Builder

addRequestsBuilder(int index)

public CreatePartitionRequest.Builder addRequestsBuilder(int index)

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreatePartitionRequest.Builder

build()

public BatchCreatePartitionsRequest build()
Returns
Type Description
BatchCreatePartitionsRequest

buildPartial()

public BatchCreatePartitionsRequest buildPartial()
Returns
Type Description
BatchCreatePartitionsRequest

clear()

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

clearParent()

public BatchCreatePartitionsRequest.Builder clearParent()

Required. Reference to the table to where the partitions to be added, in the format of projects/{project}/catalogs/{catalogs}/databases/{database}/tables/{table}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
BatchCreatePartitionsRequest.Builder

This builder for chaining.

clearRequests()

public BatchCreatePartitionsRequest.Builder clearRequests()

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchCreatePartitionsRequest.Builder

clearSkipExistingPartitions()

public BatchCreatePartitionsRequest.Builder clearSkipExistingPartitions()

Optional. Corresponds to the ifNotExists flag in the Hive Metastore APIs. 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. A maximum of 900 partitions can be inserted in a batch.

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

Returns
Type Description
BatchCreatePartitionsRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public BatchCreatePartitionsRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreatePartitionsRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Reference to the table to where the partitions to be added, in the format of projects/{project}/catalogs/{catalogs}/databases/{database}/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 partitions to be added, in the format of projects/{project}/catalogs/{catalogs}/databases/{database}/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 CreatePartitionRequest getRequests(int index)

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreatePartitionRequest

getRequestsBuilder(int index)

public CreatePartitionRequest.Builder getRequestsBuilder(int index)

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreatePartitionRequest.Builder

getRequestsBuilderList()

public List<CreatePartitionRequest.Builder> getRequestsBuilderList()

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRequestsList()

public List<CreatePartitionRequest> getRequestsList()

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CreatePartitionRequest>

getRequestsOrBuilder(int index)

public CreatePartitionRequestOrBuilder getRequestsOrBuilder(int index)

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CreatePartitionRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends CreatePartitionRequestOrBuilder> getRequestsOrBuilderList()

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.biglake.hive.v1beta.CreatePartitionRequestOrBuilder>

getSkipExistingPartitions()

public boolean getSkipExistingPartitions()

Optional. Corresponds to the ifNotExists flag in the Hive Metastore APIs. 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. A maximum of 900 partitions can be inserted in a batch.

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreatePartitionsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeRequests(int index)

public BatchCreatePartitionsRequest.Builder removeRequests(int index)

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchCreatePartitionsRequest.Builder

setParent(String value)

public BatchCreatePartitionsRequest.Builder setParent(String value)

Required. Reference to the table to where the partitions to be added, in the format of projects/{project}/catalogs/{catalogs}/databases/{database}/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
BatchCreatePartitionsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreatePartitionsRequest.Builder setParentBytes(ByteString value)

Required. Reference to the table to where the partitions to be added, in the format of projects/{project}/catalogs/{catalogs}/databases/{database}/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
BatchCreatePartitionsRequest.Builder

This builder for chaining.

setRequests(int index, CreatePartitionRequest value)

public BatchCreatePartitionsRequest.Builder setRequests(int index, CreatePartitionRequest value)

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value CreatePartitionRequest
Returns
Type Description
BatchCreatePartitionsRequest.Builder

setRequests(int index, CreatePartitionRequest.Builder builderForValue)

public BatchCreatePartitionsRequest.Builder setRequests(int index, CreatePartitionRequest.Builder builderForValue)

Required. Requests to add partitions to the table.

repeated .google.cloud.biglake.hive.v1beta.CreatePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue CreatePartitionRequest.Builder
Returns
Type Description
BatchCreatePartitionsRequest.Builder

setSkipExistingPartitions(boolean value)

public BatchCreatePartitionsRequest.Builder setSkipExistingPartitions(boolean value)

Optional. Corresponds to the ifNotExists flag in the Hive Metastore APIs. 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. A maximum of 900 partitions can be inserted in a batch.

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

Parameter
Name Description
value boolean

The skipExistingPartitions to set.

Returns
Type Description
BatchCreatePartitionsRequest.Builder

This builder for chaining.