Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/distribution.proto
package org.apache.rocketmq.shaded.com.google.api;
/**
*
*
*
* `Distribution` contains summary statistics for a population of values. It
* optionally contains a histogram representing the distribution of those values
* across a set of buckets.
* The summary statistics are the count, mean, sum of the squared deviation from
* the mean, the minimum, and the maximum of the set of population of values.
* The histogram is based on a sequence of buckets and gives a count of values
* that fall into each bucket. The boundaries of the buckets are given either
* explicitly or by formulas for buckets of fixed or exponentially increasing
* widths.
* Although it is not forbidden, it is generally a bad idea to include
* non-finite values (infinities or NaNs) in the population of values, as this
* will render the `mean` and `sum_of_squared_deviation` fields meaningless.
*
*
* Protobuf type {@code google.api.Distribution}
*/
public final class Distribution extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.api.Distribution)
DistributionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Distribution.newBuilder() to construct.
private Distribution(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Distribution() {
bucketCounts_ = emptyLongList();
exemplars_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Distribution();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Distribution(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
count_ = input.readInt64();
break;
}
case 17:
{
mean_ = input.readDouble();
break;
}
case 25:
{
sumOfSquaredDeviation_ = input.readDouble();
break;
}
case 34:
{
org.apache.rocketmq.shaded.com.google.api.Distribution.Range.Builder subBuilder = null;
if (range_ != null) {
subBuilder = range_.toBuilder();
}
range_ =
input.readMessage(org.apache.rocketmq.shaded.com.google.api.Distribution.Range.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(range_);
range_ = subBuilder.buildPartial();
}
break;
}
case 50:
{
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Builder subBuilder = null;
if (bucketOptions_ != null) {
subBuilder = bucketOptions_.toBuilder();
}
bucketOptions_ =
input.readMessage(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bucketOptions_);
bucketOptions_ = subBuilder.buildPartial();
}
break;
}
case 56:
{
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
bucketCounts_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
bucketCounts_.addLong(input.readInt64());
break;
}
case 58:
{
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
bucketCounts_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
bucketCounts_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 82:
{
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
exemplars_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
exemplars_.add(
input.readMessage(
org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar.parser(), extensionRegistry));
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
bucketCounts_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
exemplars_ = java.util.Collections.unmodifiableList(exemplars_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto.internal_static_google_api_Distribution_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.api.Distribution.class, org.apache.rocketmq.shaded.com.google.api.Distribution.Builder.class);
}
public interface RangeOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.api.Distribution.Range)
org.apache.rocketmq.shaded.com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The minimum of the population values.
*
*
* double min = 1;
*
* @return The min.
*/
double getMin();
/**
*
*
*
* The maximum of the population values.
*
*
* double max = 2;
*
* @return The max.
*/
double getMax();
}
/**
*
*
*
* The range of the population values.
*
*
* Protobuf type {@code google.api.Distribution.Range}
*/
public static final class Range extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.api.Distribution.Range)
RangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Range.newBuilder() to construct.
private Range(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Range() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Range();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Range(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9:
{
min_ = input.readDouble();
break;
}
case 17:
{
max_ = input.readDouble();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_Range_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_Range_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.api.Distribution.Range.class,
org.apache.rocketmq.shaded.com.google.api.Distribution.Range.Builder.class);
}
public static final int MIN_FIELD_NUMBER = 1;
private double min_;
/**
*
*
*
* The minimum of the population values.
*
*
* double min = 1;
*
* @return The min.
*/
@java.lang.Override
public double getMin() {
return min_;
}
public static final int MAX_FIELD_NUMBER = 2;
private double max_;
/**
*
*
*
* The maximum of the population values.
*
*
* double max = 2;
*
* @return The max.
*/
@java.lang.Override
public double getMax() {
return max_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (java.lang.Double.doubleToRawLongBits(min_) != 0) {
output.writeDouble(1, min_);
}
if (java.lang.Double.doubleToRawLongBits(max_) != 0) {
output.writeDouble(2, max_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Double.doubleToRawLongBits(min_) != 0) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeDoubleSize(1, min_);
}
if (java.lang.Double.doubleToRawLongBits(max_) != 0) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeDoubleSize(2, max_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.rocketmq.shaded.com.google.api.Distribution.Range)) {
return super.equals(obj);
}
org.apache.rocketmq.shaded.com.google.api.Distribution.Range other = (org.apache.rocketmq.shaded.com.google.api.Distribution.Range) obj;
if (java.lang.Double.doubleToLongBits(getMin())
!= java.lang.Double.doubleToLongBits(other.getMin())) return false;
if (java.lang.Double.doubleToLongBits(getMax())
!= java.lang.Double.doubleToLongBits(other.getMax())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MIN_FIELD_NUMBER;
hash =
(53 * hash)
+ org.apache.rocketmq.shaded.com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMin()));
hash = (37 * hash) + MAX_FIELD_NUMBER;
hash =
(53 * hash)
+ org.apache.rocketmq.shaded.com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMax()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range parseFrom(java.nio.ByteBuffer data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range parseFrom(
java.nio.ByteBuffer data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range parseFrom(org.apache.rocketmq.shaded.com.google.protobuf.ByteString data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range parseFrom(byte[] data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range parseFrom(
byte[] data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range parseFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range parseDelimitedFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.rocketmq.shaded.com.google.api.Distribution.Range prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* The range of the population values.
*
*
* Protobuf type {@code google.api.Distribution.Range}
*/
public static final class Builder
extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.api.Distribution.Range)
org.apache.rocketmq.shaded.com.google.api.Distribution.RangeOrBuilder {
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_Range_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_Range_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.api.Distribution.Range.class,
org.apache.rocketmq.shaded.com.google.api.Distribution.Range.Builder.class);
}
// Construct using org.apache.rocketmq.shaded.com.google.api.Distribution.Range.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
min_ = 0D;
max_ = 0D;
return this;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_Range_descriptor;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.Range getDefaultInstanceForType() {
return org.apache.rocketmq.shaded.com.google.api.Distribution.Range.getDefaultInstance();
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.Range build() {
org.apache.rocketmq.shaded.com.google.api.Distribution.Range result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.Range buildPartial() {
org.apache.rocketmq.shaded.com.google.api.Distribution.Range result = new org.apache.rocketmq.shaded.com.google.api.Distribution.Range(this);
result.min_ = min_;
result.max_ = max_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.rocketmq.shaded.com.google.api.Distribution.Range) {
return mergeFrom((org.apache.rocketmq.shaded.com.google.api.Distribution.Range) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.api.Distribution.Range other) {
if (other == org.apache.rocketmq.shaded.com.google.api.Distribution.Range.getDefaultInstance()) return this;
if (other.getMin() != 0D) {
setMin(other.getMin());
}
if (other.getMax() != 0D) {
setMax(other.getMax());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.rocketmq.shaded.com.google.api.Distribution.Range parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.rocketmq.shaded.com.google.api.Distribution.Range) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private double min_;
/**
*
*
*
* The minimum of the population values.
*
*
* double min = 1;
*
* @return The min.
*/
@java.lang.Override
public double getMin() {
return min_;
}
/**
*
*
*
* The minimum of the population values.
*
*
* double min = 1;
*
* @param value The min to set.
* @return This builder for chaining.
*/
public Builder setMin(double value) {
min_ = value;
onChanged();
return this;
}
/**
*
*
*
* The minimum of the population values.
*
*
* double min = 1;
*
* @return This builder for chaining.
*/
public Builder clearMin() {
min_ = 0D;
onChanged();
return this;
}
private double max_;
/**
*
*
*
* The maximum of the population values.
*
*
* double max = 2;
*
* @return The max.
*/
@java.lang.Override
public double getMax() {
return max_;
}
/**
*
*
*
* The maximum of the population values.
*
*
* double max = 2;
*
* @param value The max to set.
* @return This builder for chaining.
*/
public Builder setMax(double value) {
max_ = value;
onChanged();
return this;
}
/**
*
*
*
* The maximum of the population values.
*
*
* double max = 2;
*
* @return This builder for chaining.
*/
public Builder clearMax() {
max_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.api.Distribution.Range)
}
// @@protoc_insertion_point(class_scope:google.api.Distribution.Range)
private static final org.apache.rocketmq.shaded.com.google.api.Distribution.Range DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.rocketmq.shaded.com.google.api.Distribution.Range();
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Range getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.apache.rocketmq.shaded.com.google.protobuf.Parser PARSER =
new org.apache.rocketmq.shaded.com.google.protobuf.AbstractParser() {
@java.lang.Override
public Range parsePartialFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new Range(input, extensionRegistry);
}
};
public static org.apache.rocketmq.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.Range getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BucketOptionsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.api.Distribution.BucketOptions)
org.apache.rocketmq.shaded.com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The linear bucket.
*
*
* .google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
*
* @return Whether the linearBuckets field is set.
*/
boolean hasLinearBuckets();
/**
*
*
*
* `BucketOptions` describes the bucket boundaries used to create a histogram
* for the distribution. The buckets can be in a linear sequence, an
* exponential sequence, or each bucket can be specified explicitly.
* `BucketOptions` does not include the number of values in each bucket.
* A bucket has an inclusive lower bound and exclusive upper bound for the
* values that are counted for that bucket. The upper bound of a bucket must
* be strictly greater than the lower bound. The sequence of N buckets for a
* distribution consists of an underflow bucket (number 0), zero or more
* finite buckets (number 1 through N - 2) and an overflow bucket (number N -
* 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
* same as the upper bound of bucket i - 1. The buckets span the whole range
* of finite values: lower bound of the underflow bucket is -infinity and the
* upper bound of the overflow bucket is +infinity. The finite buckets are
* so-called because both bounds are finite.
*
*
* Protobuf type {@code google.api.Distribution.BucketOptions}
*/
public static final class BucketOptions extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.api.Distribution.BucketOptions)
BucketOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use BucketOptions.newBuilder() to construct.
private BucketOptions(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private BucketOptions() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BucketOptions();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private BucketOptions(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear.Builder subBuilder = null;
if (optionsCase_ == 1) {
subBuilder =
((org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear) options_).toBuilder();
}
options_ =
input.readMessage(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear) options_);
options_ = subBuilder.buildPartial();
}
optionsCase_ = 1;
break;
}
case 18:
{
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential.Builder subBuilder = null;
if (optionsCase_ == 2) {
subBuilder =
((org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential) options_)
.toBuilder();
}
options_ =
input.readMessage(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
(org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential) options_);
options_ = subBuilder.buildPartial();
}
optionsCase_ = 2;
break;
}
case 26:
{
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit.Builder subBuilder = null;
if (optionsCase_ == 3) {
subBuilder =
((org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit) options_).toBuilder();
}
options_ =
input.readMessage(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(
(org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit) options_);
options_ = subBuilder.buildPartial();
}
optionsCase_ = 3;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.class,
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Builder.class);
}
public interface LinearOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.api.Distribution.BucketOptions.Linear)
org.apache.rocketmq.shaded.com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Must be greater than 0.
*
*
* int32 num_finite_buckets = 1;
*
* @return The numFiniteBuckets.
*/
int getNumFiniteBuckets();
/**
*
*
*
* Specifies a linear sequence of buckets that all have the same width
* (except overflow and underflow). Each bucket represents a constant
* absolute uncertainty on the specific value in the bucket.
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
* Upper bound (0 <= i < N-1): offset + (width * i).
* Lower bound (1 <= i < N): offset + (width * (i - 1)).
*
*
* Protobuf type {@code google.api.Distribution.BucketOptions.Linear}
*/
public static final class Linear extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.api.Distribution.BucketOptions.Linear)
LinearOrBuilder {
private static final long serialVersionUID = 0L;
// Use Linear.newBuilder() to construct.
private Linear(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Linear() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Linear();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Linear(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
numFiniteBuckets_ = input.readInt32();
break;
}
case 17:
{
width_ = input.readDouble();
break;
}
case 25:
{
offset_ = input.readDouble();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Linear_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Linear_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear.class,
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear.Builder.class);
}
public static final int NUM_FINITE_BUCKETS_FIELD_NUMBER = 1;
private int numFiniteBuckets_;
/**
*
*
*
* Must be greater than 0.
*
*
* int32 num_finite_buckets = 1;
*
* @return The numFiniteBuckets.
*/
@java.lang.Override
public int getNumFiniteBuckets() {
return numFiniteBuckets_;
}
public static final int WIDTH_FIELD_NUMBER = 2;
private double width_;
/**
*
*
*
* Must be greater than 0.
*
*
* double width = 2;
*
* @return The width.
*/
@java.lang.Override
public double getWidth() {
return width_;
}
public static final int OFFSET_FIELD_NUMBER = 3;
private double offset_;
/**
*
*
*
* Specifies a linear sequence of buckets that all have the same width
* (except overflow and underflow). Each bucket represents a constant
* absolute uncertainty on the specific value in the bucket.
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
* Upper bound (0 <= i < N-1): offset + (width * i).
* Lower bound (1 <= i < N): offset + (width * (i - 1)).
*
*
* Protobuf type {@code google.api.Distribution.BucketOptions.Linear}
*/
public static final class Builder
extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.api.Distribution.BucketOptions.Linear)
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.LinearOrBuilder {
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Linear_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Linear_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear.class,
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear.Builder.class);
}
// Construct using org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
numFiniteBuckets_ = 0;
width_ = 0D;
offset_ = 0D;
return this;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Linear_descriptor;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear getDefaultInstanceForType() {
return org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear.getDefaultInstance();
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear build() {
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear buildPartial() {
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear result =
new org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear(this);
result.numFiniteBuckets_ = numFiniteBuckets_;
result.width_ = width_;
result.offset_ = offset_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear) {
return mergeFrom((org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear other) {
if (other == org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear.getDefaultInstance())
return this;
if (other.getNumFiniteBuckets() != 0) {
setNumFiniteBuckets(other.getNumFiniteBuckets());
}
if (other.getWidth() != 0D) {
setWidth(other.getWidth());
}
if (other.getOffset() != 0D) {
setOffset(other.getOffset());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int numFiniteBuckets_;
/**
*
*
*
* Must be greater than 0.
*
*
* int32 num_finite_buckets = 1;
*
* @return The numFiniteBuckets.
*/
@java.lang.Override
public int getNumFiniteBuckets() {
return numFiniteBuckets_;
}
/**
*
*
*
* Must be greater than 0.
*
*
* int32 num_finite_buckets = 1;
*
* @param value The numFiniteBuckets to set.
* @return This builder for chaining.
*/
public Builder setNumFiniteBuckets(int value) {
numFiniteBuckets_ = value;
onChanged();
return this;
}
/**
*
*
*
* Specifies an exponential sequence of buckets that have a width that is
* proportional to the value of the lower bound. Each bucket represents a
* constant relative uncertainty on a specific value in the bucket.
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
* Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
* Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
*
*
* Protobuf type {@code google.api.Distribution.BucketOptions.Exponential}
*/
public static final class Exponential extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.api.Distribution.BucketOptions.Exponential)
ExponentialOrBuilder {
private static final long serialVersionUID = 0L;
// Use Exponential.newBuilder() to construct.
private Exponential(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Exponential() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Exponential();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Exponential(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
numFiniteBuckets_ = input.readInt32();
break;
}
case 17:
{
growthFactor_ = input.readDouble();
break;
}
case 25:
{
scale_ = input.readDouble();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Exponential_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential.class,
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential.Builder.class);
}
public static final int NUM_FINITE_BUCKETS_FIELD_NUMBER = 1;
private int numFiniteBuckets_;
/**
*
*
*
* Must be greater than 0.
*
*
* int32 num_finite_buckets = 1;
*
* @return The numFiniteBuckets.
*/
@java.lang.Override
public int getNumFiniteBuckets() {
return numFiniteBuckets_;
}
public static final int GROWTH_FACTOR_FIELD_NUMBER = 2;
private double growthFactor_;
/**
*
*
*
* Must be greater than 1.
*
*
* double growth_factor = 2;
*
* @return The growthFactor.
*/
@java.lang.Override
public double getGrowthFactor() {
return growthFactor_;
}
public static final int SCALE_FIELD_NUMBER = 3;
private double scale_;
/**
*
*
*
* Specifies an exponential sequence of buckets that have a width that is
* proportional to the value of the lower bound. Each bucket represents a
* constant relative uncertainty on a specific value in the bucket.
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
* following boundaries:
* Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
* Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
*
*
* Protobuf type {@code google.api.Distribution.BucketOptions.Exponential}
*/
public static final class Builder
extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.api.Distribution.BucketOptions.Exponential)
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.ExponentialOrBuilder {
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Exponential_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential.class,
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential.Builder.class);
}
// Construct using org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
numFiniteBuckets_ = 0;
growthFactor_ = 0D;
scale_ = 0D;
return this;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Exponential_descriptor;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential getDefaultInstanceForType() {
return org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential.getDefaultInstance();
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential build() {
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential buildPartial() {
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential result =
new org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential(this);
result.numFiniteBuckets_ = numFiniteBuckets_;
result.growthFactor_ = growthFactor_;
result.scale_ = scale_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential) {
return mergeFrom((org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential other) {
if (other == org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential.getDefaultInstance())
return this;
if (other.getNumFiniteBuckets() != 0) {
setNumFiniteBuckets(other.getNumFiniteBuckets());
}
if (other.getGrowthFactor() != 0D) {
setGrowthFactor(other.getGrowthFactor());
}
if (other.getScale() != 0D) {
setScale(other.getScale());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int numFiniteBuckets_;
/**
*
*
*
* Must be greater than 0.
*
*
* int32 num_finite_buckets = 1;
*
* @return The numFiniteBuckets.
*/
@java.lang.Override
public int getNumFiniteBuckets() {
return numFiniteBuckets_;
}
/**
*
*
*
* Must be greater than 0.
*
*
* int32 num_finite_buckets = 1;
*
* @param value The numFiniteBuckets to set.
* @return This builder for chaining.
*/
public Builder setNumFiniteBuckets(int value) {
numFiniteBuckets_ = value;
onChanged();
return this;
}
/**
*
*
*
*
* double scale = 3;
*
* @param value The scale to set.
* @return This builder for chaining.
*/
public Builder setScale(double value) {
scale_ = value;
onChanged();
return this;
}
/**
*
*
*
* Must be greater than 0.
*
*
* double scale = 3;
*
* @return This builder for chaining.
*/
public Builder clearScale() {
scale_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.api.Distribution.BucketOptions.Exponential)
}
// @@protoc_insertion_point(class_scope:google.api.Distribution.BucketOptions.Exponential)
private static final org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential();
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.apache.rocketmq.shaded.com.google.protobuf.Parser PARSER =
new org.apache.rocketmq.shaded.com.google.protobuf.AbstractParser() {
@java.lang.Override
public Exponential parsePartialFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new Exponential(input, extensionRegistry);
}
};
public static org.apache.rocketmq.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExplicitOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.api.Distribution.BucketOptions.Explicit)
org.apache.rocketmq.shaded.com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @return A list containing the bounds.
*/
java.util.List getBoundsList();
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @return The count of bounds.
*/
int getBoundsCount();
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @param index The index of the element to return.
* @return The bounds at the given index.
*/
double getBounds(int index);
}
/**
*
*
*
* Specifies a set of buckets with arbitrary widths.
* There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
* boundaries:
* Upper bound (0 <= i < N-1): bounds[i]
* Lower bound (1 <= i < N); bounds[i - 1]
* The `bounds` field must contain at least one element. If `bounds` has
* only one element, then there are no finite buckets, and that single
* element is the common boundary of the overflow and underflow buckets.
*
*
* Protobuf type {@code google.api.Distribution.BucketOptions.Explicit}
*/
public static final class Explicit extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.api.Distribution.BucketOptions.Explicit)
ExplicitOrBuilder {
private static final long serialVersionUID = 0L;
// Use Explicit.newBuilder() to construct.
private Explicit(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Explicit() {
bounds_ = emptyDoubleList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Explicit();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Explicit(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9:
{
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
bounds_ = newDoubleList();
mutable_bitField0_ |= 0x00000001;
}
bounds_.addDouble(input.readDouble());
break;
}
case 10:
{
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
bounds_ = newDoubleList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
bounds_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
bounds_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Explicit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit.class,
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit.Builder.class);
}
public static final int BOUNDS_FIELD_NUMBER = 1;
private org.apache.rocketmq.shaded.com.google.protobuf.Internal.DoubleList bounds_;
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @return A list containing the bounds.
*/
@java.lang.Override
public java.util.List getBoundsList() {
return bounds_;
}
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @return The count of bounds.
*/
public int getBoundsCount() {
return bounds_.size();
}
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @param index The index of the element to return.
* @return The bounds at the given index.
*/
public double getBounds(int index) {
return bounds_.getDouble(index);
}
private int boundsMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
getSerializedSize();
if (getBoundsList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(boundsMemoizedSerializedSize);
}
for (int i = 0; i < bounds_.size(); i++) {
output.writeDoubleNoTag(bounds_.getDouble(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
dataSize = 8 * getBoundsList().size();
size += dataSize;
if (!getBoundsList().isEmpty()) {
size += 1;
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
}
boundsMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit)) {
return super.equals(obj);
}
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit other =
(org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit) obj;
if (!getBoundsList().equals(other.getBoundsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getBoundsCount() > 0) {
hash = (37 * hash) + BOUNDS_FIELD_NUMBER;
hash = (53 * hash) + getBoundsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parseFrom(
java.nio.ByteBuffer data) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parseFrom(
java.nio.ByteBuffer data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parseFrom(byte[] data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parseFrom(
byte[] data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parseFrom(
java.io.InputStream input) throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parseFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parseDelimitedFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Specifies a set of buckets with arbitrary widths.
* There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
* boundaries:
* Upper bound (0 <= i < N-1): bounds[i]
* Lower bound (1 <= i < N); bounds[i - 1]
* The `bounds` field must contain at least one element. If `bounds` has
* only one element, then there are no finite buckets, and that single
* element is the common boundary of the overflow and underflow buckets.
*
*
* Protobuf type {@code google.api.Distribution.BucketOptions.Explicit}
*/
public static final class Builder
extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.api.Distribution.BucketOptions.Explicit)
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.ExplicitOrBuilder {
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Explicit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit.class,
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit.Builder.class);
}
// Construct using org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
bounds_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_Explicit_descriptor;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit getDefaultInstanceForType() {
return org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit.getDefaultInstance();
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit build() {
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit buildPartial() {
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit result =
new org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
bounds_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.bounds_ = bounds_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit) {
return mergeFrom((org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit other) {
if (other == org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit.getDefaultInstance())
return this;
if (!other.bounds_.isEmpty()) {
if (bounds_.isEmpty()) {
bounds_ = other.bounds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBoundsIsMutable();
bounds_.addAll(other.bounds_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.rocketmq.shaded.com.google.protobuf.Internal.DoubleList bounds_ = emptyDoubleList();
private void ensureBoundsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
bounds_ = mutableCopy(bounds_);
bitField0_ |= 0x00000001;
}
}
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @return A list containing the bounds.
*/
public java.util.List getBoundsList() {
return ((bitField0_ & 0x00000001) != 0)
? java.util.Collections.unmodifiableList(bounds_)
: bounds_;
}
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @return The count of bounds.
*/
public int getBoundsCount() {
return bounds_.size();
}
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @param index The index of the element to return.
* @return The bounds at the given index.
*/
public double getBounds(int index) {
return bounds_.getDouble(index);
}
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @param index The index to set the value at.
* @param value The bounds to set.
* @return This builder for chaining.
*/
public Builder setBounds(int index, double value) {
ensureBoundsIsMutable();
bounds_.setDouble(index, value);
onChanged();
return this;
}
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @param value The bounds to add.
* @return This builder for chaining.
*/
public Builder addBounds(double value) {
ensureBoundsIsMutable();
bounds_.addDouble(value);
onChanged();
return this;
}
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @param values The bounds to add.
* @return This builder for chaining.
*/
public Builder addAllBounds(java.lang.Iterable values) {
ensureBoundsIsMutable();
org.apache.rocketmq.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bounds_);
onChanged();
return this;
}
/**
*
*
*
* The values must be monotonically increasing.
*
*
* repeated double bounds = 1;
*
* @return This builder for chaining.
*/
public Builder clearBounds() {
bounds_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.api.Distribution.BucketOptions.Explicit)
}
// @@protoc_insertion_point(class_scope:google.api.Distribution.BucketOptions.Explicit)
private static final org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit();
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.apache.rocketmq.shaded.com.google.protobuf.Parser PARSER =
new org.apache.rocketmq.shaded.com.google.protobuf.AbstractParser() {
@java.lang.Override
public Explicit parsePartialFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new Explicit(input, extensionRegistry);
}
};
public static org.apache.rocketmq.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int optionsCase_ = 0;
private java.lang.Object options_;
public enum OptionsCase
implements
org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLite,
org.apache.rocketmq.shaded.com.google.protobuf.AbstractMessage.InternalOneOfEnum {
LINEAR_BUCKETS(1),
EXPONENTIAL_BUCKETS(2),
EXPLICIT_BUCKETS(3),
OPTIONS_NOT_SET(0);
private final int value;
private OptionsCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static OptionsCase valueOf(int value) {
return forNumber(value);
}
public static OptionsCase forNumber(int value) {
switch (value) {
case 1:
return LINEAR_BUCKETS;
case 2:
return EXPONENTIAL_BUCKETS;
case 3:
return EXPLICIT_BUCKETS;
case 0:
return OPTIONS_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public OptionsCase getOptionsCase() {
return OptionsCase.forNumber(optionsCase_);
}
public static final int LINEAR_BUCKETS_FIELD_NUMBER = 1;
/**
*
*
*
* The linear bucket.
*
*
* .google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
*
* @return Whether the linearBuckets field is set.
*/
@java.lang.Override
public boolean hasLinearBuckets() {
return optionsCase_ == 1;
}
/**
*
*
*
*
* .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.ExplicitOrBuilder
getExplicitBucketsOrBuilder() {
if (optionsCase_ == 3) {
return (org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit) options_;
}
return org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (optionsCase_ == 1) {
output.writeMessage(1, (org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear) options_);
}
if (optionsCase_ == 2) {
output.writeMessage(2, (org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential) options_);
}
if (optionsCase_ == 3) {
output.writeMessage(3, (org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit) options_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (optionsCase_ == 1) {
size +=
org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(
1, (org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear) options_);
}
if (optionsCase_ == 2) {
size +=
org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(
2, (org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Exponential) options_);
}
if (optionsCase_ == 3) {
size +=
org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(
3, (org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Explicit) options_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions)) {
return super.equals(obj);
}
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions other =
(org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions) obj;
if (!getOptionsCase().equals(other.getOptionsCase())) return false;
switch (optionsCase_) {
case 1:
if (!getLinearBuckets().equals(other.getLinearBuckets())) return false;
break;
case 2:
if (!getExponentialBuckets().equals(other.getExponentialBuckets())) return false;
break;
case 3:
if (!getExplicitBuckets().equals(other.getExplicitBuckets())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (optionsCase_) {
case 1:
hash = (37 * hash) + LINEAR_BUCKETS_FIELD_NUMBER;
hash = (53 * hash) + getLinearBuckets().hashCode();
break;
case 2:
hash = (37 * hash) + EXPONENTIAL_BUCKETS_FIELD_NUMBER;
hash = (53 * hash) + getExponentialBuckets().hashCode();
break;
case 3:
hash = (37 * hash) + EXPLICIT_BUCKETS_FIELD_NUMBER;
hash = (53 * hash) + getExplicitBuckets().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parseFrom(java.nio.ByteBuffer data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parseFrom(
java.nio.ByteBuffer data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parseFrom(byte[] data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parseFrom(
byte[] data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parseFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parseDelimitedFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* `BucketOptions` describes the bucket boundaries used to create a histogram
* for the distribution. The buckets can be in a linear sequence, an
* exponential sequence, or each bucket can be specified explicitly.
* `BucketOptions` does not include the number of values in each bucket.
* A bucket has an inclusive lower bound and exclusive upper bound for the
* values that are counted for that bucket. The upper bound of a bucket must
* be strictly greater than the lower bound. The sequence of N buckets for a
* distribution consists of an underflow bucket (number 0), zero or more
* finite buckets (number 1 through N - 2) and an overflow bucket (number N -
* 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
* same as the upper bound of bucket i - 1. The buckets span the whole range
* of finite values: lower bound of the underflow bucket is -infinity and the
* upper bound of the overflow bucket is +infinity. The finite buckets are
* so-called because both bounds are finite.
*
*
* Protobuf type {@code google.api.Distribution.BucketOptions}
*/
public static final class Builder
extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.api.Distribution.BucketOptions)
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptionsOrBuilder {
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.class,
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Builder.class);
}
// Construct using org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
optionsCase_ = 0;
options_ = null;
return this;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_BucketOptions_descriptor;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions getDefaultInstanceForType() {
return org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.getDefaultInstance();
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions build() {
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions buildPartial() {
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions result =
new org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions(this);
if (optionsCase_ == 1) {
if (linearBucketsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = linearBucketsBuilder_.build();
}
}
if (optionsCase_ == 2) {
if (exponentialBucketsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = exponentialBucketsBuilder_.build();
}
}
if (optionsCase_ == 3) {
if (explicitBucketsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = explicitBucketsBuilder_.build();
}
}
result.optionsCase_ = optionsCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions) {
return mergeFrom((org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions other) {
if (other == org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.getDefaultInstance()) return this;
switch (other.getOptionsCase()) {
case LINEAR_BUCKETS:
{
mergeLinearBuckets(other.getLinearBuckets());
break;
}
case EXPONENTIAL_BUCKETS:
{
mergeExponentialBuckets(other.getExponentialBuckets());
break;
}
case EXPLICIT_BUCKETS:
{
mergeExplicitBuckets(other.getExplicitBuckets());
break;
}
case OPTIONS_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int optionsCase_ = 0;
private java.lang.Object options_;
public OptionsCase getOptionsCase() {
return OptionsCase.forNumber(optionsCase_);
}
public Builder clearOptions() {
optionsCase_ = 0;
options_ = null;
onChanged();
return this;
}
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear,
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.Linear.Builder,
org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions.LinearOrBuilder>
linearBucketsBuilder_;
/**
*
*
*
* The linear bucket.
*
*
* .google.api.Distribution.BucketOptions.Linear linear_buckets = 1;
*
* @return Whether the linearBuckets field is set.
*/
@java.lang.Override
public boolean hasLinearBuckets() {
return optionsCase_ == 1;
}
/**
*
*
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Exemplars are example points that may be used to annotate aggregated
* distribution values. They are metadata that gives information about a
* particular value added to a Distribution bucket, such as a trace ID that
* was active when a value was added. They may contain further information,
* such as a example values and timestamps, origin, etc.
*
*
* Protobuf type {@code google.api.Distribution.Exemplar}
*/
public static final class Exemplar extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.api.Distribution.Exemplar)
ExemplarOrBuilder {
private static final long serialVersionUID = 0L;
// Use Exemplar.newBuilder() to construct.
private Exemplar(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Exemplar() {
attachments_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Exemplar();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Exemplar(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9:
{
value_ = input.readDouble();
break;
}
case 18:
{
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder subBuilder = null;
if (timestamp_ != null) {
subBuilder = timestamp_.toBuilder();
}
timestamp_ =
input.readMessage(org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timestamp_);
timestamp_ = subBuilder.buildPartial();
}
break;
}
case 26:
{
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
attachments_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
attachments_.add(
input.readMessage(org.apache.rocketmq.shaded.com.google.protobuf.Any.parser(), extensionRegistry));
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
attachments_ = java.util.Collections.unmodifiableList(attachments_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_Exemplar_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.api.DistributionProto
.internal_static_google_api_Distribution_Exemplar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar.class,
org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private double value_;
/**
*
*
*
* Value of the exemplar point. This value determines to which bucket the
* exemplar belongs.
*
*
* double value = 1;
*
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private org.apache.rocketmq.shaded.com.google.protobuf.Timestamp timestamp_;
/**
*
*
*
* The observation (sampling) time of the above value.
*
*
* .google.protobuf.Timestamp timestamp = 2;
*
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return timestamp_ != null;
}
/**
*
*
*
* The observation (sampling) time of the above value.
*
* The observation (sampling) time of the above value.
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
return getTimestamp();
}
public static final int ATTACHMENTS_FIELD_NUMBER = 3;
private java.util.List attachments_;
/**
*
*
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
*
* repeated .google.protobuf.Any attachments = 3;
*/
@java.lang.Override
public int getAttachmentsCount() {
return attachments_.size();
}
/**
*
*
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
*
* repeated .google.protobuf.Any attachments = 3;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(int index) {
return attachments_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (java.lang.Double.doubleToRawLongBits(value_) != 0) {
output.writeDouble(1, value_);
}
if (timestamp_ != null) {
output.writeMessage(2, getTimestamp());
}
for (int i = 0; i < attachments_.size(); i++) {
output.writeMessage(3, attachments_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Double.doubleToRawLongBits(value_) != 0) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeDoubleSize(1, value_);
}
if (timestamp_ != null) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimestamp());
}
for (int i = 0; i < attachments_.size(); i++) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(3, attachments_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar)) {
return super.equals(obj);
}
org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar other = (org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar) obj;
if (java.lang.Double.doubleToLongBits(getValue())
!= java.lang.Double.doubleToLongBits(other.getValue())) return false;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp().equals(other.getTimestamp())) return false;
}
if (!getAttachmentsList().equals(other.getAttachmentsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash =
(53 * hash)
+ org.apache.rocketmq.shaded.com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getValue()));
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
if (getAttachmentsCount() > 0) {
hash = (37 * hash) + ATTACHMENTS_FIELD_NUMBER;
hash = (53 * hash) + getAttachmentsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar parseFrom(java.nio.ByteBuffer data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar parseFrom(
java.nio.ByteBuffer data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar parseFrom(byte[] data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar parseFrom(
byte[] data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar parseFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar parseDelimitedFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Exemplars are example points that may be used to annotate aggregated
* distribution values. They are metadata that gives information about a
* particular value added to a Distribution bucket, such as a trace ID that
* was active when a value was added. They may contain further information,
* such as a example values and timestamps, origin, etc.
*
* Value of the exemplar point. This value determines to which bucket the
* exemplar belongs.
*
*
* double value = 1;
*
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
/**
*
*
*
* Value of the exemplar point. This value determines to which bucket the
* exemplar belongs.
*
*
* double value = 1;
*
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(double value) {
value_ = value;
onChanged();
return this;
}
/**
*
*
*
* Value of the exemplar point. This value determines to which bucket the
* exemplar belongs.
*
*
* double value = 1;
*
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = 0D;
onChanged();
return this;
}
private org.apache.rocketmq.shaded.com.google.protobuf.Timestamp timestamp_;
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp,
org.apache.rocketmq.shaded.com.google.protobuf.Timestamp.Builder,
org.apache.rocketmq.shaded.com.google.protobuf.TimestampOrBuilder>
timestampBuilder_;
/**
*
*
*
* The observation (sampling) time of the above value.
*
*
* .google.protobuf.Timestamp timestamp = 2;
*
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return timestampBuilder_ != null || timestamp_ != null;
}
/**
*
*
*
* The observation (sampling) time of the above value.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
*
* repeated .google.protobuf.Any attachments = 3;
*/
public int getAttachmentsCount() {
if (attachmentsBuilder_ == null) {
return attachments_.size();
} else {
return attachmentsBuilder_.getCount();
}
}
/**
*
*
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
* Contextual information about the example value. Examples are:
* Trace: type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.SpanContext
* Literal string: type.googleapis.org.apache.rocketmq.shaded.com.google.protobuf.StringValue
* Labels dropped during aggregation:
* type.googleapis.org.apache.rocketmq.shaded.com.google.monitoring.v3.DroppedLabels
* There may be only a single attachment of any given message type in a
* single exemplar, and this is enforced by the system.
*
*
* repeated .google.protobuf.Any attachments = 3;
*/
public java.util.List getAttachmentsBuilderList() {
return getAttachmentsFieldBuilder().getBuilderList();
}
private org.apache.rocketmq.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Any,
org.apache.rocketmq.shaded.com.google.protobuf.Any.Builder,
org.apache.rocketmq.shaded.com.google.protobuf.AnyOrBuilder>
getAttachmentsFieldBuilder() {
if (attachmentsBuilder_ == null) {
attachmentsBuilder_ =
new org.apache.rocketmq.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.protobuf.Any,
org.apache.rocketmq.shaded.com.google.protobuf.Any.Builder,
org.apache.rocketmq.shaded.com.google.protobuf.AnyOrBuilder>(
attachments_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
attachments_ = null;
}
return attachmentsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.api.Distribution.Exemplar)
}
// @@protoc_insertion_point(class_scope:google.api.Distribution.Exemplar)
private static final org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar();
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.apache.rocketmq.shaded.com.google.protobuf.Parser PARSER =
new org.apache.rocketmq.shaded.com.google.protobuf.AbstractParser() {
@java.lang.Override
public Exemplar parsePartialFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new Exemplar(input, extensionRegistry);
}
};
public static org.apache.rocketmq.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.Exemplar getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int COUNT_FIELD_NUMBER = 1;
private long count_;
/**
*
*
*
* The number of values in the population. Must be non-negative. This value
* must equal the sum of the values in `bucket_counts` if a histogram is
* provided.
*
*
* int64 count = 1;
*
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
public static final int MEAN_FIELD_NUMBER = 2;
private double mean_;
/**
*
*
*
* The arithmetic mean of the values in the population. If `count` is zero
* then this field must be zero.
*
*
* double mean = 2;
*
* @return The mean.
*/
@java.lang.Override
public double getMean() {
return mean_;
}
public static final int SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER = 3;
private double sumOfSquaredDeviation_;
/**
*
*
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
* Sum[i=1..n]((x_i - mean)^2)
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
* If `count` is zero then this field must be zero.
*
*
* double sum_of_squared_deviation = 3;
*
* @return The sumOfSquaredDeviation.
*/
@java.lang.Override
public double getSumOfSquaredDeviation() {
return sumOfSquaredDeviation_;
}
public static final int RANGE_FIELD_NUMBER = 4;
private org.apache.rocketmq.shaded.com.google.api.Distribution.Range range_;
/**
*
*
*
* If specified, contains the range of the population values. The field
* must not be present if the `count` is zero.
*
*
* .google.api.Distribution.Range range = 4;
*
* @return Whether the range field is set.
*/
@java.lang.Override
public boolean hasRange() {
return range_ != null;
}
/**
*
*
*
* If specified, contains the range of the population values. The field
* must not be present if the `count` is zero.
*
*
* .google.api.Distribution.Range range = 4;
*
* @return The range.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.Range getRange() {
return range_ == null ? org.apache.rocketmq.shaded.com.google.api.Distribution.Range.getDefaultInstance() : range_;
}
/**
*
*
*
* If specified, contains the range of the population values. The field
* must not be present if the `count` is zero.
*
*
* .google.api.Distribution.Range range = 4;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.RangeOrBuilder getRangeOrBuilder() {
return getRange();
}
public static final int BUCKET_OPTIONS_FIELD_NUMBER = 6;
private org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptions bucketOptions_;
/**
*
*
*
* Defines the histogram bucket boundaries. If the distribution does not
* contain a histogram, then omit this field.
*
*
* .google.api.Distribution.BucketOptions bucket_options = 6;
*
* @return Whether the bucketOptions field is set.
*/
@java.lang.Override
public boolean hasBucketOptions() {
return bucketOptions_ != null;
}
/**
*
*
*
* Defines the histogram bucket boundaries. If the distribution does not
* contain a histogram, then omit this field.
*
* Defines the histogram bucket boundaries. If the distribution does not
* contain a histogram, then omit this field.
*
*
* .google.api.Distribution.BucketOptions bucket_options = 6;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder() {
return getBucketOptions();
}
public static final int BUCKET_COUNTS_FIELD_NUMBER = 7;
private org.apache.rocketmq.shaded.com.google.protobuf.Internal.LongList bucketCounts_;
/**
*
*
*
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
*
*
* repeated int64 bucket_counts = 7;
*
* @return A list containing the bucketCounts.
*/
@java.lang.Override
public java.util.List getBucketCountsList() {
return bucketCounts_;
}
/**
*
*
*
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
*
*
* repeated int64 bucket_counts = 7;
*
* @return The count of bucketCounts.
*/
public int getBucketCountsCount() {
return bucketCounts_.size();
}
/**
*
*
*
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
*
*
* repeated int64 bucket_counts = 7;
*
* @param index The index of the element to return.
* @return The bucketCounts at the given index.
*/
public long getBucketCounts(int index) {
return bucketCounts_.getLong(index);
}
private int bucketCountsMemoizedSerializedSize = -1;
public static final int EXEMPLARS_FIELD_NUMBER = 10;
private java.util.List exemplars_;
/**
*
*
*
*
* repeated .google.api.Distribution.Exemplar exemplars = 10;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.api.Distribution.ExemplarOrBuilder getExemplarsOrBuilder(int index) {
return exemplars_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
getSerializedSize();
if (count_ != 0L) {
output.writeInt64(1, count_);
}
if (java.lang.Double.doubleToRawLongBits(mean_) != 0) {
output.writeDouble(2, mean_);
}
if (java.lang.Double.doubleToRawLongBits(sumOfSquaredDeviation_) != 0) {
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_.getLong(i));
}
for (int i = 0; i < exemplars_.size(); i++) {
output.writeMessage(10, exemplars_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (count_ != 0L) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeInt64Size(1, count_);
}
if (java.lang.Double.doubleToRawLongBits(mean_) != 0) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeDoubleSize(2, mean_);
}
if (java.lang.Double.doubleToRawLongBits(sumOfSquaredDeviation_) != 0) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeDoubleSize(3, sumOfSquaredDeviation_);
}
if (range_ != null) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRange());
}
if (bucketOptions_ != null) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBucketOptions());
}
{
int dataSize = 0;
for (int i = 0; i < bucketCounts_.size(); i++) {
dataSize +=
org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(bucketCounts_.getLong(i));
}
size += dataSize;
if (!getBucketCountsList().isEmpty()) {
size += 1;
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
}
bucketCountsMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < exemplars_.size(); i++) {
size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(10, exemplars_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.rocketmq.shaded.com.google.api.Distribution)) {
return super.equals(obj);
}
org.apache.rocketmq.shaded.com.google.api.Distribution other = (org.apache.rocketmq.shaded.com.google.api.Distribution) obj;
if (getCount() != other.getCount()) return false;
if (java.lang.Double.doubleToLongBits(getMean())
!= java.lang.Double.doubleToLongBits(other.getMean())) return false;
if (java.lang.Double.doubleToLongBits(getSumOfSquaredDeviation())
!= java.lang.Double.doubleToLongBits(other.getSumOfSquaredDeviation())) return false;
if (hasRange() != other.hasRange()) return false;
if (hasRange()) {
if (!getRange().equals(other.getRange())) return false;
}
if (hasBucketOptions() != other.hasBucketOptions()) return false;
if (hasBucketOptions()) {
if (!getBucketOptions().equals(other.getBucketOptions())) return false;
}
if (!getBucketCountsList().equals(other.getBucketCountsList())) return false;
if (!getExemplarsList().equals(other.getExemplarsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + org.apache.rocketmq.shaded.com.google.protobuf.Internal.hashLong(getCount());
hash = (37 * hash) + MEAN_FIELD_NUMBER;
hash =
(53 * hash)
+ org.apache.rocketmq.shaded.com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMean()));
hash = (37 * hash) + SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER;
hash =
(53 * hash)
+ org.apache.rocketmq.shaded.com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getSumOfSquaredDeviation()));
if (hasRange()) {
hash = (37 * hash) + RANGE_FIELD_NUMBER;
hash = (53 * hash) + getRange().hashCode();
}
if (hasBucketOptions()) {
hash = (37 * hash) + BUCKET_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getBucketOptions().hashCode();
}
if (getBucketCountsCount() > 0) {
hash = (37 * hash) + BUCKET_COUNTS_FIELD_NUMBER;
hash = (53 * hash) + getBucketCountsList().hashCode();
}
if (getExemplarsCount() > 0) {
hash = (37 * hash) + EXEMPLARS_FIELD_NUMBER;
hash = (53 * hash) + getExemplarsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution parseFrom(java.nio.ByteBuffer data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution parseFrom(
java.nio.ByteBuffer data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution parseFrom(org.apache.rocketmq.shaded.com.google.protobuf.ByteString data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.ByteString data,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution parseFrom(byte[] data)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution parseFrom(
byte[] data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution parseFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution parseDelimitedFrom(
java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution parseFrom(org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static org.apache.rocketmq.shaded.com.google.api.Distribution parseFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.rocketmq.shaded.com.google.api.Distribution prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* `Distribution` contains summary statistics for a population of values. It
* optionally contains a histogram representing the distribution of those values
* across a set of buckets.
* The summary statistics are the count, mean, sum of the squared deviation from
* the mean, the minimum, and the maximum of the set of population of values.
* The histogram is based on a sequence of buckets and gives a count of values
* that fall into each bucket. The boundaries of the buckets are given either
* explicitly or by formulas for buckets of fixed or exponentially increasing
* widths.
* Although it is not forbidden, it is generally a bad idea to include
* non-finite values (infinities or NaNs) in the population of values, as this
* will render the `mean` and `sum_of_squared_deviation` fields meaningless.
*
* The number of values in the population. Must be non-negative. This value
* must equal the sum of the values in `bucket_counts` if a histogram is
* provided.
*
*
* int64 count = 1;
*
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
/**
*
*
*
* The number of values in the population. Must be non-negative. This value
* must equal the sum of the values in `bucket_counts` if a histogram is
* provided.
*
*
* int64 count = 1;
*
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(long value) {
count_ = value;
onChanged();
return this;
}
/**
*
*
*
* The number of values in the population. Must be non-negative. This value
* must equal the sum of the values in `bucket_counts` if a histogram is
* provided.
*
* The arithmetic mean of the values in the population. If `count` is zero
* then this field must be zero.
*
*
* double mean = 2;
*
* @return The mean.
*/
@java.lang.Override
public double getMean() {
return mean_;
}
/**
*
*
*
* The arithmetic mean of the values in the population. If `count` is zero
* then this field must be zero.
*
*
* double mean = 2;
*
* @param value The mean to set.
* @return This builder for chaining.
*/
public Builder setMean(double value) {
mean_ = value;
onChanged();
return this;
}
/**
*
*
*
* The arithmetic mean of the values in the population. If `count` is zero
* then this field must be zero.
*
*
* double mean = 2;
*
* @return This builder for chaining.
*/
public Builder clearMean() {
mean_ = 0D;
onChanged();
return this;
}
private double sumOfSquaredDeviation_;
/**
*
*
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
* Sum[i=1..n]((x_i - mean)^2)
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
* If `count` is zero then this field must be zero.
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
* Sum[i=1..n]((x_i - mean)^2)
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
* If `count` is zero then this field must be zero.
*
*
* double sum_of_squared_deviation = 3;
*
* @param value The sumOfSquaredDeviation to set.
* @return This builder for chaining.
*/
public Builder setSumOfSquaredDeviation(double value) {
sumOfSquaredDeviation_ = value;
onChanged();
return this;
}
/**
*
*
*
* The sum of squared deviations from the mean of the values in the
* population. For values x_i this is:
* Sum[i=1..n]((x_i - mean)^2)
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
* describes Welford's method for accumulating this sum in one pass.
* If `count` is zero then this field must be zero.
*
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
*
*
* repeated int64 bucket_counts = 7;
*
* @return A list containing the bucketCounts.
*/
public java.util.List getBucketCountsList() {
return ((bitField0_ & 0x00000001) != 0)
? java.util.Collections.unmodifiableList(bucketCounts_)
: bucketCounts_;
}
/**
*
*
*
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
*
*
* repeated int64 bucket_counts = 7;
*
* @return The count of bucketCounts.
*/
public int getBucketCountsCount() {
return bucketCounts_.size();
}
/**
*
*
*
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
*
*
* repeated int64 bucket_counts = 7;
*
* @param index The index of the element to return.
* @return The bucketCounts at the given index.
*/
public long getBucketCounts(int index) {
return bucketCounts_.getLong(index);
}
/**
*
*
*
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
*
*
* repeated int64 bucket_counts = 7;
*
* @param index The index to set the value at.
* @param value The bucketCounts to set.
* @return This builder for chaining.
*/
public Builder setBucketCounts(int index, long value) {
ensureBucketCountsIsMutable();
bucketCounts_.setLong(index, value);
onChanged();
return this;
}
/**
*
*
*
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
*
*
* repeated int64 bucket_counts = 7;
*
* @param value The bucketCounts to add.
* @return This builder for chaining.
*/
public Builder addBucketCounts(long value) {
ensureBucketCountsIsMutable();
bucketCounts_.addLong(value);
onChanged();
return this;
}
/**
*
*
*
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
*
*
* repeated int64 bucket_counts = 7;
*
* @param values The bucketCounts to add.
* @return This builder for chaining.
*/
public Builder addAllBucketCounts(java.lang.Iterable values) {
ensureBucketCountsIsMutable();
org.apache.rocketmq.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bucketCounts_);
onChanged();
return this;
}
/**
*
*
*
* The number of values in each bucket of the histogram, as described in
* `bucket_options`. If the distribution does not have a histogram, then omit
* this field. If there is a histogram, then the sum of the values in
* `bucket_counts` must equal the value in the `count` field of the
* distribution.
* If present, `bucket_counts` should contain N values, where N is the number
* of buckets specified in `bucket_options`. If you supply fewer than N
* values, the remaining values are assumed to be 0.
* The order of the values in `bucket_counts` follows the bucket numbering
* schemes described for the three bucket types. The first value must be the
* count for the underflow bucket (number 0). The next N-2 values are the
* counts for the finite buckets (number 1 through N-2). The N'th value in
* `bucket_counts` is the count for the overflow bucket (number N-1).
*