Package io.opentelemetry.proto.trace.v1
Class ScopeSpans.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<ScopeSpans,ScopeSpans.Builder>
io.opentelemetry.proto.trace.v1.ScopeSpans.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,ScopeSpansOrBuilder,Cloneable
- Enclosing class:
- ScopeSpans
public static final class ScopeSpans.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<ScopeSpans,ScopeSpans.Builder>
implements ScopeSpansOrBuilder
A collection of Spans produced by an InstrumentationScope.Protobuf type
opentelemetry.proto.trace.v1.ScopeSpans-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
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.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.The Schema URL, if known.com.google.protobuf.ByteStringThe Schema URL, if known.getScope()The instrumentation scope information for the spans in this message.getSpans(int index) 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.booleanhasScope()The instrumentation scope information for the spans in this message.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.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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 [json_name = "scope"];- 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 [json_name = "scope"];- 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 [json_name = "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 [json_name = "scope"]; -
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 [json_name = "scope"]; -
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 [json_name = "scope"]; -
getSpansList
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"];- 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 [json_name = "spans"];- Specified by:
getSpansCountin interfaceScopeSpansOrBuilder
-
getSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"];- Specified by:
getSpansin interfaceScopeSpansOrBuilder
-
setSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"]; -
setSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"]; -
addSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"]; -
addSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"]; -
addSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"]; -
addSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"]; -
addAllSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"]; -
clearSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"]; -
removeSpans
A list of Spans that originate from an instrumentation scope.
repeated .opentelemetry.proto.trace.v1.Span spans = 2 [json_name = "spans"]; -
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 the data in the "scope" field and all spans and span events in the "spans" field.
string schema_url = 3 [json_name = "schemaUrl"];- 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 the data in the "scope" field and all spans and span events in the "spans" field.
string schema_url = 3 [json_name = "schemaUrl"];- 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 the data in the "scope" field and all spans and span events in the "spans" field.
string schema_url = 3 [json_name = "schemaUrl"];- 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 the data in the "scope" field and all spans and span events in the "spans" field.
string schema_url = 3 [json_name = "schemaUrl"];- 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 the data in the "scope" field and all spans and span events in the "spans" field.
string schema_url = 3 [json_name = "schemaUrl"];- Parameters:
value- The bytes for schemaUrl to set.- Returns:
- This builder for chaining.
-