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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public double getValue()
Value of the exemplar point. This value determines to which bucket the exemplar belongs.
double value = 1;
getValue
in interface Distribution.ExemplarOrBuilder
public boolean hasTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
hasTimestamp
in interface Distribution.ExemplarOrBuilder
public com.google.protobuf.Timestamp getTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
getTimestamp
in interface Distribution.ExemplarOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
getTimestampOrBuilder
in interface Distribution.ExemplarOrBuilder
public 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.ExemplarOrBuilder
public 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.ExemplarOrBuilder
public 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.ExemplarOrBuilder
public 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.ExemplarOrBuilder
public 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.ExemplarOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Distribution.Exemplar parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Distribution.Exemplar parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Distribution.Exemplar parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Distribution.Exemplar parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Distribution.Exemplar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Distribution.Exemplar parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Distribution.Exemplar parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Distribution.Exemplar parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Distribution.Exemplar parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Distribution.Exemplar parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Distribution.Exemplar parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Distribution.Exemplar parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Distribution.Exemplar.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Distribution.Exemplar.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Distribution.Exemplar getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder