Package com.google.api.servicecontrol.v1
Class Distribution
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.api.servicecontrol.v1.Distribution
- All Implemented Interfaces:
DistributionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Distribution
extends com.google.protobuf.GeneratedMessage
implements DistributionOrBuilder
Distribution represents a frequency distribution of double-valued sample points. It contains the size of the population of sample points plus additional optional information: * the arithmetic mean of the samples * the minimum and maximum of the samples * the sum-squared-deviation of the samples, used to compute variance * a histogram of the values of the sample pointsProtobuf type
google.api.servicecontrol.v1.Distribution- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final classDistribution represents a frequency distribution of double-valued sample points.static final classDescribing buckets with arbitrary user-provided width.static interfacestatic final classDescribing buckets with exponentially growing width.static interfacestatic final classDescribing buckets with constant width.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetBucketCounts(int index) The number of samples in each histogram bucket.intThe number of samples in each histogram bucket.The number of samples in each histogram bucket.longgetCount()The total number of samples in the distribution.static Distributionstatic final com.google.protobuf.Descriptors.DescriptorgetExemplars(int index) Example points.intExample points.Example points.getExemplarsOrBuilder(int index) Example points.List<? extends Distribution.ExemplarOrBuilder>Example points.Buckets with arbitrary user-provided width.Buckets with arbitrary user-provided width.Buckets with exponentially growing width.Buckets with exponentially growing width.Buckets with constant width.Buckets with constant width.doubleThe maximum of the population of values.doublegetMean()The arithmetic mean of the samples in the distribution.doubleThe minimum of the population of values.com.google.protobuf.Parser<Distribution>intdoubleThe sum of squared deviations from the mean: Sum[i=1..count]((x_i - mean)^2) where each x_i is a sample values.booleanBuckets with arbitrary user-provided width.booleanBuckets with exponentially growing width.inthashCode()booleanBuckets with constant width.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Distribution.Builderstatic Distribution.BuildernewBuilder(Distribution prototype) protected Distribution.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DistributionparseDelimitedFrom(InputStream input) static DistributionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DistributionparseFrom(byte[] data) static DistributionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DistributionparseFrom(com.google.protobuf.ByteString data) static DistributionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DistributionparseFrom(com.google.protobuf.CodedInputStream input) static DistributionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DistributionparseFrom(InputStream input) static DistributionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DistributionparseFrom(ByteBuffer data) static DistributionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Distribution>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
COUNT_FIELD_NUMBER
public static final int COUNT_FIELD_NUMBER- See Also:
-
MEAN_FIELD_NUMBER
public static final int MEAN_FIELD_NUMBER- See Also:
-
MINIMUM_FIELD_NUMBER
public static final int MINIMUM_FIELD_NUMBER- See Also:
-
MAXIMUM_FIELD_NUMBER
public static final int MAXIMUM_FIELD_NUMBER- See Also:
-
SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER
public static final int SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER- See Also:
-
BUCKET_COUNTS_FIELD_NUMBER
public static final int BUCKET_COUNTS_FIELD_NUMBER- See Also:
-
LINEAR_BUCKETS_FIELD_NUMBER
public static final int LINEAR_BUCKETS_FIELD_NUMBER- See Also:
-
EXPONENTIAL_BUCKETS_FIELD_NUMBER
public static final int EXPONENTIAL_BUCKETS_FIELD_NUMBER- See Also:
-
EXPLICIT_BUCKETS_FIELD_NUMBER
public static final int EXPLICIT_BUCKETS_FIELD_NUMBER- See Also:
-
EXEMPLARS_FIELD_NUMBER
public static final int EXEMPLARS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getBucketOptionCase
- Specified by:
getBucketOptionCasein interfaceDistributionOrBuilder
-
getCount
public long getCount()The total number of samples in the distribution. Must be >= 0.
int64 count = 1;- Specified by:
getCountin interfaceDistributionOrBuilder- Returns:
- The count.
-
getMean
public double getMean()The arithmetic mean of the samples in the distribution. If `count` is zero then this field must be zero.
double mean = 2;- Specified by:
getMeanin interfaceDistributionOrBuilder- Returns:
- The mean.
-
getMinimum
public double getMinimum()The minimum of the population of values. Ignored if `count` is zero.
double minimum = 3;- Specified by:
getMinimumin interfaceDistributionOrBuilder- Returns:
- The minimum.
-
getMaximum
public double getMaximum()The maximum of the population of values. Ignored if `count` is zero.
double maximum = 4;- Specified by:
getMaximumin interfaceDistributionOrBuilder- Returns:
- The maximum.
-
getSumOfSquaredDeviation
public double getSumOfSquaredDeviation()The sum of squared deviations from the mean: Sum[i=1..count]((x_i - mean)^2) where each x_i is a sample values. If `count` is zero then this field must be zero, otherwise validation of the request fails.
double sum_of_squared_deviation = 5;- Specified by:
getSumOfSquaredDeviationin interfaceDistributionOrBuilder- Returns:
- The sumOfSquaredDeviation.
-
getBucketCountsList
The number of samples in each histogram bucket. `bucket_counts` are optional. If present, they must sum to the `count` value. The buckets are defined below in `bucket_option`. There are N buckets. `bucket_counts[0]` is the number of samples in the underflow bucket. `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples in each of the finite buckets. And `bucket_counts[N] is the number of samples in the overflow bucket. See the comments of `bucket_option` below for more details. Any suffix of trailing zeros may be omitted.
repeated int64 bucket_counts = 6;- Specified by:
getBucketCountsListin interfaceDistributionOrBuilder- Returns:
- A list containing the bucketCounts.
-
getBucketCountsCount
public int getBucketCountsCount()The number of samples in each histogram bucket. `bucket_counts` are optional. If present, they must sum to the `count` value. The buckets are defined below in `bucket_option`. There are N buckets. `bucket_counts[0]` is the number of samples in the underflow bucket. `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples in each of the finite buckets. And `bucket_counts[N] is the number of samples in the overflow bucket. See the comments of `bucket_option` below for more details. Any suffix of trailing zeros may be omitted.
repeated int64 bucket_counts = 6;- Specified by:
getBucketCountsCountin interfaceDistributionOrBuilder- Returns:
- The count of bucketCounts.
-
getBucketCounts
public long getBucketCounts(int index) The number of samples in each histogram bucket. `bucket_counts` are optional. If present, they must sum to the `count` value. The buckets are defined below in `bucket_option`. There are N buckets. `bucket_counts[0]` is the number of samples in the underflow bucket. `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples in each of the finite buckets. And `bucket_counts[N] is the number of samples in the overflow bucket. See the comments of `bucket_option` below for more details. Any suffix of trailing zeros may be omitted.
repeated int64 bucket_counts = 6;- Specified by:
getBucketCountsin interfaceDistributionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The bucketCounts at the given index.
-
hasLinearBuckets
public boolean hasLinearBuckets()Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;- Specified by:
hasLinearBucketsin interfaceDistributionOrBuilder- Returns:
- Whether the linearBuckets field is set.
-
getLinearBuckets
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;- Specified by:
getLinearBucketsin interfaceDistributionOrBuilder- Returns:
- The linearBuckets.
-
getLinearBucketsOrBuilder
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;- Specified by:
getLinearBucketsOrBuilderin interfaceDistributionOrBuilder
-
hasExponentialBuckets
public boolean hasExponentialBuckets()Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;- Specified by:
hasExponentialBucketsin interfaceDistributionOrBuilder- Returns:
- Whether the exponentialBuckets field is set.
-
getExponentialBuckets
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;- Specified by:
getExponentialBucketsin interfaceDistributionOrBuilder- Returns:
- The exponentialBuckets.
-
getExponentialBucketsOrBuilder
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;- Specified by:
getExponentialBucketsOrBuilderin interfaceDistributionOrBuilder
-
hasExplicitBuckets
public boolean hasExplicitBuckets()Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;- Specified by:
hasExplicitBucketsin interfaceDistributionOrBuilder- Returns:
- Whether the explicitBuckets field is set.
-
getExplicitBuckets
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;- Specified by:
getExplicitBucketsin interfaceDistributionOrBuilder- Returns:
- The explicitBuckets.
-
getExplicitBucketsOrBuilder
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;- Specified by:
getExplicitBucketsOrBuilderin interfaceDistributionOrBuilder
-
getExemplarsList
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;- Specified by:
getExemplarsListin interfaceDistributionOrBuilder
-
getExemplarsOrBuilderList
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;- Specified by:
getExemplarsOrBuilderListin interfaceDistributionOrBuilder
-
getExemplarsCount
public int getExemplarsCount()Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;- Specified by:
getExemplarsCountin interfaceDistributionOrBuilder
-
getExemplars
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;- Specified by:
getExemplarsin interfaceDistributionOrBuilder
-
getExemplarsOrBuilder
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;- Specified by:
getExemplarsOrBuilderin interfaceDistributionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Distribution parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Distribution parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Distribution parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Distribution parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Distribution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Distribution parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Distribution parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Distribution parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Distribution parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Distribution.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-