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
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
VALUES_FIELD_NUMBER
public static final int VALUES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Partition getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Partition.Builder newBuilder()
Returns
newBuilder(Partition prototype)
public static Partition.Builder newBuilder(Partition prototype)
Parameter
Returns
public static Partition parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Partition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Partition parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Partition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Partition parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Partition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Partition parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Partition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Partition parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Partition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Partition parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Partition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Partition> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Partition getDefaultInstanceForType()
Returns
getEtag()
Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
String | The etag.
|
getEtagBytes()
public ByteString getEtagBytes()
Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
Returns
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
getName()
Output only. The values must be HTML URL encoded two times before constructing the path.
For example, if you have a value of "US:CA", encoded it two times and you
get "US%253ACA". Then if you have the 2nd value is "CA#Sunnyvale", encoded
two times and you get "CA%2523Sunnyvale". The partition values path is
"US%253ACA/CA%2523Sunnyvale". The final URL will be
"https://.../partitions/US%253ACA/CA%2523Sunnyvale". The name field in the
responses will always have 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. The values must be HTML URL encoded two times before constructing the path.
For example, if you have a value of "US:CA", encoded it two times and you
get "US%253ACA". Then if you have the 2nd value is "CA#Sunnyvale", encoded
two times and you get "CA%2523Sunnyvale". The partition values path is
"US%253ACA/CA%2523Sunnyvale". The final URL will be
"https://.../partitions/US%253ACA/CA%2523Sunnyvale". The name field in the
responses will always have the encoded format.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns
getParserForType()
public Parser<Partition> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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];
Returns
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Partition.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Partition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Partition.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions