Class DiscoveryEvent.PartitionDetails.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public DiscoveryEvent.PartitionDetails 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DiscoveryEvent.PartitionDetails.Builder>
      • 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.
      • 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

        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 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.
      • 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 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.