Class StreamMetastorePartitionsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
com.google.cloud.bigquery.storage.v1beta.StreamMetastorePartitionsRequest.Builder
- All Implemented Interfaces:
StreamMetastorePartitionsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StreamMetastorePartitionsRequest
public static final class StreamMetastorePartitionsRequest.Builder
extends com.google.protobuf.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.v1beta.StreamMetastorePartitionsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllMetastorePartitions(Iterable<? extends MetastorePartition> values) Optional.addMetastorePartitions(int index, MetastorePartition value) Optional.addMetastorePartitions(int index, MetastorePartition.Builder builderForValue) Optional.Optional.addMetastorePartitions(MetastorePartition.Builder builderForValue) Optional.Optional.addMetastorePartitionsBuilder(int index) Optional.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Optional.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Required.Optional.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMetastorePartitions(int index) Optional.getMetastorePartitionsBuilder(int index) Optional.Optional.intOptional.Optional.getMetastorePartitionsOrBuilder(int index) Optional.List<? extends MetastorePartitionOrBuilder>Optional.Required.com.google.protobuf.ByteStringRequired.booleanOptional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeMetastorePartitions(int index) Optional.setMetastorePartitions(int index, MetastorePartition value) Optional.setMetastorePartitions(int index, MetastorePartition.Builder builderForValue) Optional.Required.setParentBytes(com.google.protobuf.ByteString value) Required.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSkipExistingPartitions(boolean value) Optional.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
-
setField
public StreamMetastorePartitionsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
-
clearField
public StreamMetastorePartitionsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
-
clearOneof
public StreamMetastorePartitionsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
-
setRepeatedField
public StreamMetastorePartitionsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
-
addRepeatedField
public StreamMetastorePartitionsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamMetastorePartitionsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
-
mergeFrom
public StreamMetastorePartitionsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamMetastorePartitionsRequest.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getParentin interfaceStreamMetastorePartitionsRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.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) = { ... }- Specified by:
getParentBytesin interfaceStreamMetastorePartitionsRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
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) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setParentBytes
public StreamMetastorePartitionsRequest.Builder setParentBytes(com.google.protobuf.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) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getMetastorePartitionsList
Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetastorePartitionsListin interfaceStreamMetastorePartitionsRequestOrBuilder
-
getMetastorePartitionsCount
public int getMetastorePartitionsCount()Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetastorePartitionsCountin interfaceStreamMetastorePartitionsRequestOrBuilder
-
getMetastorePartitions
Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetastorePartitionsin interfaceStreamMetastorePartitionsRequestOrBuilder
-
setMetastorePartitions
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.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setMetastorePartitions
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.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addMetastorePartitions
Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addMetastorePartitions
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.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addMetastorePartitions
public StreamMetastorePartitionsRequest.Builder addMetastorePartitions(MetastorePartition.Builder builderForValue) Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addMetastorePartitions
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.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addAllMetastorePartitions
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.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearMetastorePartitions
Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
removeMetastorePartitions
Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getMetastorePartitionsBuilder
Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getMetastorePartitionsOrBuilder
Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetastorePartitionsOrBuilderin interfaceStreamMetastorePartitionsRequestOrBuilder
-
getMetastorePartitionsOrBuilderList
Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetastorePartitionsOrBuilderListin interfaceStreamMetastorePartitionsRequestOrBuilder
-
addMetastorePartitionsBuilder
Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
addMetastorePartitionsBuilder
Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getMetastorePartitionsBuilderList
Optional. A list of metastore partitions to be added to the table.
repeated .google.cloud.bigquery.storage.v1beta.MetastorePartition metastore_partitions = 2 [(.google.api.field_behavior) = OPTIONAL]; -
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];- Specified by:
getSkipExistingPartitionsin interfaceStreamMetastorePartitionsRequestOrBuilder- Returns:
- The skipExistingPartitions.
-
setSkipExistingPartitions
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];- Parameters:
value- The skipExistingPartitions to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUnknownFields
public final StreamMetastorePartitionsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
-
mergeUnknownFields
public final StreamMetastorePartitionsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamMetastorePartitionsRequest.Builder>
-