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.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 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.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) 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()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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.clone()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.GeneratedMessageV3.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.final ScopeSpans.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeSpans(int index) A list of Spans that originate from an instrumentation scope.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.final 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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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<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
- 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<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
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ScopeSpans.Builder>
-
clearOneof
- 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
- 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.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
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. 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. 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. 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. 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. 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.
-
setUnknownFields
- 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>
-