public static final class Distribution.Exemplar extends com.google.protobuf.GeneratedMessageV3 implements Distribution.ExemplarOrBuilder
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
google.api.Distribution.Exemplar| Modifier and Type | Class and Description |
|---|---|
static class |
Distribution.Exemplar.Builder
Exemplars are example points that may be used to annotate aggregated
distribution values.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ATTACHMENTS_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
VALUE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
com.google.protobuf.Any |
getAttachments(int index)
Contextual information about the example value.
|
int |
getAttachmentsCount()
Contextual information about the example value.
|
java.util.List<com.google.protobuf.Any> |
getAttachmentsList()
Contextual information about the example value.
|
com.google.protobuf.AnyOrBuilder |
getAttachmentsOrBuilder(int index)
Contextual information about the example value.
|
java.util.List<? extends com.google.protobuf.AnyOrBuilder> |
getAttachmentsOrBuilderList()
Contextual information about the example value.
|
static Distribution.Exemplar |
getDefaultInstance() |
Distribution.Exemplar |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Distribution.Exemplar> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getTimestamp()
The observation (sampling) time of the above value.
|
com.google.protobuf.TimestampOrBuilder |
getTimestampOrBuilder()
The observation (sampling) time of the above value.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
double |
getValue()
Value of the exemplar point.
|
int |
hashCode() |
boolean |
hasTimestamp()
The observation (sampling) time of the above value.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Distribution.Exemplar.Builder |
newBuilder() |
static Distribution.Exemplar.Builder |
newBuilder(Distribution.Exemplar prototype) |
Distribution.Exemplar.Builder |
newBuilderForType() |
protected Distribution.Exemplar.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Distribution.Exemplar |
parseDelimitedFrom(java.io.InputStream input) |
static Distribution.Exemplar |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution.Exemplar |
parseFrom(byte[] data) |
static Distribution.Exemplar |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution.Exemplar |
parseFrom(java.nio.ByteBuffer data) |
static Distribution.Exemplar |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution.Exemplar |
parseFrom(com.google.protobuf.ByteString data) |
static Distribution.Exemplar |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution.Exemplar |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Distribution.Exemplar |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Distribution.Exemplar |
parseFrom(java.io.InputStream input) |
static Distribution.Exemplar |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Distribution.Exemplar> |
parser() |
Distribution.Exemplar.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int VALUE_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
public static final int ATTACHMENTS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public double getValue()
Value of the exemplar point. This value determines to which bucket the exemplar belongs.
double value = 1;getValue in interface Distribution.ExemplarOrBuilderpublic boolean hasTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;hasTimestamp in interface Distribution.ExemplarOrBuilderpublic com.google.protobuf.Timestamp getTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;getTimestamp in interface Distribution.ExemplarOrBuilderpublic com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;getTimestampOrBuilder in interface Distribution.ExemplarOrBuilderpublic java.util.List<com.google.protobuf.Any> getAttachmentsList()
Contextual information about the example value. Examples are:
Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
Literal string: type.googleapis.com/google.protobuf.StringValue
Labels dropped during aggregation:
type.googleapis.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;getAttachmentsList in interface Distribution.ExemplarOrBuilderpublic java.util.List<? extends com.google.protobuf.AnyOrBuilder> getAttachmentsOrBuilderList()
Contextual information about the example value. Examples are:
Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
Literal string: type.googleapis.com/google.protobuf.StringValue
Labels dropped during aggregation:
type.googleapis.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;getAttachmentsOrBuilderList in interface Distribution.ExemplarOrBuilderpublic int getAttachmentsCount()
Contextual information about the example value. Examples are:
Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
Literal string: type.googleapis.com/google.protobuf.StringValue
Labels dropped during aggregation:
type.googleapis.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;getAttachmentsCount in interface Distribution.ExemplarOrBuilderpublic com.google.protobuf.Any getAttachments(int index)
Contextual information about the example value. Examples are:
Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
Literal string: type.googleapis.com/google.protobuf.StringValue
Labels dropped during aggregation:
type.googleapis.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;getAttachments in interface Distribution.ExemplarOrBuilderpublic com.google.protobuf.AnyOrBuilder getAttachmentsOrBuilder(int index)
Contextual information about the example value. Examples are:
Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
Literal string: type.googleapis.com/google.protobuf.StringValue
Labels dropped during aggregation:
type.googleapis.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;getAttachmentsOrBuilder in interface Distribution.ExemplarOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Distribution.Exemplar parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution.Exemplar parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution.Exemplar parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution.Exemplar parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution.Exemplar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution.Exemplar parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Distribution.Exemplar parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.Exemplar parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.Exemplar parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.Exemplar parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.Exemplar parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Distribution.Exemplar parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Distribution.Exemplar.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Distribution.Exemplar.Builder newBuilder()
public static Distribution.Exemplar.Builder newBuilder(Distribution.Exemplar prototype)
public Distribution.Exemplar.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Distribution.Exemplar.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Distribution.Exemplar getDefaultInstance()
public static com.google.protobuf.Parser<Distribution.Exemplar> parser()
public com.google.protobuf.Parser<Distribution.Exemplar> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Distribution.Exemplar getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder