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.Builder
addAllValues(Iterable<String> values)
Required.Partition.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Partition.Builder
addValues(String value)
Required.Partition.Builder
addValuesBytes(com.google.protobuf.ByteString value)
Required.Partition
build()
Partition
buildPartial()
Partition.Builder
clear()
Partition.Builder
clearEtag()
Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated.Partition.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Partition.Builder
clearLocation()
Required.Partition.Builder
clearName()
Output only.Partition.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Partition.Builder
clearValues()
Required.Partition.Builder
clone()
Partition
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getEtag()
Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated.com.google.protobuf.ByteString
getEtagBytes()
Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated.String
getLocation()
Required.com.google.protobuf.ByteString
getLocationBytes()
Required.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getValues(int index)
Required.com.google.protobuf.ByteString
getValuesBytes(int index)
Required.int
getValuesCount()
Required.com.google.protobuf.ProtocolStringList
getValuesList()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Partition.Builder
mergeFrom(Partition other)
Partition.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Partition.Builder
mergeFrom(com.google.protobuf.Message other)
Partition.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Partition.Builder
setEtag(String value)
Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated.Partition.Builder
setEtagBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.dataplex.v1.Partition.etag is deprecated.Partition.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Partition.Builder
setLocation(String value)
Required.Partition.Builder
setLocationBytes(com.google.protobuf.ByteString value)
Required.Partition.Builder
setName(String value)
Output only.Partition.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Partition.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Partition.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Partition.Builder
setValues(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
clear
public Partition.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
getDefaultInstanceForType
public Partition getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Partition build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Partition buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Partition.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
setField
public Partition.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
clearField
public Partition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
clearOneof
public Partition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
setRepeatedField
public Partition.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
addRepeatedField
public Partition.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
mergeFrom
public Partition.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Partition.Builder>
-
mergeFrom
public Partition.Builder mergeFrom(Partition other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getValuesList
in 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:
getValuesCount
in 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:
getValues
in 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:
getValuesBytes
in 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:
getLocation
in 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:
getLocationBytes
in 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:
getEtag
in 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:
getEtagBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
mergeUnknownFields
public final Partition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Partition.Builder>
-
-