Class Float64Stats.HistogramBucket.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Float64Stats.HistogramBucket.Builder>
com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder
All Implemented Interfaces:
Float64Stats.HistogramBucketOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Float64Stats.HistogramBucket

public static final class Float64Stats.HistogramBucket.Builder extends com.google.protobuf.GeneratedMessage.Builder<Float64Stats.HistogramBucket.Builder> implements Float64Stats.HistogramBucketOrBuilder
 A bucket of a histogram.
 
Protobuf type google.cloud.automl.v1beta1.Float64Stats.HistogramBucket
  • 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<Float64Stats.HistogramBucket.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<Float64Stats.HistogramBucket.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<Float64Stats.HistogramBucket.Builder>
    • getDefaultInstanceForType

      public Float64Stats.HistogramBucket 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 Float64Stats.HistogramBucket buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Float64Stats.HistogramBucket.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<Float64Stats.HistogramBucket.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<Float64Stats.HistogramBucket.Builder>
    • mergeFrom

      public Float64Stats.HistogramBucket.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<Float64Stats.HistogramBucket.Builder>
      Throws:
      IOException
    • getMin

      public double getMin()
       The minimum value of the bucket, inclusive.
       
      double min = 1;
      Specified by:
      getMin in interface Float64Stats.HistogramBucketOrBuilder
      Returns:
      The min.
    • setMin

      public Float64Stats.HistogramBucket.Builder setMin(double value)
       The minimum value of the bucket, inclusive.
       
      double min = 1;
      Parameters:
      value - The min to set.
      Returns:
      This builder for chaining.
    • clearMin

       The minimum value of the bucket, inclusive.
       
      double min = 1;
      Returns:
      This builder for chaining.
    • getMax

      public double getMax()
       The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
       which case it's inclusive.
       
      double max = 2;
      Specified by:
      getMax in interface Float64Stats.HistogramBucketOrBuilder
      Returns:
      The max.
    • setMax

      public Float64Stats.HistogramBucket.Builder setMax(double value)
       The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
       which case it's inclusive.
       
      double max = 2;
      Parameters:
      value - The max to set.
      Returns:
      This builder for chaining.
    • clearMax

       The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
       which case it's inclusive.
       
      double max = 2;
      Returns:
      This builder for chaining.
    • getCount

      public long getCount()
       The number of data values that are in the bucket, i.e. are between
       min and max values.
       
      int64 count = 3;
      Specified by:
      getCount in interface Float64Stats.HistogramBucketOrBuilder
      Returns:
      The count.
    • setCount

      public Float64Stats.HistogramBucket.Builder setCount(long value)
       The number of data values that are in the bucket, i.e. are between
       min and max values.
       
      int64 count = 3;
      Parameters:
      value - The count to set.
      Returns:
      This builder for chaining.
    • clearCount

       The number of data values that are in the bucket, i.e. are between
       min and max values.
       
      int64 count = 3;
      Returns:
      This builder for chaining.