Package io.opentelemetry.proto.trace.v1
Class Span.Event.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeopentelemetry.proto.trace.v1.Span.Event
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Span.Event.BuilderaddAllAttributes(Iterable<? extends KeyValue> values)attributes is a collection of attribute key/value pairs on the event.Span.Event.BuilderaddAttributes(int index, KeyValue value)attributes is a collection of attribute key/value pairs on the event.Span.Event.BuilderaddAttributes(int index, KeyValue.Builder builderForValue)attributes is a collection of attribute key/value pairs on the event.Span.Event.BuilderaddAttributes(KeyValue value)attributes is a collection of attribute key/value pairs on the event.Span.Event.BuilderaddAttributes(KeyValue.Builder builderForValue)attributes is a collection of attribute key/value pairs on the event.KeyValue.BuilderaddAttributesBuilder()attributes is a collection of attribute key/value pairs on the event.KeyValue.BuilderaddAttributesBuilder(int index)attributes is a collection of attribute key/value pairs on the event.Span.Event.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Span.Eventbuild()Span.EventbuildPartial()Span.Event.Builderclear()Span.Event.BuilderclearAttributes()attributes is a collection of attribute key/value pairs on the event.Span.Event.BuilderclearDroppedAttributesCount()dropped_attributes_count is the number of dropped attributes.Span.Event.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Span.Event.BuilderclearName()name of the event.Span.Event.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Span.Event.BuilderclearTimeUnixNano()time_unix_nano is the time the event occurred.Span.Event.Builderclone()KeyValuegetAttributes(int index)attributes is a collection of attribute key/value pairs on the event.KeyValue.BuildergetAttributesBuilder(int index)attributes is a collection of attribute key/value pairs on the event.List<KeyValue.Builder>getAttributesBuilderList()attributes is a collection of attribute key/value pairs on the event.intgetAttributesCount()attributes is a collection of attribute key/value pairs on the event.List<KeyValue>getAttributesList()attributes is a collection of attribute key/value pairs on the event.KeyValueOrBuildergetAttributesOrBuilder(int index)attributes is a collection of attribute key/value pairs on the event.List<? extends KeyValueOrBuilder>getAttributesOrBuilderList()attributes is a collection of attribute key/value pairs on the event.Span.EventgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetDroppedAttributesCount()dropped_attributes_count is the number of dropped attributes.StringgetName()name of the event.com.google.protobuf.ByteStringgetNameBytes()name of the event.longgetTimeUnixNano()time_unix_nano is the time the event occurred.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Span.Event.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Span.Event.BuildermergeFrom(com.google.protobuf.Message other)Span.Event.BuildermergeFrom(Span.Event other)Span.Event.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Span.Event.BuilderremoveAttributes(int index)attributes is a collection of attribute key/value pairs on the event.Span.Event.BuildersetAttributes(int index, KeyValue value)attributes is a collection of attribute key/value pairs on the event.Span.Event.BuildersetAttributes(int index, KeyValue.Builder builderForValue)attributes is a collection of attribute key/value pairs on the event.Span.Event.BuildersetDroppedAttributesCount(int value)dropped_attributes_count is the number of dropped attributes.Span.Event.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Span.Event.BuildersetName(String value)name of the event.Span.Event.BuildersetNameBytes(com.google.protobuf.ByteString value)name of the event.Span.Event.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Span.Event.BuildersetTimeUnixNano(long value)time_unix_nano is the time the event occurred.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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Span.Event.Builder>
-
clear
public 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
public Span.Event getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Span.Event build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Span.Event buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Span.Event.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
public Span.Event.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Span.Event.Builder>
-
clearOneof
public Span.Event.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public Span.Event.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Span.Event.Builder>
-
mergeFrom
public Span.Event.Builder mergeFrom(Span.Event other)
-
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()
time_unix_nano is the time the event occurred.
fixed64 time_unix_nano = 1;- Specified by:
getTimeUnixNanoin interfaceSpan.EventOrBuilder- Returns:
- The timeUnixNano.
-
setTimeUnixNano
public Span.Event.Builder setTimeUnixNano(long value)
time_unix_nano is the time the event occurred.
fixed64 time_unix_nano = 1;- Parameters:
value- The timeUnixNano to set.- Returns:
- This builder for chaining.
-
clearTimeUnixNano
public Span.Event.Builder clearTimeUnixNano()
time_unix_nano is the time the event occurred.
fixed64 time_unix_nano = 1;- Returns:
- This builder for chaining.
-
getName
public String getName()
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()
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
public Span.Event.Builder setName(String value)
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
public Span.Event.Builder clearName()
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
public Span.Event.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public List<KeyValue> getAttributesList()
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesListin interfaceSpan.EventOrBuilder
-
getAttributesCount
public int getAttributesCount()
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesCountin interfaceSpan.EventOrBuilder
-
getAttributes
public KeyValue getAttributes(int index)
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesin interfaceSpan.EventOrBuilder
-
setAttributes
public Span.Event.Builder setAttributes(int index, KeyValue value)
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
setAttributes
public Span.Event.Builder setAttributes(int index, KeyValue.Builder builderForValue)
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
addAttributes
public Span.Event.Builder addAttributes(KeyValue value)
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
addAttributes
public Span.Event.Builder addAttributes(int index, KeyValue value)
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
addAttributes
public Span.Event.Builder addAttributes(KeyValue.Builder builderForValue)
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
addAttributes
public Span.Event.Builder addAttributes(int index, KeyValue.Builder builderForValue)
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
addAllAttributes
public Span.Event.Builder addAllAttributes(Iterable<? extends KeyValue> values)
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
clearAttributes
public Span.Event.Builder clearAttributes()
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
removeAttributes
public Span.Event.Builder removeAttributes(int index)
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
getAttributesBuilder
public KeyValue.Builder getAttributesBuilder(int index)
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
getAttributesOrBuilder
public KeyValueOrBuilder getAttributesOrBuilder(int index)
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesOrBuilderin interfaceSpan.EventOrBuilder
-
getAttributesOrBuilderList
public List<? extends KeyValueOrBuilder> getAttributesOrBuilderList()
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;- Specified by:
getAttributesOrBuilderListin interfaceSpan.EventOrBuilder
-
addAttributesBuilder
public KeyValue.Builder addAttributesBuilder()
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
addAttributesBuilder
public KeyValue.Builder addAttributesBuilder(int index)
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
getAttributesBuilderList
public List<KeyValue.Builder> getAttributesBuilderList()
attributes is 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).
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 3;
-
getDroppedAttributesCount
public int getDroppedAttributesCount()
dropped_attributes_count is 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
public Span.Event.Builder setDroppedAttributesCount(int value)
dropped_attributes_count is 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
public Span.Event.Builder clearDroppedAttributesCount()
dropped_attributes_count is 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
public final Span.Event.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 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>
-
-