Package io.opentelemetry.proto.trace.v1
Class ScopeSpans.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ScopeSpans.Builder>
-
- io.opentelemetry.proto.trace.v1.ScopeSpans.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ScopeSpansOrBuilder,Cloneable
- Enclosing class:
- ScopeSpans
public static final class ScopeSpans.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ScopeSpans.Builder> implements ScopeSpansOrBuilder
A collection of Spans produced by an InstrumentationScope.
Protobuf typeopentelemetry.proto.trace.v1.ScopeSpans
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScopeSpans.BuilderaddAllSpans(Iterable<? extends Span> values)A list of Spans that originate from an instrumentation scope.ScopeSpans.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ScopeSpans.BuilderaddSpans(int index, Span value)A list of Spans that originate from an instrumentation scope.ScopeSpans.BuilderaddSpans(int index, Span.Builder builderForValue)A list of Spans that originate from an instrumentation scope.ScopeSpans.BuilderaddSpans(Span value)A list of Spans that originate from an instrumentation scope.ScopeSpans.BuilderaddSpans(Span.Builder builderForValue)A list of Spans that originate from an instrumentation scope.Span.BuilderaddSpansBuilder()A list of Spans that originate from an instrumentation scope.Span.BuilderaddSpansBuilder(int index)A list of Spans that originate from an instrumentation scope.ScopeSpansbuild()ScopeSpansbuildPartial()ScopeSpans.Builderclear()ScopeSpans.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ScopeSpans.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ScopeSpans.BuilderclearSchemaUrl()This schema_url applies to all spans and span events in the "spans" field.ScopeSpans.BuilderclearScope()The instrumentation scope information for the spans in this message.ScopeSpans.BuilderclearSpans()A list of Spans that originate from an instrumentation scope.ScopeSpans.Builderclone()ScopeSpansgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.InstrumentationScopegetScope()The instrumentation scope information for the spans in this message.InstrumentationScope.BuildergetScopeBuilder()The instrumentation scope information for the spans in this message.InstrumentationScopeOrBuildergetScopeOrBuilder()The instrumentation scope information for the spans in this message.SpangetSpans(int index)A list of Spans that originate from an instrumentation scope.Span.BuildergetSpansBuilder(int index)A list of Spans that originate from an instrumentation scope.List<Span.Builder>getSpansBuilderList()A list of Spans that originate from an instrumentation scope.intgetSpansCount()A list of Spans that originate from an instrumentation scope.List<Span>getSpansList()A list of Spans that originate from an instrumentation scope.SpanOrBuildergetSpansOrBuilder(int index)A list of Spans that originate from an instrumentation scope.List<? extends SpanOrBuilder>getSpansOrBuilderList()A list of Spans that originate from an instrumentation scope.booleanhasScope()The instrumentation scope information for the spans in this message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ScopeSpans.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ScopeSpans.BuildermergeFrom(com.google.protobuf.Message other)ScopeSpans.BuildermergeFrom(ScopeSpans other)ScopeSpans.BuildermergeScope(InstrumentationScope value)The instrumentation scope information for the spans in this message.ScopeSpans.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ScopeSpans.BuilderremoveSpans(int index)A list of Spans that originate from an instrumentation scope.ScopeSpans.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ScopeSpans.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ScopeSpans.BuildersetSchemaUrl(String value)This schema_url applies to all spans and span events in the "spans" field.ScopeSpans.BuildersetSchemaUrlBytes(com.google.protobuf.ByteString value)This schema_url applies to all spans and span events in the "spans" field.ScopeSpans.BuildersetScope(InstrumentationScope value)The instrumentation scope information for the spans in this message.ScopeSpans.BuildersetScope(InstrumentationScope.Builder builderForValue)The instrumentation scope information for the spans in this message.ScopeSpans.BuildersetSpans(int index, Span value)A list of Spans that originate from an instrumentation scope.ScopeSpans.BuildersetSpans(int index, Span.Builder builderForValue)A list of Spans that originate from an instrumentation scope.ScopeSpans.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<ScopeSpans.Builder>
-
clear
public ScopeSpans.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<ScopeSpans.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<ScopeSpans.Builder>
-
getDefaultInstanceForType
public ScopeSpans getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ScopeSpans build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ScopeSpans buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ScopeSpans.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<ScopeSpans.Builder>
-
setField
public ScopeSpans.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<ScopeSpans.Builder>
-
clearField
public ScopeSpans.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ScopeSpans.Builder>
-
clearOneof
public ScopeSpans.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ScopeSpans.Builder>
-
setRepeatedField
public ScopeSpans.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<ScopeSpans.Builder>
-
addRepeatedField
public ScopeSpans.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<ScopeSpans.Builder>
-
mergeFrom
public ScopeSpans.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ScopeSpans.Builder>
-
mergeFrom
public ScopeSpans.Builder mergeFrom(ScopeSpans other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ScopeSpans.Builder>
-
mergeFrom
public ScopeSpans.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<ScopeSpans.Builder>- Throws:
IOException
-
hasScope
public boolean hasScope()
The instrumentation scope information for the spans in this message. Semantically when InstrumentationScope isn't set, it is equivalent with an empty instrumentation scope name (unknown).
.opentelemetry.proto.common.v1.InstrumentationScope scope = 1;- Specified by:
hasScopein interfaceScopeSpansOrBuilder- Returns:
- Whether the scope field is set.
-
getScope
public InstrumentationScope getScope()
The instrumentation scope information for the spans in this message. Semantically when InstrumentationScope isn't set, it is equivalent with an empty instrumentation scope name (unknown).
.opentelemetry.proto.common.v1.InstrumentationScope scope = 1;- Specified by:
getScopein interfaceScopeSpansOrBuilder- Returns:
- The scope.
-
setScope
public ScopeSpans.Builder setScope(InstrumentationScope value)
The instrumentation scope information for the spans in this message. Semantically when InstrumentationScope isn't set, it is equivalent with an empty instrumentation scope name (unknown).
.opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
-
setScope
public ScopeSpans.Builder setScope(InstrumentationScope.Builder builderForValue)
The instrumentation scope information for the spans in this message. Semantically when InstrumentationScope isn't set, it is equivalent with an empty instrumentation scope name (unknown).
.opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
-
mergeScope
public ScopeSpans.Builder mergeScope(InstrumentationScope value)
The instrumentation scope information for the spans in this message. Semantically when InstrumentationScope isn't set, it is equivalent with an empty instrumentation scope name (unknown).
.opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
-
clearScope
public ScopeSpans.Builder clearScope()
The instrumentation scope information for the spans in this message. Semantically when InstrumentationScope isn't set, it is equivalent with an empty instrumentation scope name (unknown).
.opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
-
getScopeBuilder
public InstrumentationScope.Builder getScopeBuilder()
The instrumentation scope information for the spans in this message. Semantically when InstrumentationScope isn't set, it is equivalent with an empty instrumentation scope name (unknown).
.opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
-
getScopeOrBuilder
public InstrumentationScopeOrBuilder getScopeOrBuilder()
The instrumentation scope information for the spans in this message. Semantically when InstrumentationScope isn't set, it is equivalent with an empty instrumentation scope name (unknown).
.opentelemetry.proto.common.v1.InstrumentationScope scope = 1;- Specified by:
getScopeOrBuilderin interfaceScopeSpansOrBuilder
-
getSpansList
public List<Span> getSpansList()
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansListin interfaceScopeSpansOrBuilder
-
getSpansCount
public int getSpansCount()
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansCountin interfaceScopeSpansOrBuilder
-
getSpans
public Span getSpans(int index)
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansin interfaceScopeSpansOrBuilder
-
setSpans
public ScopeSpans.Builder setSpans(int index, Span value)
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
setSpans
public ScopeSpans.Builder setSpans(int index, Span.Builder builderForValue)
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
addSpans
public ScopeSpans.Builder addSpans(Span value)
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
addSpans
public ScopeSpans.Builder addSpans(int index, Span value)
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
addSpans
public ScopeSpans.Builder addSpans(Span.Builder builderForValue)
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
addSpans
public ScopeSpans.Builder addSpans(int index, Span.Builder builderForValue)
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
addAllSpans
public ScopeSpans.Builder addAllSpans(Iterable<? extends Span> values)
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
clearSpans
public ScopeSpans.Builder clearSpans()
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
removeSpans
public ScopeSpans.Builder removeSpans(int index)
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
getSpansBuilder
public Span.Builder getSpansBuilder(int index)
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
getSpansOrBuilder
public SpanOrBuilder getSpansOrBuilder(int index)
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansOrBuilderin interfaceScopeSpansOrBuilder
-
getSpansOrBuilderList
public List<? extends SpanOrBuilder> getSpansOrBuilderList()
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansOrBuilderListin interfaceScopeSpansOrBuilder
-
addSpansBuilder
public Span.Builder addSpansBuilder()
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
addSpansBuilder
public Span.Builder addSpansBuilder(int index)
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;
-
getSpansBuilderList
public List<Span.Builder> getSpansBuilderList()
A list of Spans that originate from an instrumentation scope.
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 interfaceScopeSpansOrBuilder- 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 interfaceScopeSpansOrBuilder- Returns:
- The bytes for schemaUrl.
-
setSchemaUrl
public ScopeSpans.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 ScopeSpans.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 ScopeSpans.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 ScopeSpans.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ScopeSpans.Builder>
-
mergeUnknownFields
public final ScopeSpans.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ScopeSpans.Builder>
-
-