public static final class BatchCreateMetastorePartitionsRequest.Builder extends GeneratedMessageV3.Builder<BatchCreateMetastorePartitionsRequest.Builder> implements BatchCreateMetastorePartitionsRequestOrBuilder
Request message for BatchCreateMetastorePartitions.
Protobuf type
google.cloud.bigquery.storage.v1beta.BatchCreateMetastorePartitionsRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BatchCreateMetastorePartitionsRequest.BuilderStatic 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.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.bigquery.storage.v1beta.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 |
addRequests(CreateMetastorePartitionRequest value)
public BatchCreateMetastorePartitionsRequest.Builder addRequests(CreateMetastorePartitionRequest value)
Required. Requests to add metastore partitions to the table.
repeated .google.cloud.bigquery.storage.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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 |
clearField(Descriptors.FieldDescriptor field)
public BatchCreateMetastorePartitionsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
BatchCreateMetastorePartitionsRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchCreateMetastorePartitionsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
BatchCreateMetastorePartitionsRequest.Builder |
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.v1beta.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. A maximum of 900 partitions can be inserted in a batch.
bool skip_existing_partitions = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BatchCreateMetastorePartitionsRequest.Builder |
This builder for chaining. |
clearTraceId()
public BatchCreateMetastorePartitionsRequest.Builder clearTraceId()
Optional. Optional trace id to be used for debugging. It is expected that
the client sets the same trace_id
for all the batches in the same
operation, so that it is possible to tie together the logs to all the
batches in the same operation. Limited to 256 characters. This is expected,
but not required, to be globally unique.
string trace_id = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BatchCreateMetastorePartitionsRequest.Builder |
This builder for chaining. |
clone()
public BatchCreateMetastorePartitionsRequest.Builder clone()
Returns | |
---|---|
Type | Description |
BatchCreateMetastorePartitionsRequest.Builder |
getDefaultInstanceForType()
public BatchCreateMetastorePartitionsRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
BatchCreateMetastorePartitionsRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.CreateMetastorePartitionRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.bigquery.storage.v1beta.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. 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. |
getTraceId()
public String getTraceId()
Optional. Optional trace id to be used for debugging. It is expected that
the client sets the same trace_id
for all the batches in the same
operation, so that it is possible to tie together the logs to all the
batches in the same operation. Limited to 256 characters. This is expected,
but not required, to be globally unique.
string trace_id = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The traceId. |
getTraceIdBytes()
public ByteString getTraceIdBytes()
Optional. Optional trace id to be used for debugging. It is expected that
the client sets the same trace_id
for all the batches in the same
operation, so that it is possible to tie together the logs to all the
batches in the same operation. Limited to 256 characters. This is expected,
but not required, to be globally unique.
string trace_id = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for traceId. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public BatchCreateMetastorePartitionsRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
BatchCreateMetastorePartitionsRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchCreateMetastorePartitionsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BatchCreateMetastorePartitionsRequest.Builder |
removeRequests(int index)
public BatchCreateMetastorePartitionsRequest.Builder removeRequests(int index)
Required. Requests to add metastore partitions to the table.
repeated .google.cloud.bigquery.storage.v1beta.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 |
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 |
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.v1beta.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.v1beta.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. 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 |
BatchCreateMetastorePartitionsRequest.Builder |
This builder for chaining. |
setTraceId(String value)
public BatchCreateMetastorePartitionsRequest.Builder setTraceId(String value)
Optional. Optional trace id to be used for debugging. It is expected that
the client sets the same trace_id
for all the batches in the same
operation, so that it is possible to tie together the logs to all the
batches in the same operation. Limited to 256 characters. This is expected,
but not required, to be globally unique.
string trace_id = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The traceId to set. |
Returns | |
---|---|
Type | Description |
BatchCreateMetastorePartitionsRequest.Builder |
This builder for chaining. |
setTraceIdBytes(ByteString value)
public BatchCreateMetastorePartitionsRequest.Builder setTraceIdBytes(ByteString value)
Optional. Optional trace id to be used for debugging. It is expected that
the client sets the same trace_id
for all the batches in the same
operation, so that it is possible to tie together the logs to all the
batches in the same operation. Limited to 256 characters. This is expected,
but not required, to be globally unique.
string trace_id = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for traceId 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 |