Class BatchCreatePartitionsRequest (0.76.0)

public final class BatchCreatePartitionsRequest extends GeneratedMessage implements BatchCreatePartitionsRequestOrBuilder

Request message for the BatchCreatePartitions method.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > BatchCreatePartitionsRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

REQUESTS_FIELD_NUMBER

public static final int REQUESTS_FIELD_NUMBER
Field Value
Type Description
int

SKIP_EXISTING_PARTITIONS_FIELD_NUMBER

public static final int SKIP_EXISTING_PARTITIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BatchCreatePartitionsRequest getDefaultInstance()
Returns
Type Description
BatchCreatePartitionsRequest

getDescriptor()

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

newBuilder()

public static BatchCreatePartitionsRequest.Builder newBuilder()
Returns
Type Description
BatchCreatePartitionsRequest.Builder

newBuilder(BatchCreatePartitionsRequest prototype)

public static BatchCreatePartitionsRequest.Builder newBuilder(BatchCreatePartitionsRequest prototype)
Parameter
Name Description
prototype BatchCreatePartitionsRequest
Returns
Type Description
BatchCreatePartitionsRequest.Builder

parseDelimitedFrom(InputStream input)

public static BatchCreatePartitionsRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchCreatePartitionsRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreatePartitionsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreatePartitionsRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BatchCreatePartitionsRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BatchCreatePartitionsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchCreatePartitionsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreatePartitionsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchCreatePartitionsRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BatchCreatePartitionsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchCreatePartitionsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreatePartitionsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchCreatePartitionsRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BatchCreatePartitionsRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreatePartitionsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreatePartitionsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BatchCreatePartitionsRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchCreatePartitionsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreatePartitionsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreatePartitionsRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BatchCreatePartitionsRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BatchCreatePartitionsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchCreatePartitionsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreatePartitionsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BatchCreatePartitionsRequest> parser()
Returns
Type Description
Parser<BatchCreatePartitionsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public BatchCreatePartitionsRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreatePartitionsRequest

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.

getParserForType()

public Parser<BatchCreatePartitionsRequest> getParserForType()
Returns
Type Description
Parser<BatchCreatePartitionsRequest>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BatchCreatePartitionsRequest.Builder newBuilderForType()
Returns
Type Description
BatchCreatePartitionsRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected BatchCreatePartitionsRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BatchCreatePartitionsRequest.Builder
Overrides

toBuilder()

public BatchCreatePartitionsRequest.Builder toBuilder()
Returns
Type Description
BatchCreatePartitionsRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException