Package com.google.cloud.dataplex.v1
Class Partition.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
- com.google.cloud.dataplex.v1.Partition.Builder
-
- All Implemented Interfaces:
PartitionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Partition
public static final class Partition.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder> implements PartitionOrBuilder
Represents partition metadata contained within entity instances.
Protobuf typegoogle.cloud.dataplex.v1.Partition
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Partition.BuilderaddAllValues(Iterable<String> values)Required.Partition.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Partition.BuilderaddValues(String value)Required.Partition.BuilderaddValuesBytes(com.google.protobuf.ByteString value)Required.Partitionbuild()PartitionbuildPartial()Partition.Builderclear()Partition.BuilderclearEtag()Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated.Partition.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Partition.BuilderclearLocation()Required.Partition.BuilderclearName()Output only.Partition.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Partition.BuilderclearValues()Required.Partition.Builderclone()PartitiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEtag()Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated.com.google.protobuf.ByteStringgetEtagBytes()Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated.StringgetLocation()Required.com.google.protobuf.ByteStringgetLocationBytes()Required.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.StringgetValues(int index)Required.com.google.protobuf.ByteStringgetValuesBytes(int index)Required.intgetValuesCount()Required.com.google.protobuf.ProtocolStringListgetValuesList()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Partition.BuildermergeFrom(Partition other)Partition.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Partition.BuildermergeFrom(com.google.protobuf.Message other)Partition.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Partition.BuildersetEtag(String value)Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated.Partition.BuildersetEtagBytes(com.google.protobuf.ByteString value)Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated.Partition.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Partition.BuildersetLocation(String value)Required.Partition.BuildersetLocationBytes(com.google.protobuf.ByteString value)Required.Partition.BuildersetName(String value)Output only.Partition.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.Partition.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Partition.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Partition.BuildersetValues(int index, String value)Required.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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<Partition.Builder>
-
clear
public Partition.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<Partition.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<Partition.Builder>
-
getDefaultInstanceForType
public Partition getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Partition build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Partition buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Partition.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<Partition.Builder>
-
setField
public Partition.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<Partition.Builder>
-
clearField
public Partition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
clearOneof
public Partition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
setRepeatedField
public Partition.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<Partition.Builder>
-
addRepeatedField
public Partition.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<Partition.Builder>
-
mergeFrom
public Partition.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Partition.Builder>
-
mergeFrom
public Partition.Builder mergeFrom(Partition other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
mergeFrom
public Partition.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<Partition.Builder>- Throws:
IOException
-
getName
public String getName()
Output only. Partition values used in the HTTP URL must be double encoded. For example, `url_encode(url_encode(value))` can be used to encode "US:CA/CA#Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response retains the encoded format.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfacePartitionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. Partition values used in the HTTP URL must be double encoded. For example, `url_encode(url_encode(value))` can be used to encode "US:CA/CA#Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response retains the encoded format.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfacePartitionOrBuilder- Returns:
- The bytes for name.
-
setName
public Partition.Builder setName(String value)
Output only. Partition values used in the HTTP URL must be double encoded. For example, `url_encode(url_encode(value))` can be used to encode "US:CA/CA#Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response retains the encoded format.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Partition.Builder clearName()
Output only. Partition values used in the HTTP URL must be double encoded. For example, `url_encode(url_encode(value))` can be used to encode "US:CA/CA#Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response retains the encoded format.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
public Partition.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Partition values used in the HTTP URL must be double encoded. For example, `url_encode(url_encode(value))` can be used to encode "US:CA/CA#Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response retains the encoded format.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getValuesList
public com.google.protobuf.ProtocolStringList getValuesList()
Required. Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getValuesListin interfacePartitionOrBuilder- Returns:
- A list containing the values.
-
getValuesCount
public int getValuesCount()
Required. Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getValuesCountin interfacePartitionOrBuilder- Returns:
- The count of values.
-
getValues
public String getValues(int index)
Required. Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getValuesin interfacePartitionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The values at the given index.
-
getValuesBytes
public com.google.protobuf.ByteString getValuesBytes(int index)
Required. Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getValuesBytesin interfacePartitionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the values at the given index.
-
setValues
public Partition.Builder setValues(int index, String value)
Required. Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
index- The index to set the value at.value- The values to set.- Returns:
- This builder for chaining.
-
addValues
public Partition.Builder addValues(String value)
Required. Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The values to add.- Returns:
- This builder for chaining.
-
addAllValues
public Partition.Builder addAllValues(Iterable<String> values)
Required. Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
values- The values to add.- Returns:
- This builder for chaining.
-
clearValues
public Partition.Builder clearValues()
Required. Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
addValuesBytes
public Partition.Builder addValuesBytes(com.google.protobuf.ByteString value)
Required. Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes of the values to add.- Returns:
- This builder for chaining.
-
getLocation
public String getLocation()
Required. Immutable. The location of the entity data within the partition, for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getLocationin interfacePartitionOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()
Required. Immutable. The location of the entity data within the partition, for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getLocationBytesin interfacePartitionOrBuilder- Returns:
- The bytes for location.
-
setLocation
public Partition.Builder setLocation(String value)
Required. Immutable. The location of the entity data within the partition, for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
public Partition.Builder clearLocation()
Required. Immutable. The location of the entity data within the partition, for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setLocationBytes
public Partition.Builder setLocationBytes(com.google.protobuf.ByteString value)
Required. Immutable. The location of the entity data within the partition, for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
getEtag
@Deprecated public String getEtag()
Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=513Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getEtagin interfacePartitionOrBuilder- Returns:
- The etag.
-
getEtagBytes
@Deprecated public com.google.protobuf.ByteString getEtagBytes()
Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=513Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getEtagBytesin interfacePartitionOrBuilder- Returns:
- The bytes for etag.
-
setEtag
@Deprecated public Partition.Builder setEtag(String value)
Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=513Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
@Deprecated public Partition.Builder clearEtag()
Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=513Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEtagBytes
@Deprecated public Partition.Builder setEtagBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=513Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Partition.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
mergeUnknownFields
public final Partition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
-