public final class Partition extends GeneratedMessageV3 implements PartitionOrBuilder
Represents partition metadata contained within entity instances.
Protobuf type google.cloud.dataplex.v1.Partition
Static Fields
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
VALUES_FIELD_NUMBER
public static final int VALUES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Partition getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Partition.Builder newBuilder()
newBuilder(Partition prototype)
public static Partition.Builder newBuilder(Partition prototype)
public static Partition parseDelimitedFrom(InputStream input)
public static Partition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Partition parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Partition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Partition parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Partition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Partition parseFrom(CodedInputStream input)
public static Partition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Partition parseFrom(InputStream input)
public static Partition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Partition parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Partition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Partition> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public Partition getDefaultInstanceForType()
getEtag() (deprecated)
Deprecated. google.cloud.dataplex.v1.Partition.etag is deprecated. See
google/cloud/dataplex/v1/metadata.proto;l=506
Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
String | The etag.
|
getEtagBytes() (deprecated)
public ByteString getEtagBytes()
Deprecated. google.cloud.dataplex.v1.Partition.etag is deprecated. See
google/cloud/dataplex/v1/metadata.proto;l=506
Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
ByteString | The bytes for etag.
|
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];
Returns |
---|
Type | Description |
String | The location.
|
getLocationBytes()
public 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];
Returns |
---|
Type | Description |
ByteString | The bytes for location.
|
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) = { ... }
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public 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) = { ... }
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<Partition> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
getValues(int index)
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];
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The values at the given index.
|
getValuesBytes(int index)
public 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];
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the values at the given index.
|
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];
Returns |
---|
Type | Description |
int | The count of values.
|
getValuesList()
public 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];
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Partition.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Partition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Partition.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides