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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public 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.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Distribution.Exemplar build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Distribution.Exemplar buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Distribution.Exemplar.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
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.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder mergeFrom(Distribution.Exemplar other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Distribution.Exemplar.Builder>
java.io.IOException
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 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.ExemplarOrBuilder
public Timestamp getTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
getTimestamp
in interface Distribution.ExemplarOrBuilder
public 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.ExemplarOrBuilder
public 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.ExemplarOrBuilder
public 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.ExemplarOrBuilder
public 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.ExemplarOrBuilder
public 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.ExemplarOrBuilder
public 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.ExemplarOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public final Distribution.Exemplar.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>