Class ScopeProfiles.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
io.opentelemetry.proto.profiles.v1experimental.ScopeProfiles.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ScopeProfilesOrBuilder,Cloneable
- Enclosing class:
- ScopeProfiles
public static final class ScopeProfiles.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
implements ScopeProfilesOrBuilder
A collection of ProfileContainers produced by an InstrumentationScope.Protobuf type
opentelemetry.proto.profiles.v1experimental.ScopeProfiles-
Method Summary
Modifier and TypeMethodDescriptionaddAllProfiles(Iterable<? extends ProfileContainer> values) A list of ProfileContainers that originate from an instrumentation scope.addProfiles(int index, ProfileContainer value) A list of ProfileContainers that originate from an instrumentation scope.addProfiles(int index, ProfileContainer.Builder builderForValue) A list of ProfileContainers that originate from an instrumentation scope.addProfiles(ProfileContainer value) A list of ProfileContainers that originate from an instrumentation scope.addProfiles(ProfileContainer.Builder builderForValue) A list of ProfileContainers that originate from an instrumentation scope.A list of ProfileContainers that originate from an instrumentation scope.addProfilesBuilder(int index) A list of ProfileContainers that originate from an instrumentation scope.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) A list of ProfileContainers that originate from an instrumentation scope.The Schema URL, if known.The instrumentation scope information for the profiles in this message.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetProfiles(int index) A list of ProfileContainers that originate from an instrumentation scope.getProfilesBuilder(int index) A list of ProfileContainers that originate from an instrumentation scope.A list of ProfileContainers that originate from an instrumentation scope.intA list of ProfileContainers that originate from an instrumentation scope.A list of ProfileContainers that originate from an instrumentation scope.getProfilesOrBuilder(int index) A list of ProfileContainers that originate from an instrumentation scope.List<? extends ProfileContainerOrBuilder>A list of ProfileContainers 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 profiles in this message.The instrumentation scope information for the profiles in this message.The instrumentation scope information for the profiles in this message.booleanhasScope()The instrumentation scope information for the profiles 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(ScopeProfiles other) mergeScope(InstrumentationScope value) The instrumentation scope information for the profiles in this message.final ScopeProfiles.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeProfiles(int index) A list of ProfileContainers that originate from an instrumentation scope.setProfiles(int index, ProfileContainer value) A list of ProfileContainers that originate from an instrumentation scope.setProfiles(int index, ProfileContainer.Builder builderForValue) A list of ProfileContainers 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 profiles in this message.setScope(InstrumentationScope.Builder builderForValue) The instrumentation scope information for the profiles in this message.final ScopeProfiles.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<ScopeProfiles.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<ScopeProfiles.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<ScopeProfiles.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<ScopeProfiles.Builder>
-
setField
public ScopeProfiles.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<ScopeProfiles.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
-
setRepeatedField
public ScopeProfiles.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<ScopeProfiles.Builder>
-
addRepeatedField
public ScopeProfiles.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<ScopeProfiles.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ScopeProfiles.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
-
mergeFrom
public ScopeProfiles.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<ScopeProfiles.Builder>- Throws:
IOException
-
hasScope
public boolean hasScope()The instrumentation scope information for the profiles 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 interfaceScopeProfilesOrBuilder- Returns:
- Whether the scope field is set.
-
getScope
The instrumentation scope information for the profiles 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 interfaceScopeProfilesOrBuilder- Returns:
- The scope.
-
setScope
The instrumentation scope information for the profiles 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 profiles 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 profiles 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 profiles 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 profiles 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 profiles 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 interfaceScopeProfilesOrBuilder
-
getProfilesList
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;- Specified by:
getProfilesListin interfaceScopeProfilesOrBuilder
-
getProfilesCount
public int getProfilesCount()A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;- Specified by:
getProfilesCountin interfaceScopeProfilesOrBuilder
-
getProfiles
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;- Specified by:
getProfilesin interfaceScopeProfilesOrBuilder
-
setProfiles
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
setProfiles
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
addProfiles
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
addProfiles
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
addProfiles
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
addProfiles
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
addAllProfiles
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
clearProfiles
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
removeProfiles
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
getProfilesBuilder
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
getProfilesOrBuilder
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;- Specified by:
getProfilesOrBuilderin interfaceScopeProfilesOrBuilder
-
getProfilesOrBuilderList
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;- Specified by:
getProfilesOrBuilderListin interfaceScopeProfilesOrBuilder
-
addProfilesBuilder
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
addProfilesBuilder
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
getProfilesBuilderList
A list of ProfileContainers that originate from an instrumentation scope.
repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2; -
getSchemaUrl
The Schema URL, if known. This is the identifier of the Schema that the metric 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 profiles in the "profiles" field.
string schema_url = 3;- Specified by:
getSchemaUrlin interfaceScopeProfilesOrBuilder- Returns:
- The schemaUrl.
-
getSchemaUrlBytes
public com.google.protobuf.ByteString getSchemaUrlBytes()The Schema URL, if known. This is the identifier of the Schema that the metric 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 profiles in the "profiles" field.
string schema_url = 3;- Specified by:
getSchemaUrlBytesin interfaceScopeProfilesOrBuilder- Returns:
- The bytes for schemaUrl.
-
setSchemaUrl
The Schema URL, if known. This is the identifier of the Schema that the metric 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 profiles in the "profiles" 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 metric 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 profiles in the "profiles" 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 metric 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 profiles in the "profiles" field.
string schema_url = 3;- Parameters:
value- The bytes for schemaUrl to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ScopeProfiles.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
-
mergeUnknownFields
public final ScopeProfiles.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
-