Class ProfilesData.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProfilesData.Builder>
io.opentelemetry.proto.profiles.v1development.ProfilesData.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ProfilesDataOrBuilder, Cloneable
Enclosing class:
ProfilesData

public static final class ProfilesData.Builder extends com.google.protobuf.GeneratedMessage.Builder<ProfilesData.Builder> implements ProfilesDataOrBuilder
 ProfilesData represents the profiles data that can be stored in persistent storage,
 OR can be embedded by other protocols that transfer OTLP profiles data but do not
 implement the OTLP protocol.

 The main difference between this message and collector protocol is that
 in this message there will not be any "control" or "metadata" specific to
 OTLP protocol.

 When new fields are added into this message, the OTLP request MUST be updated
 as well.
 
Protobuf type opentelemetry.proto.profiles.v1development.ProfilesData
  • 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<ProfilesData.Builder>
    • clear

      public ProfilesData.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<ProfilesData.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<ProfilesData.Builder>
    • getDefaultInstanceForType

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

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

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

      public ProfilesData.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<ProfilesData.Builder>
    • mergeFrom

      public ProfilesData.Builder mergeFrom(ProfilesData other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ProfilesData.Builder>
    • mergeFrom

      public ProfilesData.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<ProfilesData.Builder>
      Throws:
      IOException
    • getResourceProfilesList

      public List<ResourceProfiles> getResourceProfilesList()
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
      Specified by:
      getResourceProfilesList in interface ProfilesDataOrBuilder
    • getResourceProfilesCount

      public int getResourceProfilesCount()
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
      Specified by:
      getResourceProfilesCount in interface ProfilesDataOrBuilder
    • getResourceProfiles

      public ResourceProfiles getResourceProfiles(int index)
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
      Specified by:
      getResourceProfiles in interface ProfilesDataOrBuilder
    • setResourceProfiles

      public ProfilesData.Builder setResourceProfiles(int index, ResourceProfiles value)
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • setResourceProfiles

      public ProfilesData.Builder setResourceProfiles(int index, ResourceProfiles.Builder builderForValue)
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • addResourceProfiles

      public ProfilesData.Builder addResourceProfiles(ResourceProfiles value)
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • addResourceProfiles

      public ProfilesData.Builder addResourceProfiles(int index, ResourceProfiles value)
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • addResourceProfiles

      public ProfilesData.Builder addResourceProfiles(ResourceProfiles.Builder builderForValue)
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • addResourceProfiles

      public ProfilesData.Builder addResourceProfiles(int index, ResourceProfiles.Builder builderForValue)
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • addAllResourceProfiles

      public ProfilesData.Builder addAllResourceProfiles(Iterable<? extends ResourceProfiles> values)
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • clearResourceProfiles

      public ProfilesData.Builder clearResourceProfiles()
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • removeResourceProfiles

      public ProfilesData.Builder removeResourceProfiles(int index)
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • getResourceProfilesBuilder

      public ResourceProfiles.Builder getResourceProfilesBuilder(int index)
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • getResourceProfilesOrBuilder

      public ResourceProfilesOrBuilder getResourceProfilesOrBuilder(int index)
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
      Specified by:
      getResourceProfilesOrBuilder in interface ProfilesDataOrBuilder
    • getResourceProfilesOrBuilderList

      public List<? extends ResourceProfilesOrBuilder> getResourceProfilesOrBuilderList()
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
      Specified by:
      getResourceProfilesOrBuilderList in interface ProfilesDataOrBuilder
    • addResourceProfilesBuilder

      public ResourceProfiles.Builder addResourceProfilesBuilder()
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • addResourceProfilesBuilder

      public ResourceProfiles.Builder addResourceProfilesBuilder(int index)
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • getResourceProfilesBuilderList

      public List<ResourceProfiles.Builder> getResourceProfilesBuilderList()
       An array of ResourceProfiles.
       For data coming from an SDK profiler, this array will typically contain one
       element. Host-level profilers will usually create one ResourceProfile per
       container, as well as one additional ResourceProfile grouping all samples
       from non-containerized processes.
       Other resource groupings are possible as well and clarified via
       Resource.attributes and semantic conventions.
       Tools that visualize profiles should prefer displaying
       resources_profiles[0].scope_profiles[0].profiles[0] by default.
       
      repeated .opentelemetry.proto.profiles.v1development.ResourceProfiles resource_profiles = 1;
    • hasDictionary

      public boolean hasDictionary()
       One instance of ProfilesDictionary
       
      .opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
      Specified by:
      hasDictionary in interface ProfilesDataOrBuilder
      Returns:
      Whether the dictionary field is set.
    • getDictionary

      public ProfilesDictionary getDictionary()
       One instance of ProfilesDictionary
       
      .opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
      Specified by:
      getDictionary in interface ProfilesDataOrBuilder
      Returns:
      The dictionary.
    • setDictionary

      public ProfilesData.Builder setDictionary(ProfilesDictionary value)
       One instance of ProfilesDictionary
       
      .opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
    • setDictionary

      public ProfilesData.Builder setDictionary(ProfilesDictionary.Builder builderForValue)
       One instance of ProfilesDictionary
       
      .opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
    • mergeDictionary

      public ProfilesData.Builder mergeDictionary(ProfilesDictionary value)
       One instance of ProfilesDictionary
       
      .opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
    • clearDictionary

      public ProfilesData.Builder clearDictionary()
       One instance of ProfilesDictionary
       
      .opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
    • getDictionaryBuilder

      public ProfilesDictionary.Builder getDictionaryBuilder()
       One instance of ProfilesDictionary
       
      .opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
    • getDictionaryOrBuilder

      public ProfilesDictionaryOrBuilder getDictionaryOrBuilder()
       One instance of ProfilesDictionary
       
      .opentelemetry.proto.profiles.v1development.ProfilesDictionary dictionary = 2;
      Specified by:
      getDictionaryOrBuilder in interface ProfilesDataOrBuilder