Class DiscoveryEvent.PartitionDetails.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<DiscoveryEvent.PartitionDetails.Builder> implements DiscoveryEvent.PartitionDetailsOrBuilder
 Details about the partition.
 
Protobuf type google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DiscoveryEvent.PartitionDetails.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DiscoveryEvent.PartitionDetails.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DiscoveryEvent.PartitionDetails.Builder>
    • getDefaultInstanceForType

      public DiscoveryEvent.PartitionDetails getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DiscoveryEvent.PartitionDetails buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DiscoveryEvent.PartitionDetails.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DiscoveryEvent.PartitionDetails.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface DiscoveryEvent.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 interface DiscoveryEvent.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 interface DiscoveryEvent.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 interface DiscoveryEvent.PartitionDetailsOrBuilder
      Returns:
      The bytes for entity.
    • setEntity

       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

       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 interface DiscoveryEvent.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 interface DiscoveryEvent.PartitionDetailsOrBuilder
      Returns:
      The type.
    • setType

       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

       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 interface DiscoveryEvent.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 interface DiscoveryEvent.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 interface DiscoveryEvent.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 interface DiscoveryEvent.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.