public static final class Distribution.Exemplar.Builder extends GeneratedMessageV3.Builder<Distribution.Exemplar.Builder> 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 | Method and Description |
|---|---|
Distribution.Exemplar.Builder |
addAllAttachments(java.lang.Iterable<? extends Any> values)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
addAttachments(Any.Builder builderForValue)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
addAttachments(Any value)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
addAttachments(int index,
Any.Builder builderForValue)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
addAttachments(int index,
Any value)
Contextual information about the example value.
|
Any.Builder |
addAttachmentsBuilder()
Contextual information about the example value.
|
Any.Builder |
addAttachmentsBuilder(int index)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Distribution.Exemplar |
build() |
Distribution.Exemplar |
buildPartial() |
Distribution.Exemplar.Builder |
clear() |
Distribution.Exemplar.Builder |
clearAttachments()
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
clearField(Descriptors.FieldDescriptor field) |
Distribution.Exemplar.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Distribution.Exemplar.Builder |
clearTimestamp()
The observation (sampling) time of the above value.
|
Distribution.Exemplar.Builder |
clearValue()
Value of the exemplar point.
|
Distribution.Exemplar.Builder |
clone() |
Any |
getAttachments(int index)
Contextual information about the example value.
|
Any.Builder |
getAttachmentsBuilder(int index)
Contextual information about the example value.
|
java.util.List<Any.Builder> |
getAttachmentsBuilderList()
Contextual information about the example value.
|
int |
getAttachmentsCount()
Contextual information about the example value.
|
java.util.List<Any> |
getAttachmentsList()
Contextual information about the example value.
|
AnyOrBuilder |
getAttachmentsOrBuilder(int index)
Contextual information about the example value.
|
java.util.List<? extends AnyOrBuilder> |
getAttachmentsOrBuilderList()
Contextual information about the example value.
|
Distribution.Exemplar |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Timestamp |
getTimestamp()
The observation (sampling) time of the above value.
|
Timestamp.Builder |
getTimestampBuilder()
The observation (sampling) time of the above value.
|
TimestampOrBuilder |
getTimestampOrBuilder()
The observation (sampling) time of the above value.
|
double |
getValue()
Value of the exemplar point.
|
boolean |
hasTimestamp()
The observation (sampling) time of the above value.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Distribution.Exemplar.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Distribution.Exemplar.Builder |
mergeFrom(Distribution.Exemplar other) |
Distribution.Exemplar.Builder |
mergeFrom(Message other) |
Distribution.Exemplar.Builder |
mergeTimestamp(Timestamp value)
The observation (sampling) time of the above value.
|
Distribution.Exemplar.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Distribution.Exemplar.Builder |
removeAttachments(int index)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
setAttachments(int index,
Any.Builder builderForValue)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
setAttachments(int index,
Any value)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Distribution.Exemplar.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Distribution.Exemplar.Builder |
setTimestamp(Timestamp.Builder builderForValue)
The observation (sampling) time of the above value.
|
Distribution.Exemplar.Builder |
setTimestamp(Timestamp value)
The observation (sampling) time of the above value.
|
Distribution.Exemplar.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
Distribution.Exemplar.Builder |
setValue(double value)
Value of the exemplar point.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>public Distribution.Exemplar.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>public Distribution.Exemplar getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic Distribution.Exemplar build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic Distribution.Exemplar buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic Distribution.Exemplar.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>public Distribution.Exemplar.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>public Distribution.Exemplar.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>public Distribution.Exemplar.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>public Distribution.Exemplar.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>public Distribution.Exemplar.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>public Distribution.Exemplar.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<Distribution.Exemplar.Builder>public Distribution.Exemplar.Builder mergeFrom(Distribution.Exemplar other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>public Distribution.Exemplar.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<Distribution.Exemplar.Builder>java.io.IOExceptionpublic double getValue()
Value of the exemplar point. This value determines to which bucket the exemplar belongs.
double value = 1;getValue in interface Distribution.ExemplarOrBuilderpublic Distribution.Exemplar.Builder setValue(double value)
Value of the exemplar point. This value determines to which bucket the exemplar belongs.
double value = 1;public Distribution.Exemplar.Builder clearValue()
Value of the exemplar point. This value determines to which bucket the exemplar belongs.
double value = 1;public boolean hasTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;hasTimestamp in interface Distribution.ExemplarOrBuilderpublic Timestamp getTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;getTimestamp in interface Distribution.ExemplarOrBuilderpublic Distribution.Exemplar.Builder setTimestamp(Timestamp value)
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;public Distribution.Exemplar.Builder setTimestamp(Timestamp.Builder builderForValue)
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;public Distribution.Exemplar.Builder mergeTimestamp(Timestamp value)
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;public Distribution.Exemplar.Builder clearTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;public Timestamp.Builder getTimestampBuilder()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;public TimestampOrBuilder getTimestampOrBuilder()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;getTimestampOrBuilder in interface Distribution.ExemplarOrBuilderpublic java.util.List<Any> getAttachmentsList()
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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 int getAttachmentsCount()
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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 Any getAttachments(int index)
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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 Distribution.Exemplar.Builder setAttachments(int index, Any value)
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public Distribution.Exemplar.Builder setAttachments(int index, Any.Builder builderForValue)
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public Distribution.Exemplar.Builder addAttachments(Any value)
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public Distribution.Exemplar.Builder addAttachments(int index, Any value)
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public Distribution.Exemplar.Builder addAttachments(Any.Builder builderForValue)
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public Distribution.Exemplar.Builder addAttachments(int index, Any.Builder builderForValue)
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public Distribution.Exemplar.Builder addAllAttachments(java.lang.Iterable<? extends Any> values)
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public Distribution.Exemplar.Builder clearAttachments()
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public Distribution.Exemplar.Builder removeAttachments(int index)
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public Any.Builder getAttachmentsBuilder(int index)
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public AnyOrBuilder getAttachmentsOrBuilder(int index)
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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 java.util.List<? extends AnyOrBuilder> getAttachmentsOrBuilderList()
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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 Any.Builder addAttachmentsBuilder()
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public Any.Builder addAttachmentsBuilder(int index)
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public java.util.List<Any.Builder> getAttachmentsBuilderList()
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
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;public final Distribution.Exemplar.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>public final Distribution.Exemplar.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>