/** * <pre> * Defines the histogram bucket boundaries. * </pre> * * <code>.google.api.Distribution.BucketOptions bucket_options = 6;</code> */ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder() { return getBucketOptions(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (count_ != 0L) { output.writeInt64(1, count_); } if (mean_ != 0D) { output.writeDouble(2, mean_); } if (sumOfSquaredDeviation_ != 0D) { output.writeDouble(3, sumOfSquaredDeviation_); } if (range_ != null) { output.writeMessage(4, getRange()); } if (bucketOptions_ != null) { output.writeMessage(6, getBucketOptions()); } if (getBucketCountsList().size() > 0) { output.writeUInt32NoTag(58); output.writeUInt32NoTag(bucketCountsMemoizedSerializedSize); } for (int i = 0; i < bucketCounts_.size(); i++) { output.writeInt64NoTag(bucketCounts_.get(i)); } }
result = result && getBucketOptions() .equals(other.getBucketOptions());
.computeMessageSize(6, getBucketOptions());
hash = (53 * hash) + getBucketOptions().hashCode();
public Builder mergeFrom(com.google.api.Distribution other) { if (other == com.google.api.Distribution.getDefaultInstance()) return this; if (other.getCount() != 0L) { setCount(other.getCount()); } if (other.getMean() != 0D) { setMean(other.getMean()); } if (other.getSumOfSquaredDeviation() != 0D) { setSumOfSquaredDeviation(other.getSumOfSquaredDeviation()); } if (other.hasRange()) { mergeRange(other.getRange()); } if (other.hasBucketOptions()) { mergeBucketOptions(other.getBucketOptions()); } if (!other.bucketCounts_.isEmpty()) { if (bucketCounts_.isEmpty()) { bucketCounts_ = other.bucketCounts_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureBucketCountsIsMutable(); bucketCounts_.addAll(other.bucketCounts_); } onChanged(); } onChanged(); return this; }