public static final class Distribution.Exemplar.Builder extends com.google.protobuf.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 com.google.protobuf.Any> values)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
addAttachments(com.google.protobuf.Any.Builder builderForValue)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
addAttachments(com.google.protobuf.Any value)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
addAttachments(int index,
com.google.protobuf.Any.Builder builderForValue)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
addAttachments(int index,
com.google.protobuf.Any value)
Contextual information about the example value.
|
com.google.protobuf.Any.Builder |
addAttachmentsBuilder()
Contextual information about the example value.
|
com.google.protobuf.Any.Builder |
addAttachmentsBuilder(int index)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
addRepeatedField(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field) |
Distribution.Exemplar.Builder |
clearOneof(com.google.protobuf.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() |
com.google.protobuf.Any |
getAttachments(int index)
Contextual information about the example value.
|
com.google.protobuf.Any.Builder |
getAttachmentsBuilder(int index)
Contextual information about the example value.
|
java.util.List<com.google.protobuf.Any.Builder> |
getAttachmentsBuilderList()
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.
|
Distribution.Exemplar |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Timestamp |
getTimestamp()
The observation (sampling) time of the above value.
|
com.google.protobuf.Timestamp.Builder |
getTimestampBuilder()
The observation (sampling) time of the above value.
|
com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Distribution.Exemplar.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Distribution.Exemplar.Builder |
mergeFrom(Distribution.Exemplar other) |
Distribution.Exemplar.Builder |
mergeFrom(com.google.protobuf.Message other) |
Distribution.Exemplar.Builder |
mergeTimestamp(com.google.protobuf.Timestamp value)
The observation (sampling) time of the above value.
|
Distribution.Exemplar.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Distribution.Exemplar.Builder |
removeAttachments(int index)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
setAttachments(int index,
com.google.protobuf.Any.Builder builderForValue)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
setAttachments(int index,
com.google.protobuf.Any value)
Contextual information about the example value.
|
Distribution.Exemplar.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Distribution.Exemplar.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Distribution.Exemplar.Builder |
setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
The observation (sampling) time of the above value.
|
Distribution.Exemplar.Builder |
setTimestamp(com.google.protobuf.Timestamp value)
The observation (sampling) time of the above value.
|
Distribution.Exemplar.Builder |
setUnknownFields(com.google.protobuf.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
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Distribution.Exemplar build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Distribution.Exemplar buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Distribution.Exemplar.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder mergeFrom(Distribution.Exemplar other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public Distribution.Exemplar.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.Timestamp value)
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
public Distribution.Exemplar.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
public Distribution.Exemplar.Builder mergeTimestamp(com.google.protobuf.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 com.google.protobuf.Timestamp.Builder getTimestampBuilder()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
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 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 Distribution.Exemplar.Builder setAttachments(int index, com.google.protobuf.Any value)
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;
public Distribution.Exemplar.Builder setAttachments(int index, com.google.protobuf.Any.Builder builderForValue)
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;
public Distribution.Exemplar.Builder addAttachments(com.google.protobuf.Any value)
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;
public Distribution.Exemplar.Builder addAttachments(int index, com.google.protobuf.Any value)
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;
public Distribution.Exemplar.Builder addAttachments(com.google.protobuf.Any.Builder builderForValue)
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;
public Distribution.Exemplar.Builder addAttachments(int index, com.google.protobuf.Any.Builder builderForValue)
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;
public Distribution.Exemplar.Builder addAllAttachments(java.lang.Iterable<? extends com.google.protobuf.Any> values)
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;
public Distribution.Exemplar.Builder clearAttachments()
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;
public Distribution.Exemplar.Builder removeAttachments(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;
public com.google.protobuf.Any.Builder getAttachmentsBuilder(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;
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 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 com.google.protobuf.Any.Builder addAttachmentsBuilder()
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;
public com.google.protobuf.Any.Builder addAttachmentsBuilder(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;
public java.util.List<com.google.protobuf.Any.Builder> getAttachmentsBuilderList()
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;
public final Distribution.Exemplar.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
public final Distribution.Exemplar.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>