Class Profile.Builder

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

public static final class Profile.Builder extends com.google.protobuf.GeneratedMessage.Builder<Profile.Builder> implements ProfileOrBuilder
 Represents a complete profile, including sample types, samples, mappings to
 binaries, stacks, locations, functions, string table, and additional
 metadata. It modifies and annotates pprof Profile with OpenTelemetry
 specific fields.

 Status: [Alpha]
 
Protobuf type opentelemetry.proto.profiles.v1development.Profile
  • 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<Profile.Builder>
    • clear

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

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

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

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

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

      public Profile.Builder mergeFrom(Profile other)
    • isInitialized

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

      public Profile.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<Profile.Builder>
      Throws:
      IOException
    • hasSampleType

      public boolean hasSampleType()
       The type and unit of all Sample.values in this profile.
       For a cpu or off-cpu profile this might be:
       ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"]
       For a heap profile, this might be:
       ["allocated_objects","count"] or ["allocated_space","bytes"],
       
      .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;
      Specified by:
      hasSampleType in interface ProfileOrBuilder
      Returns:
      Whether the sampleType field is set.
    • getSampleType

      public ValueType getSampleType()
       The type and unit of all Sample.values in this profile.
       For a cpu or off-cpu profile this might be:
       ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"]
       For a heap profile, this might be:
       ["allocated_objects","count"] or ["allocated_space","bytes"],
       
      .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;
      Specified by:
      getSampleType in interface ProfileOrBuilder
      Returns:
      The sampleType.
    • setSampleType

      public Profile.Builder setSampleType(ValueType value)
       The type and unit of all Sample.values in this profile.
       For a cpu or off-cpu profile this might be:
       ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"]
       For a heap profile, this might be:
       ["allocated_objects","count"] or ["allocated_space","bytes"],
       
      .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;
    • setSampleType

      public Profile.Builder setSampleType(ValueType.Builder builderForValue)
       The type and unit of all Sample.values in this profile.
       For a cpu or off-cpu profile this might be:
       ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"]
       For a heap profile, this might be:
       ["allocated_objects","count"] or ["allocated_space","bytes"],
       
      .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;
    • mergeSampleType

      public Profile.Builder mergeSampleType(ValueType value)
       The type and unit of all Sample.values in this profile.
       For a cpu or off-cpu profile this might be:
       ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"]
       For a heap profile, this might be:
       ["allocated_objects","count"] or ["allocated_space","bytes"],
       
      .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;
    • clearSampleType

      public Profile.Builder clearSampleType()
       The type and unit of all Sample.values in this profile.
       For a cpu or off-cpu profile this might be:
       ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"]
       For a heap profile, this might be:
       ["allocated_objects","count"] or ["allocated_space","bytes"],
       
      .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;
    • getSampleTypeBuilder

      public ValueType.Builder getSampleTypeBuilder()
       The type and unit of all Sample.values in this profile.
       For a cpu or off-cpu profile this might be:
       ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"]
       For a heap profile, this might be:
       ["allocated_objects","count"] or ["allocated_space","bytes"],
       
      .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;
    • getSampleTypeOrBuilder

      public ValueTypeOrBuilder getSampleTypeOrBuilder()
       The type and unit of all Sample.values in this profile.
       For a cpu or off-cpu profile this might be:
       ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"]
       For a heap profile, this might be:
       ["allocated_objects","count"] or ["allocated_space","bytes"],
       
      .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;
      Specified by:
      getSampleTypeOrBuilder in interface ProfileOrBuilder
    • getSamplesList

      public List<Sample> getSamplesList()
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
      Specified by:
      getSamplesList in interface ProfileOrBuilder
    • getSamplesCount

      public int getSamplesCount()
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
      Specified by:
      getSamplesCount in interface ProfileOrBuilder
    • getSamples

      public Sample getSamples(int index)
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
      Specified by:
      getSamples in interface ProfileOrBuilder
    • setSamples

      public Profile.Builder setSamples(int index, Sample value)
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • setSamples

      public Profile.Builder setSamples(int index, Sample.Builder builderForValue)
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • addSamples

      public Profile.Builder addSamples(Sample value)
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • addSamples

      public Profile.Builder addSamples(int index, Sample value)
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • addSamples

      public Profile.Builder addSamples(Sample.Builder builderForValue)
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • addSamples

      public Profile.Builder addSamples(int index, Sample.Builder builderForValue)
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • addAllSamples

      public Profile.Builder addAllSamples(Iterable<? extends Sample> values)
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • clearSamples

      public Profile.Builder clearSamples()
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • removeSamples

      public Profile.Builder removeSamples(int index)
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • getSamplesBuilder

      public Sample.Builder getSamplesBuilder(int index)
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • getSamplesOrBuilder

      public SampleOrBuilder getSamplesOrBuilder(int index)
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
      Specified by:
      getSamplesOrBuilder in interface ProfileOrBuilder
    • getSamplesOrBuilderList

      public List<? extends SampleOrBuilder> getSamplesOrBuilderList()
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
      Specified by:
      getSamplesOrBuilderList in interface ProfileOrBuilder
    • addSamplesBuilder

      public Sample.Builder addSamplesBuilder()
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • addSamplesBuilder

      public Sample.Builder addSamplesBuilder(int index)
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • getSamplesBuilderList

      public List<Sample.Builder> getSamplesBuilderList()
       The set of samples recorded in this profile.
       
      repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;
    • getTimeUnixNano

      public long getTimeUnixNano()
       Time of collection (UTC) as nanoseconds since the UNIX epoch.
       
      fixed64 time_unix_nano = 3;
      Specified by:
      getTimeUnixNano in interface ProfileOrBuilder
      Returns:
      The timeUnixNano.
    • setTimeUnixNano

      public Profile.Builder setTimeUnixNano(long value)
       Time of collection (UTC) as nanoseconds since the UNIX epoch.
       
      fixed64 time_unix_nano = 3;
      Parameters:
      value - The timeUnixNano to set.
      Returns:
      This builder for chaining.
    • clearTimeUnixNano

      public Profile.Builder clearTimeUnixNano()
       Time of collection (UTC) as nanoseconds since the UNIX epoch.
       
      fixed64 time_unix_nano = 3;
      Returns:
      This builder for chaining.
    • getDurationNano

      public long getDurationNano()
       Duration of the profile in nanoseconds. For instant profiles like
       live heap snapshot, the duration can be zero but it may be preferable
       to set time_unix_nano to the process start time and duration_nano to
       the relative time when the profile was gathered so that Sample.timestamps_unix_nano
       values fall within the profile time range.
       
      uint64 duration_nano = 4;
      Specified by:
      getDurationNano in interface ProfileOrBuilder
      Returns:
      The durationNano.
    • setDurationNano

      public Profile.Builder setDurationNano(long value)
       Duration of the profile in nanoseconds. For instant profiles like
       live heap snapshot, the duration can be zero but it may be preferable
       to set time_unix_nano to the process start time and duration_nano to
       the relative time when the profile was gathered so that Sample.timestamps_unix_nano
       values fall within the profile time range.
       
      uint64 duration_nano = 4;
      Parameters:
      value - The durationNano to set.
      Returns:
      This builder for chaining.
    • clearDurationNano

      public Profile.Builder clearDurationNano()
       Duration of the profile in nanoseconds. For instant profiles like
       live heap snapshot, the duration can be zero but it may be preferable
       to set time_unix_nano to the process start time and duration_nano to
       the relative time when the profile was gathered so that Sample.timestamps_unix_nano
       values fall within the profile time range.
       
      uint64 duration_nano = 4;
      Returns:
      This builder for chaining.
    • hasPeriodType

      public boolean hasPeriodType()
       The type and the unit of the events between sampled occurrences for
       periodic sampling profiles. It can be the same as sample_type or it can be
       different depending on the case, for example:
       - sample_type=(cpu, milliseconds), period_type=(cpu, milliseconds),
       period=10 signals that we sample the program every 10 milliseconds and
       capture samples that each represent that sampling distance.
       - sample_type=(off_cpu, nanoseconds), period_type=(context_switch, count),
       period=1000 describes a profile where sampling is done every so often in
       terms of context switches, but the recorded metric is the time spent by
       the thread off CPU.
       - sample_type=(inuse_space, bytes), period_type=(allocated_bytes, bytes),
       period=262144 might represent a heap profile where the recorded sample
       metric is the size of the live heap while the periodic sampling is done
       using the number of cumulatively allocated bytes.
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
      Specified by:
      hasPeriodType in interface ProfileOrBuilder
      Returns:
      Whether the periodType field is set.
    • getPeriodType

      public ValueType getPeriodType()
       The type and the unit of the events between sampled occurrences for
       periodic sampling profiles. It can be the same as sample_type or it can be
       different depending on the case, for example:
       - sample_type=(cpu, milliseconds), period_type=(cpu, milliseconds),
       period=10 signals that we sample the program every 10 milliseconds and
       capture samples that each represent that sampling distance.
       - sample_type=(off_cpu, nanoseconds), period_type=(context_switch, count),
       period=1000 describes a profile where sampling is done every so often in
       terms of context switches, but the recorded metric is the time spent by
       the thread off CPU.
       - sample_type=(inuse_space, bytes), period_type=(allocated_bytes, bytes),
       period=262144 might represent a heap profile where the recorded sample
       metric is the size of the live heap while the periodic sampling is done
       using the number of cumulatively allocated bytes.
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
      Specified by:
      getPeriodType in interface ProfileOrBuilder
      Returns:
      The periodType.
    • setPeriodType

      public Profile.Builder setPeriodType(ValueType value)
       The type and the unit of the events between sampled occurrences for
       periodic sampling profiles. It can be the same as sample_type or it can be
       different depending on the case, for example:
       - sample_type=(cpu, milliseconds), period_type=(cpu, milliseconds),
       period=10 signals that we sample the program every 10 milliseconds and
       capture samples that each represent that sampling distance.
       - sample_type=(off_cpu, nanoseconds), period_type=(context_switch, count),
       period=1000 describes a profile where sampling is done every so often in
       terms of context switches, but the recorded metric is the time spent by
       the thread off CPU.
       - sample_type=(inuse_space, bytes), period_type=(allocated_bytes, bytes),
       period=262144 might represent a heap profile where the recorded sample
       metric is the size of the live heap while the periodic sampling is done
       using the number of cumulatively allocated bytes.
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
    • setPeriodType

      public Profile.Builder setPeriodType(ValueType.Builder builderForValue)
       The type and the unit of the events between sampled occurrences for
       periodic sampling profiles. It can be the same as sample_type or it can be
       different depending on the case, for example:
       - sample_type=(cpu, milliseconds), period_type=(cpu, milliseconds),
       period=10 signals that we sample the program every 10 milliseconds and
       capture samples that each represent that sampling distance.
       - sample_type=(off_cpu, nanoseconds), period_type=(context_switch, count),
       period=1000 describes a profile where sampling is done every so often in
       terms of context switches, but the recorded metric is the time spent by
       the thread off CPU.
       - sample_type=(inuse_space, bytes), period_type=(allocated_bytes, bytes),
       period=262144 might represent a heap profile where the recorded sample
       metric is the size of the live heap while the periodic sampling is done
       using the number of cumulatively allocated bytes.
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
    • mergePeriodType

      public Profile.Builder mergePeriodType(ValueType value)
       The type and the unit of the events between sampled occurrences for
       periodic sampling profiles. It can be the same as sample_type or it can be
       different depending on the case, for example:
       - sample_type=(cpu, milliseconds), period_type=(cpu, milliseconds),
       period=10 signals that we sample the program every 10 milliseconds and
       capture samples that each represent that sampling distance.
       - sample_type=(off_cpu, nanoseconds), period_type=(context_switch, count),
       period=1000 describes a profile where sampling is done every so often in
       terms of context switches, but the recorded metric is the time spent by
       the thread off CPU.
       - sample_type=(inuse_space, bytes), period_type=(allocated_bytes, bytes),
       period=262144 might represent a heap profile where the recorded sample
       metric is the size of the live heap while the periodic sampling is done
       using the number of cumulatively allocated bytes.
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
    • clearPeriodType

      public Profile.Builder clearPeriodType()
       The type and the unit of the events between sampled occurrences for
       periodic sampling profiles. It can be the same as sample_type or it can be
       different depending on the case, for example:
       - sample_type=(cpu, milliseconds), period_type=(cpu, milliseconds),
       period=10 signals that we sample the program every 10 milliseconds and
       capture samples that each represent that sampling distance.
       - sample_type=(off_cpu, nanoseconds), period_type=(context_switch, count),
       period=1000 describes a profile where sampling is done every so often in
       terms of context switches, but the recorded metric is the time spent by
       the thread off CPU.
       - sample_type=(inuse_space, bytes), period_type=(allocated_bytes, bytes),
       period=262144 might represent a heap profile where the recorded sample
       metric is the size of the live heap while the periodic sampling is done
       using the number of cumulatively allocated bytes.
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
    • getPeriodTypeBuilder

      public ValueType.Builder getPeriodTypeBuilder()
       The type and the unit of the events between sampled occurrences for
       periodic sampling profiles. It can be the same as sample_type or it can be
       different depending on the case, for example:
       - sample_type=(cpu, milliseconds), period_type=(cpu, milliseconds),
       period=10 signals that we sample the program every 10 milliseconds and
       capture samples that each represent that sampling distance.
       - sample_type=(off_cpu, nanoseconds), period_type=(context_switch, count),
       period=1000 describes a profile where sampling is done every so often in
       terms of context switches, but the recorded metric is the time spent by
       the thread off CPU.
       - sample_type=(inuse_space, bytes), period_type=(allocated_bytes, bytes),
       period=262144 might represent a heap profile where the recorded sample
       metric is the size of the live heap while the periodic sampling is done
       using the number of cumulatively allocated bytes.
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
    • getPeriodTypeOrBuilder

      public ValueTypeOrBuilder getPeriodTypeOrBuilder()
       The type and the unit of the events between sampled occurrences for
       periodic sampling profiles. It can be the same as sample_type or it can be
       different depending on the case, for example:
       - sample_type=(cpu, milliseconds), period_type=(cpu, milliseconds),
       period=10 signals that we sample the program every 10 milliseconds and
       capture samples that each represent that sampling distance.
       - sample_type=(off_cpu, nanoseconds), period_type=(context_switch, count),
       period=1000 describes a profile where sampling is done every so often in
       terms of context switches, but the recorded metric is the time spent by
       the thread off CPU.
       - sample_type=(inuse_space, bytes), period_type=(allocated_bytes, bytes),
       period=262144 might represent a heap profile where the recorded sample
       metric is the size of the live heap while the periodic sampling is done
       using the number of cumulatively allocated bytes.
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
      Specified by:
      getPeriodTypeOrBuilder in interface ProfileOrBuilder
    • getPeriod

      public long getPeriod()
       The distance between sampled occurrences for periodic sampling profiles.
       The value is of the period_type type and unit.
       
      int64 period = 6;
      Specified by:
      getPeriod in interface ProfileOrBuilder
      Returns:
      The period.
    • setPeriod

      public Profile.Builder setPeriod(long value)
       The distance between sampled occurrences for periodic sampling profiles.
       The value is of the period_type type and unit.
       
      int64 period = 6;
      Parameters:
      value - The period to set.
      Returns:
      This builder for chaining.
    • clearPeriod

      public Profile.Builder clearPeriod()
       The distance between sampled occurrences for periodic sampling profiles.
       The value is of the period_type type and unit.
       
      int64 period = 6;
      Returns:
      This builder for chaining.
    • getProfileId

      public com.google.protobuf.ByteString getProfileId()
       A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
       all zeroes is considered invalid. It MAY be used for deduplication and signal
       correlation purposes. It is acceptable to treat two profiles with different values
       in this field as not equal, even if they represented the same object at an earlier
       time.
       This field is optional; an ID may be assigned to an ID-less profile in a later step.
       
      bytes profile_id = 7;
      Specified by:
      getProfileId in interface ProfileOrBuilder
      Returns:
      The profileId.
    • setProfileId

      public Profile.Builder setProfileId(com.google.protobuf.ByteString value)
       A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
       all zeroes is considered invalid. It MAY be used for deduplication and signal
       correlation purposes. It is acceptable to treat two profiles with different values
       in this field as not equal, even if they represented the same object at an earlier
       time.
       This field is optional; an ID may be assigned to an ID-less profile in a later step.
       
      bytes profile_id = 7;
      Parameters:
      value - The profileId to set.
      Returns:
      This builder for chaining.
    • clearProfileId

      public Profile.Builder clearProfileId()
       A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
       all zeroes is considered invalid. It MAY be used for deduplication and signal
       correlation purposes. It is acceptable to treat two profiles with different values
       in this field as not equal, even if they represented the same object at an earlier
       time.
       This field is optional; an ID may be assigned to an ID-less profile in a later step.
       
      bytes profile_id = 7;
      Returns:
      This builder for chaining.
    • getDroppedAttributesCount

      public int getDroppedAttributesCount()
       The number of attributes that were discarded. Attributes
       can be discarded because their keys are too long or because there are too many
       attributes. If this value is 0, then no attributes were dropped.
       
      uint32 dropped_attributes_count = 8;
      Specified by:
      getDroppedAttributesCount in interface ProfileOrBuilder
      Returns:
      The droppedAttributesCount.
    • setDroppedAttributesCount

      public Profile.Builder setDroppedAttributesCount(int value)
       The number of attributes that were discarded. Attributes
       can be discarded because their keys are too long or because there are too many
       attributes. If this value is 0, then no attributes were dropped.
       
      uint32 dropped_attributes_count = 8;
      Parameters:
      value - The droppedAttributesCount to set.
      Returns:
      This builder for chaining.
    • clearDroppedAttributesCount

      public Profile.Builder clearDroppedAttributesCount()
       The number of attributes that were discarded. Attributes
       can be discarded because their keys are too long or because there are too many
       attributes. If this value is 0, then no attributes were dropped.
       
      uint32 dropped_attributes_count = 8;
      Returns:
      This builder for chaining.
    • getOriginalPayloadFormat

      public String getOriginalPayloadFormat()
       The original payload format. See also original_payload. It MUST be set
       together with original_payload or both left unset [optional].
      
       The allowed values for the format string are defined by the OpenTelemetry
       specification. Some examples are "jfr", "pprof", "linux_perf".
      
       The original_payload MAY be used when converting from a source format (e.g. JFR)
       that carries information which cannot be losslessly represented in the
       Profiles format. Including the original data allows receivers to store or
       reexport the data without loss. Because the original payload can be large,
       its inclusion is optional.
       
      string original_payload_format = 9;
      Specified by:
      getOriginalPayloadFormat in interface ProfileOrBuilder
      Returns:
      The originalPayloadFormat.
    • getOriginalPayloadFormatBytes

      public com.google.protobuf.ByteString getOriginalPayloadFormatBytes()
       The original payload format. See also original_payload. It MUST be set
       together with original_payload or both left unset [optional].
      
       The allowed values for the format string are defined by the OpenTelemetry
       specification. Some examples are "jfr", "pprof", "linux_perf".
      
       The original_payload MAY be used when converting from a source format (e.g. JFR)
       that carries information which cannot be losslessly represented in the
       Profiles format. Including the original data allows receivers to store or
       reexport the data without loss. Because the original payload can be large,
       its inclusion is optional.
       
      string original_payload_format = 9;
      Specified by:
      getOriginalPayloadFormatBytes in interface ProfileOrBuilder
      Returns:
      The bytes for originalPayloadFormat.
    • setOriginalPayloadFormat

      public Profile.Builder setOriginalPayloadFormat(String value)
       The original payload format. See also original_payload. It MUST be set
       together with original_payload or both left unset [optional].
      
       The allowed values for the format string are defined by the OpenTelemetry
       specification. Some examples are "jfr", "pprof", "linux_perf".
      
       The original_payload MAY be used when converting from a source format (e.g. JFR)
       that carries information which cannot be losslessly represented in the
       Profiles format. Including the original data allows receivers to store or
       reexport the data without loss. Because the original payload can be large,
       its inclusion is optional.
       
      string original_payload_format = 9;
      Parameters:
      value - The originalPayloadFormat to set.
      Returns:
      This builder for chaining.
    • clearOriginalPayloadFormat

      public Profile.Builder clearOriginalPayloadFormat()
       The original payload format. See also original_payload. It MUST be set
       together with original_payload or both left unset [optional].
      
       The allowed values for the format string are defined by the OpenTelemetry
       specification. Some examples are "jfr", "pprof", "linux_perf".
      
       The original_payload MAY be used when converting from a source format (e.g. JFR)
       that carries information which cannot be losslessly represented in the
       Profiles format. Including the original data allows receivers to store or
       reexport the data without loss. Because the original payload can be large,
       its inclusion is optional.
       
      string original_payload_format = 9;
      Returns:
      This builder for chaining.
    • setOriginalPayloadFormatBytes

      public Profile.Builder setOriginalPayloadFormatBytes(com.google.protobuf.ByteString value)
       The original payload format. See also original_payload. It MUST be set
       together with original_payload or both left unset [optional].
      
       The allowed values for the format string are defined by the OpenTelemetry
       specification. Some examples are "jfr", "pprof", "linux_perf".
      
       The original_payload MAY be used when converting from a source format (e.g. JFR)
       that carries information which cannot be losslessly represented in the
       Profiles format. Including the original data allows receivers to store or
       reexport the data without loss. Because the original payload can be large,
       its inclusion is optional.
       
      string original_payload_format = 9;
      Parameters:
      value - The bytes for originalPayloadFormat to set.
      Returns:
      This builder for chaining.
    • getOriginalPayload

      public com.google.protobuf.ByteString getOriginalPayload()
       The original payload bytes. See also original_payload_format. It MUST be set
       together with original_payload_format or both left unset [optional].
       
      bytes original_payload = 10;
      Specified by:
      getOriginalPayload in interface ProfileOrBuilder
      Returns:
      The originalPayload.
    • setOriginalPayload

      public Profile.Builder setOriginalPayload(com.google.protobuf.ByteString value)
       The original payload bytes. See also original_payload_format. It MUST be set
       together with original_payload_format or both left unset [optional].
       
      bytes original_payload = 10;
      Parameters:
      value - The originalPayload to set.
      Returns:
      This builder for chaining.
    • clearOriginalPayload

      public Profile.Builder clearOriginalPayload()
       The original payload bytes. See also original_payload_format. It MUST be set
       together with original_payload_format or both left unset [optional].
       
      bytes original_payload = 10;
      Returns:
      This builder for chaining.
    • getAttributeIndicesList

      public List<Integer> getAttributeIndicesList()
       References to attributes in attribute_table. [optional]
       
      repeated int32 attribute_indices = 11;
      Specified by:
      getAttributeIndicesList in interface ProfileOrBuilder
      Returns:
      A list containing the attributeIndices.
    • getAttributeIndicesCount

      public int getAttributeIndicesCount()
       References to attributes in attribute_table. [optional]
       
      repeated int32 attribute_indices = 11;
      Specified by:
      getAttributeIndicesCount in interface ProfileOrBuilder
      Returns:
      The count of attributeIndices.
    • getAttributeIndices

      public int getAttributeIndices(int index)
       References to attributes in attribute_table. [optional]
       
      repeated int32 attribute_indices = 11;
      Specified by:
      getAttributeIndices in interface ProfileOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The attributeIndices at the given index.
    • setAttributeIndices

      public Profile.Builder setAttributeIndices(int index, int value)
       References to attributes in attribute_table. [optional]
       
      repeated int32 attribute_indices = 11;
      Parameters:
      index - The index to set the value at.
      value - The attributeIndices to set.
      Returns:
      This builder for chaining.
    • addAttributeIndices

      public Profile.Builder addAttributeIndices(int value)
       References to attributes in attribute_table. [optional]
       
      repeated int32 attribute_indices = 11;
      Parameters:
      value - The attributeIndices to add.
      Returns:
      This builder for chaining.
    • addAllAttributeIndices

      public Profile.Builder addAllAttributeIndices(Iterable<? extends Integer> values)
       References to attributes in attribute_table. [optional]
       
      repeated int32 attribute_indices = 11;
      Parameters:
      values - The attributeIndices to add.
      Returns:
      This builder for chaining.
    • clearAttributeIndices

      public Profile.Builder clearAttributeIndices()
       References to attributes in attribute_table. [optional]
       
      repeated int32 attribute_indices = 11;
      Returns:
      This builder for chaining.