Class AggregationResult.Histogram.Builder

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

public static final class AggregationResult.Histogram.Builder extends com.google.protobuf.GeneratedMessage.Builder<AggregationResult.Histogram.Builder> implements AggregationResult.HistogramOrBuilder
 The result of a bucketed histogram aggregation.
 
Protobuf type google.cloud.migrationcenter.v1.AggregationResult.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<AggregationResult.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<AggregationResult.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<AggregationResult.Histogram.Builder>
    • getDefaultInstanceForType

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

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

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

      public List<AggregationResult.Histogram.Bucket> getBucketsList()
       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
      Specified by:
      getBucketsList in interface AggregationResult.HistogramOrBuilder
    • getBucketsCount

      public int getBucketsCount()
       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
      Specified by:
      getBucketsCount in interface AggregationResult.HistogramOrBuilder
    • getBuckets

      public AggregationResult.Histogram.Bucket getBuckets(int index)
       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
      Specified by:
      getBuckets in interface AggregationResult.HistogramOrBuilder
    • setBuckets

       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
    • setBuckets

       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
    • addBuckets

       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
    • addBuckets

       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
    • addBuckets

       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
    • addBuckets

       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
    • addAllBuckets

       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
    • clearBuckets

      public AggregationResult.Histogram.Builder clearBuckets()
       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
    • removeBuckets

      public AggregationResult.Histogram.Builder removeBuckets(int index)
       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
    • getBucketsBuilder

      public AggregationResult.Histogram.Bucket.Builder getBucketsBuilder(int index)
       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
    • getBucketsOrBuilder

      public AggregationResult.Histogram.BucketOrBuilder getBucketsOrBuilder(int index)
       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
      Specified by:
      getBucketsOrBuilder in interface AggregationResult.HistogramOrBuilder
    • getBucketsOrBuilderList

      public List<? extends AggregationResult.Histogram.BucketOrBuilder> getBucketsOrBuilderList()
       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
      Specified by:
      getBucketsOrBuilderList in interface AggregationResult.HistogramOrBuilder
    • addBucketsBuilder

      public AggregationResult.Histogram.Bucket.Builder addBucketsBuilder()
       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
    • addBucketsBuilder

      public AggregationResult.Histogram.Bucket.Builder addBucketsBuilder(int index)
       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;
    • getBucketsBuilderList

      public List<AggregationResult.Histogram.Bucket.Builder> getBucketsBuilderList()
       Buckets in the histogram.
       There will be `n+1` buckets matching `n` lower bounds in the request.
       The first bucket will be from -infinity to the first bound.
       Subsequent buckets will be between one bound and the next.
       The final bucket will be from the final bound to infinity.
       
      repeated .google.cloud.migrationcenter.v1.AggregationResult.Histogram.Bucket buckets = 1;