Package io.opentelemetry.proto.trace.v1
Class Span.Event.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Span.Event.Builder>
io.opentelemetry.proto.trace.v1.Span.Event.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Span.EventOrBuilder,Cloneable
- Enclosing class:
- Span.Event
public static final class Span.Event.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Span.Event.Builder>
implements Span.EventOrBuilder
Event is a time-stamped annotation of the span, consisting of user-supplied text description and key-value pairs.Protobuf type
opentelemetry.proto.trace.v1.Span.Event-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributes(Iterable<? extends KeyValue> values) A collection of attribute key/value pairs on the event.addAttributes(int index, KeyValue value) A collection of attribute key/value pairs on the event.addAttributes(int index, KeyValue.Builder builderForValue) A collection of attribute key/value pairs on the event.addAttributes(KeyValue value) A collection of attribute key/value pairs on the event.addAttributes(KeyValue.Builder builderForValue) A collection of attribute key/value pairs on the event.A collection of attribute key/value pairs on the event.addAttributesBuilder(int index) A collection of attribute key/value pairs on the event.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()A collection of attribute key/value pairs on the event.The number of dropped attributes.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The name of the event.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The time the event occurred.clone()getAttributes(int index) A collection of attribute key/value pairs on the event.getAttributesBuilder(int index) A collection of attribute key/value pairs on the event.A collection of attribute key/value pairs on the event.intA collection of attribute key/value pairs on the event.A collection of attribute key/value pairs on the event.getAttributesOrBuilder(int index) A collection of attribute key/value pairs on the event.List<? extends KeyValueOrBuilder>A collection of attribute key/value pairs on the event.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe number of dropped attributes.getName()The name of the event.com.google.protobuf.ByteStringThe name of the event.longThe time the event occurred.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Span.Event other) final Span.Event.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAttributes(int index) A collection of attribute key/value pairs on the event.setAttributes(int index, KeyValue value) A collection of attribute key/value pairs on the event.setAttributes(int index, KeyValue.Builder builderForValue) A collection of attribute key/value pairs on the event.setDroppedAttributesCount(int value) The number of dropped attributes.The name of the event.setNameBytes(com.google.protobuf.ByteString value) The name of the event.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTimeUnixNano(long value) The time the event occurred.final Span.Event.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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, 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<Span.Event.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<Span.Event.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<Span.Event.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<Span.Event.Builder>
-
setField
public Span.Event.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<Span.Event.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Span.Event.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Span.Event.Builder>
-
setRepeatedField
public Span.Event.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<Span.Event.Builder>
-
addRepeatedField
public Span.Event.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<Span.Event.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Span.Event.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Span.Event.Builder>
-
mergeFrom
public Span.Event.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<Span.Event.Builder>- Throws:
IOException
-
getTimeUnixNano
public long getTimeUnixNano()The time the event occurred.
fixed64 time_unix_nano = 1;- Specified by:
getTimeUnixNanoin interfaceSpan.EventOrBuilder- Returns:
- The timeUnixNano.
-
setTimeUnixNano
The time the event occurred.
fixed64 time_unix_nano = 1;- Parameters:
value- The timeUnixNano to set.- Returns:
- This builder for chaining.
-
clearTimeUnixNano
The time the event occurred.
fixed64 time_unix_nano = 1;- Returns:
- This builder for chaining.
-
getName
The name of the event. This field is semantically required to be set to non-empty string.
string name = 2;- Specified by:
getNamein interfaceSpan.EventOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the event. This field is semantically required to be set to non-empty string.
string name = 2;- Specified by:
getNameBytesin interfaceSpan.EventOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the event. This field is semantically required to be set to non-empty string.
string name = 2;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the event. This field is semantically required to be set to non-empty string.
string name = 2;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the event. This field is semantically required to be set to non-empty string.
string name = 2;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getAttributesList
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesListin interfaceSpan.EventOrBuilder
-
getAttributesCount
public int getAttributesCount()A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesCountin interfaceSpan.EventOrBuilder
-
getAttributes
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesin interfaceSpan.EventOrBuilder
-
setAttributes
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
setAttributes
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
addAttributes
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
addAttributes
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
addAttributes
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
addAttributes
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
addAllAttributes
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
clearAttributes
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
removeAttributes
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
getAttributesBuilder
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
getAttributesOrBuilder
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesOrBuilderin interfaceSpan.EventOrBuilder
-
getAttributesOrBuilderList
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesOrBuilderListin interfaceSpan.EventOrBuilder
-
addAttributesBuilder
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
addAttributesBuilder
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
getAttributesBuilderList
A collection of attribute key/value pairs on the event. Attribute keys MUST be unique (it is not allowed to have more than one attribute with the same key). The behavior of software that receives duplicated keys can be unpredictable.
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3; -
getDroppedAttributesCount
public int getDroppedAttributesCount()The number of dropped attributes. If the value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 4;- Specified by:
getDroppedAttributesCountin interfaceSpan.EventOrBuilder- Returns:
- The droppedAttributesCount.
-
setDroppedAttributesCount
The number of dropped attributes. If the value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 4;- Parameters:
value- The droppedAttributesCount to set.- Returns:
- This builder for chaining.
-
clearDroppedAttributesCount
The number of dropped attributes. If the value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Span.Event.Builder>
-
mergeUnknownFields
public final Span.Event.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Span.Event.Builder>
-