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.Builder
Contextual information about the example value.com.google.protobuf.Any.Builder
addAttachmentsBuilder
(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.Any
getAttachments
(int index) Contextual information about the example value.com.google.protobuf.Any.Builder
getAttachmentsBuilder
(int index) Contextual information about the example value.List<com.google.protobuf.Any.Builder>
Contextual information about the example value.int
Contextual information about the example value.List<com.google.protobuf.Any>
Contextual information about the example value.com.google.protobuf.AnyOrBuilder
getAttachmentsOrBuilder
(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.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Timestamp
The observation (sampling) time of the above value.com.google.protobuf.Timestamp.Builder
The observation (sampling) time of the above value.com.google.protobuf.TimestampOrBuilder
The observation (sampling) time of the above value.double
getValue()
Value of the exemplar point.boolean
The observation (sampling) time of the above value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
setField
public Distribution.Exemplar.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
clearField
public Distribution.Exemplar.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
clearOneof
public Distribution.Exemplar.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
addRepeatedField
public Distribution.Exemplar.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Distribution.Exemplar.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getValue
in 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:
hasTimestamp
in 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:
getTimestamp
in 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:
getTimestampOrBuilder
in 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:
getAttachmentsList
in 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:
getAttachmentsCount
in 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:
getAttachments
in 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:
getAttachmentsOrBuilder
in 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:
getAttachmentsOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-
mergeUnknownFields
public final Distribution.Exemplar.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Distribution.Exemplar.Builder>
-