Package io.opencensus.proto.metrics.v1
Class DistributionValue.Exemplar.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
- io.opencensus.proto.metrics.v1.DistributionValue.Exemplar.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DistributionValue.ExemplarOrBuilder,Cloneable
- Enclosing class:
- DistributionValue.Exemplar
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 typeopencensus.proto.metrics.v1.DistributionValue.Exemplar
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DistributionValue.Exemplar.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DistributionValue.Exemplarbuild()DistributionValue.ExemplarbuildPartial()DistributionValue.Exemplar.Builderclear()DistributionValue.Exemplar.BuilderclearAttachments()DistributionValue.Exemplar.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DistributionValue.Exemplar.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DistributionValue.Exemplar.BuilderclearTimestamp()The observation (sampling) time of the above value.DistributionValue.Exemplar.BuilderclearValue()Value of the exemplar point.DistributionValue.Exemplar.Builderclone()booleancontainsAttachments(String key)Contextual information about the example value.Map<String,String>getAttachments()Deprecated.intgetAttachmentsCount()Contextual information about the example value.Map<String,String>getAttachmentsMap()Contextual information about the example value.StringgetAttachmentsOrDefault(String key, String defaultValue)Contextual information about the example value.StringgetAttachmentsOrThrow(String key)Contextual information about the example value.DistributionValue.ExemplargetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getMutableAttachments()Deprecated.com.google.protobuf.TimestampgetTimestamp()The observation (sampling) time of the above value.com.google.protobuf.Timestamp.BuildergetTimestampBuilder()The observation (sampling) time of the above value.com.google.protobuf.TimestampOrBuildergetTimestampOrBuilder()The observation (sampling) time of the above value.doublegetValue()Value of the exemplar point.booleanhasTimestamp()The observation (sampling) time of the above value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()DistributionValue.Exemplar.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DistributionValue.Exemplar.BuildermergeFrom(com.google.protobuf.Message other)DistributionValue.Exemplar.BuildermergeFrom(DistributionValue.Exemplar other)DistributionValue.Exemplar.BuildermergeTimestamp(com.google.protobuf.Timestamp value)The observation (sampling) time of the above value.DistributionValue.Exemplar.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DistributionValue.Exemplar.BuilderputAllAttachments(Map<String,String> values)Contextual information about the example value.DistributionValue.Exemplar.BuilderputAttachments(String key, String value)Contextual information about the example value.DistributionValue.Exemplar.BuilderremoveAttachments(String key)Contextual information about the example value.DistributionValue.Exemplar.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DistributionValue.Exemplar.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DistributionValue.Exemplar.BuildersetTimestamp(com.google.protobuf.Timestamp value)The observation (sampling) time of the above value.DistributionValue.Exemplar.BuildersetTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)The observation (sampling) time of the above value.DistributionValue.Exemplar.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DistributionValue.Exemplar.BuildersetValue(double value)Value of the exemplar point.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
clear
public DistributionValue.Exemplar.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
getDefaultInstanceForType
public DistributionValue.Exemplar getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DistributionValue.Exemplar build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DistributionValue.Exemplar buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DistributionValue.Exemplar.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
setField
public DistributionValue.Exemplar.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
clearField
public DistributionValue.Exemplar.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
clearOneof
public DistributionValue.Exemplar.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
setRepeatedField
public DistributionValue.Exemplar.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
addRepeatedField
public DistributionValue.Exemplar.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
mergeFrom
public DistributionValue.Exemplar.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DistributionValue.Exemplar.Builder>
-
mergeFrom
public DistributionValue.Exemplar.Builder mergeFrom(DistributionValue.Exemplar other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
mergeFrom
public DistributionValue.Exemplar.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DistributionValue.Exemplar.Builder>- Throws:
IOException
-
getValue
public double getValue()
Value of the exemplar point. It determines which bucket the exemplar belongs to.
double value = 1;- Specified by:
getValuein interfaceDistributionValue.ExemplarOrBuilder- Returns:
- The value.
-
setValue
public DistributionValue.Exemplar.Builder setValue(double value)
Value of the exemplar point. It determines which bucket the exemplar belongs to.
double value = 1;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
public DistributionValue.Exemplar.Builder clearValue()
Value of the exemplar point. It determines which bucket the exemplar belongs to.
double value = 1;- Returns:
- This builder for chaining.
-
hasTimestamp
public boolean hasTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;- Specified by:
hasTimestampin interfaceDistributionValue.ExemplarOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public com.google.protobuf.Timestamp getTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;- Specified by:
getTimestampin interfaceDistributionValue.ExemplarOrBuilder- Returns:
- The timestamp.
-
setTimestamp
public DistributionValue.Exemplar.Builder setTimestamp(com.google.protobuf.Timestamp value)
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
-
setTimestamp
public DistributionValue.Exemplar.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
-
mergeTimestamp
public DistributionValue.Exemplar.Builder mergeTimestamp(com.google.protobuf.Timestamp value)
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
-
clearTimestamp
public DistributionValue.Exemplar.Builder clearTimestamp()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
-
getTimestampBuilder
public com.google.protobuf.Timestamp.Builder getTimestampBuilder()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;
-
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2;- Specified by:
getTimestampOrBuilderin interfaceDistributionValue.ExemplarOrBuilder
-
getAttachmentsCount
public int getAttachmentsCount()
Description copied from interface:DistributionValue.ExemplarOrBuilderContextual information about the example value.
map<string, string> attachments = 3;- Specified by:
getAttachmentsCountin interfaceDistributionValue.ExemplarOrBuilder
-
containsAttachments
public boolean containsAttachments(String key)
Contextual information about the example value.
map<string, string> attachments = 3;- Specified by:
containsAttachmentsin interfaceDistributionValue.ExemplarOrBuilder
-
getAttachments
@Deprecated public Map<String,String> getAttachments()
Deprecated.UsegetAttachmentsMap()instead.- Specified by:
getAttachmentsin interfaceDistributionValue.ExemplarOrBuilder
-
getAttachmentsMap
public Map<String,String> getAttachmentsMap()
Contextual information about the example value.
map<string, string> attachments = 3;- Specified by:
getAttachmentsMapin interfaceDistributionValue.ExemplarOrBuilder
-
getAttachmentsOrDefault
public String getAttachmentsOrDefault(String key, String defaultValue)
Contextual information about the example value.
map<string, string> attachments = 3;- Specified by:
getAttachmentsOrDefaultin interfaceDistributionValue.ExemplarOrBuilder
-
getAttachmentsOrThrow
public String getAttachmentsOrThrow(String key)
Contextual information about the example value.
map<string, string> attachments = 3;- Specified by:
getAttachmentsOrThrowin interfaceDistributionValue.ExemplarOrBuilder
-
clearAttachments
public DistributionValue.Exemplar.Builder clearAttachments()
-
removeAttachments
public DistributionValue.Exemplar.Builder removeAttachments(String key)
Contextual information about the example value.
map<string, string> attachments = 3;
-
getMutableAttachments
@Deprecated public Map<String,String> getMutableAttachments()
Deprecated.Use alternate mutation accessors instead.
-
putAttachments
public DistributionValue.Exemplar.Builder putAttachments(String key, String value)
Contextual information about the example value.
map<string, string> attachments = 3;
-
putAllAttachments
public DistributionValue.Exemplar.Builder putAllAttachments(Map<String,String> values)
Contextual information about the example value.
map<string, string> attachments = 3;
-
setUnknownFields
public final DistributionValue.Exemplar.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
mergeUnknownFields
public final DistributionValue.Exemplar.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DistributionValue.Exemplar.Builder>
-
-