Class DiscoveryEvent.PartitionDetails.Builder (1.40.0)

public static final class DiscoveryEvent.PartitionDetails.Builder extends GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder> implements DiscoveryEvent.PartitionDetailsOrBuilder

Details about the partition.

Protobuf type google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSampledDataLocations(Iterable<String> values)

public DiscoveryEvent.PartitionDetails.Builder addAllSampledDataLocations(Iterable<String> values)

The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.

repeated string sampled_data_locations = 4;

Parameter
Name Description
values Iterable<String>

The sampledDataLocations to add.

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryEvent.PartitionDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder
Overrides

addSampledDataLocations(String value)

public DiscoveryEvent.PartitionDetails.Builder addSampledDataLocations(String value)

The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.

repeated string sampled_data_locations = 4;

Parameter
Name Description
value String

The sampledDataLocations to add.

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

addSampledDataLocationsBytes(ByteString value)

public DiscoveryEvent.PartitionDetails.Builder addSampledDataLocationsBytes(ByteString value)

The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.

repeated string sampled_data_locations = 4;

Parameter
Name Description
value ByteString

The bytes of the sampledDataLocations to add.

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

build()

public DiscoveryEvent.PartitionDetails build()
Returns
Type Description
DiscoveryEvent.PartitionDetails

buildPartial()

public DiscoveryEvent.PartitionDetails buildPartial()
Returns
Type Description
DiscoveryEvent.PartitionDetails

clear()

public DiscoveryEvent.PartitionDetails.Builder clear()
Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder
Overrides

clearEntity()

public DiscoveryEvent.PartitionDetails.Builder clearEntity()

The name to the containing entity resource. The name is the fully-qualified resource name.

string entity = 2;

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DiscoveryEvent.PartitionDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DiscoveryEvent.PartitionDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder
Overrides

clearPartition()

public DiscoveryEvent.PartitionDetails.Builder clearPartition()

The name to the partition resource. The name is the fully-qualified resource name.

string partition = 1;

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

clearSampledDataLocations()

public DiscoveryEvent.PartitionDetails.Builder clearSampledDataLocations()

The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.

repeated string sampled_data_locations = 4;

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

clearType()

public DiscoveryEvent.PartitionDetails.Builder clearType()

The type of the containing entity resource.

.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

clone()

public DiscoveryEvent.PartitionDetails.Builder clone()
Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder
Overrides

getDefaultInstanceForType()

public DiscoveryEvent.PartitionDetails getDefaultInstanceForType()
Returns
Type Description
DiscoveryEvent.PartitionDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEntity()

public String getEntity()

The name to the containing entity resource. The name is the fully-qualified resource name.

string entity = 2;

Returns
Type Description
String

The entity.

getEntityBytes()

public ByteString getEntityBytes()

The name to the containing entity resource. The name is the fully-qualified resource name.

string entity = 2;

Returns
Type Description
ByteString

The bytes for entity.

getPartition()

public String getPartition()

The name to the partition resource. The name is the fully-qualified resource name.

string partition = 1;

Returns
Type Description
String

The partition.

getPartitionBytes()

public ByteString getPartitionBytes()

The name to the partition resource. The name is the fully-qualified resource name.

string partition = 1;

Returns
Type Description
ByteString

The bytes for partition.

getSampledDataLocations(int index)

public String getSampledDataLocations(int index)

The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.

repeated string sampled_data_locations = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The sampledDataLocations at the given index.

getSampledDataLocationsBytes(int index)

public ByteString getSampledDataLocationsBytes(int index)

The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.

repeated string sampled_data_locations = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the sampledDataLocations at the given index.

getSampledDataLocationsCount()

public int getSampledDataLocationsCount()

The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.

repeated string sampled_data_locations = 4;

Returns
Type Description
int

The count of sampledDataLocations.

getSampledDataLocationsList()

public ProtocolStringList getSampledDataLocationsList()

The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.

repeated string sampled_data_locations = 4;

Returns
Type Description
ProtocolStringList

A list containing the sampledDataLocations.

getType()

public DiscoveryEvent.EntityType getType()

The type of the containing entity resource.

.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;

Returns
Type Description
DiscoveryEvent.EntityType

The type.

getTypeValue()

public int getTypeValue()

The type of the containing entity resource.

.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DiscoveryEvent.PartitionDetails other)

public DiscoveryEvent.PartitionDetails.Builder mergeFrom(DiscoveryEvent.PartitionDetails other)
Parameter
Name Description
other DiscoveryEvent.PartitionDetails
Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiscoveryEvent.PartitionDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DiscoveryEvent.PartitionDetails.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryEvent.PartitionDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder
Overrides

setEntity(String value)

public DiscoveryEvent.PartitionDetails.Builder setEntity(String value)

The name to the containing entity resource. The name is the fully-qualified resource name.

string entity = 2;

Parameter
Name Description
value String

The entity to set.

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

setEntityBytes(ByteString value)

public DiscoveryEvent.PartitionDetails.Builder setEntityBytes(ByteString value)

The name to the containing entity resource. The name is the fully-qualified resource name.

string entity = 2;

Parameter
Name Description
value ByteString

The bytes for entity to set.

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryEvent.PartitionDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder
Overrides

setPartition(String value)

public DiscoveryEvent.PartitionDetails.Builder setPartition(String value)

The name to the partition resource. The name is the fully-qualified resource name.

string partition = 1;

Parameter
Name Description
value String

The partition to set.

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

setPartitionBytes(ByteString value)

public DiscoveryEvent.PartitionDetails.Builder setPartitionBytes(ByteString value)

The name to the partition resource. The name is the fully-qualified resource name.

string partition = 1;

Parameter
Name Description
value ByteString

The bytes for partition to set.

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DiscoveryEvent.PartitionDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder
Overrides

setSampledDataLocations(int index, String value)

public DiscoveryEvent.PartitionDetails.Builder setSampledDataLocations(int index, String value)

The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.

repeated string sampled_data_locations = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The sampledDataLocations to set.

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

setType(DiscoveryEvent.EntityType value)

public DiscoveryEvent.PartitionDetails.Builder setType(DiscoveryEvent.EntityType value)

The type of the containing entity resource.

.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;

Parameter
Name Description
value DiscoveryEvent.EntityType

The type to set.

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

setTypeValue(int value)

public DiscoveryEvent.PartitionDetails.Builder setTypeValue(int value)

The type of the containing entity resource.

.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryEvent.PartitionDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveryEvent.PartitionDetails.Builder
Overrides