Package io.opentelemetry.proto.trace.v1
Class ScopeSpans.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ScopeSpans.Builder>
implements ScopeSpansOrBuilder
A collection of Spans produced by an InstrumentationScope.Protobuf type
opentelemetry.proto.trace.v1.ScopeSpans-
Method Summary
Modifier and TypeMethodDescriptionaddAllSpans(Iterable<? extends Span> values) A list of Spans that originate from an instrumentation scope.A list of Spans that originate from an instrumentation scope.addSpans(int index, Span.Builder builderForValue) A list of Spans that originate from an instrumentation scope.A list of Spans that originate from an instrumentation scope.addSpans(Span.Builder builderForValue) A list of Spans that originate from an instrumentation scope.A list of Spans that originate from an instrumentation scope.addSpansBuilder(int index) A list of Spans that originate from an instrumentation scope.build()clear()The Schema URL, if known.The instrumentation scope information for the spans in this message.A list of Spans that originate from an instrumentation scope.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe Schema URL, if known.com.google.protobuf.ByteStringThe Schema URL, if known.getScope()The instrumentation scope information for the spans in this message.The instrumentation scope information for the spans in this message.The instrumentation scope information for the spans in this message.getSpans(int index) A list of Spans that originate from an instrumentation scope.getSpansBuilder(int index) A list of Spans that originate from an instrumentation scope.A list of Spans that originate from an instrumentation scope.intA list of Spans that originate from an instrumentation scope.A list of Spans that originate from an instrumentation scope.getSpansOrBuilder(int index) A list of Spans that originate from an instrumentation scope.List<? extends SpanOrBuilder>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.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ScopeSpans other) mergeScope(InstrumentationScope value) The instrumentation scope information for the spans in this message.removeSpans(int index) A list of Spans that originate from an instrumentation scope.setSchemaUrl(String value) The Schema URL, if known.setSchemaUrlBytes(com.google.protobuf.ByteString value) The Schema URL, if known.setScope(InstrumentationScope value) The instrumentation scope information for the spans in this message.setScope(InstrumentationScope.Builder builderForValue) The instrumentation scope information for the spans in this message.A list of Spans that originate from an instrumentation scope.setSpans(int index, Span.Builder builderForValue) A list of Spans that originate from an instrumentation scope.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ScopeSpans.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ScopeSpans.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ScopeSpans.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
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
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
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
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
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
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
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansin interfaceScopeSpansOrBuilder
-
setSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
setSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
addSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
addSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
addSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
addSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
addAllSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
clearSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
removeSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
getSpansBuilder
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
getSpansOrBuilder
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansOrBuilderin interfaceScopeSpansOrBuilder
-
getSpansOrBuilderList
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2;- Specified by:
getSpansOrBuilderListin interfaceScopeSpansOrBuilder
-
addSpansBuilder
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
addSpansBuilder
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
getSpansBuilderList
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2; -
getSchemaUrl
The Schema URL, if known. This is the identifier of the Schema that the span data is recorded in. Notably, the last part of the URL path is the version number of the schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url 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()The Schema URL, if known. This is the identifier of the Schema that the span data is recorded in. Notably, the last part of the URL path is the version number of the schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url 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
The Schema URL, if known. This is the identifier of the Schema that the span data is recorded in. Notably, the last part of the URL path is the version number of the schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url 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
The Schema URL, if known. This is the identifier of the Schema that the span data is recorded in. Notably, the last part of the URL path is the version number of the schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to all spans and span events in the "spans" field.
string schema_url = 3;- Returns:
- This builder for chaining.
-
setSchemaUrlBytes
The Schema URL, if known. This is the identifier of the Schema that the span data is recorded in. Notably, the last part of the URL path is the version number of the schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url 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.
-