Class Aggregation.Histogram.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Aggregation.Histogram.Builder>
com.google.cloud.migrationcenter.v1.Aggregation.Histogram.Builder
All Implemented Interfaces:
Aggregation.HistogramOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Aggregation.Histogram

public static final class Aggregation.Histogram.Builder extends com.google.protobuf.GeneratedMessage.Builder<Aggregation.Histogram.Builder> implements Aggregation.HistogramOrBuilder
 Histogram of bucketed assets counts by field value.
 
Protobuf type google.cloud.migrationcenter.v1.Aggregation.Histogram
  • 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<Aggregation.Histogram.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<Aggregation.Histogram.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<Aggregation.Histogram.Builder>
    • getDefaultInstanceForType

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

      public Aggregation.Histogram build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public Aggregation.Histogram.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<Aggregation.Histogram.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<Aggregation.Histogram.Builder>
    • mergeFrom

      public Aggregation.Histogram.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<Aggregation.Histogram.Builder>
      Throws:
      IOException
    • getLowerBoundsList

      public List<Double> getLowerBoundsList()
       Lower bounds of buckets.
       The response will contain `n+1` buckets for `n` bounds.
       The first bucket will count all assets for which the field value is
       smaller than the first bound.
       Subsequent buckets will count assets for which the field value is
       greater or equal to a lower bound and smaller than the next one.
       The last bucket will count assets for which the field value is greater or
       equal to the final lower bound.
       You can define up to 20 lower bounds.
       
      repeated double lower_bounds = 1;
      Specified by:
      getLowerBoundsList in interface Aggregation.HistogramOrBuilder
      Returns:
      A list containing the lowerBounds.
    • getLowerBoundsCount

      public int getLowerBoundsCount()
       Lower bounds of buckets.
       The response will contain `n+1` buckets for `n` bounds.
       The first bucket will count all assets for which the field value is
       smaller than the first bound.
       Subsequent buckets will count assets for which the field value is
       greater or equal to a lower bound and smaller than the next one.
       The last bucket will count assets for which the field value is greater or
       equal to the final lower bound.
       You can define up to 20 lower bounds.
       
      repeated double lower_bounds = 1;
      Specified by:
      getLowerBoundsCount in interface Aggregation.HistogramOrBuilder
      Returns:
      The count of lowerBounds.
    • getLowerBounds

      public double getLowerBounds(int index)
       Lower bounds of buckets.
       The response will contain `n+1` buckets for `n` bounds.
       The first bucket will count all assets for which the field value is
       smaller than the first bound.
       Subsequent buckets will count assets for which the field value is
       greater or equal to a lower bound and smaller than the next one.
       The last bucket will count assets for which the field value is greater or
       equal to the final lower bound.
       You can define up to 20 lower bounds.
       
      repeated double lower_bounds = 1;
      Specified by:
      getLowerBounds in interface Aggregation.HistogramOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The lowerBounds at the given index.
    • setLowerBounds

      public Aggregation.Histogram.Builder setLowerBounds(int index, double value)
       Lower bounds of buckets.
       The response will contain `n+1` buckets for `n` bounds.
       The first bucket will count all assets for which the field value is
       smaller than the first bound.
       Subsequent buckets will count assets for which the field value is
       greater or equal to a lower bound and smaller than the next one.
       The last bucket will count assets for which the field value is greater or
       equal to the final lower bound.
       You can define up to 20 lower bounds.
       
      repeated double lower_bounds = 1;
      Parameters:
      index - The index to set the value at.
      value - The lowerBounds to set.
      Returns:
      This builder for chaining.
    • addLowerBounds

      public Aggregation.Histogram.Builder addLowerBounds(double value)
       Lower bounds of buckets.
       The response will contain `n+1` buckets for `n` bounds.
       The first bucket will count all assets for which the field value is
       smaller than the first bound.
       Subsequent buckets will count assets for which the field value is
       greater or equal to a lower bound and smaller than the next one.
       The last bucket will count assets for which the field value is greater or
       equal to the final lower bound.
       You can define up to 20 lower bounds.
       
      repeated double lower_bounds = 1;
      Parameters:
      value - The lowerBounds to add.
      Returns:
      This builder for chaining.
    • addAllLowerBounds

      public Aggregation.Histogram.Builder addAllLowerBounds(Iterable<? extends Double> values)
       Lower bounds of buckets.
       The response will contain `n+1` buckets for `n` bounds.
       The first bucket will count all assets for which the field value is
       smaller than the first bound.
       Subsequent buckets will count assets for which the field value is
       greater or equal to a lower bound and smaller than the next one.
       The last bucket will count assets for which the field value is greater or
       equal to the final lower bound.
       You can define up to 20 lower bounds.
       
      repeated double lower_bounds = 1;
      Parameters:
      values - The lowerBounds to add.
      Returns:
      This builder for chaining.
    • clearLowerBounds

      public Aggregation.Histogram.Builder clearLowerBounds()
       Lower bounds of buckets.
       The response will contain `n+1` buckets for `n` bounds.
       The first bucket will count all assets for which the field value is
       smaller than the first bound.
       Subsequent buckets will count assets for which the field value is
       greater or equal to a lower bound and smaller than the next one.
       The last bucket will count assets for which the field value is greater or
       equal to the final lower bound.
       You can define up to 20 lower bounds.
       
      repeated double lower_bounds = 1;
      Returns:
      This builder for chaining.