Package com.google.api
Class Distribution.Exemplar.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
com.google.api.Distribution.Exemplar.Builder
- All Implemented Interfaces:
Distribution.ExemplarOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Distribution.Exemplar
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttachments(Iterable<? extends com.google.protobuf.Any> values) Contextual information about the example value.addAttachments(int index, com.google.protobuf.Any value) Contextual information about the example value.addAttachments(int index, com.google.protobuf.Any.Builder builderForValue) Contextual information about the example value.addAttachments(com.google.protobuf.Any value) Contextual information about the example value.addAttachments(com.google.protobuf.Any.Builder builderForValue) Contextual information about the example value.com.google.protobuf.Any.BuilderContextual information about the example value.com.google.protobuf.Any.BuilderaddAttachmentsBuilder(int index) Contextual information about the example value.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Contextual information about the example value.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The observation (sampling) time of the above value.Value of the exemplar point.clone()com.google.protobuf.AnygetAttachments(int index) Contextual information about the example value.com.google.protobuf.Any.BuildergetAttachmentsBuilder(int index) Contextual information about the example value.List<com.google.protobuf.Any.Builder>Contextual information about the example value.intContextual information about the example value.List<com.google.protobuf.Any>Contextual information about the example value.com.google.protobuf.AnyOrBuildergetAttachmentsOrBuilder(int index) Contextual information about the example value.List<? extends com.google.protobuf.AnyOrBuilder>Contextual information about the example value.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe observation (sampling) time of the above value.com.google.protobuf.Timestamp.BuilderThe observation (sampling) time of the above value.com.google.protobuf.TimestampOrBuilderThe observation (sampling) time of the above value.doublegetValue()Value of the exemplar point.booleanThe observation (sampling) time of the above value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Distribution.Exemplar other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTimestamp(com.google.protobuf.Timestamp value) The observation (sampling) time of the above value.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAttachments(int index) Contextual information about the example value.setAttachments(int index, com.google.protobuf.Any value) Contextual information about the example value.setAttachments(int index, com.google.protobuf.Any.Builder builderForValue) Contextual information about the example value.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTimestamp(com.google.protobuf.Timestamp value) The observation (sampling) time of the above value.setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) The observation (sampling) time of the above value.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setValue(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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.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<Distribution.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<Distribution.Exemplar.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<Distribution.Exemplar.Builder>
-
setField
public Distribution.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<Distribution.Exemplar.Builder>
-
clearField
public Distribution.Exemplar.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
clearOneof
public Distribution.Exemplar.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
setRepeatedField
public Distribution.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<Distribution.Exemplar.Builder>
-
addRepeatedField
public Distribution.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<Distribution.Exemplar.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Distribution.Exemplar.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
mergeFrom
public Distribution.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<Distribution.Exemplar.Builder>- Throws:
IOException
-
getValue
public double getValue()Value of the exemplar point. This value determines to which bucket the exemplar belongs.
double value = 1;- Specified by:
getValuein interfaceDistribution.ExemplarOrBuilder- Returns:
- The value.
-
setValue
Value of the exemplar point. This value determines to which bucket the exemplar belongs.
double value = 1;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
Value of the exemplar point. This value determines to which bucket the exemplar belongs.
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 interfaceDistribution.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 interfaceDistribution.ExemplarOrBuilder- Returns:
- The timestamp.
-
setTimestamp
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2; -
setTimestamp
public Distribution.Exemplar.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2; -
mergeTimestamp
The observation (sampling) time of the above value.
.google.protobuf.Timestamp timestamp = 2; -
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 interfaceDistribution.ExemplarOrBuilder
-
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;- Specified by:
getAttachmentsListin interfaceDistribution.ExemplarOrBuilder
-
getAttachmentsCount
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;- Specified by:
getAttachmentsCountin interfaceDistribution.ExemplarOrBuilder
-
getAttachments
public com.google.protobuf.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;- Specified by:
getAttachmentsin interfaceDistribution.ExemplarOrBuilder
-
setAttachments
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; -
setAttachments
public Distribution.Exemplar.Builder setAttachments(int index, com.google.protobuf.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; -
addAttachments
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; -
addAttachments
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; -
addAttachments
public Distribution.Exemplar.Builder addAttachments(com.google.protobuf.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; -
addAttachments
public Distribution.Exemplar.Builder addAttachments(int index, com.google.protobuf.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; -
addAllAttachments
public Distribution.Exemplar.Builder addAllAttachments(Iterable<? extends com.google.protobuf.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; -
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; -
removeAttachments
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; -
getAttachmentsBuilder
public com.google.protobuf.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; -
getAttachmentsOrBuilder
public com.google.protobuf.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;- Specified by:
getAttachmentsOrBuilderin interfaceDistribution.ExemplarOrBuilder
-
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;- Specified by:
getAttachmentsOrBuilderListin interfaceDistribution.ExemplarOrBuilder
-
addAttachmentsBuilder
public com.google.protobuf.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; -
addAttachmentsBuilder
public com.google.protobuf.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; -
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; -
setUnknownFields
public final Distribution.Exemplar.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
mergeUnknownFields
public final Distribution.Exemplar.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-