public static final class Distribution.LinearBuckets extends GeneratedMessageV3 implements Distribution.LinearBucketsOrBuilder
Describing buckets with constant width.
Protobuf type google.api.servicecontrol.v1.Distribution.LinearBuckets
Static Fields
NUM_FINITE_BUCKETS_FIELD_NUMBER
public static final int NUM_FINITE_BUCKETS_FIELD_NUMBER
Field Value
OFFSET_FIELD_NUMBER
public static final int OFFSET_FIELD_NUMBER
Field Value
WIDTH_FIELD_NUMBER
public static final int WIDTH_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Distribution.LinearBuckets getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Distribution.LinearBuckets.Builder newBuilder()
Returns
newBuilder(Distribution.LinearBuckets prototype)
public static Distribution.LinearBuckets.Builder newBuilder(Distribution.LinearBuckets prototype)
Parameter
Returns
public static Distribution.LinearBuckets parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Distribution.LinearBuckets parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Distribution.LinearBuckets parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Distribution.LinearBuckets parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Distribution.LinearBuckets parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Distribution.LinearBuckets parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Distribution.LinearBuckets parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Distribution.LinearBuckets parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Distribution.LinearBuckets parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Distribution.LinearBuckets parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Distribution.LinearBuckets parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Distribution.LinearBuckets parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Distribution.LinearBuckets> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Distribution.LinearBuckets getDefaultInstanceForType()
Returns
getNumFiniteBuckets()
public int getNumFiniteBuckets()
The number of finite buckets. With the underflow and overflow buckets,
the total number of buckets is num_finite_buckets
+ 2.
See comments on bucket_options
for details.
int32 num_finite_buckets = 1;
Returns
Type | Description |
int | The numFiniteBuckets.
|
getOffset()
public double getOffset()
The i'th linear bucket covers the interval
[offset + (i-1) * width, offset + i * width)
where i ranges from 1 to num_finite_buckets, inclusive.
double offset = 3;
Returns
Type | Description |
double | The offset.
|
getParserForType()
public Parser<Distribution.LinearBuckets> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getWidth()
The i'th linear bucket covers the interval
[offset + (i-1) * width, offset + i * width)
where i ranges from 1 to num_finite_buckets, inclusive.
Must be strictly positive.
double width = 2;
Returns
Type | Description |
double | The width.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Distribution.LinearBuckets.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Distribution.LinearBuckets.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Distribution.LinearBuckets.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions