- 1.53.0 (latest)
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.2
- 1.0.1
- 0.2.2
public static final class Partition.Builder extends GeneratedMessageV3.Builder<Partition.Builder> implements PartitionOrBuilder
Represents partition metadata contained within entity instances.
Protobuf type google.cloud.dataplex.v1.Partition
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Partition.BuilderImplements
PartitionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllValues(Iterable<String> values)
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];
Name | Description |
values | Iterable<String> The values to add. |
Type | Description |
Partition.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Partition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Partition.Builder |
addValues(String value)
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];
Name | Description |
value | String The values to add. |
Type | Description |
Partition.Builder | This builder for chaining. |
addValuesBytes(ByteString value)
public Partition.Builder addValuesBytes(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];
Name | Description |
value | ByteString The bytes of the values to add. |
Type | Description |
Partition.Builder | This builder for chaining. |
build()
public Partition build()
Type | Description |
Partition |
buildPartial()
public Partition buildPartial()
Type | Description |
Partition |
clear()
public Partition.Builder clear()
Type | Description |
Partition.Builder |
clearEtag() (deprecated)
public Partition.Builder clearEtag()
Deprecated. google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=515
Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
Type | Description |
Partition.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Partition.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Partition.Builder |
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];
Type | Description |
Partition.Builder | 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) = { ... }
Type | Description |
Partition.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Partition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Partition.Builder |
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];
Type | Description |
Partition.Builder | This builder for chaining. |
clone()
public Partition.Builder clone()
Type | Description |
Partition.Builder |
getDefaultInstanceForType()
public Partition getDefaultInstanceForType()
Type | Description |
Partition |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEtag() (deprecated)
public String getEtag()
Deprecated. google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=515
Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
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=515
Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
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];
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];
Type | Description |
ByteString | The bytes for location. |
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) = { ... }
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) = { ... }
Type | Description |
ByteString | The bytes for name. |
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];
Name | Description |
index | int The index of the element to return. |
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];
Name | Description |
index | int The index of the value to return. |
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];
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];
Type | Description |
ProtocolStringList | A list containing the values. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Partition other)
public Partition.Builder mergeFrom(Partition other)
Name | Description |
other | Partition |
Type | Description |
Partition.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Partition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Partition.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Partition.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Partition.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Partition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Partition.Builder |
setEtag(String value) (deprecated)
public Partition.Builder setEtag(String value)
Deprecated. google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=515
Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The etag to set. |
Type | Description |
Partition.Builder | This builder for chaining. |
setEtagBytes(ByteString value) (deprecated)
public Partition.Builder setEtagBytes(ByteString value)
Deprecated. google.cloud.dataplex.v1.Partition.etag is deprecated. See google/cloud/dataplex/v1/metadata.proto;l=515
Optional. The etag for this partition.
string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for etag to set. |
Type | Description |
Partition.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Partition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Partition.Builder |
setLocation(String value)
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];
Name | Description |
value | String The location to set. |
Type | Description |
Partition.Builder | This builder for chaining. |
setLocationBytes(ByteString value)
public Partition.Builder setLocationBytes(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];
Name | Description |
value | ByteString The bytes for location to set. |
Type | Description |
Partition.Builder | This builder for chaining. |
setName(String value)
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) = { ... }
Name | Description |
value | String The name to set. |
Type | Description |
Partition.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Partition.Builder setNameBytes(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) = { ... }
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Partition.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Partition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Partition.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Partition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Partition.Builder |
setValues(int index, String value)
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];
Name | Description |
index | int The index to set the value at. |
value | String The values to set. |
Type | Description |
Partition.Builder | This builder for chaining. |