public static final class DistributionValue.Exemplar.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder> implements DistributionValue.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.Protobuf type
opencensus.proto.metrics.v1.DistributionValue.Exemplar| Modifier and Type | Method and Description |
|---|---|
DistributionValue.Exemplar.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DistributionValue.Exemplar |
build() |
DistributionValue.Exemplar |
buildPartial() |
DistributionValue.Exemplar.Builder |
clear() |
DistributionValue.Exemplar.Builder |
clearAttachments() |
DistributionValue.Exemplar.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DistributionValue.Exemplar.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DistributionValue.Exemplar.Builder |
clearTimestamp()
The observation (sampling) time of the above value.
|
DistributionValue.Exemplar.Builder |
clearValue()
Value of the exemplar point.
|
DistributionValue.Exemplar.Builder |
clone() |
boolean |
containsAttachments(String key)
Contextual information about the example value.
|
Map<String,String> |
getAttachments()
Deprecated.
|
int |
getAttachmentsCount()
Contextual information about the example value.
|
Map<String,String> |
getAttachmentsMap()
Contextual information about the example value.
|
String |
getAttachmentsOrDefault(String key,
String defaultValue)
Contextual information about the example value.
|
String |
getAttachmentsOrThrow(String key)
Contextual information about the example value.
|
DistributionValue.Exemplar |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getMutableAttachments()
Deprecated.
|
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() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
DistributionValue.Exemplar.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DistributionValue.Exemplar.Builder |
mergeFrom(DistributionValue.Exemplar other) |
DistributionValue.Exemplar.Builder |
mergeFrom(com.google.protobuf.Message other) |
DistributionValue.Exemplar.Builder |
mergeTimestamp(com.google.protobuf.Timestamp value)
The observation (sampling) time of the above value.
|
DistributionValue.Exemplar.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DistributionValue.Exemplar.Builder |
putAllAttachments(Map<String,String> values)
Contextual information about the example value.
|
DistributionValue.Exemplar.Builder |
putAttachments(String key,
String value)
Contextual information about the example value.
|
DistributionValue.Exemplar.Builder |
removeAttachments(String key)
Contextual information about the example value.
|
DistributionValue.Exemplar.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DistributionValue.Exemplar.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DistributionValue.Exemplar.Builder |
setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
The observation (sampling) time of the above value.
|
DistributionValue.Exemplar.Builder |
setTimestamp(com.google.protobuf.Timestamp value)
The observation (sampling) time of the above value.
|
DistributionValue.Exemplar.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DistributionValue.Exemplar.Builder |
setValue(double value)
Value of the exemplar point.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, 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, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>public DistributionValue.Exemplar.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>public DistributionValue.Exemplar getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DistributionValue.Exemplar build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DistributionValue.Exemplar buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DistributionValue.Exemplar.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>public DistributionValue.Exemplar.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>public DistributionValue.Exemplar.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>public DistributionValue.Exemplar.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>public DistributionValue.Exemplar.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>public DistributionValue.Exemplar.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>public DistributionValue.Exemplar.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DistributionValue.Exemplar.Builder>public DistributionValue.Exemplar.Builder mergeFrom(DistributionValue.Exemplar other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>public DistributionValue.Exemplar.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DistributionValue.Exemplar.Builder>IOExceptionpublic double getValue()
Value of the exemplar point. It determines which bucket the exemplar belongs to.
double value = 1;getValue in interface DistributionValue.ExemplarOrBuilderpublic DistributionValue.Exemplar.Builder setValue(double value)
Value of the exemplar point. It determines which bucket the exemplar belongs to.
double value = 1;public DistributionValue.Exemplar.Builder clearValue()
Value of the exemplar point. It determines which bucket the exemplar belongs to.
double value = 1;public boolean hasTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;hasTimestamp in interface DistributionValue.ExemplarOrBuilderpublic com.google.protobuf.Timestamp getTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;getTimestamp in interface DistributionValue.ExemplarOrBuilderpublic DistributionValue.Exemplar.Builder setTimestamp(com.google.protobuf.Timestamp value)
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;public DistributionValue.Exemplar.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;public DistributionValue.Exemplar.Builder mergeTimestamp(com.google.protobuf.Timestamp value)
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;public DistributionValue.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 DistributionValue.ExemplarOrBuilderpublic int getAttachmentsCount()
DistributionValue.ExemplarOrBuilderContextual information about the example value.
map<string, string> attachments = 3;getAttachmentsCount in interface DistributionValue.ExemplarOrBuilderpublic boolean containsAttachments(String key)
Contextual information about the example value.
map<string, string> attachments = 3;containsAttachments in interface DistributionValue.ExemplarOrBuilder@Deprecated public Map<String,String> getAttachments()
getAttachmentsMap() instead.getAttachments in interface DistributionValue.ExemplarOrBuilderpublic Map<String,String> getAttachmentsMap()
Contextual information about the example value.
map<string, string> attachments = 3;getAttachmentsMap in interface DistributionValue.ExemplarOrBuilderpublic String getAttachmentsOrDefault(String key, String defaultValue)
Contextual information about the example value.
map<string, string> attachments = 3;getAttachmentsOrDefault in interface DistributionValue.ExemplarOrBuilderpublic String getAttachmentsOrThrow(String key)
Contextual information about the example value.
map<string, string> attachments = 3;getAttachmentsOrThrow in interface DistributionValue.ExemplarOrBuilderpublic DistributionValue.Exemplar.Builder clearAttachments()
public DistributionValue.Exemplar.Builder removeAttachments(String key)
Contextual information about the example value.
map<string, string> attachments = 3;@Deprecated public Map<String,String> getMutableAttachments()
public DistributionValue.Exemplar.Builder putAttachments(String key, String value)
Contextual information about the example value.
map<string, string> attachments = 3;public DistributionValue.Exemplar.Builder putAllAttachments(Map<String,String> values)
Contextual information about the example value.
map<string, string> attachments = 3;public final DistributionValue.Exemplar.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>public final DistributionValue.Exemplar.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>