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.

 Note that whilst fields in this message retain the name and field id from pprof in most cases
 for ease of understanding data migration, it is not intended that pprof:Profile and
 OpenTelemetry:Profile encoding be wire compatible.
 
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
    • getSampleList

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public long getTimeUnixNano()
       Time of collection (UTC) represented as nanoseconds past the 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) represented as nanoseconds past the 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) represented as nanoseconds past the epoch.
       
      fixed64 time_unix_nano = 3;
      Returns:
      This builder for chaining.
    • getDurationNano

      public long getDurationNano()
       Duration of the profile, if a duration makes sense.
       
      uint64 duration_nano = 4;
      Specified by:
      getDurationNano in interface ProfileOrBuilder
      Returns:
      The durationNano.
    • setDurationNano

      public Profile.Builder setDurationNano(long value)
       Duration of the profile, if a duration makes sense.
       
      uint64 duration_nano = 4;
      Parameters:
      value - The durationNano to set.
      Returns:
      This builder for chaining.
    • clearDurationNano

      public Profile.Builder clearDurationNano()
       Duration of the profile, if a duration makes sense.
       
      uint64 duration_nano = 4;
      Returns:
      This builder for chaining.
    • hasPeriodType

      public boolean hasPeriodType()
       The kind of events between sampled occurrences.
       e.g [ "cpu","cycles" ] or [ "heap","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 kind of events between sampled occurrences.
       e.g [ "cpu","cycles" ] or [ "heap","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 kind of events between sampled occurrences.
       e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
    • setPeriodType

      public Profile.Builder setPeriodType(ValueType.Builder builderForValue)
       The kind of events between sampled occurrences.
       e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
    • mergePeriodType

      public Profile.Builder mergePeriodType(ValueType value)
       The kind of events between sampled occurrences.
       e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
    • clearPeriodType

      public Profile.Builder clearPeriodType()
       The kind of events between sampled occurrences.
       e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
    • getPeriodTypeBuilder

      public ValueType.Builder getPeriodTypeBuilder()
       The kind of events between sampled occurrences.
       e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
    • getPeriodTypeOrBuilder

      public ValueTypeOrBuilder getPeriodTypeOrBuilder()
       The kind of events between sampled occurrences.
       e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       
      .opentelemetry.proto.profiles.v1development.ValueType period_type = 5;
      Specified by:
      getPeriodTypeOrBuilder in interface ProfileOrBuilder
    • getPeriod

      public long getPeriod()
       The number of events between sampled occurrences.
       
      int64 period = 6;
      Specified by:
      getPeriod in interface ProfileOrBuilder
      Returns:
      The period.
    • setPeriod

      public Profile.Builder setPeriod(long value)
       The number of events between sampled occurrences.
       
      int64 period = 6;
      Parameters:
      value - The period to set.
      Returns:
      This builder for chaining.
    • clearPeriod

      public Profile.Builder clearPeriod()
       The number of events between sampled occurrences.
       
      int64 period = 6;
      Returns:
      This builder for chaining.
    • getCommentStrindicesList

      public List<Integer> getCommentStrindicesList()
       Free-form text associated with the profile. The text is displayed as is
       to the user by the tools that read profiles (e.g. by pprof). This field
       should not be used to store any machine-readable information, it is only
       for human-friendly content. The profile must stay functional if this field
       is cleaned.
       
      repeated int32 comment_strindices = 7;
      Specified by:
      getCommentStrindicesList in interface ProfileOrBuilder
      Returns:
      A list containing the commentStrindices.
    • getCommentStrindicesCount

      public int getCommentStrindicesCount()
       Free-form text associated with the profile. The text is displayed as is
       to the user by the tools that read profiles (e.g. by pprof). This field
       should not be used to store any machine-readable information, it is only
       for human-friendly content. The profile must stay functional if this field
       is cleaned.
       
      repeated int32 comment_strindices = 7;
      Specified by:
      getCommentStrindicesCount in interface ProfileOrBuilder
      Returns:
      The count of commentStrindices.
    • getCommentStrindices

      public int getCommentStrindices(int index)
       Free-form text associated with the profile. The text is displayed as is
       to the user by the tools that read profiles (e.g. by pprof). This field
       should not be used to store any machine-readable information, it is only
       for human-friendly content. The profile must stay functional if this field
       is cleaned.
       
      repeated int32 comment_strindices = 7;
      Specified by:
      getCommentStrindices in interface ProfileOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The commentStrindices at the given index.
    • setCommentStrindices

      public Profile.Builder setCommentStrindices(int index, int value)
       Free-form text associated with the profile. The text is displayed as is
       to the user by the tools that read profiles (e.g. by pprof). This field
       should not be used to store any machine-readable information, it is only
       for human-friendly content. The profile must stay functional if this field
       is cleaned.
       
      repeated int32 comment_strindices = 7;
      Parameters:
      index - The index to set the value at.
      value - The commentStrindices to set.
      Returns:
      This builder for chaining.
    • addCommentStrindices

      public Profile.Builder addCommentStrindices(int value)
       Free-form text associated with the profile. The text is displayed as is
       to the user by the tools that read profiles (e.g. by pprof). This field
       should not be used to store any machine-readable information, it is only
       for human-friendly content. The profile must stay functional if this field
       is cleaned.
       
      repeated int32 comment_strindices = 7;
      Parameters:
      value - The commentStrindices to add.
      Returns:
      This builder for chaining.
    • addAllCommentStrindices

      public Profile.Builder addAllCommentStrindices(Iterable<? extends Integer> values)
       Free-form text associated with the profile. The text is displayed as is
       to the user by the tools that read profiles (e.g. by pprof). This field
       should not be used to store any machine-readable information, it is only
       for human-friendly content. The profile must stay functional if this field
       is cleaned.
       
      repeated int32 comment_strindices = 7;
      Parameters:
      values - The commentStrindices to add.
      Returns:
      This builder for chaining.
    • clearCommentStrindices

      public Profile.Builder clearCommentStrindices()
       Free-form text associated with the profile. The text is displayed as is
       to the user by the tools that read profiles (e.g. by pprof). This field
       should not be used to store any machine-readable information, it is only
       for human-friendly content. The profile must stay functional if this field
       is cleaned.
       
      repeated int32 comment_strindices = 7;
      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 = 8;
      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 = 8;
      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 = 8;
      Returns:
      This builder for chaining.
    • getDroppedAttributesCount

      public int getDroppedAttributesCount()
       dropped_attributes_count is 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 = 9;
      Specified by:
      getDroppedAttributesCount in interface ProfileOrBuilder
      Returns:
      The droppedAttributesCount.
    • setDroppedAttributesCount

      public Profile.Builder setDroppedAttributesCount(int value)
       dropped_attributes_count is 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 = 9;
      Parameters:
      value - The droppedAttributesCount to set.
      Returns:
      This builder for chaining.
    • clearDroppedAttributesCount

      public Profile.Builder clearDroppedAttributesCount()
       dropped_attributes_count is 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 = 9;
      Returns:
      This builder for chaining.
    • getOriginalPayloadFormat

      public String getOriginalPayloadFormat()
       Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
       
      string original_payload_format = 10;
      Specified by:
      getOriginalPayloadFormat in interface ProfileOrBuilder
      Returns:
      The originalPayloadFormat.
    • getOriginalPayloadFormatBytes

      public com.google.protobuf.ByteString getOriginalPayloadFormatBytes()
       Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
       
      string original_payload_format = 10;
      Specified by:
      getOriginalPayloadFormatBytes in interface ProfileOrBuilder
      Returns:
      The bytes for originalPayloadFormat.
    • setOriginalPayloadFormat

      public Profile.Builder setOriginalPayloadFormat(String value)
       Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
       
      string original_payload_format = 10;
      Parameters:
      value - The originalPayloadFormat to set.
      Returns:
      This builder for chaining.
    • clearOriginalPayloadFormat

      public Profile.Builder clearOriginalPayloadFormat()
       Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
       
      string original_payload_format = 10;
      Returns:
      This builder for chaining.
    • setOriginalPayloadFormatBytes

      public Profile.Builder setOriginalPayloadFormatBytes(com.google.protobuf.ByteString value)
       Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
       
      string original_payload_format = 10;
      Parameters:
      value - The bytes for originalPayloadFormat to set.
      Returns:
      This builder for chaining.
    • getOriginalPayload

      public com.google.protobuf.ByteString getOriginalPayload()
       Original payload can be stored in this field. This can be useful for users who want to get the original payload.
       Formats such as JFR are highly extensible and can contain more information than what is defined in this spec.
       Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload.
       If the original payload is in pprof format, it SHOULD not be included in this field.
       The field is optional, however if it is present then equivalent converted data should be populated in other fields
       of this message as far as is practicable.
       
      bytes original_payload = 11;
      Specified by:
      getOriginalPayload in interface ProfileOrBuilder
      Returns:
      The originalPayload.
    • setOriginalPayload

      public Profile.Builder setOriginalPayload(com.google.protobuf.ByteString value)
       Original payload can be stored in this field. This can be useful for users who want to get the original payload.
       Formats such as JFR are highly extensible and can contain more information than what is defined in this spec.
       Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload.
       If the original payload is in pprof format, it SHOULD not be included in this field.
       The field is optional, however if it is present then equivalent converted data should be populated in other fields
       of this message as far as is practicable.
       
      bytes original_payload = 11;
      Parameters:
      value - The originalPayload to set.
      Returns:
      This builder for chaining.
    • clearOriginalPayload

      public Profile.Builder clearOriginalPayload()
       Original payload can be stored in this field. This can be useful for users who want to get the original payload.
       Formats such as JFR are highly extensible and can contain more information than what is defined in this spec.
       Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload.
       If the original payload is in pprof format, it SHOULD not be included in this field.
       The field is optional, however if it is present then equivalent converted data should be populated in other fields
       of this message as far as is practicable.
       
      bytes original_payload = 11;
      Returns:
      This builder for chaining.
    • getAttributeIndicesList

      public List<Integer> getAttributeIndicesList()
       References to attributes in attribute_table. [optional]
       
      repeated int32 attribute_indices = 12;
      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 = 12;
      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 = 12;
      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 = 12;
      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 = 12;
      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 = 12;
      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 = 12;
      Returns:
      This builder for chaining.