Package com.google.api.servicecontrol.v1
Class Distribution
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class Distribution extends com.google.protobuf.GeneratedMessageV3 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 points
Protobuf typegoogle.api.servicecontrol.v1.Distribution
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Distribution.BucketOptionCase
static class
Distribution.Builder
Distribution represents a frequency distribution of double-valued sample points.static class
Distribution.ExplicitBuckets
Describing buckets with arbitrary user-provided width.static interface
Distribution.ExplicitBucketsOrBuilder
static class
Distribution.ExponentialBuckets
Describing buckets with exponentially growing width.static interface
Distribution.ExponentialBucketsOrBuilder
static class
Distribution.LinearBuckets
Describing buckets with constant width.static interface
Distribution.LinearBucketsOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
BUCKET_COUNTS_FIELD_NUMBER
static int
COUNT_FIELD_NUMBER
static int
EXEMPLARS_FIELD_NUMBER
static int
EXPLICIT_BUCKETS_FIELD_NUMBER
static int
EXPONENTIAL_BUCKETS_FIELD_NUMBER
static int
LINEAR_BUCKETS_FIELD_NUMBER
static int
MAXIMUM_FIELD_NUMBER
static int
MEAN_FIELD_NUMBER
static int
MINIMUM_FIELD_NUMBER
static int
SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
long
getBucketCounts(int index)
The number of samples in each histogram bucket.int
getBucketCountsCount()
The number of samples in each histogram bucket.List<Long>
getBucketCountsList()
The number of samples in each histogram bucket.Distribution.BucketOptionCase
getBucketOptionCase()
long
getCount()
The total number of samples in the distribution.static Distribution
getDefaultInstance()
Distribution
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.api.Distribution.Exemplar
getExemplars(int index)
Example points.int
getExemplarsCount()
Example points.List<com.google.api.Distribution.Exemplar>
getExemplarsList()
Example points.com.google.api.Distribution.ExemplarOrBuilder
getExemplarsOrBuilder(int index)
Example points.List<? extends com.google.api.Distribution.ExemplarOrBuilder>
getExemplarsOrBuilderList()
Example points.Distribution.ExplicitBuckets
getExplicitBuckets()
Buckets with arbitrary user-provided width.Distribution.ExplicitBucketsOrBuilder
getExplicitBucketsOrBuilder()
Buckets with arbitrary user-provided width.Distribution.ExponentialBuckets
getExponentialBuckets()
Buckets with exponentially growing width.Distribution.ExponentialBucketsOrBuilder
getExponentialBucketsOrBuilder()
Buckets with exponentially growing width.Distribution.LinearBuckets
getLinearBuckets()
Buckets with constant width.Distribution.LinearBucketsOrBuilder
getLinearBucketsOrBuilder()
Buckets with constant width.double
getMaximum()
The maximum of the population of values.double
getMean()
The arithmetic mean of the samples in the distribution.double
getMinimum()
The minimum of the population of values.com.google.protobuf.Parser<Distribution>
getParserForType()
int
getSerializedSize()
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.boolean
hasExplicitBuckets()
Buckets with arbitrary user-provided width.boolean
hasExponentialBuckets()
Buckets with exponentially growing width.int
hashCode()
boolean
hasLinearBuckets()
Buckets with constant width.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Distribution.Builder
newBuilder()
static Distribution.Builder
newBuilder(Distribution prototype)
Distribution.Builder
newBuilderForType()
protected Distribution.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Distribution
parseDelimitedFrom(InputStream input)
static Distribution
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Distribution
parseFrom(byte[] data)
static Distribution
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Distribution
parseFrom(com.google.protobuf.ByteString data)
static Distribution
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Distribution
parseFrom(com.google.protobuf.CodedInputStream input)
static Distribution
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Distribution
parseFrom(InputStream input)
static Distribution
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Distribution
parseFrom(ByteBuffer data)
static Distribution
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Distribution>
parser()
Distribution.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
COUNT_FIELD_NUMBER
public static final int COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MEAN_FIELD_NUMBER
public static final int MEAN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MINIMUM_FIELD_NUMBER
public static final int MINIMUM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAXIMUM_FIELD_NUMBER
public static final int MAXIMUM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER
public static final int SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUCKET_COUNTS_FIELD_NUMBER
public static final int BUCKET_COUNTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LINEAR_BUCKETS_FIELD_NUMBER
public static final int LINEAR_BUCKETS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPONENTIAL_BUCKETS_FIELD_NUMBER
public static final int EXPONENTIAL_BUCKETS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPLICIT_BUCKETS_FIELD_NUMBER
public static final int EXPLICIT_BUCKETS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXEMPLARS_FIELD_NUMBER
public static final int EXEMPLARS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getBucketOptionCase
public Distribution.BucketOptionCase getBucketOptionCase()
- Specified by:
getBucketOptionCase
in interfaceDistributionOrBuilder
-
getCount
public long getCount()
The total number of samples in the distribution. Must be >= 0.
int64 count = 1;
- Specified by:
getCount
in 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:
getMean
in 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:
getMinimum
in 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:
getMaximum
in 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:
getSumOfSquaredDeviation
in interfaceDistributionOrBuilder
- Returns:
- The sumOfSquaredDeviation.
-
getBucketCountsList
public List<Long> 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:
getBucketCountsList
in 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:
getBucketCountsCount
in 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:
getBucketCounts
in 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:
hasLinearBuckets
in interfaceDistributionOrBuilder
- Returns:
- Whether the linearBuckets field is set.
-
getLinearBuckets
public Distribution.LinearBuckets getLinearBuckets()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;
- Specified by:
getLinearBuckets
in interfaceDistributionOrBuilder
- Returns:
- The linearBuckets.
-
getLinearBucketsOrBuilder
public Distribution.LinearBucketsOrBuilder getLinearBucketsOrBuilder()
Buckets with constant width.
.google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7;
- Specified by:
getLinearBucketsOrBuilder
in interfaceDistributionOrBuilder
-
hasExponentialBuckets
public boolean hasExponentialBuckets()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;
- Specified by:
hasExponentialBuckets
in interfaceDistributionOrBuilder
- Returns:
- Whether the exponentialBuckets field is set.
-
getExponentialBuckets
public Distribution.ExponentialBuckets getExponentialBuckets()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;
- Specified by:
getExponentialBuckets
in interfaceDistributionOrBuilder
- Returns:
- The exponentialBuckets.
-
getExponentialBucketsOrBuilder
public Distribution.ExponentialBucketsOrBuilder getExponentialBucketsOrBuilder()
Buckets with exponentially growing width.
.google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8;
- Specified by:
getExponentialBucketsOrBuilder
in interfaceDistributionOrBuilder
-
hasExplicitBuckets
public boolean hasExplicitBuckets()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;
- Specified by:
hasExplicitBuckets
in interfaceDistributionOrBuilder
- Returns:
- Whether the explicitBuckets field is set.
-
getExplicitBuckets
public Distribution.ExplicitBuckets getExplicitBuckets()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;
- Specified by:
getExplicitBuckets
in interfaceDistributionOrBuilder
- Returns:
- The explicitBuckets.
-
getExplicitBucketsOrBuilder
public Distribution.ExplicitBucketsOrBuilder getExplicitBucketsOrBuilder()
Buckets with arbitrary user-provided width.
.google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9;
- Specified by:
getExplicitBucketsOrBuilder
in interfaceDistributionOrBuilder
-
getExemplarsList
public List<com.google.api.Distribution.Exemplar> getExemplarsList()
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
- Specified by:
getExemplarsList
in interfaceDistributionOrBuilder
-
getExemplarsOrBuilderList
public List<? extends com.google.api.Distribution.ExemplarOrBuilder> getExemplarsOrBuilderList()
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
- Specified by:
getExemplarsOrBuilderList
in interfaceDistributionOrBuilder
-
getExemplarsCount
public int getExemplarsCount()
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
- Specified by:
getExemplarsCount
in interfaceDistributionOrBuilder
-
getExemplars
public com.google.api.Distribution.Exemplar getExemplars(int index)
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
- Specified by:
getExemplars
in interfaceDistributionOrBuilder
-
getExemplarsOrBuilder
public com.google.api.Distribution.ExemplarOrBuilder getExemplarsOrBuilder(int index)
Example points. Must be in increasing order of `value` field.
repeated .google.api.Distribution.Exemplar exemplars = 10;
- Specified by:
getExemplarsOrBuilder
in interfaceDistributionOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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
public static Distribution parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Distribution parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Distribution parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Distribution parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Distribution parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Distribution parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Distribution.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Distribution.Builder newBuilder()
-
newBuilder
public static Distribution.Builder newBuilder(Distribution prototype)
-
toBuilder
public Distribution.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Distribution.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Distribution getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Distribution> parser()
-
getParserForType
public com.google.protobuf.Parser<Distribution> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Distribution getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-