Class ScopeProfiles.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ScopeProfiles.Builder>
io.opentelemetry.proto.profiles.v1development.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.GeneratedMessage.Builder<ScopeProfiles.Builder> implements ScopeProfilesOrBuilder
 A collection of Profiles produced by an InstrumentationScope.
 
Protobuf type opentelemetry.proto.profiles.v1development.ScopeProfiles
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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.GeneratedMessage.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<Profile> getProfilesList()
       A list of Profiles that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1development.Profile profiles = 2;
      Specified by:
      getProfilesList in interface ScopeProfilesOrBuilder
    • getProfilesCount

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

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

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

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

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

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

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

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

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

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

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

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

      public ProfileOrBuilder getProfilesOrBuilder(int index)
       A list of Profiles that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1development.Profile profiles = 2;
      Specified by:
      getProfilesOrBuilder in interface ScopeProfilesOrBuilder
    • getProfilesOrBuilderList

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

      public Profile.Builder addProfilesBuilder()
       A list of Profiles that originate from an instrumentation scope.
       
      repeated .opentelemetry.proto.profiles.v1development.Profile profiles = 2;
    • addProfilesBuilder

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

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

      public String getSchemaUrl()
       The Schema URL, if known. This is the identifier of the Schema that the profile 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 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 profile 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 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 profile 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 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 profile 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 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 profile 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 profiles in the "profiles" field.
       
      string schema_url = 3;
      Parameters:
      value - The bytes for schemaUrl to set.
      Returns:
      This builder for chaining.