Package com.google.cloud.dataplex.v1
Interface PartitionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Partition
,Partition.Builder
public interface PartitionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description 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.List<String>
getValuesList()
Required.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
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) = { ... }
- Returns:
- The name.
-
getNameBytes
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) = { ... }
- Returns:
- The bytes for name.
-
getValuesList
List<String> 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:
- A list containing the values.
-
getValuesCount
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:
- The count of values.
-
getValues
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];
- Parameters:
index
- The index of the element to return.- Returns:
- The values at the given index.
-
getValuesBytes
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];
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the values at the given index.
-
getLocation
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:
- The location.
-
getLocationBytes
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];
- Returns:
- The bytes for location.
-
getEtag
@Deprecated 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];
- Returns:
- The etag.
-
getEtagBytes
@Deprecated 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];
- Returns:
- The bytes for etag.
-
-