Package com.google.cloud.dataplex.v1
Class DiscoveryEvent.PartitionDetails.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
- com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.Builder
-
- All Implemented Interfaces:
DiscoveryEvent.PartitionDetailsOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- DiscoveryEvent.PartitionDetails
public static final class DiscoveryEvent.PartitionDetails.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder> implements DiscoveryEvent.PartitionDetailsOrBuilder
Details about the partition.
Protobuf typegoogle.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DiscoveryEvent.PartitionDetails.Builder
addAllSampledDataLocations(Iterable<String> values)
The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.DiscoveryEvent.PartitionDetails.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DiscoveryEvent.PartitionDetails.Builder
addSampledDataLocations(String value)
The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.DiscoveryEvent.PartitionDetails.Builder
addSampledDataLocationsBytes(com.google.protobuf.ByteString value)
The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.DiscoveryEvent.PartitionDetails
build()
DiscoveryEvent.PartitionDetails
buildPartial()
DiscoveryEvent.PartitionDetails.Builder
clear()
DiscoveryEvent.PartitionDetails.Builder
clearEntity()
The name to the containing entity resource.DiscoveryEvent.PartitionDetails.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DiscoveryEvent.PartitionDetails.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DiscoveryEvent.PartitionDetails.Builder
clearPartition()
The name to the partition resource.DiscoveryEvent.PartitionDetails.Builder
clearSampledDataLocations()
The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.DiscoveryEvent.PartitionDetails.Builder
clearType()
The type of the containing entity resource.DiscoveryEvent.PartitionDetails.Builder
clone()
DiscoveryEvent.PartitionDetails
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getEntity()
The name to the containing entity resource.com.google.protobuf.ByteString
getEntityBytes()
The name to the containing entity resource.String
getPartition()
The name to the partition resource.com.google.protobuf.ByteString
getPartitionBytes()
The name to the partition resource.String
getSampledDataLocations(int index)
The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.com.google.protobuf.ByteString
getSampledDataLocationsBytes(int index)
The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.int
getSampledDataLocationsCount()
The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.com.google.protobuf.ProtocolStringList
getSampledDataLocationsList()
The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.DiscoveryEvent.EntityType
getType()
The type of the containing entity resource.int
getTypeValue()
The type of the containing entity resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DiscoveryEvent.PartitionDetails.Builder
mergeFrom(DiscoveryEvent.PartitionDetails other)
DiscoveryEvent.PartitionDetails.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DiscoveryEvent.PartitionDetails.Builder
mergeFrom(com.google.protobuf.Message other)
DiscoveryEvent.PartitionDetails.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DiscoveryEvent.PartitionDetails.Builder
setEntity(String value)
The name to the containing entity resource.DiscoveryEvent.PartitionDetails.Builder
setEntityBytes(com.google.protobuf.ByteString value)
The name to the containing entity resource.DiscoveryEvent.PartitionDetails.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DiscoveryEvent.PartitionDetails.Builder
setPartition(String value)
The name to the partition resource.DiscoveryEvent.PartitionDetails.Builder
setPartitionBytes(com.google.protobuf.ByteString value)
The name to the partition resource.DiscoveryEvent.PartitionDetails.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DiscoveryEvent.PartitionDetails.Builder
setSampledDataLocations(int index, String value)
The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.DiscoveryEvent.PartitionDetails.Builder
setType(DiscoveryEvent.EntityType value)
The type of the containing entity resource.DiscoveryEvent.PartitionDetails.Builder
setTypeValue(int value)
The type of the containing entity resource.DiscoveryEvent.PartitionDetails.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
clear
public DiscoveryEvent.PartitionDetails.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
getDefaultInstanceForType
public DiscoveryEvent.PartitionDetails getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DiscoveryEvent.PartitionDetails build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DiscoveryEvent.PartitionDetails buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DiscoveryEvent.PartitionDetails.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
setField
public DiscoveryEvent.PartitionDetails.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
clearField
public DiscoveryEvent.PartitionDetails.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
clearOneof
public DiscoveryEvent.PartitionDetails.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
setRepeatedField
public DiscoveryEvent.PartitionDetails.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
addRepeatedField
public DiscoveryEvent.PartitionDetails.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
mergeFrom
public DiscoveryEvent.PartitionDetails.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
mergeFrom
public DiscoveryEvent.PartitionDetails.Builder mergeFrom(DiscoveryEvent.PartitionDetails other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
mergeFrom
public DiscoveryEvent.PartitionDetails.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DiscoveryEvent.PartitionDetails.Builder>
- Throws:
IOException
-
getPartition
public String getPartition()
The name to the partition resource. The name is the fully-qualified resource name.
string partition = 1;
- Specified by:
getPartition
in interfaceDiscoveryEvent.PartitionDetailsOrBuilder
- Returns:
- The partition.
-
getPartitionBytes
public com.google.protobuf.ByteString getPartitionBytes()
The name to the partition resource. The name is the fully-qualified resource name.
string partition = 1;
- Specified by:
getPartitionBytes
in interfaceDiscoveryEvent.PartitionDetailsOrBuilder
- Returns:
- The bytes for partition.
-
setPartition
public DiscoveryEvent.PartitionDetails.Builder setPartition(String value)
The name to the partition resource. The name is the fully-qualified resource name.
string partition = 1;
- Parameters:
value
- The partition to set.- Returns:
- This builder for chaining.
-
clearPartition
public DiscoveryEvent.PartitionDetails.Builder clearPartition()
The name to the partition resource. The name is the fully-qualified resource name.
string partition = 1;
- Returns:
- This builder for chaining.
-
setPartitionBytes
public DiscoveryEvent.PartitionDetails.Builder setPartitionBytes(com.google.protobuf.ByteString value)
The name to the partition resource. The name is the fully-qualified resource name.
string partition = 1;
- Parameters:
value
- The bytes for partition to set.- Returns:
- This builder for chaining.
-
getEntity
public String getEntity()
The name to the containing entity resource. The name is the fully-qualified resource name.
string entity = 2;
- Specified by:
getEntity
in interfaceDiscoveryEvent.PartitionDetailsOrBuilder
- Returns:
- The entity.
-
getEntityBytes
public com.google.protobuf.ByteString getEntityBytes()
The name to the containing entity resource. The name is the fully-qualified resource name.
string entity = 2;
- Specified by:
getEntityBytes
in interfaceDiscoveryEvent.PartitionDetailsOrBuilder
- Returns:
- The bytes for entity.
-
setEntity
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;
- Parameters:
value
- The entity to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setEntityBytes
public DiscoveryEvent.PartitionDetails.Builder setEntityBytes(com.google.protobuf.ByteString value)
The name to the containing entity resource. The name is the fully-qualified resource name.
string entity = 2;
- Parameters:
value
- The bytes for entity to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
The type of the containing entity resource.
.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
- Specified by:
getTypeValue
in interfaceDiscoveryEvent.PartitionDetailsOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public DiscoveryEvent.PartitionDetails.Builder setTypeValue(int value)
The type of the containing entity resource.
.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public DiscoveryEvent.EntityType getType()
The type of the containing entity resource.
.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
- Specified by:
getType
in interfaceDiscoveryEvent.PartitionDetailsOrBuilder
- Returns:
- The type.
-
setType
public DiscoveryEvent.PartitionDetails.Builder setType(DiscoveryEvent.EntityType value)
The type of the containing entity resource.
.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
- Parameters:
value
- The type to set.- Returns:
- 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:
- This builder for chaining.
-
getSampledDataLocationsList
public com.google.protobuf.ProtocolStringList getSampledDataLocationsList()
The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.
repeated string sampled_data_locations = 4;
- Specified by:
getSampledDataLocationsList
in interfaceDiscoveryEvent.PartitionDetailsOrBuilder
- Returns:
- A list containing the sampledDataLocations.
-
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;
- Specified by:
getSampledDataLocationsCount
in interfaceDiscoveryEvent.PartitionDetailsOrBuilder
- Returns:
- The count of sampledDataLocations.
-
getSampledDataLocations
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;
- Specified by:
getSampledDataLocations
in interfaceDiscoveryEvent.PartitionDetailsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The sampledDataLocations at the given index.
-
getSampledDataLocationsBytes
public com.google.protobuf.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;
- Specified by:
getSampledDataLocationsBytes
in interfaceDiscoveryEvent.PartitionDetailsOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the sampledDataLocations at the given index.
-
setSampledDataLocations
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:
index
- The index to set the value at.value
- The sampledDataLocations to set.- Returns:
- This builder for chaining.
-
addSampledDataLocations
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;
- Parameters:
value
- The sampledDataLocations to add.- Returns:
- This builder for chaining.
-
addAllSampledDataLocations
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;
- Parameters:
values
- The sampledDataLocations to add.- Returns:
- 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:
- This builder for chaining.
-
addSampledDataLocationsBytes
public DiscoveryEvent.PartitionDetails.Builder addSampledDataLocationsBytes(com.google.protobuf.ByteString value)
The locations of the data items (e.g., a Cloud Storage objects) sampled for metadata inference.
repeated string sampled_data_locations = 4;
- Parameters:
value
- The bytes of the sampledDataLocations to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final DiscoveryEvent.PartitionDetails.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
mergeUnknownFields
public final DiscoveryEvent.PartitionDetails.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
-
-