Class ProfilesData.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ProfilesData.Builder>
io.opentelemetry.proto.profiles.v1experimental.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.GeneratedMessageV3.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.v1experimental.ProfilesData
  • 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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
    • clone

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

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

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

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

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

      public ProfilesData.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<ProfilesData.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.GeneratedMessageV3.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 a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
      Specified by:
      getResourceProfilesList in interface ProfilesDataOrBuilder
    • getResourceProfilesCount

      public int getResourceProfilesCount()
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
      Specified by:
      getResourceProfilesCount in interface ProfilesDataOrBuilder
    • getResourceProfiles

      public ResourceProfiles getResourceProfiles(int index)
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.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 a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • setResourceProfiles

      public ProfilesData.Builder setResourceProfiles(int index, ResourceProfiles.Builder builderForValue)
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • addResourceProfiles

      public ProfilesData.Builder addResourceProfiles(ResourceProfiles value)
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • addResourceProfiles

      public ProfilesData.Builder addResourceProfiles(int index, ResourceProfiles value)
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • addResourceProfiles

      public ProfilesData.Builder addResourceProfiles(ResourceProfiles.Builder builderForValue)
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • addResourceProfiles

      public ProfilesData.Builder addResourceProfiles(int index, ResourceProfiles.Builder builderForValue)
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • addAllResourceProfiles

      public ProfilesData.Builder addAllResourceProfiles(Iterable<? extends ResourceProfiles> values)
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • clearResourceProfiles

      public ProfilesData.Builder clearResourceProfiles()
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • removeResourceProfiles

      public ProfilesData.Builder removeResourceProfiles(int index)
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • getResourceProfilesBuilder

      public ResourceProfiles.Builder getResourceProfilesBuilder(int index)
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • getResourceProfilesOrBuilder

      public ResourceProfilesOrBuilder getResourceProfilesOrBuilder(int index)
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
      Specified by:
      getResourceProfilesOrBuilder in interface ProfilesDataOrBuilder
    • getResourceProfilesOrBuilderList

      public List<? extends ResourceProfilesOrBuilder> getResourceProfilesOrBuilderList()
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
      Specified by:
      getResourceProfilesOrBuilderList in interface ProfilesDataOrBuilder
    • addResourceProfilesBuilder

      public ResourceProfiles.Builder addResourceProfilesBuilder()
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • addResourceProfilesBuilder

      public ResourceProfiles.Builder addResourceProfilesBuilder(int index)
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • getResourceProfilesBuilderList

      public List<ResourceProfiles.Builder> getResourceProfilesBuilderList()
       An array of ResourceProfiles.
       For data coming from a single resource this array will typically contain
       one element. Intermediary nodes that receive data from multiple origins
       typically batch the data before forwarding further and in that case this
       array will contain multiple elements.
       
      repeated .opentelemetry.proto.profiles.v1experimental.ResourceProfiles resource_profiles = 1;
    • setUnknownFields

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

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