Package io.opentelemetry.proto.trace.v1
Class InstrumentationLibrarySpans.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibrarySpans.Builder>
-
- io.opentelemetry.proto.trace.v1.InstrumentationLibrarySpans.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,InstrumentationLibrarySpansOrBuilder,Cloneable
- Enclosing class:
- InstrumentationLibrarySpans
public static final class InstrumentationLibrarySpans.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibrarySpans.Builder> implements InstrumentationLibrarySpansOrBuilder
A collection of Spans produced by an InstrumentationLibrary. InstrumentationLibrarySpans is wire-compatible with ScopeSpans for binary Protobuf format. This message is deprecated and will be removed on June 15, 2022.
Protobuf typeopentelemetry.proto.trace.v1.InstrumentationLibrarySpans
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InstrumentationLibrarySpans.BuilderaddAllSpans(Iterable<? extends Span> values)A list of Spans that originate from an instrumentation library.InstrumentationLibrarySpans.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InstrumentationLibrarySpans.BuilderaddSpans(int index, Span value)A list of Spans that originate from an instrumentation library.InstrumentationLibrarySpans.BuilderaddSpans(int index, Span.Builder builderForValue)A list of Spans that originate from an instrumentation library.InstrumentationLibrarySpans.BuilderaddSpans(Span value)A list of Spans that originate from an instrumentation library.InstrumentationLibrarySpans.BuilderaddSpans(Span.Builder builderForValue)A list of Spans that originate from an instrumentation library.Span.BuilderaddSpansBuilder()A list of Spans that originate from an instrumentation library.Span.BuilderaddSpansBuilder(int index)A list of Spans that originate from an instrumentation library.InstrumentationLibrarySpansbuild()InstrumentationLibrarySpansbuildPartial()InstrumentationLibrarySpans.Builderclear()InstrumentationLibrarySpans.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)InstrumentationLibrarySpans.BuilderclearInstrumentationLibrary()The instrumentation library information for the spans in this message.InstrumentationLibrarySpans.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)InstrumentationLibrarySpans.BuilderclearSchemaUrl()This schema_url applies to all spans and span events in the "spans" field.InstrumentationLibrarySpans.BuilderclearSpans()A list of Spans that originate from an instrumentation library.InstrumentationLibrarySpans.Builderclone()InstrumentationLibrarySpansgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()InstrumentationLibrarygetInstrumentationLibrary()The instrumentation library information for the spans in this message.InstrumentationLibrary.BuildergetInstrumentationLibraryBuilder()The instrumentation library information for the spans in this message.InstrumentationLibraryOrBuildergetInstrumentationLibraryOrBuilder()The instrumentation library information for the spans in this message.StringgetSchemaUrl()This schema_url applies to all spans and span events in the "spans" field.com.google.protobuf.ByteStringgetSchemaUrlBytes()This schema_url applies to all spans and span events in the "spans" field.SpangetSpans(int index)A list of Spans that originate from an instrumentation library.Span.BuildergetSpansBuilder(int index)A list of Spans that originate from an instrumentation library.List<Span.Builder>getSpansBuilderList()A list of Spans that originate from an instrumentation library.intgetSpansCount()A list of Spans that originate from an instrumentation library.List<Span>getSpansList()A list of Spans that originate from an instrumentation library.SpanOrBuildergetSpansOrBuilder(int index)A list of Spans that originate from an instrumentation library.List<? extends SpanOrBuilder>getSpansOrBuilderList()A list of Spans that originate from an instrumentation library.booleanhasInstrumentationLibrary()The instrumentation library information for the spans in this message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()InstrumentationLibrarySpans.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)InstrumentationLibrarySpans.BuildermergeFrom(com.google.protobuf.Message other)InstrumentationLibrarySpans.BuildermergeFrom(InstrumentationLibrarySpans other)InstrumentationLibrarySpans.BuildermergeInstrumentationLibrary(InstrumentationLibrary value)The instrumentation library information for the spans in this message.InstrumentationLibrarySpans.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InstrumentationLibrarySpans.BuilderremoveSpans(int index)A list of Spans that originate from an instrumentation library.InstrumentationLibrarySpans.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InstrumentationLibrarySpans.BuildersetInstrumentationLibrary(InstrumentationLibrary value)The instrumentation library information for the spans in this message.InstrumentationLibrarySpans.BuildersetInstrumentationLibrary(InstrumentationLibrary.Builder builderForValue)The instrumentation library information for the spans in this message.InstrumentationLibrarySpans.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)InstrumentationLibrarySpans.BuildersetSchemaUrl(String value)This schema_url applies to all spans and span events in the "spans" field.InstrumentationLibrarySpans.BuildersetSchemaUrlBytes(com.google.protobuf.ByteString value)This schema_url applies to all spans and span events in the "spans" field.InstrumentationLibrarySpans.BuildersetSpans(int index, Span value)A list of Spans that originate from an instrumentation library.InstrumentationLibrarySpans.BuildersetSpans(int index, Span.Builder builderForValue)A list of Spans that originate from an instrumentation library.InstrumentationLibrarySpans.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<InstrumentationLibrarySpans.Builder>
-
clear
public InstrumentationLibrarySpans.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<InstrumentationLibrarySpans.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<InstrumentationLibrarySpans.Builder>
-
getDefaultInstanceForType
public InstrumentationLibrarySpans getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public InstrumentationLibrarySpans build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InstrumentationLibrarySpans buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InstrumentationLibrarySpans.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<InstrumentationLibrarySpans.Builder>
-
setField
public InstrumentationLibrarySpans.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<InstrumentationLibrarySpans.Builder>
-
clearField
public InstrumentationLibrarySpans.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibrarySpans.Builder>
-
clearOneof
public InstrumentationLibrarySpans.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibrarySpans.Builder>
-
setRepeatedField
public InstrumentationLibrarySpans.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<InstrumentationLibrarySpans.Builder>
-
addRepeatedField
public InstrumentationLibrarySpans.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<InstrumentationLibrarySpans.Builder>
-
mergeFrom
public InstrumentationLibrarySpans.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstrumentationLibrarySpans.Builder>
-
mergeFrom
public InstrumentationLibrarySpans.Builder mergeFrom(InstrumentationLibrarySpans other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibrarySpans.Builder>
-
mergeFrom
public InstrumentationLibrarySpans.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<InstrumentationLibrarySpans.Builder>- Throws:
IOException
-
hasInstrumentationLibrary
public boolean hasInstrumentationLibrary()
The instrumentation library information for the spans in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;- Specified by:
hasInstrumentationLibraryin interfaceInstrumentationLibrarySpansOrBuilder- Returns:
- Whether the instrumentationLibrary field is set.
-
getInstrumentationLibrary
public InstrumentationLibrary getInstrumentationLibrary()
The instrumentation library information for the spans in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;- Specified by:
getInstrumentationLibraryin interfaceInstrumentationLibrarySpansOrBuilder- Returns:
- The instrumentationLibrary.
-
setInstrumentationLibrary
public InstrumentationLibrarySpans.Builder setInstrumentationLibrary(InstrumentationLibrary value)
The instrumentation library information for the spans in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
-
setInstrumentationLibrary
public InstrumentationLibrarySpans.Builder setInstrumentationLibrary(InstrumentationLibrary.Builder builderForValue)
The instrumentation library information for the spans in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
-
mergeInstrumentationLibrary
public InstrumentationLibrarySpans.Builder mergeInstrumentationLibrary(InstrumentationLibrary value)
The instrumentation library information for the spans in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
-
clearInstrumentationLibrary
public InstrumentationLibrarySpans.Builder clearInstrumentationLibrary()
The instrumentation library information for the spans in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
-
getInstrumentationLibraryBuilder
public InstrumentationLibrary.Builder getInstrumentationLibraryBuilder()
The instrumentation library information for the spans in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;
-
getInstrumentationLibraryOrBuilder
public InstrumentationLibraryOrBuilder getInstrumentationLibraryOrBuilder()
The instrumentation library information for the spans in this message. Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).
.opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;- Specified by:
getInstrumentationLibraryOrBuilderin interfaceInstrumentationLibrarySpansOrBuilder
-
getSpansList
public List<Span> getSpansList()
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansListin interfaceInstrumentationLibrarySpansOrBuilder
-
getSpansCount
public int getSpansCount()
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansCountin interfaceInstrumentationLibrarySpansOrBuilder
-
getSpans
public Span getSpans(int index)
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansin interfaceInstrumentationLibrarySpansOrBuilder
-
setSpans
public InstrumentationLibrarySpans.Builder setSpans(int index, Span value)
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
setSpans
public InstrumentationLibrarySpans.Builder setSpans(int index, Span.Builder builderForValue)
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
addSpans
public InstrumentationLibrarySpans.Builder addSpans(Span value)
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
addSpans
public InstrumentationLibrarySpans.Builder addSpans(int index, Span value)
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
addSpans
public InstrumentationLibrarySpans.Builder addSpans(Span.Builder builderForValue)
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
addSpans
public InstrumentationLibrarySpans.Builder addSpans(int index, Span.Builder builderForValue)
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
addAllSpans
public InstrumentationLibrarySpans.Builder addAllSpans(Iterable<? extends Span> values)
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
clearSpans
public InstrumentationLibrarySpans.Builder clearSpans()
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
removeSpans
public InstrumentationLibrarySpans.Builder removeSpans(int index)
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
getSpansBuilder
public Span.Builder getSpansBuilder(int index)
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
getSpansOrBuilder
public SpanOrBuilder getSpansOrBuilder(int index)
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansOrBuilderin interfaceInstrumentationLibrarySpansOrBuilder
-
getSpansOrBuilderList
public List<? extends SpanOrBuilder> getSpansOrBuilderList()
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansOrBuilderListin interfaceInstrumentationLibrarySpansOrBuilder
-
addSpansBuilder
public Span.Builder addSpansBuilder()
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
addSpansBuilder
public Span.Builder addSpansBuilder(int index)
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
getSpansBuilderList
public List<Span.Builder> getSpansBuilderList()
A list of Spans that originate from an instrumentation library.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
getSchemaUrl
public String getSchemaUrl()
This schema_url applies to all spans and span events in the "spans" field.
string schema_url = 3;- Specified by:
getSchemaUrlin interfaceInstrumentationLibrarySpansOrBuilder- Returns:
- The schemaUrl.
-
getSchemaUrlBytes
public com.google.protobuf.ByteString getSchemaUrlBytes()
This schema_url applies to all spans and span events in the "spans" field.
string schema_url = 3;- Specified by:
getSchemaUrlBytesin interfaceInstrumentationLibrarySpansOrBuilder- Returns:
- The bytes for schemaUrl.
-
setSchemaUrl
public InstrumentationLibrarySpans.Builder setSchemaUrl(String value)
This schema_url applies to all spans and span events in the "spans" field.
string schema_url = 3;- Parameters:
value- The schemaUrl to set.- Returns:
- This builder for chaining.
-
clearSchemaUrl
public InstrumentationLibrarySpans.Builder clearSchemaUrl()
This schema_url applies to all spans and span events in the "spans" field.
string schema_url = 3;- Returns:
- This builder for chaining.
-
setSchemaUrlBytes
public InstrumentationLibrarySpans.Builder setSchemaUrlBytes(com.google.protobuf.ByteString value)
This schema_url applies to all spans and span events in the "spans" field.
string schema_url = 3;- Parameters:
value- The bytes for schemaUrl to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final InstrumentationLibrarySpans.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibrarySpans.Builder>
-
mergeUnknownFields
public final InstrumentationLibrarySpans.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InstrumentationLibrarySpans.Builder>
-
-