public final class DurationHistogram extends GeneratedMessageV3 implements DurationHistogramOrBuilderHistogram representation for query duration measurements in milliseconds.
Protobuf type google.cloud.bigquery.jdbc.telemetry.v1.DurationHistogram
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > GeneratedMessage.ExtendableMessage<MessageType> > GeneratedMessageV3 > DurationHistogramImplements
DurationHistogramOrBuilderStatic Fields
BUCKET_COUNTS_FIELD_NUMBER
public static final int BUCKET_COUNTS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
COUNT_FIELD_NUMBER
public static final int COUNT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
EXPLICIT_BOUNDS_FIELD_NUMBER
public static final int EXPLICIT_BOUNDS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
SUM_FIELD_NUMBER
public static final int SUM_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static DurationHistogram getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static DurationHistogram.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
DurationHistogram.Builder |
|
newBuilder(DurationHistogram prototype)
public static DurationHistogram.Builder newBuilder(DurationHistogram prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
DurationHistogram |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram.Builder |
|
parseDelimitedFrom(InputStream input)
public static DurationHistogram parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DurationHistogram parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static DurationHistogram parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DurationHistogram parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static DurationHistogram parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DurationHistogram parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static DurationHistogram parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DurationHistogram parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static DurationHistogram parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DurationHistogram parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static DurationHistogram parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DurationHistogram parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<DurationHistogram> parser()| Returns | |
|---|---|
| Type | Description |
Parser<DurationHistogram> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getBucketCounts(int index)
public long getBucketCounts(int index)Count of items in each bucket.
repeated int64 bucket_counts = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
long |
The bucketCounts at the given index. |
getBucketCountsCount()
public int getBucketCountsCount()Count of items in each bucket.
repeated int64 bucket_counts = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The count of bucketCounts. |
getBucketCountsList()
public List<Long> getBucketCountsList()Count of items in each bucket.
repeated int64 bucket_counts = 1;
| Returns | |
|---|---|
| Type | Description |
List<Long> |
A list containing the bucketCounts. |
getCount()
public long getCount()Total count of recorded duration events.
int64 count = 3;
| Returns | |
|---|---|
| Type | Description |
long |
The count. |
getDefaultInstanceForType()
public DurationHistogram getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DurationHistogram |
|
getExplicitBounds(int index)
public double getExplicitBounds(int index)Upper bounds for each bucket in milliseconds.
repeated double explicit_bounds = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
double |
The explicitBounds at the given index. |
getExplicitBoundsCount()
public int getExplicitBoundsCount()Upper bounds for each bucket in milliseconds.
repeated double explicit_bounds = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The count of explicitBounds. |
getExplicitBoundsList()
public List<Double> getExplicitBoundsList()Upper bounds for each bucket in milliseconds.
repeated double explicit_bounds = 2;
| Returns | |
|---|---|
| Type | Description |
List<Double> |
A list containing the explicitBounds. |
getParserForType()
public Parser<DurationHistogram> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<DurationHistogram> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getSum()
public double getSum()Cumulative sum of recorded durations in milliseconds.
double sum = 4;
| Returns | |
|---|---|
| Type | Description |
double |
The sum. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public DurationHistogram.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
DurationHistogram.Builder |
|
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DurationHistogram.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
DurationHistogram.Builder |
|
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)| Parameter | |
|---|---|
| Name | Description |
unused |
UnusedPrivateParameter |
| Returns | |
|---|---|
| Type | Description |
Object |
|
toBuilder()
public DurationHistogram.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
DurationHistogram.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|