Class DiscoveryEvent.PartitionDetails.Builder (1.28.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
TypeDescription
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
NameDescription
valuesIterable<String>

The sampledDataLocations to add.

Returns
TypeDescription
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryEvent.PartitionDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The sampledDataLocations to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the sampledDataLocations to add.

Returns
TypeDescription
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

build()

public DiscoveryEvent.PartitionDetails build()
Returns
TypeDescription
DiscoveryEvent.PartitionDetails

buildPartial()

public DiscoveryEvent.PartitionDetails buildPartial()
Returns
TypeDescription
DiscoveryEvent.PartitionDetails

clear()

public DiscoveryEvent.PartitionDetails.Builder clear()
Returns
TypeDescription
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
TypeDescription
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DiscoveryEvent.PartitionDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DiscoveryEvent.PartitionDetails.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DiscoveryEvent.PartitionDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

clone()

public DiscoveryEvent.PartitionDetails.Builder clone()
Returns
TypeDescription
DiscoveryEvent.PartitionDetails.Builder
Overrides

getDefaultInstanceForType()

public DiscoveryEvent.PartitionDetails getDefaultInstanceForType()
Returns
TypeDescription
DiscoveryEvent.PartitionDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DiscoveryEvent.EntityType

The type.

getTypeValue()

public int getTypeValue()

The type of the containing entity resource.

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

Returns
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DiscoveryEvent.PartitionDetails other)

public DiscoveryEvent.PartitionDetails.Builder mergeFrom(DiscoveryEvent.PartitionDetails other)
Parameter
NameDescription
otherDiscoveryEvent.PartitionDetails
Returns
TypeDescription
DiscoveryEvent.PartitionDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiscoveryEvent.PartitionDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DiscoveryEvent.PartitionDetails.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DiscoveryEvent.PartitionDetails.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DiscoveryEvent.PartitionDetails.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryEvent.PartitionDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The entity to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for entity to set.

Returns
TypeDescription
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryEvent.PartitionDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The partition to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for partition to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The sampledDataLocations to set.

Returns
TypeDescription
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
NameDescription
valueDiscoveryEvent.EntityType

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
DiscoveryEvent.PartitionDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryEvent.PartitionDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DiscoveryEvent.PartitionDetails.Builder
Overrides