All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.proto.profiles.v1development.Profile Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: opentelemetry/proto/profiles/v1development/profiles.proto

// Protobuf Java Version: 3.25.1
package io.opentelemetry.proto.profiles.v1development;

/**
 * 
 * Represents a complete profile, including sample types, samples,
 * mappings to binaries, 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 {@code opentelemetry.proto.profiles.v1development.Profile} */ public final class Profile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opentelemetry.proto.profiles.v1development.Profile) ProfileOrBuilder { private static final long serialVersionUID = 0L; // Use Profile.newBuilder() to construct. private Profile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Profile() { sampleType_ = java.util.Collections.emptyList(); sample_ = java.util.Collections.emptyList(); mappingTable_ = java.util.Collections.emptyList(); locationTable_ = java.util.Collections.emptyList(); locationIndices_ = emptyIntList(); functionTable_ = java.util.Collections.emptyList(); attributeTable_ = java.util.Collections.emptyList(); attributeUnits_ = java.util.Collections.emptyList(); linkTable_ = java.util.Collections.emptyList(); stringTable_ = com.google.protobuf.LazyStringArrayList.emptyList(); commentStrindices_ = emptyIntList(); profileId_ = com.google.protobuf.ByteString.EMPTY; originalPayloadFormat_ = ""; originalPayload_ = com.google.protobuf.ByteString.EMPTY; attributeIndices_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Profile(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opentelemetry.proto.profiles.v1development.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1development_Profile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.profiles.v1development.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1development_Profile_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.profiles.v1development.Profile.class, io.opentelemetry.proto.profiles.v1development.Profile.Builder.class); } private int bitField0_; public static final int SAMPLE_TYPE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List sampleType_; /** *
   * A description of the samples associated with each Sample.value.
   * For a cpu profile this might be:
   *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
   * For a heap profile, this might be:
   *   [["allocations","count"], ["space","bytes"]],
   * If one of the values represents the number of events represented
   * by the sample, by convention it should be at index 0 and use
   * sample_type.unit == "count".
   * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ @java.lang.Override public java.util.List getSampleTypeList() { return sampleType_; } /** *
   * A description of the samples associated with each Sample.value.
   * For a cpu profile this might be:
   *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
   * For a heap profile, this might be:
   *   [["allocations","count"], ["space","bytes"]],
   * If one of the values represents the number of events represented
   * by the sample, by convention it should be at index 0 and use
   * sample_type.unit == "count".
   * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ @java.lang.Override public java.util.List getSampleTypeOrBuilderList() { return sampleType_; } /** *
   * A description of the samples associated with each Sample.value.
   * For a cpu profile this might be:
   *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
   * For a heap profile, this might be:
   *   [["allocations","count"], ["space","bytes"]],
   * If one of the values represents the number of events represented
   * by the sample, by convention it should be at index 0 and use
   * sample_type.unit == "count".
   * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ @java.lang.Override public int getSampleTypeCount() { return sampleType_.size(); } /** *
   * A description of the samples associated with each Sample.value.
   * For a cpu profile this might be:
   *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
   * For a heap profile, this might be:
   *   [["allocations","count"], ["space","bytes"]],
   * If one of the values represents the number of events represented
   * by the sample, by convention it should be at index 0 and use
   * sample_type.unit == "count".
   * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.ValueType getSampleType(int index) { return sampleType_.get(index); } /** *
   * A description of the samples associated with each Sample.value.
   * For a cpu profile this might be:
   *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
   * For a heap profile, this might be:
   *   [["allocations","count"], ["space","bytes"]],
   * If one of the values represents the number of events represented
   * by the sample, by convention it should be at index 0 and use
   * sample_type.unit == "count".
   * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.ValueTypeOrBuilder getSampleTypeOrBuilder( int index) { return sampleType_.get(index); } public static final int SAMPLE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List sample_; /** *
   * The set of samples recorded in this profile.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ @java.lang.Override public java.util.List getSampleList() { return sample_; } /** *
   * The set of samples recorded in this profile.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ @java.lang.Override public java.util.List getSampleOrBuilderList() { return sample_; } /** *
   * The set of samples recorded in this profile.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ @java.lang.Override public int getSampleCount() { return sample_.size(); } /** *
   * The set of samples recorded in this profile.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.Sample getSample(int index) { return sample_.get(index); } /** *
   * The set of samples recorded in this profile.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.SampleOrBuilder getSampleOrBuilder( int index) { return sample_.get(index); } public static final int MAPPING_TABLE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List mappingTable_; /** *
   * Mapping from address ranges to the image/binary/library mapped
   * into that address range.  mapping[0] will be the main binary.
   * If multiple binaries contribute to the Profile and no main
   * binary can be identified, mapping[0] has no special meaning.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ @java.lang.Override public java.util.List getMappingTableList() { return mappingTable_; } /** *
   * Mapping from address ranges to the image/binary/library mapped
   * into that address range.  mapping[0] will be the main binary.
   * If multiple binaries contribute to the Profile and no main
   * binary can be identified, mapping[0] has no special meaning.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ @java.lang.Override public java.util.List getMappingTableOrBuilderList() { return mappingTable_; } /** *
   * Mapping from address ranges to the image/binary/library mapped
   * into that address range.  mapping[0] will be the main binary.
   * If multiple binaries contribute to the Profile and no main
   * binary can be identified, mapping[0] has no special meaning.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ @java.lang.Override public int getMappingTableCount() { return mappingTable_.size(); } /** *
   * Mapping from address ranges to the image/binary/library mapped
   * into that address range.  mapping[0] will be the main binary.
   * If multiple binaries contribute to the Profile and no main
   * binary can be identified, mapping[0] has no special meaning.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.Mapping getMappingTable(int index) { return mappingTable_.get(index); } /** *
   * Mapping from address ranges to the image/binary/library mapped
   * into that address range.  mapping[0] will be the main binary.
   * If multiple binaries contribute to the Profile and no main
   * binary can be identified, mapping[0] has no special meaning.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.MappingOrBuilder getMappingTableOrBuilder( int index) { return mappingTable_.get(index); } public static final int LOCATION_TABLE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List locationTable_; /** *
   * Locations referenced by samples via location_indices.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ @java.lang.Override public java.util.List getLocationTableList() { return locationTable_; } /** *
   * Locations referenced by samples via location_indices.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ @java.lang.Override public java.util.List getLocationTableOrBuilderList() { return locationTable_; } /** *
   * Locations referenced by samples via location_indices.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ @java.lang.Override public int getLocationTableCount() { return locationTable_.size(); } /** *
   * Locations referenced by samples via location_indices.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.Location getLocationTable(int index) { return locationTable_.get(index); } /** *
   * Locations referenced by samples via location_indices.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.LocationOrBuilder getLocationTableOrBuilder( int index) { return locationTable_.get(index); } public static final int LOCATION_INDICES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList locationIndices_ = emptyIntList(); /** *
   * Array of locations referenced by samples.
   * 
* * repeated int32 location_indices = 5; * @return A list containing the locationIndices. */ @java.lang.Override public java.util.List getLocationIndicesList() { return locationIndices_; } /** *
   * Array of locations referenced by samples.
   * 
* * repeated int32 location_indices = 5; * @return The count of locationIndices. */ public int getLocationIndicesCount() { return locationIndices_.size(); } /** *
   * Array of locations referenced by samples.
   * 
* * repeated int32 location_indices = 5; * @param index The index of the element to return. * @return The locationIndices at the given index. */ public int getLocationIndices(int index) { return locationIndices_.getInt(index); } private int locationIndicesMemoizedSerializedSize = -1; public static final int FUNCTION_TABLE_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List functionTable_; /** *
   * Functions referenced by locations.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ @java.lang.Override public java.util.List getFunctionTableList() { return functionTable_; } /** *
   * Functions referenced by locations.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ @java.lang.Override public java.util.List getFunctionTableOrBuilderList() { return functionTable_; } /** *
   * Functions referenced by locations.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ @java.lang.Override public int getFunctionTableCount() { return functionTable_.size(); } /** *
   * Functions referenced by locations.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.Function getFunctionTable(int index) { return functionTable_.get(index); } /** *
   * Functions referenced by locations.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.FunctionOrBuilder getFunctionTableOrBuilder( int index) { return functionTable_.get(index); } public static final int ATTRIBUTE_TABLE_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List attributeTable_; /** *
   * Lookup table for attributes.
   * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ @java.lang.Override public java.util.List getAttributeTableList() { return attributeTable_; } /** *
   * Lookup table for attributes.
   * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ @java.lang.Override public java.util.List getAttributeTableOrBuilderList() { return attributeTable_; } /** *
   * Lookup table for attributes.
   * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ @java.lang.Override public int getAttributeTableCount() { return attributeTable_.size(); } /** *
   * Lookup table for attributes.
   * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ @java.lang.Override public io.opentelemetry.proto.common.v1.KeyValue getAttributeTable(int index) { return attributeTable_.get(index); } /** *
   * Lookup table for attributes.
   * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ @java.lang.Override public io.opentelemetry.proto.common.v1.KeyValueOrBuilder getAttributeTableOrBuilder( int index) { return attributeTable_.get(index); } public static final int ATTRIBUTE_UNITS_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List attributeUnits_; /** *
   * Represents a mapping between Attribute Keys and Units.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ @java.lang.Override public java.util.List getAttributeUnitsList() { return attributeUnits_; } /** *
   * Represents a mapping between Attribute Keys and Units.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ @java.lang.Override public java.util.List getAttributeUnitsOrBuilderList() { return attributeUnits_; } /** *
   * Represents a mapping between Attribute Keys and Units.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ @java.lang.Override public int getAttributeUnitsCount() { return attributeUnits_.size(); } /** *
   * Represents a mapping between Attribute Keys and Units.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.AttributeUnit getAttributeUnits(int index) { return attributeUnits_.get(index); } /** *
   * Represents a mapping between Attribute Keys and Units.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.AttributeUnitOrBuilder getAttributeUnitsOrBuilder( int index) { return attributeUnits_.get(index); } public static final int LINK_TABLE_FIELD_NUMBER = 9; @SuppressWarnings("serial") private java.util.List linkTable_; /** *
   * Lookup table for links.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ @java.lang.Override public java.util.List getLinkTableList() { return linkTable_; } /** *
   * Lookup table for links.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ @java.lang.Override public java.util.List getLinkTableOrBuilderList() { return linkTable_; } /** *
   * Lookup table for links.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ @java.lang.Override public int getLinkTableCount() { return linkTable_.size(); } /** *
   * Lookup table for links.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.Link getLinkTable(int index) { return linkTable_.get(index); } /** *
   * Lookup table for links.
   * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.LinkOrBuilder getLinkTableOrBuilder( int index) { return linkTable_.get(index); } public static final int STRING_TABLE_FIELD_NUMBER = 10; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList stringTable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * A common table for strings referenced by various messages.
   * string_table[0] must always be "".
   * 
* * repeated string string_table = 10; * @return A list containing the stringTable. */ public com.google.protobuf.ProtocolStringList getStringTableList() { return stringTable_; } /** *
   * A common table for strings referenced by various messages.
   * string_table[0] must always be "".
   * 
* * repeated string string_table = 10; * @return The count of stringTable. */ public int getStringTableCount() { return stringTable_.size(); } /** *
   * A common table for strings referenced by various messages.
   * string_table[0] must always be "".
   * 
* * repeated string string_table = 10; * @param index The index of the element to return. * @return The stringTable at the given index. */ public java.lang.String getStringTable(int index) { return stringTable_.get(index); } /** *
   * A common table for strings referenced by various messages.
   * string_table[0] must always be "".
   * 
* * repeated string string_table = 10; * @param index The index of the value to return. * @return The bytes of the stringTable at the given index. */ public com.google.protobuf.ByteString getStringTableBytes(int index) { return stringTable_.getByteString(index); } public static final int TIME_NANOS_FIELD_NUMBER = 11; private long timeNanos_ = 0L; /** *
   * Time of collection (UTC) represented as nanoseconds past the epoch.
   * 
* * int64 time_nanos = 11; * @return The timeNanos. */ @java.lang.Override public long getTimeNanos() { return timeNanos_; } public static final int DURATION_NANOS_FIELD_NUMBER = 12; private long durationNanos_ = 0L; /** *
   * Duration of the profile, if a duration makes sense.
   * 
* * int64 duration_nanos = 12; * @return The durationNanos. */ @java.lang.Override public long getDurationNanos() { return durationNanos_; } public static final int PERIOD_TYPE_FIELD_NUMBER = 13; private io.opentelemetry.proto.profiles.v1development.ValueType periodType_; /** *
   * The kind of events between sampled occurrences.
   * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
   * 
* * .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; * @return Whether the periodType field is set. */ @java.lang.Override public boolean hasPeriodType() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The kind of events between sampled occurrences.
   * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
   * 
* * .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; * @return The periodType. */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.ValueType getPeriodType() { return periodType_ == null ? io.opentelemetry.proto.profiles.v1development.ValueType.getDefaultInstance() : periodType_; } /** *
   * The kind of events between sampled occurrences.
   * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
   * 
* * .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; */ @java.lang.Override public io.opentelemetry.proto.profiles.v1development.ValueTypeOrBuilder getPeriodTypeOrBuilder() { return periodType_ == null ? io.opentelemetry.proto.profiles.v1development.ValueType.getDefaultInstance() : periodType_; } public static final int PERIOD_FIELD_NUMBER = 14; private long period_ = 0L; /** *
   * The number of events between sampled occurrences.
   * 
* * int64 period = 14; * @return The period. */ @java.lang.Override public long getPeriod() { return period_; } public static final int COMMENT_STRINDICES_FIELD_NUMBER = 15; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList commentStrindices_ = emptyIntList(); /** *
   * 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 = 15; * @return A list containing the commentStrindices. */ @java.lang.Override public java.util.List getCommentStrindicesList() { return commentStrindices_; } /** *
   * 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 = 15; * @return The count of commentStrindices. */ public int getCommentStrindicesCount() { return commentStrindices_.size(); } /** *
   * 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 = 15; * @param index The index of the element to return. * @return The commentStrindices at the given index. */ public int getCommentStrindices(int index) { return commentStrindices_.getInt(index); } private int commentStrindicesMemoizedSerializedSize = -1; public static final int DEFAULT_SAMPLE_TYPE_STRINDEX_FIELD_NUMBER = 16; private int defaultSampleTypeStrindex_ = 0; /** *
   * Index into the string table of the type of the preferred sample
   * value. If unset, clients should default to the last sample value.
   * 
* * int32 default_sample_type_strindex = 16; * @return The defaultSampleTypeStrindex. */ @java.lang.Override public int getDefaultSampleTypeStrindex() { return defaultSampleTypeStrindex_; } public static final int PROFILE_ID_FIELD_NUMBER = 17; private com.google.protobuf.ByteString profileId_ = com.google.protobuf.ByteString.EMPTY; /** *
   * A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
   * all zeroes is considered invalid.
   *
   * This field is required.
   * 
* * bytes profile_id = 17; * @return The profileId. */ @java.lang.Override public com.google.protobuf.ByteString getProfileId() { return profileId_; } public static final int DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER = 19; private int droppedAttributesCount_ = 0; /** *
   * 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 = 19; * @return The droppedAttributesCount. */ @java.lang.Override public int getDroppedAttributesCount() { return droppedAttributesCount_; } public static final int ORIGINAL_PAYLOAD_FORMAT_FIELD_NUMBER = 20; @SuppressWarnings("serial") private volatile java.lang.Object originalPayloadFormat_ = ""; /** *
   * Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
   * 
* * string original_payload_format = 20; * @return The originalPayloadFormat. */ @java.lang.Override public java.lang.String getOriginalPayloadFormat() { java.lang.Object ref = originalPayloadFormat_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalPayloadFormat_ = s; return s; } } /** *
   * Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
   * 
* * string original_payload_format = 20; * @return The bytes for originalPayloadFormat. */ @java.lang.Override public com.google.protobuf.ByteString getOriginalPayloadFormatBytes() { java.lang.Object ref = originalPayloadFormat_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalPayloadFormat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORIGINAL_PAYLOAD_FIELD_NUMBER = 21; private com.google.protobuf.ByteString originalPayload_ = com.google.protobuf.ByteString.EMPTY; /** *
   * 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 = 21; * @return The originalPayload. */ @java.lang.Override public com.google.protobuf.ByteString getOriginalPayload() { return originalPayload_; } public static final int ATTRIBUTE_INDICES_FIELD_NUMBER = 22; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList attributeIndices_ = emptyIntList(); /** *
   * References to attributes in attribute_table. [optional]
   * It is a collection of key/value pairs. Note, global attributes
   * like server name can be set using the resource API. Examples of attributes:
   *
   *     "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
   *     "/http/server_latency": 300
   *     "abc.com/myattribute": true
   *     "abc.com/score": 10.239
   *
   * The OpenTelemetry API specification further restricts the allowed value types:
   * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
   * Attribute keys MUST be unique (it is not allowed to have more than one
   * attribute with the same key).
   * 
* * repeated int32 attribute_indices = 22; * @return A list containing the attributeIndices. */ @java.lang.Override public java.util.List getAttributeIndicesList() { return attributeIndices_; } /** *
   * References to attributes in attribute_table. [optional]
   * It is a collection of key/value pairs. Note, global attributes
   * like server name can be set using the resource API. Examples of attributes:
   *
   *     "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
   *     "/http/server_latency": 300
   *     "abc.com/myattribute": true
   *     "abc.com/score": 10.239
   *
   * The OpenTelemetry API specification further restricts the allowed value types:
   * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
   * Attribute keys MUST be unique (it is not allowed to have more than one
   * attribute with the same key).
   * 
* * repeated int32 attribute_indices = 22; * @return The count of attributeIndices. */ public int getAttributeIndicesCount() { return attributeIndices_.size(); } /** *
   * References to attributes in attribute_table. [optional]
   * It is a collection of key/value pairs. Note, global attributes
   * like server name can be set using the resource API. Examples of attributes:
   *
   *     "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
   *     "/http/server_latency": 300
   *     "abc.com/myattribute": true
   *     "abc.com/score": 10.239
   *
   * The OpenTelemetry API specification further restricts the allowed value types:
   * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
   * Attribute keys MUST be unique (it is not allowed to have more than one
   * attribute with the same key).
   * 
* * repeated int32 attribute_indices = 22; * @param index The index of the element to return. * @return The attributeIndices at the given index. */ public int getAttributeIndices(int index) { return attributeIndices_.getInt(index); } private int attributeIndicesMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < sampleType_.size(); i++) { output.writeMessage(1, sampleType_.get(i)); } for (int i = 0; i < sample_.size(); i++) { output.writeMessage(2, sample_.get(i)); } for (int i = 0; i < mappingTable_.size(); i++) { output.writeMessage(3, mappingTable_.get(i)); } for (int i = 0; i < locationTable_.size(); i++) { output.writeMessage(4, locationTable_.get(i)); } if (getLocationIndicesList().size() > 0) { output.writeUInt32NoTag(42); output.writeUInt32NoTag(locationIndicesMemoizedSerializedSize); } for (int i = 0; i < locationIndices_.size(); i++) { output.writeInt32NoTag(locationIndices_.getInt(i)); } for (int i = 0; i < functionTable_.size(); i++) { output.writeMessage(6, functionTable_.get(i)); } for (int i = 0; i < attributeTable_.size(); i++) { output.writeMessage(7, attributeTable_.get(i)); } for (int i = 0; i < attributeUnits_.size(); i++) { output.writeMessage(8, attributeUnits_.get(i)); } for (int i = 0; i < linkTable_.size(); i++) { output.writeMessage(9, linkTable_.get(i)); } for (int i = 0; i < stringTable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, stringTable_.getRaw(i)); } if (timeNanos_ != 0L) { output.writeInt64(11, timeNanos_); } if (durationNanos_ != 0L) { output.writeInt64(12, durationNanos_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(13, getPeriodType()); } if (period_ != 0L) { output.writeInt64(14, period_); } if (getCommentStrindicesList().size() > 0) { output.writeUInt32NoTag(122); output.writeUInt32NoTag(commentStrindicesMemoizedSerializedSize); } for (int i = 0; i < commentStrindices_.size(); i++) { output.writeInt32NoTag(commentStrindices_.getInt(i)); } if (defaultSampleTypeStrindex_ != 0) { output.writeInt32(16, defaultSampleTypeStrindex_); } if (!profileId_.isEmpty()) { output.writeBytes(17, profileId_); } if (droppedAttributesCount_ != 0) { output.writeUInt32(19, droppedAttributesCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalPayloadFormat_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, originalPayloadFormat_); } if (!originalPayload_.isEmpty()) { output.writeBytes(21, originalPayload_); } if (getAttributeIndicesList().size() > 0) { output.writeUInt32NoTag(178); output.writeUInt32NoTag(attributeIndicesMemoizedSerializedSize); } for (int i = 0; i < attributeIndices_.size(); i++) { output.writeInt32NoTag(attributeIndices_.getInt(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < sampleType_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, sampleType_.get(i)); } for (int i = 0; i < sample_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, sample_.get(i)); } for (int i = 0; i < mappingTable_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, mappingTable_.get(i)); } for (int i = 0; i < locationTable_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, locationTable_.get(i)); } { int dataSize = 0; for (int i = 0; i < locationIndices_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(locationIndices_.getInt(i)); } size += dataSize; if (!getLocationIndicesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } locationIndicesMemoizedSerializedSize = dataSize; } for (int i = 0; i < functionTable_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, functionTable_.get(i)); } for (int i = 0; i < attributeTable_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, attributeTable_.get(i)); } for (int i = 0; i < attributeUnits_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, attributeUnits_.get(i)); } for (int i = 0; i < linkTable_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, linkTable_.get(i)); } { int dataSize = 0; for (int i = 0; i < stringTable_.size(); i++) { dataSize += computeStringSizeNoTag(stringTable_.getRaw(i)); } size += dataSize; size += 1 * getStringTableList().size(); } if (timeNanos_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, timeNanos_); } if (durationNanos_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, durationNanos_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getPeriodType()); } if (period_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, period_); } { int dataSize = 0; for (int i = 0; i < commentStrindices_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(commentStrindices_.getInt(i)); } size += dataSize; if (!getCommentStrindicesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } commentStrindicesMemoizedSerializedSize = dataSize; } if (defaultSampleTypeStrindex_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(16, defaultSampleTypeStrindex_); } if (!profileId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(17, profileId_); } if (droppedAttributesCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(19, droppedAttributesCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalPayloadFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, originalPayloadFormat_); } if (!originalPayload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(21, originalPayload_); } { int dataSize = 0; for (int i = 0; i < attributeIndices_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(attributeIndices_.getInt(i)); } size += dataSize; if (!getAttributeIndicesList().isEmpty()) { size += 2; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } attributeIndicesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.opentelemetry.proto.profiles.v1development.Profile)) { return super.equals(obj); } io.opentelemetry.proto.profiles.v1development.Profile other = (io.opentelemetry.proto.profiles.v1development.Profile) obj; if (!getSampleTypeList() .equals(other.getSampleTypeList())) return false; if (!getSampleList() .equals(other.getSampleList())) return false; if (!getMappingTableList() .equals(other.getMappingTableList())) return false; if (!getLocationTableList() .equals(other.getLocationTableList())) return false; if (!getLocationIndicesList() .equals(other.getLocationIndicesList())) return false; if (!getFunctionTableList() .equals(other.getFunctionTableList())) return false; if (!getAttributeTableList() .equals(other.getAttributeTableList())) return false; if (!getAttributeUnitsList() .equals(other.getAttributeUnitsList())) return false; if (!getLinkTableList() .equals(other.getLinkTableList())) return false; if (!getStringTableList() .equals(other.getStringTableList())) return false; if (getTimeNanos() != other.getTimeNanos()) return false; if (getDurationNanos() != other.getDurationNanos()) return false; if (hasPeriodType() != other.hasPeriodType()) return false; if (hasPeriodType()) { if (!getPeriodType() .equals(other.getPeriodType())) return false; } if (getPeriod() != other.getPeriod()) return false; if (!getCommentStrindicesList() .equals(other.getCommentStrindicesList())) return false; if (getDefaultSampleTypeStrindex() != other.getDefaultSampleTypeStrindex()) return false; if (!getProfileId() .equals(other.getProfileId())) return false; if (getDroppedAttributesCount() != other.getDroppedAttributesCount()) return false; if (!getOriginalPayloadFormat() .equals(other.getOriginalPayloadFormat())) return false; if (!getOriginalPayload() .equals(other.getOriginalPayload())) return false; if (!getAttributeIndicesList() .equals(other.getAttributeIndicesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSampleTypeCount() > 0) { hash = (37 * hash) + SAMPLE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getSampleTypeList().hashCode(); } if (getSampleCount() > 0) { hash = (37 * hash) + SAMPLE_FIELD_NUMBER; hash = (53 * hash) + getSampleList().hashCode(); } if (getMappingTableCount() > 0) { hash = (37 * hash) + MAPPING_TABLE_FIELD_NUMBER; hash = (53 * hash) + getMappingTableList().hashCode(); } if (getLocationTableCount() > 0) { hash = (37 * hash) + LOCATION_TABLE_FIELD_NUMBER; hash = (53 * hash) + getLocationTableList().hashCode(); } if (getLocationIndicesCount() > 0) { hash = (37 * hash) + LOCATION_INDICES_FIELD_NUMBER; hash = (53 * hash) + getLocationIndicesList().hashCode(); } if (getFunctionTableCount() > 0) { hash = (37 * hash) + FUNCTION_TABLE_FIELD_NUMBER; hash = (53 * hash) + getFunctionTableList().hashCode(); } if (getAttributeTableCount() > 0) { hash = (37 * hash) + ATTRIBUTE_TABLE_FIELD_NUMBER; hash = (53 * hash) + getAttributeTableList().hashCode(); } if (getAttributeUnitsCount() > 0) { hash = (37 * hash) + ATTRIBUTE_UNITS_FIELD_NUMBER; hash = (53 * hash) + getAttributeUnitsList().hashCode(); } if (getLinkTableCount() > 0) { hash = (37 * hash) + LINK_TABLE_FIELD_NUMBER; hash = (53 * hash) + getLinkTableList().hashCode(); } if (getStringTableCount() > 0) { hash = (37 * hash) + STRING_TABLE_FIELD_NUMBER; hash = (53 * hash) + getStringTableList().hashCode(); } hash = (37 * hash) + TIME_NANOS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeNanos()); hash = (37 * hash) + DURATION_NANOS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDurationNanos()); if (hasPeriodType()) { hash = (37 * hash) + PERIOD_TYPE_FIELD_NUMBER; hash = (53 * hash) + getPeriodType().hashCode(); } hash = (37 * hash) + PERIOD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPeriod()); if (getCommentStrindicesCount() > 0) { hash = (37 * hash) + COMMENT_STRINDICES_FIELD_NUMBER; hash = (53 * hash) + getCommentStrindicesList().hashCode(); } hash = (37 * hash) + DEFAULT_SAMPLE_TYPE_STRINDEX_FIELD_NUMBER; hash = (53 * hash) + getDefaultSampleTypeStrindex(); hash = (37 * hash) + PROFILE_ID_FIELD_NUMBER; hash = (53 * hash) + getProfileId().hashCode(); hash = (37 * hash) + DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER; hash = (53 * hash) + getDroppedAttributesCount(); hash = (37 * hash) + ORIGINAL_PAYLOAD_FORMAT_FIELD_NUMBER; hash = (53 * hash) + getOriginalPayloadFormat().hashCode(); hash = (37 * hash) + ORIGINAL_PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getOriginalPayload().hashCode(); if (getAttributeIndicesCount() > 0) { hash = (37 * hash) + ATTRIBUTE_INDICES_FIELD_NUMBER; hash = (53 * hash) + getAttributeIndicesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.opentelemetry.proto.profiles.v1development.Profile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.profiles.v1development.Profile parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.profiles.v1development.Profile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.profiles.v1development.Profile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.profiles.v1development.Profile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.profiles.v1development.Profile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.profiles.v1development.Profile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.profiles.v1development.Profile parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.opentelemetry.proto.profiles.v1development.Profile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opentelemetry.proto.profiles.v1development.Profile parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.opentelemetry.proto.profiles.v1development.Profile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.profiles.v1development.Profile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.opentelemetry.proto.profiles.v1development.Profile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Represents a complete profile, including sample types, samples,
   * mappings to binaries, 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 {@code opentelemetry.proto.profiles.v1development.Profile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.profiles.v1development.Profile) io.opentelemetry.proto.profiles.v1development.ProfileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opentelemetry.proto.profiles.v1development.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1development_Profile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.profiles.v1development.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1development_Profile_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.profiles.v1development.Profile.class, io.opentelemetry.proto.profiles.v1development.Profile.Builder.class); } // Construct using io.opentelemetry.proto.profiles.v1development.Profile.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSampleTypeFieldBuilder(); getSampleFieldBuilder(); getMappingTableFieldBuilder(); getLocationTableFieldBuilder(); getFunctionTableFieldBuilder(); getAttributeTableFieldBuilder(); getAttributeUnitsFieldBuilder(); getLinkTableFieldBuilder(); getPeriodTypeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (sampleTypeBuilder_ == null) { sampleType_ = java.util.Collections.emptyList(); } else { sampleType_ = null; sampleTypeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (sampleBuilder_ == null) { sample_ = java.util.Collections.emptyList(); } else { sample_ = null; sampleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (mappingTableBuilder_ == null) { mappingTable_ = java.util.Collections.emptyList(); } else { mappingTable_ = null; mappingTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (locationTableBuilder_ == null) { locationTable_ = java.util.Collections.emptyList(); } else { locationTable_ = null; locationTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); locationIndices_ = emptyIntList(); if (functionTableBuilder_ == null) { functionTable_ = java.util.Collections.emptyList(); } else { functionTable_ = null; functionTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (attributeTableBuilder_ == null) { attributeTable_ = java.util.Collections.emptyList(); } else { attributeTable_ = null; attributeTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (attributeUnitsBuilder_ == null) { attributeUnits_ = java.util.Collections.emptyList(); } else { attributeUnits_ = null; attributeUnitsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (linkTableBuilder_ == null) { linkTable_ = java.util.Collections.emptyList(); } else { linkTable_ = null; linkTableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); stringTable_ = com.google.protobuf.LazyStringArrayList.emptyList(); timeNanos_ = 0L; durationNanos_ = 0L; periodType_ = null; if (periodTypeBuilder_ != null) { periodTypeBuilder_.dispose(); periodTypeBuilder_ = null; } period_ = 0L; commentStrindices_ = emptyIntList(); defaultSampleTypeStrindex_ = 0; profileId_ = com.google.protobuf.ByteString.EMPTY; droppedAttributesCount_ = 0; originalPayloadFormat_ = ""; originalPayload_ = com.google.protobuf.ByteString.EMPTY; attributeIndices_ = emptyIntList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opentelemetry.proto.profiles.v1development.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1development_Profile_descriptor; } @java.lang.Override public io.opentelemetry.proto.profiles.v1development.Profile getDefaultInstanceForType() { return io.opentelemetry.proto.profiles.v1development.Profile.getDefaultInstance(); } @java.lang.Override public io.opentelemetry.proto.profiles.v1development.Profile build() { io.opentelemetry.proto.profiles.v1development.Profile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opentelemetry.proto.profiles.v1development.Profile buildPartial() { io.opentelemetry.proto.profiles.v1development.Profile result = new io.opentelemetry.proto.profiles.v1development.Profile(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.opentelemetry.proto.profiles.v1development.Profile result) { if (sampleTypeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { sampleType_ = java.util.Collections.unmodifiableList(sampleType_); bitField0_ = (bitField0_ & ~0x00000001); } result.sampleType_ = sampleType_; } else { result.sampleType_ = sampleTypeBuilder_.build(); } if (sampleBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { sample_ = java.util.Collections.unmodifiableList(sample_); bitField0_ = (bitField0_ & ~0x00000002); } result.sample_ = sample_; } else { result.sample_ = sampleBuilder_.build(); } if (mappingTableBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { mappingTable_ = java.util.Collections.unmodifiableList(mappingTable_); bitField0_ = (bitField0_ & ~0x00000004); } result.mappingTable_ = mappingTable_; } else { result.mappingTable_ = mappingTableBuilder_.build(); } if (locationTableBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { locationTable_ = java.util.Collections.unmodifiableList(locationTable_); bitField0_ = (bitField0_ & ~0x00000008); } result.locationTable_ = locationTable_; } else { result.locationTable_ = locationTableBuilder_.build(); } if (functionTableBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { functionTable_ = java.util.Collections.unmodifiableList(functionTable_); bitField0_ = (bitField0_ & ~0x00000020); } result.functionTable_ = functionTable_; } else { result.functionTable_ = functionTableBuilder_.build(); } if (attributeTableBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { attributeTable_ = java.util.Collections.unmodifiableList(attributeTable_); bitField0_ = (bitField0_ & ~0x00000040); } result.attributeTable_ = attributeTable_; } else { result.attributeTable_ = attributeTableBuilder_.build(); } if (attributeUnitsBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { attributeUnits_ = java.util.Collections.unmodifiableList(attributeUnits_); bitField0_ = (bitField0_ & ~0x00000080); } result.attributeUnits_ = attributeUnits_; } else { result.attributeUnits_ = attributeUnitsBuilder_.build(); } if (linkTableBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { linkTable_ = java.util.Collections.unmodifiableList(linkTable_); bitField0_ = (bitField0_ & ~0x00000100); } result.linkTable_ = linkTable_; } else { result.linkTable_ = linkTableBuilder_.build(); } } private void buildPartial0(io.opentelemetry.proto.profiles.v1development.Profile result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000010) != 0)) { locationIndices_.makeImmutable(); result.locationIndices_ = locationIndices_; } if (((from_bitField0_ & 0x00000200) != 0)) { stringTable_.makeImmutable(); result.stringTable_ = stringTable_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.timeNanos_ = timeNanos_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.durationNanos_ = durationNanos_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00001000) != 0)) { result.periodType_ = periodTypeBuilder_ == null ? periodType_ : periodTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00002000) != 0)) { result.period_ = period_; } if (((from_bitField0_ & 0x00004000) != 0)) { commentStrindices_.makeImmutable(); result.commentStrindices_ = commentStrindices_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.defaultSampleTypeStrindex_ = defaultSampleTypeStrindex_; } if (((from_bitField0_ & 0x00010000) != 0)) { result.profileId_ = profileId_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.droppedAttributesCount_ = droppedAttributesCount_; } if (((from_bitField0_ & 0x00040000) != 0)) { result.originalPayloadFormat_ = originalPayloadFormat_; } if (((from_bitField0_ & 0x00080000) != 0)) { result.originalPayload_ = originalPayload_; } if (((from_bitField0_ & 0x00100000) != 0)) { attributeIndices_.makeImmutable(); result.attributeIndices_ = attributeIndices_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.opentelemetry.proto.profiles.v1development.Profile) { return mergeFrom((io.opentelemetry.proto.profiles.v1development.Profile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opentelemetry.proto.profiles.v1development.Profile other) { if (other == io.opentelemetry.proto.profiles.v1development.Profile.getDefaultInstance()) return this; if (sampleTypeBuilder_ == null) { if (!other.sampleType_.isEmpty()) { if (sampleType_.isEmpty()) { sampleType_ = other.sampleType_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSampleTypeIsMutable(); sampleType_.addAll(other.sampleType_); } onChanged(); } } else { if (!other.sampleType_.isEmpty()) { if (sampleTypeBuilder_.isEmpty()) { sampleTypeBuilder_.dispose(); sampleTypeBuilder_ = null; sampleType_ = other.sampleType_; bitField0_ = (bitField0_ & ~0x00000001); sampleTypeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSampleTypeFieldBuilder() : null; } else { sampleTypeBuilder_.addAllMessages(other.sampleType_); } } } if (sampleBuilder_ == null) { if (!other.sample_.isEmpty()) { if (sample_.isEmpty()) { sample_ = other.sample_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSampleIsMutable(); sample_.addAll(other.sample_); } onChanged(); } } else { if (!other.sample_.isEmpty()) { if (sampleBuilder_.isEmpty()) { sampleBuilder_.dispose(); sampleBuilder_ = null; sample_ = other.sample_; bitField0_ = (bitField0_ & ~0x00000002); sampleBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSampleFieldBuilder() : null; } else { sampleBuilder_.addAllMessages(other.sample_); } } } if (mappingTableBuilder_ == null) { if (!other.mappingTable_.isEmpty()) { if (mappingTable_.isEmpty()) { mappingTable_ = other.mappingTable_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMappingTableIsMutable(); mappingTable_.addAll(other.mappingTable_); } onChanged(); } } else { if (!other.mappingTable_.isEmpty()) { if (mappingTableBuilder_.isEmpty()) { mappingTableBuilder_.dispose(); mappingTableBuilder_ = null; mappingTable_ = other.mappingTable_; bitField0_ = (bitField0_ & ~0x00000004); mappingTableBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMappingTableFieldBuilder() : null; } else { mappingTableBuilder_.addAllMessages(other.mappingTable_); } } } if (locationTableBuilder_ == null) { if (!other.locationTable_.isEmpty()) { if (locationTable_.isEmpty()) { locationTable_ = other.locationTable_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureLocationTableIsMutable(); locationTable_.addAll(other.locationTable_); } onChanged(); } } else { if (!other.locationTable_.isEmpty()) { if (locationTableBuilder_.isEmpty()) { locationTableBuilder_.dispose(); locationTableBuilder_ = null; locationTable_ = other.locationTable_; bitField0_ = (bitField0_ & ~0x00000008); locationTableBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocationTableFieldBuilder() : null; } else { locationTableBuilder_.addAllMessages(other.locationTable_); } } } if (!other.locationIndices_.isEmpty()) { if (locationIndices_.isEmpty()) { locationIndices_ = other.locationIndices_; locationIndices_.makeImmutable(); bitField0_ |= 0x00000010; } else { ensureLocationIndicesIsMutable(); locationIndices_.addAll(other.locationIndices_); } onChanged(); } if (functionTableBuilder_ == null) { if (!other.functionTable_.isEmpty()) { if (functionTable_.isEmpty()) { functionTable_ = other.functionTable_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureFunctionTableIsMutable(); functionTable_.addAll(other.functionTable_); } onChanged(); } } else { if (!other.functionTable_.isEmpty()) { if (functionTableBuilder_.isEmpty()) { functionTableBuilder_.dispose(); functionTableBuilder_ = null; functionTable_ = other.functionTable_; bitField0_ = (bitField0_ & ~0x00000020); functionTableBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFunctionTableFieldBuilder() : null; } else { functionTableBuilder_.addAllMessages(other.functionTable_); } } } if (attributeTableBuilder_ == null) { if (!other.attributeTable_.isEmpty()) { if (attributeTable_.isEmpty()) { attributeTable_ = other.attributeTable_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureAttributeTableIsMutable(); attributeTable_.addAll(other.attributeTable_); } onChanged(); } } else { if (!other.attributeTable_.isEmpty()) { if (attributeTableBuilder_.isEmpty()) { attributeTableBuilder_.dispose(); attributeTableBuilder_ = null; attributeTable_ = other.attributeTable_; bitField0_ = (bitField0_ & ~0x00000040); attributeTableBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributeTableFieldBuilder() : null; } else { attributeTableBuilder_.addAllMessages(other.attributeTable_); } } } if (attributeUnitsBuilder_ == null) { if (!other.attributeUnits_.isEmpty()) { if (attributeUnits_.isEmpty()) { attributeUnits_ = other.attributeUnits_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureAttributeUnitsIsMutable(); attributeUnits_.addAll(other.attributeUnits_); } onChanged(); } } else { if (!other.attributeUnits_.isEmpty()) { if (attributeUnitsBuilder_.isEmpty()) { attributeUnitsBuilder_.dispose(); attributeUnitsBuilder_ = null; attributeUnits_ = other.attributeUnits_; bitField0_ = (bitField0_ & ~0x00000080); attributeUnitsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributeUnitsFieldBuilder() : null; } else { attributeUnitsBuilder_.addAllMessages(other.attributeUnits_); } } } if (linkTableBuilder_ == null) { if (!other.linkTable_.isEmpty()) { if (linkTable_.isEmpty()) { linkTable_ = other.linkTable_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureLinkTableIsMutable(); linkTable_.addAll(other.linkTable_); } onChanged(); } } else { if (!other.linkTable_.isEmpty()) { if (linkTableBuilder_.isEmpty()) { linkTableBuilder_.dispose(); linkTableBuilder_ = null; linkTable_ = other.linkTable_; bitField0_ = (bitField0_ & ~0x00000100); linkTableBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLinkTableFieldBuilder() : null; } else { linkTableBuilder_.addAllMessages(other.linkTable_); } } } if (!other.stringTable_.isEmpty()) { if (stringTable_.isEmpty()) { stringTable_ = other.stringTable_; bitField0_ |= 0x00000200; } else { ensureStringTableIsMutable(); stringTable_.addAll(other.stringTable_); } onChanged(); } if (other.getTimeNanos() != 0L) { setTimeNanos(other.getTimeNanos()); } if (other.getDurationNanos() != 0L) { setDurationNanos(other.getDurationNanos()); } if (other.hasPeriodType()) { mergePeriodType(other.getPeriodType()); } if (other.getPeriod() != 0L) { setPeriod(other.getPeriod()); } if (!other.commentStrindices_.isEmpty()) { if (commentStrindices_.isEmpty()) { commentStrindices_ = other.commentStrindices_; commentStrindices_.makeImmutable(); bitField0_ |= 0x00004000; } else { ensureCommentStrindicesIsMutable(); commentStrindices_.addAll(other.commentStrindices_); } onChanged(); } if (other.getDefaultSampleTypeStrindex() != 0) { setDefaultSampleTypeStrindex(other.getDefaultSampleTypeStrindex()); } if (other.getProfileId() != com.google.protobuf.ByteString.EMPTY) { setProfileId(other.getProfileId()); } if (other.getDroppedAttributesCount() != 0) { setDroppedAttributesCount(other.getDroppedAttributesCount()); } if (!other.getOriginalPayloadFormat().isEmpty()) { originalPayloadFormat_ = other.originalPayloadFormat_; bitField0_ |= 0x00040000; onChanged(); } if (other.getOriginalPayload() != com.google.protobuf.ByteString.EMPTY) { setOriginalPayload(other.getOriginalPayload()); } if (!other.attributeIndices_.isEmpty()) { if (attributeIndices_.isEmpty()) { attributeIndices_ = other.attributeIndices_; attributeIndices_.makeImmutable(); bitField0_ |= 0x00100000; } else { ensureAttributeIndicesIsMutable(); attributeIndices_.addAll(other.attributeIndices_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.opentelemetry.proto.profiles.v1development.ValueType m = input.readMessage( io.opentelemetry.proto.profiles.v1development.ValueType.parser(), extensionRegistry); if (sampleTypeBuilder_ == null) { ensureSampleTypeIsMutable(); sampleType_.add(m); } else { sampleTypeBuilder_.addMessage(m); } break; } // case 10 case 18: { io.opentelemetry.proto.profiles.v1development.Sample m = input.readMessage( io.opentelemetry.proto.profiles.v1development.Sample.parser(), extensionRegistry); if (sampleBuilder_ == null) { ensureSampleIsMutable(); sample_.add(m); } else { sampleBuilder_.addMessage(m); } break; } // case 18 case 26: { io.opentelemetry.proto.profiles.v1development.Mapping m = input.readMessage( io.opentelemetry.proto.profiles.v1development.Mapping.parser(), extensionRegistry); if (mappingTableBuilder_ == null) { ensureMappingTableIsMutable(); mappingTable_.add(m); } else { mappingTableBuilder_.addMessage(m); } break; } // case 26 case 34: { io.opentelemetry.proto.profiles.v1development.Location m = input.readMessage( io.opentelemetry.proto.profiles.v1development.Location.parser(), extensionRegistry); if (locationTableBuilder_ == null) { ensureLocationTableIsMutable(); locationTable_.add(m); } else { locationTableBuilder_.addMessage(m); } break; } // case 34 case 40: { int v = input.readInt32(); ensureLocationIndicesIsMutable(); locationIndices_.addInt(v); break; } // case 40 case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureLocationIndicesIsMutable(); while (input.getBytesUntilLimit() > 0) { locationIndices_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 42 case 50: { io.opentelemetry.proto.profiles.v1development.Function m = input.readMessage( io.opentelemetry.proto.profiles.v1development.Function.parser(), extensionRegistry); if (functionTableBuilder_ == null) { ensureFunctionTableIsMutable(); functionTable_.add(m); } else { functionTableBuilder_.addMessage(m); } break; } // case 50 case 58: { io.opentelemetry.proto.common.v1.KeyValue m = input.readMessage( io.opentelemetry.proto.common.v1.KeyValue.parser(), extensionRegistry); if (attributeTableBuilder_ == null) { ensureAttributeTableIsMutable(); attributeTable_.add(m); } else { attributeTableBuilder_.addMessage(m); } break; } // case 58 case 66: { io.opentelemetry.proto.profiles.v1development.AttributeUnit m = input.readMessage( io.opentelemetry.proto.profiles.v1development.AttributeUnit.parser(), extensionRegistry); if (attributeUnitsBuilder_ == null) { ensureAttributeUnitsIsMutable(); attributeUnits_.add(m); } else { attributeUnitsBuilder_.addMessage(m); } break; } // case 66 case 74: { io.opentelemetry.proto.profiles.v1development.Link m = input.readMessage( io.opentelemetry.proto.profiles.v1development.Link.parser(), extensionRegistry); if (linkTableBuilder_ == null) { ensureLinkTableIsMutable(); linkTable_.add(m); } else { linkTableBuilder_.addMessage(m); } break; } // case 74 case 82: { java.lang.String s = input.readStringRequireUtf8(); ensureStringTableIsMutable(); stringTable_.add(s); break; } // case 82 case 88: { timeNanos_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 88 case 96: { durationNanos_ = input.readInt64(); bitField0_ |= 0x00000800; break; } // case 96 case 106: { input.readMessage( getPeriodTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 106 case 112: { period_ = input.readInt64(); bitField0_ |= 0x00002000; break; } // case 112 case 120: { int v = input.readInt32(); ensureCommentStrindicesIsMutable(); commentStrindices_.addInt(v); break; } // case 120 case 122: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureCommentStrindicesIsMutable(); while (input.getBytesUntilLimit() > 0) { commentStrindices_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 122 case 128: { defaultSampleTypeStrindex_ = input.readInt32(); bitField0_ |= 0x00008000; break; } // case 128 case 138: { profileId_ = input.readBytes(); bitField0_ |= 0x00010000; break; } // case 138 case 152: { droppedAttributesCount_ = input.readUInt32(); bitField0_ |= 0x00020000; break; } // case 152 case 162: { originalPayloadFormat_ = input.readStringRequireUtf8(); bitField0_ |= 0x00040000; break; } // case 162 case 170: { originalPayload_ = input.readBytes(); bitField0_ |= 0x00080000; break; } // case 170 case 176: { int v = input.readInt32(); ensureAttributeIndicesIsMutable(); attributeIndices_.addInt(v); break; } // case 176 case 178: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureAttributeIndicesIsMutable(); while (input.getBytesUntilLimit() > 0) { attributeIndices_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List sampleType_ = java.util.Collections.emptyList(); private void ensureSampleTypeIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sampleType_ = new java.util.ArrayList(sampleType_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.ValueType, io.opentelemetry.proto.profiles.v1development.ValueType.Builder, io.opentelemetry.proto.profiles.v1development.ValueTypeOrBuilder> sampleTypeBuilder_; /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public java.util.List getSampleTypeList() { if (sampleTypeBuilder_ == null) { return java.util.Collections.unmodifiableList(sampleType_); } else { return sampleTypeBuilder_.getMessageList(); } } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public int getSampleTypeCount() { if (sampleTypeBuilder_ == null) { return sampleType_.size(); } else { return sampleTypeBuilder_.getCount(); } } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public io.opentelemetry.proto.profiles.v1development.ValueType getSampleType(int index) { if (sampleTypeBuilder_ == null) { return sampleType_.get(index); } else { return sampleTypeBuilder_.getMessage(index); } } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public Builder setSampleType( int index, io.opentelemetry.proto.profiles.v1development.ValueType value) { if (sampleTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSampleTypeIsMutable(); sampleType_.set(index, value); onChanged(); } else { sampleTypeBuilder_.setMessage(index, value); } return this; } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public Builder setSampleType( int index, io.opentelemetry.proto.profiles.v1development.ValueType.Builder builderForValue) { if (sampleTypeBuilder_ == null) { ensureSampleTypeIsMutable(); sampleType_.set(index, builderForValue.build()); onChanged(); } else { sampleTypeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public Builder addSampleType(io.opentelemetry.proto.profiles.v1development.ValueType value) { if (sampleTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSampleTypeIsMutable(); sampleType_.add(value); onChanged(); } else { sampleTypeBuilder_.addMessage(value); } return this; } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public Builder addSampleType( int index, io.opentelemetry.proto.profiles.v1development.ValueType value) { if (sampleTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSampleTypeIsMutable(); sampleType_.add(index, value); onChanged(); } else { sampleTypeBuilder_.addMessage(index, value); } return this; } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public Builder addSampleType( io.opentelemetry.proto.profiles.v1development.ValueType.Builder builderForValue) { if (sampleTypeBuilder_ == null) { ensureSampleTypeIsMutable(); sampleType_.add(builderForValue.build()); onChanged(); } else { sampleTypeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public Builder addSampleType( int index, io.opentelemetry.proto.profiles.v1development.ValueType.Builder builderForValue) { if (sampleTypeBuilder_ == null) { ensureSampleTypeIsMutable(); sampleType_.add(index, builderForValue.build()); onChanged(); } else { sampleTypeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public Builder addAllSampleType( java.lang.Iterable values) { if (sampleTypeBuilder_ == null) { ensureSampleTypeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sampleType_); onChanged(); } else { sampleTypeBuilder_.addAllMessages(values); } return this; } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public Builder clearSampleType() { if (sampleTypeBuilder_ == null) { sampleType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { sampleTypeBuilder_.clear(); } return this; } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public Builder removeSampleType(int index) { if (sampleTypeBuilder_ == null) { ensureSampleTypeIsMutable(); sampleType_.remove(index); onChanged(); } else { sampleTypeBuilder_.remove(index); } return this; } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public io.opentelemetry.proto.profiles.v1development.ValueType.Builder getSampleTypeBuilder( int index) { return getSampleTypeFieldBuilder().getBuilder(index); } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public io.opentelemetry.proto.profiles.v1development.ValueTypeOrBuilder getSampleTypeOrBuilder( int index) { if (sampleTypeBuilder_ == null) { return sampleType_.get(index); } else { return sampleTypeBuilder_.getMessageOrBuilder(index); } } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public java.util.List getSampleTypeOrBuilderList() { if (sampleTypeBuilder_ != null) { return sampleTypeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sampleType_); } } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public io.opentelemetry.proto.profiles.v1development.ValueType.Builder addSampleTypeBuilder() { return getSampleTypeFieldBuilder().addBuilder( io.opentelemetry.proto.profiles.v1development.ValueType.getDefaultInstance()); } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public io.opentelemetry.proto.profiles.v1development.ValueType.Builder addSampleTypeBuilder( int index) { return getSampleTypeFieldBuilder().addBuilder( index, io.opentelemetry.proto.profiles.v1development.ValueType.getDefaultInstance()); } /** *
     * A description of the samples associated with each Sample.value.
     * For a cpu profile this might be:
     *   [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]]
     * For a heap profile, this might be:
     *   [["allocations","count"], ["space","bytes"]],
     * If one of the values represents the number of events represented
     * by the sample, by convention it should be at index 0 and use
     * sample_type.unit == "count".
     * 
* * repeated .opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; */ public java.util.List getSampleTypeBuilderList() { return getSampleTypeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.ValueType, io.opentelemetry.proto.profiles.v1development.ValueType.Builder, io.opentelemetry.proto.profiles.v1development.ValueTypeOrBuilder> getSampleTypeFieldBuilder() { if (sampleTypeBuilder_ == null) { sampleTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.ValueType, io.opentelemetry.proto.profiles.v1development.ValueType.Builder, io.opentelemetry.proto.profiles.v1development.ValueTypeOrBuilder>( sampleType_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sampleType_ = null; } return sampleTypeBuilder_; } private java.util.List sample_ = java.util.Collections.emptyList(); private void ensureSampleIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { sample_ = new java.util.ArrayList(sample_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Sample, io.opentelemetry.proto.profiles.v1development.Sample.Builder, io.opentelemetry.proto.profiles.v1development.SampleOrBuilder> sampleBuilder_; /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public java.util.List getSampleList() { if (sampleBuilder_ == null) { return java.util.Collections.unmodifiableList(sample_); } else { return sampleBuilder_.getMessageList(); } } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public int getSampleCount() { if (sampleBuilder_ == null) { return sample_.size(); } else { return sampleBuilder_.getCount(); } } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public io.opentelemetry.proto.profiles.v1development.Sample getSample(int index) { if (sampleBuilder_ == null) { return sample_.get(index); } else { return sampleBuilder_.getMessage(index); } } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public Builder setSample( int index, io.opentelemetry.proto.profiles.v1development.Sample value) { if (sampleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSampleIsMutable(); sample_.set(index, value); onChanged(); } else { sampleBuilder_.setMessage(index, value); } return this; } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public Builder setSample( int index, io.opentelemetry.proto.profiles.v1development.Sample.Builder builderForValue) { if (sampleBuilder_ == null) { ensureSampleIsMutable(); sample_.set(index, builderForValue.build()); onChanged(); } else { sampleBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public Builder addSample(io.opentelemetry.proto.profiles.v1development.Sample value) { if (sampleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSampleIsMutable(); sample_.add(value); onChanged(); } else { sampleBuilder_.addMessage(value); } return this; } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public Builder addSample( int index, io.opentelemetry.proto.profiles.v1development.Sample value) { if (sampleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSampleIsMutable(); sample_.add(index, value); onChanged(); } else { sampleBuilder_.addMessage(index, value); } return this; } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public Builder addSample( io.opentelemetry.proto.profiles.v1development.Sample.Builder builderForValue) { if (sampleBuilder_ == null) { ensureSampleIsMutable(); sample_.add(builderForValue.build()); onChanged(); } else { sampleBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public Builder addSample( int index, io.opentelemetry.proto.profiles.v1development.Sample.Builder builderForValue) { if (sampleBuilder_ == null) { ensureSampleIsMutable(); sample_.add(index, builderForValue.build()); onChanged(); } else { sampleBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public Builder addAllSample( java.lang.Iterable values) { if (sampleBuilder_ == null) { ensureSampleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sample_); onChanged(); } else { sampleBuilder_.addAllMessages(values); } return this; } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public Builder clearSample() { if (sampleBuilder_ == null) { sample_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { sampleBuilder_.clear(); } return this; } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public Builder removeSample(int index) { if (sampleBuilder_ == null) { ensureSampleIsMutable(); sample_.remove(index); onChanged(); } else { sampleBuilder_.remove(index); } return this; } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public io.opentelemetry.proto.profiles.v1development.Sample.Builder getSampleBuilder( int index) { return getSampleFieldBuilder().getBuilder(index); } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public io.opentelemetry.proto.profiles.v1development.SampleOrBuilder getSampleOrBuilder( int index) { if (sampleBuilder_ == null) { return sample_.get(index); } else { return sampleBuilder_.getMessageOrBuilder(index); } } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public java.util.List getSampleOrBuilderList() { if (sampleBuilder_ != null) { return sampleBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sample_); } } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public io.opentelemetry.proto.profiles.v1development.Sample.Builder addSampleBuilder() { return getSampleFieldBuilder().addBuilder( io.opentelemetry.proto.profiles.v1development.Sample.getDefaultInstance()); } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public io.opentelemetry.proto.profiles.v1development.Sample.Builder addSampleBuilder( int index) { return getSampleFieldBuilder().addBuilder( index, io.opentelemetry.proto.profiles.v1development.Sample.getDefaultInstance()); } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Sample sample = 2; */ public java.util.List getSampleBuilderList() { return getSampleFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Sample, io.opentelemetry.proto.profiles.v1development.Sample.Builder, io.opentelemetry.proto.profiles.v1development.SampleOrBuilder> getSampleFieldBuilder() { if (sampleBuilder_ == null) { sampleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Sample, io.opentelemetry.proto.profiles.v1development.Sample.Builder, io.opentelemetry.proto.profiles.v1development.SampleOrBuilder>( sample_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); sample_ = null; } return sampleBuilder_; } private java.util.List mappingTable_ = java.util.Collections.emptyList(); private void ensureMappingTableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { mappingTable_ = new java.util.ArrayList(mappingTable_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Mapping, io.opentelemetry.proto.profiles.v1development.Mapping.Builder, io.opentelemetry.proto.profiles.v1development.MappingOrBuilder> mappingTableBuilder_; /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public java.util.List getMappingTableList() { if (mappingTableBuilder_ == null) { return java.util.Collections.unmodifiableList(mappingTable_); } else { return mappingTableBuilder_.getMessageList(); } } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public int getMappingTableCount() { if (mappingTableBuilder_ == null) { return mappingTable_.size(); } else { return mappingTableBuilder_.getCount(); } } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public io.opentelemetry.proto.profiles.v1development.Mapping getMappingTable(int index) { if (mappingTableBuilder_ == null) { return mappingTable_.get(index); } else { return mappingTableBuilder_.getMessage(index); } } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public Builder setMappingTable( int index, io.opentelemetry.proto.profiles.v1development.Mapping value) { if (mappingTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMappingTableIsMutable(); mappingTable_.set(index, value); onChanged(); } else { mappingTableBuilder_.setMessage(index, value); } return this; } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public Builder setMappingTable( int index, io.opentelemetry.proto.profiles.v1development.Mapping.Builder builderForValue) { if (mappingTableBuilder_ == null) { ensureMappingTableIsMutable(); mappingTable_.set(index, builderForValue.build()); onChanged(); } else { mappingTableBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public Builder addMappingTable(io.opentelemetry.proto.profiles.v1development.Mapping value) { if (mappingTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMappingTableIsMutable(); mappingTable_.add(value); onChanged(); } else { mappingTableBuilder_.addMessage(value); } return this; } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public Builder addMappingTable( int index, io.opentelemetry.proto.profiles.v1development.Mapping value) { if (mappingTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMappingTableIsMutable(); mappingTable_.add(index, value); onChanged(); } else { mappingTableBuilder_.addMessage(index, value); } return this; } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public Builder addMappingTable( io.opentelemetry.proto.profiles.v1development.Mapping.Builder builderForValue) { if (mappingTableBuilder_ == null) { ensureMappingTableIsMutable(); mappingTable_.add(builderForValue.build()); onChanged(); } else { mappingTableBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public Builder addMappingTable( int index, io.opentelemetry.proto.profiles.v1development.Mapping.Builder builderForValue) { if (mappingTableBuilder_ == null) { ensureMappingTableIsMutable(); mappingTable_.add(index, builderForValue.build()); onChanged(); } else { mappingTableBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public Builder addAllMappingTable( java.lang.Iterable values) { if (mappingTableBuilder_ == null) { ensureMappingTableIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, mappingTable_); onChanged(); } else { mappingTableBuilder_.addAllMessages(values); } return this; } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public Builder clearMappingTable() { if (mappingTableBuilder_ == null) { mappingTable_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { mappingTableBuilder_.clear(); } return this; } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public Builder removeMappingTable(int index) { if (mappingTableBuilder_ == null) { ensureMappingTableIsMutable(); mappingTable_.remove(index); onChanged(); } else { mappingTableBuilder_.remove(index); } return this; } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public io.opentelemetry.proto.profiles.v1development.Mapping.Builder getMappingTableBuilder( int index) { return getMappingTableFieldBuilder().getBuilder(index); } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public io.opentelemetry.proto.profiles.v1development.MappingOrBuilder getMappingTableOrBuilder( int index) { if (mappingTableBuilder_ == null) { return mappingTable_.get(index); } else { return mappingTableBuilder_.getMessageOrBuilder(index); } } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public java.util.List getMappingTableOrBuilderList() { if (mappingTableBuilder_ != null) { return mappingTableBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(mappingTable_); } } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public io.opentelemetry.proto.profiles.v1development.Mapping.Builder addMappingTableBuilder() { return getMappingTableFieldBuilder().addBuilder( io.opentelemetry.proto.profiles.v1development.Mapping.getDefaultInstance()); } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public io.opentelemetry.proto.profiles.v1development.Mapping.Builder addMappingTableBuilder( int index) { return getMappingTableFieldBuilder().addBuilder( index, io.opentelemetry.proto.profiles.v1development.Mapping.getDefaultInstance()); } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * If multiple binaries contribute to the Profile and no main
     * binary can be identified, mapping[0] has no special meaning.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Mapping mapping_table = 3; */ public java.util.List getMappingTableBuilderList() { return getMappingTableFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Mapping, io.opentelemetry.proto.profiles.v1development.Mapping.Builder, io.opentelemetry.proto.profiles.v1development.MappingOrBuilder> getMappingTableFieldBuilder() { if (mappingTableBuilder_ == null) { mappingTableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Mapping, io.opentelemetry.proto.profiles.v1development.Mapping.Builder, io.opentelemetry.proto.profiles.v1development.MappingOrBuilder>( mappingTable_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); mappingTable_ = null; } return mappingTableBuilder_; } private java.util.List locationTable_ = java.util.Collections.emptyList(); private void ensureLocationTableIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { locationTable_ = new java.util.ArrayList(locationTable_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Location, io.opentelemetry.proto.profiles.v1development.Location.Builder, io.opentelemetry.proto.profiles.v1development.LocationOrBuilder> locationTableBuilder_; /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public java.util.List getLocationTableList() { if (locationTableBuilder_ == null) { return java.util.Collections.unmodifiableList(locationTable_); } else { return locationTableBuilder_.getMessageList(); } } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public int getLocationTableCount() { if (locationTableBuilder_ == null) { return locationTable_.size(); } else { return locationTableBuilder_.getCount(); } } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public io.opentelemetry.proto.profiles.v1development.Location getLocationTable(int index) { if (locationTableBuilder_ == null) { return locationTable_.get(index); } else { return locationTableBuilder_.getMessage(index); } } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public Builder setLocationTable( int index, io.opentelemetry.proto.profiles.v1development.Location value) { if (locationTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationTableIsMutable(); locationTable_.set(index, value); onChanged(); } else { locationTableBuilder_.setMessage(index, value); } return this; } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public Builder setLocationTable( int index, io.opentelemetry.proto.profiles.v1development.Location.Builder builderForValue) { if (locationTableBuilder_ == null) { ensureLocationTableIsMutable(); locationTable_.set(index, builderForValue.build()); onChanged(); } else { locationTableBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public Builder addLocationTable(io.opentelemetry.proto.profiles.v1development.Location value) { if (locationTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationTableIsMutable(); locationTable_.add(value); onChanged(); } else { locationTableBuilder_.addMessage(value); } return this; } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public Builder addLocationTable( int index, io.opentelemetry.proto.profiles.v1development.Location value) { if (locationTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationTableIsMutable(); locationTable_.add(index, value); onChanged(); } else { locationTableBuilder_.addMessage(index, value); } return this; } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public Builder addLocationTable( io.opentelemetry.proto.profiles.v1development.Location.Builder builderForValue) { if (locationTableBuilder_ == null) { ensureLocationTableIsMutable(); locationTable_.add(builderForValue.build()); onChanged(); } else { locationTableBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public Builder addLocationTable( int index, io.opentelemetry.proto.profiles.v1development.Location.Builder builderForValue) { if (locationTableBuilder_ == null) { ensureLocationTableIsMutable(); locationTable_.add(index, builderForValue.build()); onChanged(); } else { locationTableBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public Builder addAllLocationTable( java.lang.Iterable values) { if (locationTableBuilder_ == null) { ensureLocationTableIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, locationTable_); onChanged(); } else { locationTableBuilder_.addAllMessages(values); } return this; } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public Builder clearLocationTable() { if (locationTableBuilder_ == null) { locationTable_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { locationTableBuilder_.clear(); } return this; } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public Builder removeLocationTable(int index) { if (locationTableBuilder_ == null) { ensureLocationTableIsMutable(); locationTable_.remove(index); onChanged(); } else { locationTableBuilder_.remove(index); } return this; } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public io.opentelemetry.proto.profiles.v1development.Location.Builder getLocationTableBuilder( int index) { return getLocationTableFieldBuilder().getBuilder(index); } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public io.opentelemetry.proto.profiles.v1development.LocationOrBuilder getLocationTableOrBuilder( int index) { if (locationTableBuilder_ == null) { return locationTable_.get(index); } else { return locationTableBuilder_.getMessageOrBuilder(index); } } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public java.util.List getLocationTableOrBuilderList() { if (locationTableBuilder_ != null) { return locationTableBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(locationTable_); } } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public io.opentelemetry.proto.profiles.v1development.Location.Builder addLocationTableBuilder() { return getLocationTableFieldBuilder().addBuilder( io.opentelemetry.proto.profiles.v1development.Location.getDefaultInstance()); } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public io.opentelemetry.proto.profiles.v1development.Location.Builder addLocationTableBuilder( int index) { return getLocationTableFieldBuilder().addBuilder( index, io.opentelemetry.proto.profiles.v1development.Location.getDefaultInstance()); } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Location location_table = 4; */ public java.util.List getLocationTableBuilderList() { return getLocationTableFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Location, io.opentelemetry.proto.profiles.v1development.Location.Builder, io.opentelemetry.proto.profiles.v1development.LocationOrBuilder> getLocationTableFieldBuilder() { if (locationTableBuilder_ == null) { locationTableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Location, io.opentelemetry.proto.profiles.v1development.Location.Builder, io.opentelemetry.proto.profiles.v1development.LocationOrBuilder>( locationTable_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); locationTable_ = null; } return locationTableBuilder_; } private com.google.protobuf.Internal.IntList locationIndices_ = emptyIntList(); private void ensureLocationIndicesIsMutable() { if (!locationIndices_.isModifiable()) { locationIndices_ = makeMutableCopy(locationIndices_); } bitField0_ |= 0x00000010; } /** *
     * Array of locations referenced by samples.
     * 
* * repeated int32 location_indices = 5; * @return A list containing the locationIndices. */ public java.util.List getLocationIndicesList() { locationIndices_.makeImmutable(); return locationIndices_; } /** *
     * Array of locations referenced by samples.
     * 
* * repeated int32 location_indices = 5; * @return The count of locationIndices. */ public int getLocationIndicesCount() { return locationIndices_.size(); } /** *
     * Array of locations referenced by samples.
     * 
* * repeated int32 location_indices = 5; * @param index The index of the element to return. * @return The locationIndices at the given index. */ public int getLocationIndices(int index) { return locationIndices_.getInt(index); } /** *
     * Array of locations referenced by samples.
     * 
* * repeated int32 location_indices = 5; * @param index The index to set the value at. * @param value The locationIndices to set. * @return This builder for chaining. */ public Builder setLocationIndices( int index, int value) { ensureLocationIndicesIsMutable(); locationIndices_.setInt(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Array of locations referenced by samples.
     * 
* * repeated int32 location_indices = 5; * @param value The locationIndices to add. * @return This builder for chaining. */ public Builder addLocationIndices(int value) { ensureLocationIndicesIsMutable(); locationIndices_.addInt(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Array of locations referenced by samples.
     * 
* * repeated int32 location_indices = 5; * @param values The locationIndices to add. * @return This builder for chaining. */ public Builder addAllLocationIndices( java.lang.Iterable values) { ensureLocationIndicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, locationIndices_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Array of locations referenced by samples.
     * 
* * repeated int32 location_indices = 5; * @return This builder for chaining. */ public Builder clearLocationIndices() { locationIndices_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List functionTable_ = java.util.Collections.emptyList(); private void ensureFunctionTableIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { functionTable_ = new java.util.ArrayList(functionTable_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Function, io.opentelemetry.proto.profiles.v1development.Function.Builder, io.opentelemetry.proto.profiles.v1development.FunctionOrBuilder> functionTableBuilder_; /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public java.util.List getFunctionTableList() { if (functionTableBuilder_ == null) { return java.util.Collections.unmodifiableList(functionTable_); } else { return functionTableBuilder_.getMessageList(); } } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public int getFunctionTableCount() { if (functionTableBuilder_ == null) { return functionTable_.size(); } else { return functionTableBuilder_.getCount(); } } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public io.opentelemetry.proto.profiles.v1development.Function getFunctionTable(int index) { if (functionTableBuilder_ == null) { return functionTable_.get(index); } else { return functionTableBuilder_.getMessage(index); } } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public Builder setFunctionTable( int index, io.opentelemetry.proto.profiles.v1development.Function value) { if (functionTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionTableIsMutable(); functionTable_.set(index, value); onChanged(); } else { functionTableBuilder_.setMessage(index, value); } return this; } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public Builder setFunctionTable( int index, io.opentelemetry.proto.profiles.v1development.Function.Builder builderForValue) { if (functionTableBuilder_ == null) { ensureFunctionTableIsMutable(); functionTable_.set(index, builderForValue.build()); onChanged(); } else { functionTableBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public Builder addFunctionTable(io.opentelemetry.proto.profiles.v1development.Function value) { if (functionTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionTableIsMutable(); functionTable_.add(value); onChanged(); } else { functionTableBuilder_.addMessage(value); } return this; } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public Builder addFunctionTable( int index, io.opentelemetry.proto.profiles.v1development.Function value) { if (functionTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionTableIsMutable(); functionTable_.add(index, value); onChanged(); } else { functionTableBuilder_.addMessage(index, value); } return this; } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public Builder addFunctionTable( io.opentelemetry.proto.profiles.v1development.Function.Builder builderForValue) { if (functionTableBuilder_ == null) { ensureFunctionTableIsMutable(); functionTable_.add(builderForValue.build()); onChanged(); } else { functionTableBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public Builder addFunctionTable( int index, io.opentelemetry.proto.profiles.v1development.Function.Builder builderForValue) { if (functionTableBuilder_ == null) { ensureFunctionTableIsMutable(); functionTable_.add(index, builderForValue.build()); onChanged(); } else { functionTableBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public Builder addAllFunctionTable( java.lang.Iterable values) { if (functionTableBuilder_ == null) { ensureFunctionTableIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, functionTable_); onChanged(); } else { functionTableBuilder_.addAllMessages(values); } return this; } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public Builder clearFunctionTable() { if (functionTableBuilder_ == null) { functionTable_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { functionTableBuilder_.clear(); } return this; } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public Builder removeFunctionTable(int index) { if (functionTableBuilder_ == null) { ensureFunctionTableIsMutable(); functionTable_.remove(index); onChanged(); } else { functionTableBuilder_.remove(index); } return this; } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public io.opentelemetry.proto.profiles.v1development.Function.Builder getFunctionTableBuilder( int index) { return getFunctionTableFieldBuilder().getBuilder(index); } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public io.opentelemetry.proto.profiles.v1development.FunctionOrBuilder getFunctionTableOrBuilder( int index) { if (functionTableBuilder_ == null) { return functionTable_.get(index); } else { return functionTableBuilder_.getMessageOrBuilder(index); } } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public java.util.List getFunctionTableOrBuilderList() { if (functionTableBuilder_ != null) { return functionTableBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(functionTable_); } } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public io.opentelemetry.proto.profiles.v1development.Function.Builder addFunctionTableBuilder() { return getFunctionTableFieldBuilder().addBuilder( io.opentelemetry.proto.profiles.v1development.Function.getDefaultInstance()); } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public io.opentelemetry.proto.profiles.v1development.Function.Builder addFunctionTableBuilder( int index) { return getFunctionTableFieldBuilder().addBuilder( index, io.opentelemetry.proto.profiles.v1development.Function.getDefaultInstance()); } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Function function_table = 6; */ public java.util.List getFunctionTableBuilderList() { return getFunctionTableFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Function, io.opentelemetry.proto.profiles.v1development.Function.Builder, io.opentelemetry.proto.profiles.v1development.FunctionOrBuilder> getFunctionTableFieldBuilder() { if (functionTableBuilder_ == null) { functionTableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Function, io.opentelemetry.proto.profiles.v1development.Function.Builder, io.opentelemetry.proto.profiles.v1development.FunctionOrBuilder>( functionTable_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); functionTable_ = null; } return functionTableBuilder_; } private java.util.List attributeTable_ = java.util.Collections.emptyList(); private void ensureAttributeTableIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { attributeTable_ = new java.util.ArrayList(attributeTable_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.common.v1.KeyValue, io.opentelemetry.proto.common.v1.KeyValue.Builder, io.opentelemetry.proto.common.v1.KeyValueOrBuilder> attributeTableBuilder_; /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public java.util.List getAttributeTableList() { if (attributeTableBuilder_ == null) { return java.util.Collections.unmodifiableList(attributeTable_); } else { return attributeTableBuilder_.getMessageList(); } } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public int getAttributeTableCount() { if (attributeTableBuilder_ == null) { return attributeTable_.size(); } else { return attributeTableBuilder_.getCount(); } } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public io.opentelemetry.proto.common.v1.KeyValue getAttributeTable(int index) { if (attributeTableBuilder_ == null) { return attributeTable_.get(index); } else { return attributeTableBuilder_.getMessage(index); } } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public Builder setAttributeTable( int index, io.opentelemetry.proto.common.v1.KeyValue value) { if (attributeTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeTableIsMutable(); attributeTable_.set(index, value); onChanged(); } else { attributeTableBuilder_.setMessage(index, value); } return this; } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public Builder setAttributeTable( int index, io.opentelemetry.proto.common.v1.KeyValue.Builder builderForValue) { if (attributeTableBuilder_ == null) { ensureAttributeTableIsMutable(); attributeTable_.set(index, builderForValue.build()); onChanged(); } else { attributeTableBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public Builder addAttributeTable(io.opentelemetry.proto.common.v1.KeyValue value) { if (attributeTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeTableIsMutable(); attributeTable_.add(value); onChanged(); } else { attributeTableBuilder_.addMessage(value); } return this; } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public Builder addAttributeTable( int index, io.opentelemetry.proto.common.v1.KeyValue value) { if (attributeTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeTableIsMutable(); attributeTable_.add(index, value); onChanged(); } else { attributeTableBuilder_.addMessage(index, value); } return this; } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public Builder addAttributeTable( io.opentelemetry.proto.common.v1.KeyValue.Builder builderForValue) { if (attributeTableBuilder_ == null) { ensureAttributeTableIsMutable(); attributeTable_.add(builderForValue.build()); onChanged(); } else { attributeTableBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public Builder addAttributeTable( int index, io.opentelemetry.proto.common.v1.KeyValue.Builder builderForValue) { if (attributeTableBuilder_ == null) { ensureAttributeTableIsMutable(); attributeTable_.add(index, builderForValue.build()); onChanged(); } else { attributeTableBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public Builder addAllAttributeTable( java.lang.Iterable values) { if (attributeTableBuilder_ == null) { ensureAttributeTableIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributeTable_); onChanged(); } else { attributeTableBuilder_.addAllMessages(values); } return this; } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public Builder clearAttributeTable() { if (attributeTableBuilder_ == null) { attributeTable_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { attributeTableBuilder_.clear(); } return this; } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public Builder removeAttributeTable(int index) { if (attributeTableBuilder_ == null) { ensureAttributeTableIsMutable(); attributeTable_.remove(index); onChanged(); } else { attributeTableBuilder_.remove(index); } return this; } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public io.opentelemetry.proto.common.v1.KeyValue.Builder getAttributeTableBuilder( int index) { return getAttributeTableFieldBuilder().getBuilder(index); } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public io.opentelemetry.proto.common.v1.KeyValueOrBuilder getAttributeTableOrBuilder( int index) { if (attributeTableBuilder_ == null) { return attributeTable_.get(index); } else { return attributeTableBuilder_.getMessageOrBuilder(index); } } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public java.util.List getAttributeTableOrBuilderList() { if (attributeTableBuilder_ != null) { return attributeTableBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attributeTable_); } } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public io.opentelemetry.proto.common.v1.KeyValue.Builder addAttributeTableBuilder() { return getAttributeTableFieldBuilder().addBuilder( io.opentelemetry.proto.common.v1.KeyValue.getDefaultInstance()); } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public io.opentelemetry.proto.common.v1.KeyValue.Builder addAttributeTableBuilder( int index) { return getAttributeTableFieldBuilder().addBuilder( index, io.opentelemetry.proto.common.v1.KeyValue.getDefaultInstance()); } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 7; */ public java.util.List getAttributeTableBuilderList() { return getAttributeTableFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.common.v1.KeyValue, io.opentelemetry.proto.common.v1.KeyValue.Builder, io.opentelemetry.proto.common.v1.KeyValueOrBuilder> getAttributeTableFieldBuilder() { if (attributeTableBuilder_ == null) { attributeTableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.common.v1.KeyValue, io.opentelemetry.proto.common.v1.KeyValue.Builder, io.opentelemetry.proto.common.v1.KeyValueOrBuilder>( attributeTable_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); attributeTable_ = null; } return attributeTableBuilder_; } private java.util.List attributeUnits_ = java.util.Collections.emptyList(); private void ensureAttributeUnitsIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { attributeUnits_ = new java.util.ArrayList(attributeUnits_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.AttributeUnit, io.opentelemetry.proto.profiles.v1development.AttributeUnit.Builder, io.opentelemetry.proto.profiles.v1development.AttributeUnitOrBuilder> attributeUnitsBuilder_; /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public java.util.List getAttributeUnitsList() { if (attributeUnitsBuilder_ == null) { return java.util.Collections.unmodifiableList(attributeUnits_); } else { return attributeUnitsBuilder_.getMessageList(); } } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public int getAttributeUnitsCount() { if (attributeUnitsBuilder_ == null) { return attributeUnits_.size(); } else { return attributeUnitsBuilder_.getCount(); } } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public io.opentelemetry.proto.profiles.v1development.AttributeUnit getAttributeUnits(int index) { if (attributeUnitsBuilder_ == null) { return attributeUnits_.get(index); } else { return attributeUnitsBuilder_.getMessage(index); } } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public Builder setAttributeUnits( int index, io.opentelemetry.proto.profiles.v1development.AttributeUnit value) { if (attributeUnitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeUnitsIsMutable(); attributeUnits_.set(index, value); onChanged(); } else { attributeUnitsBuilder_.setMessage(index, value); } return this; } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public Builder setAttributeUnits( int index, io.opentelemetry.proto.profiles.v1development.AttributeUnit.Builder builderForValue) { if (attributeUnitsBuilder_ == null) { ensureAttributeUnitsIsMutable(); attributeUnits_.set(index, builderForValue.build()); onChanged(); } else { attributeUnitsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public Builder addAttributeUnits(io.opentelemetry.proto.profiles.v1development.AttributeUnit value) { if (attributeUnitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeUnitsIsMutable(); attributeUnits_.add(value); onChanged(); } else { attributeUnitsBuilder_.addMessage(value); } return this; } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public Builder addAttributeUnits( int index, io.opentelemetry.proto.profiles.v1development.AttributeUnit value) { if (attributeUnitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeUnitsIsMutable(); attributeUnits_.add(index, value); onChanged(); } else { attributeUnitsBuilder_.addMessage(index, value); } return this; } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public Builder addAttributeUnits( io.opentelemetry.proto.profiles.v1development.AttributeUnit.Builder builderForValue) { if (attributeUnitsBuilder_ == null) { ensureAttributeUnitsIsMutable(); attributeUnits_.add(builderForValue.build()); onChanged(); } else { attributeUnitsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public Builder addAttributeUnits( int index, io.opentelemetry.proto.profiles.v1development.AttributeUnit.Builder builderForValue) { if (attributeUnitsBuilder_ == null) { ensureAttributeUnitsIsMutable(); attributeUnits_.add(index, builderForValue.build()); onChanged(); } else { attributeUnitsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public Builder addAllAttributeUnits( java.lang.Iterable values) { if (attributeUnitsBuilder_ == null) { ensureAttributeUnitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributeUnits_); onChanged(); } else { attributeUnitsBuilder_.addAllMessages(values); } return this; } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public Builder clearAttributeUnits() { if (attributeUnitsBuilder_ == null) { attributeUnits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { attributeUnitsBuilder_.clear(); } return this; } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public Builder removeAttributeUnits(int index) { if (attributeUnitsBuilder_ == null) { ensureAttributeUnitsIsMutable(); attributeUnits_.remove(index); onChanged(); } else { attributeUnitsBuilder_.remove(index); } return this; } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public io.opentelemetry.proto.profiles.v1development.AttributeUnit.Builder getAttributeUnitsBuilder( int index) { return getAttributeUnitsFieldBuilder().getBuilder(index); } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public io.opentelemetry.proto.profiles.v1development.AttributeUnitOrBuilder getAttributeUnitsOrBuilder( int index) { if (attributeUnitsBuilder_ == null) { return attributeUnits_.get(index); } else { return attributeUnitsBuilder_.getMessageOrBuilder(index); } } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public java.util.List getAttributeUnitsOrBuilderList() { if (attributeUnitsBuilder_ != null) { return attributeUnitsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attributeUnits_); } } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public io.opentelemetry.proto.profiles.v1development.AttributeUnit.Builder addAttributeUnitsBuilder() { return getAttributeUnitsFieldBuilder().addBuilder( io.opentelemetry.proto.profiles.v1development.AttributeUnit.getDefaultInstance()); } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public io.opentelemetry.proto.profiles.v1development.AttributeUnit.Builder addAttributeUnitsBuilder( int index) { return getAttributeUnitsFieldBuilder().addBuilder( index, io.opentelemetry.proto.profiles.v1development.AttributeUnit.getDefaultInstance()); } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.AttributeUnit attribute_units = 8; */ public java.util.List getAttributeUnitsBuilderList() { return getAttributeUnitsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.AttributeUnit, io.opentelemetry.proto.profiles.v1development.AttributeUnit.Builder, io.opentelemetry.proto.profiles.v1development.AttributeUnitOrBuilder> getAttributeUnitsFieldBuilder() { if (attributeUnitsBuilder_ == null) { attributeUnitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.AttributeUnit, io.opentelemetry.proto.profiles.v1development.AttributeUnit.Builder, io.opentelemetry.proto.profiles.v1development.AttributeUnitOrBuilder>( attributeUnits_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); attributeUnits_ = null; } return attributeUnitsBuilder_; } private java.util.List linkTable_ = java.util.Collections.emptyList(); private void ensureLinkTableIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { linkTable_ = new java.util.ArrayList(linkTable_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Link, io.opentelemetry.proto.profiles.v1development.Link.Builder, io.opentelemetry.proto.profiles.v1development.LinkOrBuilder> linkTableBuilder_; /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public java.util.List getLinkTableList() { if (linkTableBuilder_ == null) { return java.util.Collections.unmodifiableList(linkTable_); } else { return linkTableBuilder_.getMessageList(); } } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public int getLinkTableCount() { if (linkTableBuilder_ == null) { return linkTable_.size(); } else { return linkTableBuilder_.getCount(); } } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public io.opentelemetry.proto.profiles.v1development.Link getLinkTable(int index) { if (linkTableBuilder_ == null) { return linkTable_.get(index); } else { return linkTableBuilder_.getMessage(index); } } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public Builder setLinkTable( int index, io.opentelemetry.proto.profiles.v1development.Link value) { if (linkTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinkTableIsMutable(); linkTable_.set(index, value); onChanged(); } else { linkTableBuilder_.setMessage(index, value); } return this; } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public Builder setLinkTable( int index, io.opentelemetry.proto.profiles.v1development.Link.Builder builderForValue) { if (linkTableBuilder_ == null) { ensureLinkTableIsMutable(); linkTable_.set(index, builderForValue.build()); onChanged(); } else { linkTableBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public Builder addLinkTable(io.opentelemetry.proto.profiles.v1development.Link value) { if (linkTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinkTableIsMutable(); linkTable_.add(value); onChanged(); } else { linkTableBuilder_.addMessage(value); } return this; } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public Builder addLinkTable( int index, io.opentelemetry.proto.profiles.v1development.Link value) { if (linkTableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinkTableIsMutable(); linkTable_.add(index, value); onChanged(); } else { linkTableBuilder_.addMessage(index, value); } return this; } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public Builder addLinkTable( io.opentelemetry.proto.profiles.v1development.Link.Builder builderForValue) { if (linkTableBuilder_ == null) { ensureLinkTableIsMutable(); linkTable_.add(builderForValue.build()); onChanged(); } else { linkTableBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public Builder addLinkTable( int index, io.opentelemetry.proto.profiles.v1development.Link.Builder builderForValue) { if (linkTableBuilder_ == null) { ensureLinkTableIsMutable(); linkTable_.add(index, builderForValue.build()); onChanged(); } else { linkTableBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public Builder addAllLinkTable( java.lang.Iterable values) { if (linkTableBuilder_ == null) { ensureLinkTableIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, linkTable_); onChanged(); } else { linkTableBuilder_.addAllMessages(values); } return this; } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public Builder clearLinkTable() { if (linkTableBuilder_ == null) { linkTable_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { linkTableBuilder_.clear(); } return this; } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public Builder removeLinkTable(int index) { if (linkTableBuilder_ == null) { ensureLinkTableIsMutable(); linkTable_.remove(index); onChanged(); } else { linkTableBuilder_.remove(index); } return this; } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public io.opentelemetry.proto.profiles.v1development.Link.Builder getLinkTableBuilder( int index) { return getLinkTableFieldBuilder().getBuilder(index); } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public io.opentelemetry.proto.profiles.v1development.LinkOrBuilder getLinkTableOrBuilder( int index) { if (linkTableBuilder_ == null) { return linkTable_.get(index); } else { return linkTableBuilder_.getMessageOrBuilder(index); } } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public java.util.List getLinkTableOrBuilderList() { if (linkTableBuilder_ != null) { return linkTableBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(linkTable_); } } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public io.opentelemetry.proto.profiles.v1development.Link.Builder addLinkTableBuilder() { return getLinkTableFieldBuilder().addBuilder( io.opentelemetry.proto.profiles.v1development.Link.getDefaultInstance()); } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public io.opentelemetry.proto.profiles.v1development.Link.Builder addLinkTableBuilder( int index) { return getLinkTableFieldBuilder().addBuilder( index, io.opentelemetry.proto.profiles.v1development.Link.getDefaultInstance()); } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1development.Link link_table = 9; */ public java.util.List getLinkTableBuilderList() { return getLinkTableFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Link, io.opentelemetry.proto.profiles.v1development.Link.Builder, io.opentelemetry.proto.profiles.v1development.LinkOrBuilder> getLinkTableFieldBuilder() { if (linkTableBuilder_ == null) { linkTableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.Link, io.opentelemetry.proto.profiles.v1development.Link.Builder, io.opentelemetry.proto.profiles.v1development.LinkOrBuilder>( linkTable_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); linkTable_ = null; } return linkTableBuilder_; } private com.google.protobuf.LazyStringArrayList stringTable_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureStringTableIsMutable() { if (!stringTable_.isModifiable()) { stringTable_ = new com.google.protobuf.LazyStringArrayList(stringTable_); } bitField0_ |= 0x00000200; } /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 10; * @return A list containing the stringTable. */ public com.google.protobuf.ProtocolStringList getStringTableList() { stringTable_.makeImmutable(); return stringTable_; } /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 10; * @return The count of stringTable. */ public int getStringTableCount() { return stringTable_.size(); } /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 10; * @param index The index of the element to return. * @return The stringTable at the given index. */ public java.lang.String getStringTable(int index) { return stringTable_.get(index); } /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 10; * @param index The index of the value to return. * @return The bytes of the stringTable at the given index. */ public com.google.protobuf.ByteString getStringTableBytes(int index) { return stringTable_.getByteString(index); } /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 10; * @param index The index to set the value at. * @param value The stringTable to set. * @return This builder for chaining. */ public Builder setStringTable( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringTableIsMutable(); stringTable_.set(index, value); bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 10; * @param value The stringTable to add. * @return This builder for chaining. */ public Builder addStringTable( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringTableIsMutable(); stringTable_.add(value); bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 10; * @param values The stringTable to add. * @return This builder for chaining. */ public Builder addAllStringTable( java.lang.Iterable values) { ensureStringTableIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, stringTable_); bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 10; * @return This builder for chaining. */ public Builder clearStringTable() { stringTable_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000200);; onChanged(); return this; } /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 10; * @param value The bytes of the stringTable to add. * @return This builder for chaining. */ public Builder addStringTableBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStringTableIsMutable(); stringTable_.add(value); bitField0_ |= 0x00000200; onChanged(); return this; } private long timeNanos_ ; /** *
     * Time of collection (UTC) represented as nanoseconds past the epoch.
     * 
* * int64 time_nanos = 11; * @return The timeNanos. */ @java.lang.Override public long getTimeNanos() { return timeNanos_; } /** *
     * Time of collection (UTC) represented as nanoseconds past the epoch.
     * 
* * int64 time_nanos = 11; * @param value The timeNanos to set. * @return This builder for chaining. */ public Builder setTimeNanos(long value) { timeNanos_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * Time of collection (UTC) represented as nanoseconds past the epoch.
     * 
* * int64 time_nanos = 11; * @return This builder for chaining. */ public Builder clearTimeNanos() { bitField0_ = (bitField0_ & ~0x00000400); timeNanos_ = 0L; onChanged(); return this; } private long durationNanos_ ; /** *
     * Duration of the profile, if a duration makes sense.
     * 
* * int64 duration_nanos = 12; * @return The durationNanos. */ @java.lang.Override public long getDurationNanos() { return durationNanos_; } /** *
     * Duration of the profile, if a duration makes sense.
     * 
* * int64 duration_nanos = 12; * @param value The durationNanos to set. * @return This builder for chaining. */ public Builder setDurationNanos(long value) { durationNanos_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     * Duration of the profile, if a duration makes sense.
     * 
* * int64 duration_nanos = 12; * @return This builder for chaining. */ public Builder clearDurationNanos() { bitField0_ = (bitField0_ & ~0x00000800); durationNanos_ = 0L; onChanged(); return this; } private io.opentelemetry.proto.profiles.v1development.ValueType periodType_; private com.google.protobuf.SingleFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.ValueType, io.opentelemetry.proto.profiles.v1development.ValueType.Builder, io.opentelemetry.proto.profiles.v1development.ValueTypeOrBuilder> periodTypeBuilder_; /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; * @return Whether the periodType field is set. */ public boolean hasPeriodType() { return ((bitField0_ & 0x00001000) != 0); } /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; * @return The periodType. */ public io.opentelemetry.proto.profiles.v1development.ValueType getPeriodType() { if (periodTypeBuilder_ == null) { return periodType_ == null ? io.opentelemetry.proto.profiles.v1development.ValueType.getDefaultInstance() : periodType_; } else { return periodTypeBuilder_.getMessage(); } } /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; */ public Builder setPeriodType(io.opentelemetry.proto.profiles.v1development.ValueType value) { if (periodTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } periodType_ = value; } else { periodTypeBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; */ public Builder setPeriodType( io.opentelemetry.proto.profiles.v1development.ValueType.Builder builderForValue) { if (periodTypeBuilder_ == null) { periodType_ = builderForValue.build(); } else { periodTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; */ public Builder mergePeriodType(io.opentelemetry.proto.profiles.v1development.ValueType value) { if (periodTypeBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && periodType_ != null && periodType_ != io.opentelemetry.proto.profiles.v1development.ValueType.getDefaultInstance()) { getPeriodTypeBuilder().mergeFrom(value); } else { periodType_ = value; } } else { periodTypeBuilder_.mergeFrom(value); } if (periodType_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; */ public Builder clearPeriodType() { bitField0_ = (bitField0_ & ~0x00001000); periodType_ = null; if (periodTypeBuilder_ != null) { periodTypeBuilder_.dispose(); periodTypeBuilder_ = null; } onChanged(); return this; } /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; */ public io.opentelemetry.proto.profiles.v1development.ValueType.Builder getPeriodTypeBuilder() { bitField0_ |= 0x00001000; onChanged(); return getPeriodTypeFieldBuilder().getBuilder(); } /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; */ public io.opentelemetry.proto.profiles.v1development.ValueTypeOrBuilder getPeriodTypeOrBuilder() { if (periodTypeBuilder_ != null) { return periodTypeBuilder_.getMessageOrBuilder(); } else { return periodType_ == null ? io.opentelemetry.proto.profiles.v1development.ValueType.getDefaultInstance() : periodType_; } } /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1development.ValueType period_type = 13; */ private com.google.protobuf.SingleFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.ValueType, io.opentelemetry.proto.profiles.v1development.ValueType.Builder, io.opentelemetry.proto.profiles.v1development.ValueTypeOrBuilder> getPeriodTypeFieldBuilder() { if (periodTypeBuilder_ == null) { periodTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opentelemetry.proto.profiles.v1development.ValueType, io.opentelemetry.proto.profiles.v1development.ValueType.Builder, io.opentelemetry.proto.profiles.v1development.ValueTypeOrBuilder>( getPeriodType(), getParentForChildren(), isClean()); periodType_ = null; } return periodTypeBuilder_; } private long period_ ; /** *
     * The number of events between sampled occurrences.
     * 
* * int64 period = 14; * @return The period. */ @java.lang.Override public long getPeriod() { return period_; } /** *
     * The number of events between sampled occurrences.
     * 
* * int64 period = 14; * @param value The period to set. * @return This builder for chaining. */ public Builder setPeriod(long value) { period_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     * The number of events between sampled occurrences.
     * 
* * int64 period = 14; * @return This builder for chaining. */ public Builder clearPeriod() { bitField0_ = (bitField0_ & ~0x00002000); period_ = 0L; onChanged(); return this; } private com.google.protobuf.Internal.IntList commentStrindices_ = emptyIntList(); private void ensureCommentStrindicesIsMutable() { if (!commentStrindices_.isModifiable()) { commentStrindices_ = makeMutableCopy(commentStrindices_); } bitField0_ |= 0x00004000; } /** *
     * 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 = 15; * @return A list containing the commentStrindices. */ public java.util.List getCommentStrindicesList() { commentStrindices_.makeImmutable(); return commentStrindices_; } /** *
     * 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 = 15; * @return The count of commentStrindices. */ public int getCommentStrindicesCount() { return commentStrindices_.size(); } /** *
     * 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 = 15; * @param index The index of the element to return. * @return The commentStrindices at the given index. */ public int getCommentStrindices(int index) { return commentStrindices_.getInt(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 = 15; * @param index The index to set the value at. * @param value The commentStrindices to set. * @return This builder for chaining. */ public Builder setCommentStrindices( int index, int value) { ensureCommentStrindicesIsMutable(); commentStrindices_.setInt(index, value); bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     * 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 = 15; * @param value The commentStrindices to add. * @return This builder for chaining. */ public Builder addCommentStrindices(int value) { ensureCommentStrindicesIsMutable(); commentStrindices_.addInt(value); bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     * 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 = 15; * @param values The commentStrindices to add. * @return This builder for chaining. */ public Builder addAllCommentStrindices( java.lang.Iterable values) { ensureCommentStrindicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, commentStrindices_); bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     * 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 = 15; * @return This builder for chaining. */ public Builder clearCommentStrindices() { commentStrindices_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } private int defaultSampleTypeStrindex_ ; /** *
     * Index into the string table of the type of the preferred sample
     * value. If unset, clients should default to the last sample value.
     * 
* * int32 default_sample_type_strindex = 16; * @return The defaultSampleTypeStrindex. */ @java.lang.Override public int getDefaultSampleTypeStrindex() { return defaultSampleTypeStrindex_; } /** *
     * Index into the string table of the type of the preferred sample
     * value. If unset, clients should default to the last sample value.
     * 
* * int32 default_sample_type_strindex = 16; * @param value The defaultSampleTypeStrindex to set. * @return This builder for chaining. */ public Builder setDefaultSampleTypeStrindex(int value) { defaultSampleTypeStrindex_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     * Index into the string table of the type of the preferred sample
     * value. If unset, clients should default to the last sample value.
     * 
* * int32 default_sample_type_strindex = 16; * @return This builder for chaining. */ public Builder clearDefaultSampleTypeStrindex() { bitField0_ = (bitField0_ & ~0x00008000); defaultSampleTypeStrindex_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString profileId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
     * all zeroes is considered invalid.
     *
     * This field is required.
     * 
* * bytes profile_id = 17; * @return The profileId. */ @java.lang.Override public com.google.protobuf.ByteString getProfileId() { return profileId_; } /** *
     * A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
     * all zeroes is considered invalid.
     *
     * This field is required.
     * 
* * bytes profile_id = 17; * @param value The profileId to set. * @return This builder for chaining. */ public Builder setProfileId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } profileId_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     * A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
     * all zeroes is considered invalid.
     *
     * This field is required.
     * 
* * bytes profile_id = 17; * @return This builder for chaining. */ public Builder clearProfileId() { bitField0_ = (bitField0_ & ~0x00010000); profileId_ = getDefaultInstance().getProfileId(); onChanged(); return this; } private int droppedAttributesCount_ ; /** *
     * 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 = 19; * @return The droppedAttributesCount. */ @java.lang.Override public int getDroppedAttributesCount() { return droppedAttributesCount_; } /** *
     * 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 = 19; * @param value The droppedAttributesCount to set. * @return This builder for chaining. */ public Builder setDroppedAttributesCount(int value) { droppedAttributesCount_ = value; bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     * 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 = 19; * @return This builder for chaining. */ public Builder clearDroppedAttributesCount() { bitField0_ = (bitField0_ & ~0x00020000); droppedAttributesCount_ = 0; onChanged(); return this; } private java.lang.Object originalPayloadFormat_ = ""; /** *
     * Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
     * 
* * string original_payload_format = 20; * @return The originalPayloadFormat. */ public java.lang.String getOriginalPayloadFormat() { java.lang.Object ref = originalPayloadFormat_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalPayloadFormat_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
     * 
* * string original_payload_format = 20; * @return The bytes for originalPayloadFormat. */ public com.google.protobuf.ByteString getOriginalPayloadFormatBytes() { java.lang.Object ref = originalPayloadFormat_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); originalPayloadFormat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
     * 
* * string original_payload_format = 20; * @param value The originalPayloadFormat to set. * @return This builder for chaining. */ public Builder setOriginalPayloadFormat( java.lang.String value) { if (value == null) { throw new NullPointerException(); } originalPayloadFormat_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** *
     * Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
     * 
* * string original_payload_format = 20; * @return This builder for chaining. */ public Builder clearOriginalPayloadFormat() { originalPayloadFormat_ = getDefaultInstance().getOriginalPayloadFormat(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } /** *
     * Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
     * 
* * string original_payload_format = 20; * @param value The bytes for originalPayloadFormat to set. * @return This builder for chaining. */ public Builder setOriginalPayloadFormatBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originalPayloadFormat_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } private com.google.protobuf.ByteString originalPayload_ = com.google.protobuf.ByteString.EMPTY; /** *
     * 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 = 21; * @return The originalPayload. */ @java.lang.Override public com.google.protobuf.ByteString getOriginalPayload() { return originalPayload_; } /** *
     * 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 = 21; * @param value The originalPayload to set. * @return This builder for chaining. */ public Builder setOriginalPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } originalPayload_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** *
     * 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 = 21; * @return This builder for chaining. */ public Builder clearOriginalPayload() { bitField0_ = (bitField0_ & ~0x00080000); originalPayload_ = getDefaultInstance().getOriginalPayload(); onChanged(); return this; } private com.google.protobuf.Internal.IntList attributeIndices_ = emptyIntList(); private void ensureAttributeIndicesIsMutable() { if (!attributeIndices_.isModifiable()) { attributeIndices_ = makeMutableCopy(attributeIndices_); } bitField0_ |= 0x00100000; } /** *
     * References to attributes in attribute_table. [optional]
     * It is a collection of key/value pairs. Note, global attributes
     * like server name can be set using the resource API. Examples of attributes:
     *
     *     "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
     *     "/http/server_latency": 300
     *     "abc.com/myattribute": true
     *     "abc.com/score": 10.239
     *
     * The OpenTelemetry API specification further restricts the allowed value types:
     * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
     * Attribute keys MUST be unique (it is not allowed to have more than one
     * attribute with the same key).
     * 
* * repeated int32 attribute_indices = 22; * @return A list containing the attributeIndices. */ public java.util.List getAttributeIndicesList() { attributeIndices_.makeImmutable(); return attributeIndices_; } /** *
     * References to attributes in attribute_table. [optional]
     * It is a collection of key/value pairs. Note, global attributes
     * like server name can be set using the resource API. Examples of attributes:
     *
     *     "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
     *     "/http/server_latency": 300
     *     "abc.com/myattribute": true
     *     "abc.com/score": 10.239
     *
     * The OpenTelemetry API specification further restricts the allowed value types:
     * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
     * Attribute keys MUST be unique (it is not allowed to have more than one
     * attribute with the same key).
     * 
* * repeated int32 attribute_indices = 22; * @return The count of attributeIndices. */ public int getAttributeIndicesCount() { return attributeIndices_.size(); } /** *
     * References to attributes in attribute_table. [optional]
     * It is a collection of key/value pairs. Note, global attributes
     * like server name can be set using the resource API. Examples of attributes:
     *
     *     "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
     *     "/http/server_latency": 300
     *     "abc.com/myattribute": true
     *     "abc.com/score": 10.239
     *
     * The OpenTelemetry API specification further restricts the allowed value types:
     * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
     * Attribute keys MUST be unique (it is not allowed to have more than one
     * attribute with the same key).
     * 
* * repeated int32 attribute_indices = 22; * @param index The index of the element to return. * @return The attributeIndices at the given index. */ public int getAttributeIndices(int index) { return attributeIndices_.getInt(index); } /** *
     * References to attributes in attribute_table. [optional]
     * It is a collection of key/value pairs. Note, global attributes
     * like server name can be set using the resource API. Examples of attributes:
     *
     *     "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
     *     "/http/server_latency": 300
     *     "abc.com/myattribute": true
     *     "abc.com/score": 10.239
     *
     * The OpenTelemetry API specification further restricts the allowed value types:
     * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
     * Attribute keys MUST be unique (it is not allowed to have more than one
     * attribute with the same key).
     * 
* * repeated int32 attribute_indices = 22; * @param index The index to set the value at. * @param value The attributeIndices to set. * @return This builder for chaining. */ public Builder setAttributeIndices( int index, int value) { ensureAttributeIndicesIsMutable(); attributeIndices_.setInt(index, value); bitField0_ |= 0x00100000; onChanged(); return this; } /** *
     * References to attributes in attribute_table. [optional]
     * It is a collection of key/value pairs. Note, global attributes
     * like server name can be set using the resource API. Examples of attributes:
     *
     *     "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
     *     "/http/server_latency": 300
     *     "abc.com/myattribute": true
     *     "abc.com/score": 10.239
     *
     * The OpenTelemetry API specification further restricts the allowed value types:
     * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
     * Attribute keys MUST be unique (it is not allowed to have more than one
     * attribute with the same key).
     * 
* * repeated int32 attribute_indices = 22; * @param value The attributeIndices to add. * @return This builder for chaining. */ public Builder addAttributeIndices(int value) { ensureAttributeIndicesIsMutable(); attributeIndices_.addInt(value); bitField0_ |= 0x00100000; onChanged(); return this; } /** *
     * References to attributes in attribute_table. [optional]
     * It is a collection of key/value pairs. Note, global attributes
     * like server name can be set using the resource API. Examples of attributes:
     *
     *     "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
     *     "/http/server_latency": 300
     *     "abc.com/myattribute": true
     *     "abc.com/score": 10.239
     *
     * The OpenTelemetry API specification further restricts the allowed value types:
     * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
     * Attribute keys MUST be unique (it is not allowed to have more than one
     * attribute with the same key).
     * 
* * repeated int32 attribute_indices = 22; * @param values The attributeIndices to add. * @return This builder for chaining. */ public Builder addAllAttributeIndices( java.lang.Iterable values) { ensureAttributeIndicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributeIndices_); bitField0_ |= 0x00100000; onChanged(); return this; } /** *
     * References to attributes in attribute_table. [optional]
     * It is a collection of key/value pairs. Note, global attributes
     * like server name can be set using the resource API. Examples of attributes:
     *
     *     "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
     *     "/http/server_latency": 300
     *     "abc.com/myattribute": true
     *     "abc.com/score": 10.239
     *
     * The OpenTelemetry API specification further restricts the allowed value types:
     * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
     * Attribute keys MUST be unique (it is not allowed to have more than one
     * attribute with the same key).
     * 
* * repeated int32 attribute_indices = 22; * @return This builder for chaining. */ public Builder clearAttributeIndices() { attributeIndices_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:opentelemetry.proto.profiles.v1development.Profile) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.profiles.v1development.Profile) private static final io.opentelemetry.proto.profiles.v1development.Profile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opentelemetry.proto.profiles.v1development.Profile(); } public static io.opentelemetry.proto.profiles.v1development.Profile getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Profile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.opentelemetry.proto.profiles.v1development.Profile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy