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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
    • clear

      public ScopeProfiles.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
    • getDefaultInstanceForType

      public ScopeProfiles getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ScopeProfiles build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ScopeProfiles buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public ScopeProfiles.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
    • setField

      public ScopeProfiles.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
    • clearField

      public ScopeProfiles.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
    • clearOneof

      public ScopeProfiles.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
    • setRepeatedField

      public ScopeProfiles.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
    • addRepeatedField

      public ScopeProfiles.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
    • mergeFrom

      public ScopeProfiles.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ScopeProfiles.Builder>
    • mergeFrom

      public ScopeProfiles.Builder mergeFrom(ScopeProfiles other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasScope in interface ScopeProfilesOrBuilder
      Returns:
      Whether the scope field is set.
    • getScope

      public InstrumentationScope 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:
      getScope in interface ScopeProfilesOrBuilder
      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

      public ScopeProfiles.Builder setScope(InstrumentationScope.Builder builderForValue)
       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

      public ScopeProfiles.Builder mergeScope(InstrumentationScope value)
       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

      public ScopeProfiles.Builder 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

      public InstrumentationScope.Builder 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

      public InstrumentationScopeOrBuilder 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:
      getScopeOrBuilder in interface ScopeProfilesOrBuilder
    • getProfilesList

      public List<ProfileContainer> getProfilesList()
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
      Specified by:
      getProfilesList in interface ScopeProfilesOrBuilder
    • getProfilesCount

      public int getProfilesCount()
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
      Specified by:
      getProfilesCount in interface ScopeProfilesOrBuilder
    • getProfiles

      public ProfileContainer getProfiles(int index)
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
      Specified by:
      getProfiles in interface ScopeProfilesOrBuilder
    • setProfiles

      public ScopeProfiles.Builder setProfiles(int index, ProfileContainer value)
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • setProfiles

      public ScopeProfiles.Builder setProfiles(int index, ProfileContainer.Builder builderForValue)
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • addProfiles

      public ScopeProfiles.Builder addProfiles(ProfileContainer value)
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • addProfiles

      public ScopeProfiles.Builder addProfiles(int index, ProfileContainer value)
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • addProfiles

      public ScopeProfiles.Builder addProfiles(ProfileContainer.Builder builderForValue)
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • addProfiles

      public ScopeProfiles.Builder addProfiles(int index, ProfileContainer.Builder builderForValue)
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • addAllProfiles

      public ScopeProfiles.Builder addAllProfiles(Iterable<? extends ProfileContainer> values)
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • clearProfiles

      public ScopeProfiles.Builder clearProfiles()
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • removeProfiles

      public ScopeProfiles.Builder removeProfiles(int index)
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • getProfilesBuilder

      public ProfileContainer.Builder getProfilesBuilder(int index)
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • getProfilesOrBuilder

      public ProfileContainerOrBuilder getProfilesOrBuilder(int index)
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
      Specified by:
      getProfilesOrBuilder in interface ScopeProfilesOrBuilder
    • getProfilesOrBuilderList

      public List<? extends ProfileContainerOrBuilder> getProfilesOrBuilderList()
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
      Specified by:
      getProfilesOrBuilderList in interface ScopeProfilesOrBuilder
    • addProfilesBuilder

      public ProfileContainer.Builder addProfilesBuilder()
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • addProfilesBuilder

      public ProfileContainer.Builder addProfilesBuilder(int index)
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • getProfilesBuilderList

      public List<ProfileContainer.Builder> getProfilesBuilderList()
       A list of ProfileContainers that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ProfileContainer profiles = 2;
    • getSchemaUrl

      public String 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:
      getSchemaUrl in interface ScopeProfilesOrBuilder
      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:
      getSchemaUrlBytes in interface ScopeProfilesOrBuilder
      Returns:
      The bytes for schemaUrl.
    • setSchemaUrl

      public ScopeProfiles.Builder setSchemaUrl(String value)
       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

      public ScopeProfiles.Builder 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

      public ScopeProfiles.Builder setSchemaUrlBytes(com.google.protobuf.ByteString value)
       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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>
    • mergeUnknownFields

      public final ScopeProfiles.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ScopeProfiles.Builder>