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

opentelemetry.proto.profiles.v1experimental.Pprofextended Maven / Gradle / Ivy

There is a newer version: 1.0.47
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: opentelemetry/proto/profiles/v1experimental/pprofextended.proto

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

public final class Pprofextended {
  private Pprofextended() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Specifies the method of aggregating metric values, either DELTA (change since last report)
   * or CUMULATIVE (total since a fixed start time).
   * 
* * Protobuf enum {@code opentelemetry.proto.profiles.v1experimental.AggregationTemporality} */ public enum AggregationTemporality implements com.google.protobuf.ProtocolMessageEnum { /** *
     * UNSPECIFIED is the default AggregationTemporality, it MUST not be used. 
     * 
* * AGGREGATION_TEMPORALITY_UNSPECIFIED = 0; */ AGGREGATION_TEMPORALITY_UNSPECIFIED(0), /** *
     ** DELTA is an AggregationTemporality for a profiler which reports
     *changes since last report time. Successive metrics contain aggregation of
     *values from continuous and non-overlapping intervals.
     *
     *The values for a DELTA metric are based only on the time interval
     *associated with one measurement cycle. There is no dependency on
     *previous measurements like is the case for CUMULATIVE metrics.
     *
     *For example, consider a system measuring the number of requests that
     *it receives and reports the sum of these requests every second as a
     *DELTA metric:
     *
     *1. The system starts receiving at time=t_0.
     *2. A request is received, the system measures 1 request.
     *3. A request is received, the system measures 1 request.
     *4. A request is received, the system measures 1 request.
     *5. The 1 second collection cycle ends. A metric is exported for the
     *number of requests received over the interval of time t_0 to
     *t_0+1 with a value of 3.
     *6. A request is received, the system measures 1 request.
     *7. A request is received, the system measures 1 request.
     *8. The 1 second collection cycle ends. A metric is exported for the
     *number of requests received over the interval of time t_0+1 to
     *t_0+2 with a value of 2. 
     * 
* * AGGREGATION_TEMPORALITY_DELTA = 1; */ AGGREGATION_TEMPORALITY_DELTA(1), /** *
     ** CUMULATIVE is an AggregationTemporality for a profiler which
     *reports changes since a fixed start time. This means that current values
     *of a CUMULATIVE metric depend on all previous measurements since the
     *start time. Because of this, the sender is required to retain this state
     *in some form. If this state is lost or invalidated, the CUMULATIVE metric
     *values MUST be reset and a new fixed start time following the last
     *reported measurement time sent MUST be used.
     *
     *For example, consider a system measuring the number of requests that
     *it receives and reports the sum of these requests every second as a
     *CUMULATIVE metric:
     *
     *1. The system starts receiving at time=t_0.
     *2. A request is received, the system measures 1 request.
     *3. A request is received, the system measures 1 request.
     *4. A request is received, the system measures 1 request.
     *5. The 1 second collection cycle ends. A metric is exported for the
     *number of requests received over the interval of time t_0 to
     *t_0+1 with a value of 3.
     *6. A request is received, the system measures 1 request.
     *7. A request is received, the system measures 1 request.
     *8. The 1 second collection cycle ends. A metric is exported for the
     *number of requests received over the interval of time t_0 to
     *t_0+2 with a value of 5.
     *9. The system experiences a fault and loses state.
     *10. The system recovers and resumes receiving at time=t_1.
     *11. A request is received, the system measures 1 request.
     *12. The 1 second collection cycle ends. A metric is exported for the
     *number of requests received over the interval of time t_1 to
     *t_0+1 with a value of 1.
     *
     *Note: Even though, when reporting changes since last report time, using
     *CUMULATIVE is valid, it is not recommended. 
     * 
* * AGGREGATION_TEMPORALITY_CUMULATIVE = 2; */ AGGREGATION_TEMPORALITY_CUMULATIVE(2), UNRECOGNIZED(-1), ; /** *
     * UNSPECIFIED is the default AggregationTemporality, it MUST not be used. 
     * 
* * AGGREGATION_TEMPORALITY_UNSPECIFIED = 0; */ public static final int AGGREGATION_TEMPORALITY_UNSPECIFIED_VALUE = 0; /** *
     ** DELTA is an AggregationTemporality for a profiler which reports
     *changes since last report time. Successive metrics contain aggregation of
     *values from continuous and non-overlapping intervals.
     *
     *The values for a DELTA metric are based only on the time interval
     *associated with one measurement cycle. There is no dependency on
     *previous measurements like is the case for CUMULATIVE metrics.
     *
     *For example, consider a system measuring the number of requests that
     *it receives and reports the sum of these requests every second as a
     *DELTA metric:
     *
     *1. The system starts receiving at time=t_0.
     *2. A request is received, the system measures 1 request.
     *3. A request is received, the system measures 1 request.
     *4. A request is received, the system measures 1 request.
     *5. The 1 second collection cycle ends. A metric is exported for the
     *number of requests received over the interval of time t_0 to
     *t_0+1 with a value of 3.
     *6. A request is received, the system measures 1 request.
     *7. A request is received, the system measures 1 request.
     *8. The 1 second collection cycle ends. A metric is exported for the
     *number of requests received over the interval of time t_0+1 to
     *t_0+2 with a value of 2. 
     * 
* * AGGREGATION_TEMPORALITY_DELTA = 1; */ public static final int AGGREGATION_TEMPORALITY_DELTA_VALUE = 1; /** *
     ** CUMULATIVE is an AggregationTemporality for a profiler which
     *reports changes since a fixed start time. This means that current values
     *of a CUMULATIVE metric depend on all previous measurements since the
     *start time. Because of this, the sender is required to retain this state
     *in some form. If this state is lost or invalidated, the CUMULATIVE metric
     *values MUST be reset and a new fixed start time following the last
     *reported measurement time sent MUST be used.
     *
     *For example, consider a system measuring the number of requests that
     *it receives and reports the sum of these requests every second as a
     *CUMULATIVE metric:
     *
     *1. The system starts receiving at time=t_0.
     *2. A request is received, the system measures 1 request.
     *3. A request is received, the system measures 1 request.
     *4. A request is received, the system measures 1 request.
     *5. The 1 second collection cycle ends. A metric is exported for the
     *number of requests received over the interval of time t_0 to
     *t_0+1 with a value of 3.
     *6. A request is received, the system measures 1 request.
     *7. A request is received, the system measures 1 request.
     *8. The 1 second collection cycle ends. A metric is exported for the
     *number of requests received over the interval of time t_0 to
     *t_0+2 with a value of 5.
     *9. The system experiences a fault and loses state.
     *10. The system recovers and resumes receiving at time=t_1.
     *11. A request is received, the system measures 1 request.
     *12. The 1 second collection cycle ends. A metric is exported for the
     *number of requests received over the interval of time t_1 to
     *t_0+1 with a value of 1.
     *
     *Note: Even though, when reporting changes since last report time, using
     *CUMULATIVE is valid, it is not recommended. 
     * 
* * AGGREGATION_TEMPORALITY_CUMULATIVE = 2; */ public static final int AGGREGATION_TEMPORALITY_CUMULATIVE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AggregationTemporality valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static AggregationTemporality forNumber(int value) { switch (value) { case 0: return AGGREGATION_TEMPORALITY_UNSPECIFIED; case 1: return AGGREGATION_TEMPORALITY_DELTA; case 2: return AGGREGATION_TEMPORALITY_CUMULATIVE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AggregationTemporality> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AggregationTemporality findValueByNumber(int number) { return AggregationTemporality.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.getDescriptor().getEnumTypes().get(0); } private static final AggregationTemporality[] VALUES = values(); public static AggregationTemporality valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private AggregationTemporality(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:opentelemetry.proto.profiles.v1experimental.AggregationTemporality) } /** *
   * Indicates the semantics of the build_id field.
   * 
* * Protobuf enum {@code opentelemetry.proto.profiles.v1experimental.BuildIdKind} */ public enum BuildIdKind implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Linker-generated build ID, stored in the ELF binary notes.
     * 
* * BUILD_ID_LINKER = 0; */ BUILD_ID_LINKER(0), /** *
     * Build ID based on the content hash of the binary. Currently no particular
     * hashing approach is standardized, so a given producer needs to define it
     * themselves and thus unlike BUILD_ID_LINKER this kind of hash is producer-specific.
     * We may choose to provide a standardized stable hash recommendation later.
     * 
* * BUILD_ID_BINARY_HASH = 1; */ BUILD_ID_BINARY_HASH(1), UNRECOGNIZED(-1), ; /** *
     * Linker-generated build ID, stored in the ELF binary notes.
     * 
* * BUILD_ID_LINKER = 0; */ public static final int BUILD_ID_LINKER_VALUE = 0; /** *
     * Build ID based on the content hash of the binary. Currently no particular
     * hashing approach is standardized, so a given producer needs to define it
     * themselves and thus unlike BUILD_ID_LINKER this kind of hash is producer-specific.
     * We may choose to provide a standardized stable hash recommendation later.
     * 
* * BUILD_ID_BINARY_HASH = 1; */ public static final int BUILD_ID_BINARY_HASH_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static BuildIdKind valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static BuildIdKind forNumber(int value) { switch (value) { case 0: return BUILD_ID_LINKER; case 1: return BUILD_ID_BINARY_HASH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< BuildIdKind> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public BuildIdKind findValueByNumber(int number) { return BuildIdKind.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.getDescriptor().getEnumTypes().get(1); } private static final BuildIdKind[] VALUES = values(); public static BuildIdKind valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private BuildIdKind(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:opentelemetry.proto.profiles.v1experimental.BuildIdKind) } public interface ProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:opentelemetry.proto.profiles.v1experimental.Profile) com.google.protobuf.MessageOrBuilder { /** *
     * 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.v1experimental.ValueType sample_type = 1; */ java.util.List getSampleTypeList(); /** *
     * 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.v1experimental.ValueType sample_type = 1; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType getSampleType(int 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.v1experimental.ValueType sample_type = 1; */ int getSampleTypeCount(); /** *
     * 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.v1experimental.ValueType sample_type = 1; */ java.util.List getSampleTypeOrBuilderList(); /** *
     * 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.v1experimental.ValueType sample_type = 1; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueTypeOrBuilder getSampleTypeOrBuilder( int index); /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Sample sample = 2; */ java.util.List getSampleList(); /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Sample sample = 2; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample getSample(int index); /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Sample sample = 2; */ int getSampleCount(); /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Sample sample = 2; */ java.util.List getSampleOrBuilderList(); /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Sample sample = 2; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.SampleOrBuilder getSampleOrBuilder( int index); /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ java.util.List getMappingList(); /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping getMapping(int index); /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ int getMappingCount(); /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ java.util.List getMappingOrBuilderList(); /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.MappingOrBuilder getMappingOrBuilder( int index); /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ java.util.List getLocationList(); /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.Location getLocation(int index); /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ int getLocationCount(); /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ java.util.List getLocationOrBuilderList(); /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.LocationOrBuilder getLocationOrBuilder( int index); /** *
     * Array of locations referenced by samples.
     * 
* * repeated int64 location_indices = 15; * @return A list containing the locationIndices. */ java.util.List getLocationIndicesList(); /** *
     * Array of locations referenced by samples.
     * 
* * repeated int64 location_indices = 15; * @return The count of locationIndices. */ int getLocationIndicesCount(); /** *
     * Array of locations referenced by samples.
     * 
* * repeated int64 location_indices = 15; * @param index The index of the element to return. * @return The locationIndices at the given index. */ long getLocationIndices(int index); /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ java.util.List getFunctionList(); /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.Function getFunction(int index); /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ int getFunctionCount(); /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ java.util.List getFunctionOrBuilderList(); /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.FunctionOrBuilder getFunctionOrBuilder( int index); /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 16; */ java.util.List getAttributeTableList(); /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 16; */ io.opentelemetry.proto.common.v1.KeyValue getAttributeTable(int index); /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 16; */ int getAttributeTableCount(); /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 16; */ java.util.List getAttributeTableOrBuilderList(); /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 16; */ io.opentelemetry.proto.common.v1.KeyValueOrBuilder getAttributeTableOrBuilder( int index); /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ java.util.List getAttributeUnitsList(); /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit getAttributeUnits(int index); /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ int getAttributeUnitsCount(); /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ java.util.List getAttributeUnitsOrBuilderList(); /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnitOrBuilder getAttributeUnitsOrBuilder( int index); /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ java.util.List getLinkTableList(); /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.Link getLinkTable(int index); /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ int getLinkTableCount(); /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ java.util.List getLinkTableOrBuilderList(); /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.LinkOrBuilder getLinkTableOrBuilder( int index); /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 6; * @return A list containing the stringTable. */ java.util.List getStringTableList(); /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 6; * @return The count of stringTable. */ int getStringTableCount(); /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 6; * @param index The index of the element to return. * @return The stringTable at the given index. */ java.lang.String getStringTable(int index); /** *
     * A common table for strings referenced by various messages.
     * string_table[0] must always be "".
     * 
* * repeated string string_table = 6; * @param index The index of the value to return. * @return The bytes of the stringTable at the given index. */ com.google.protobuf.ByteString getStringTableBytes(int index); /** *
     * frames with Function.function_name fully matching the following
     * regexp will be dropped from the samples, along with their successors.
     * 
* * int64 drop_frames = 7; * @return The dropFrames. */ long getDropFrames(); /** *
     * frames with Function.function_name fully matching the following
     * regexp will be kept, even if it matches drop_frames.
     * 
* * int64 keep_frames = 8; * @return The keepFrames. */ long getKeepFrames(); /** *
     * Time of collection (UTC) represented as nanoseconds past the epoch.
     * 
* * int64 time_nanos = 9; * @return The timeNanos. */ long getTimeNanos(); /** *
     * Duration of the profile, if a duration makes sense.
     * 
* * int64 duration_nanos = 10; * @return The durationNanos. */ long getDurationNanos(); /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; * @return Whether the periodType field is set. */ boolean hasPeriodType(); /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; * @return The periodType. */ opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType getPeriodType(); /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueTypeOrBuilder getPeriodTypeOrBuilder(); /** *
     * The number of events between sampled occurrences.
     * 
* * int64 period = 12; * @return The period. */ long getPeriod(); /** *
     * 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 int64 comment = 13; * @return A list containing the comment. */ java.util.List getCommentList(); /** *
     * 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 int64 comment = 13; * @return The count of comment. */ int getCommentCount(); /** *
     * 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 int64 comment = 13; * @param index The index of the element to return. * @return The comment at the given index. */ long getComment(int index); /** *
     * Index into the string table of the type of the preferred sample
     * value. If unset, clients should default to the last sample value.
     * 
* * int64 default_sample_type = 14; * @return The defaultSampleType. */ long getDefaultSampleType(); } /** *
   * Represents a complete profile, including sample types, samples,
   * mappings to binaries, locations, functions, string table, and additional metadata.
   * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.Profile} */ public static final class Profile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opentelemetry.proto.profiles.v1experimental.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(); mapping_ = java.util.Collections.emptyList(); location_ = java.util.Collections.emptyList(); locationIndices_ = emptyLongList(); function_ = 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(); comment_ = emptyLongList(); } @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 opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Profile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Profile_fieldAccessorTable .ensureFieldAccessorsInitialized( opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.class, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.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.v1experimental.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.v1experimental.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.v1experimental.ValueType sample_type = 1; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.ValueType sample_type = 1; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.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.v1experimental.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.v1experimental.Sample sample = 2; */ @java.lang.Override public int getSampleCount() { return sample_.size(); } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Sample sample = 2; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample getSample(int index) { return sample_.get(index); } /** *
     * The set of samples recorded in this profile.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Sample sample = 2; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.SampleOrBuilder getSampleOrBuilder( int index) { return sample_.get(index); } public static final int MAPPING_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List mapping_; /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ @java.lang.Override public java.util.List getMappingList() { return mapping_; } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ @java.lang.Override public java.util.List getMappingOrBuilderList() { return mapping_; } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ @java.lang.Override public int getMappingCount() { return mapping_.size(); } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping getMapping(int index) { return mapping_.get(index); } /** *
     * Mapping from address ranges to the image/binary/library mapped
     * into that address range.  mapping[0] will be the main binary.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.MappingOrBuilder getMappingOrBuilder( int index) { return mapping_.get(index); } public static final int LOCATION_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List location_; /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ @java.lang.Override public java.util.List getLocationList() { return location_; } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ @java.lang.Override public java.util.List getLocationOrBuilderList() { return location_; } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ @java.lang.Override public int getLocationCount() { return location_.size(); } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Location getLocation(int index) { return location_.get(index); } /** *
     * Locations referenced by samples via location_indices.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.LocationOrBuilder getLocationOrBuilder( int index) { return location_.get(index); } public static final int LOCATION_INDICES_FIELD_NUMBER = 15; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList locationIndices_ = emptyLongList(); /** *
     * Array of locations referenced by samples.
     * 
* * repeated int64 location_indices = 15; * @return A list containing the locationIndices. */ @java.lang.Override public java.util.List getLocationIndicesList() { return locationIndices_; } /** *
     * Array of locations referenced by samples.
     * 
* * repeated int64 location_indices = 15; * @return The count of locationIndices. */ public int getLocationIndicesCount() { return locationIndices_.size(); } /** *
     * Array of locations referenced by samples.
     * 
* * repeated int64 location_indices = 15; * @param index The index of the element to return. * @return The locationIndices at the given index. */ public long getLocationIndices(int index) { return locationIndices_.getLong(index); } private int locationIndicesMemoizedSerializedSize = -1; public static final int FUNCTION_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List function_; /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ @java.lang.Override public java.util.List getFunctionList() { return function_; } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ @java.lang.Override public java.util.List getFunctionOrBuilderList() { return function_; } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ @java.lang.Override public int getFunctionCount() { return function_.size(); } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Function getFunction(int index) { return function_.get(index); } /** *
     * Functions referenced by locations.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.FunctionOrBuilder getFunctionOrBuilder( int index) { return function_.get(index); } public static final int ATTRIBUTE_TABLE_FIELD_NUMBER = 16; @SuppressWarnings("serial") private java.util.List attributeTable_; /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 16; */ @java.lang.Override public java.util.List getAttributeTableList() { return attributeTable_; } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 16; */ @java.lang.Override public java.util.List getAttributeTableOrBuilderList() { return attributeTable_; } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 16; */ @java.lang.Override public int getAttributeTableCount() { return attributeTable_.size(); } /** *
     * Lookup table for attributes.
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attribute_table = 16; */ @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 = 16; */ @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 = 17; @SuppressWarnings("serial") private java.util.List attributeUnits_; /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ @java.lang.Override public java.util.List getAttributeUnitsList() { return attributeUnits_; } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ @java.lang.Override public java.util.List getAttributeUnitsOrBuilderList() { return attributeUnits_; } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ @java.lang.Override public int getAttributeUnitsCount() { return attributeUnits_.size(); } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit getAttributeUnits(int index) { return attributeUnits_.get(index); } /** *
     * Represents a mapping between Attribute Keys and Units.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnitOrBuilder getAttributeUnitsOrBuilder( int index) { return attributeUnits_.get(index); } public static final int LINK_TABLE_FIELD_NUMBER = 18; @SuppressWarnings("serial") private java.util.List linkTable_; /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ @java.lang.Override public java.util.List getLinkTableList() { return linkTable_; } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ @java.lang.Override public java.util.List getLinkTableOrBuilderList() { return linkTable_; } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ @java.lang.Override public int getLinkTableCount() { return linkTable_.size(); } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Link getLinkTable(int index) { return linkTable_.get(index); } /** *
     * Lookup table for links.
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.LinkOrBuilder getLinkTableOrBuilder( int index) { return linkTable_.get(index); } public static final int STRING_TABLE_FIELD_NUMBER = 6; @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 = 6; * @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 = 6; * @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 = 6; * @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 = 6; * @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 DROP_FRAMES_FIELD_NUMBER = 7; private long dropFrames_ = 0L; /** *
     * frames with Function.function_name fully matching the following
     * regexp will be dropped from the samples, along with their successors.
     * 
* * int64 drop_frames = 7; * @return The dropFrames. */ @java.lang.Override public long getDropFrames() { return dropFrames_; } public static final int KEEP_FRAMES_FIELD_NUMBER = 8; private long keepFrames_ = 0L; /** *
     * frames with Function.function_name fully matching the following
     * regexp will be kept, even if it matches drop_frames.
     * 
* * int64 keep_frames = 8; * @return The keepFrames. */ @java.lang.Override public long getKeepFrames() { return keepFrames_; } public static final int TIME_NANOS_FIELD_NUMBER = 9; private long timeNanos_ = 0L; /** *
     * Time of collection (UTC) represented as nanoseconds past the epoch.
     * 
* * int64 time_nanos = 9; * @return The timeNanos. */ @java.lang.Override public long getTimeNanos() { return timeNanos_; } public static final int DURATION_NANOS_FIELD_NUMBER = 10; private long durationNanos_ = 0L; /** *
     * Duration of the profile, if a duration makes sense.
     * 
* * int64 duration_nanos = 10; * @return The durationNanos. */ @java.lang.Override public long getDurationNanos() { return durationNanos_; } public static final int PERIOD_TYPE_FIELD_NUMBER = 11; private opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType periodType_; /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; * @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.v1experimental.ValueType period_type = 11; * @return The periodType. */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType getPeriodType() { return periodType_ == null ? opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.getDefaultInstance() : periodType_; } /** *
     * The kind of events between sampled occurrences.
     * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
     * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueTypeOrBuilder getPeriodTypeOrBuilder() { return periodType_ == null ? opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.getDefaultInstance() : periodType_; } public static final int PERIOD_FIELD_NUMBER = 12; private long period_ = 0L; /** *
     * The number of events between sampled occurrences.
     * 
* * int64 period = 12; * @return The period. */ @java.lang.Override public long getPeriod() { return period_; } public static final int COMMENT_FIELD_NUMBER = 13; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList comment_ = emptyLongList(); /** *
     * 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 int64 comment = 13; * @return A list containing the comment. */ @java.lang.Override public java.util.List getCommentList() { return comment_; } /** *
     * 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 int64 comment = 13; * @return The count of comment. */ public int getCommentCount() { return comment_.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 int64 comment = 13; * @param index The index of the element to return. * @return The comment at the given index. */ public long getComment(int index) { return comment_.getLong(index); } private int commentMemoizedSerializedSize = -1; public static final int DEFAULT_SAMPLE_TYPE_FIELD_NUMBER = 14; private long defaultSampleType_ = 0L; /** *
     * Index into the string table of the type of the preferred sample
     * value. If unset, clients should default to the last sample value.
     * 
* * int64 default_sample_type = 14; * @return The defaultSampleType. */ @java.lang.Override public long getDefaultSampleType() { return defaultSampleType_; } 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 < mapping_.size(); i++) { output.writeMessage(3, mapping_.get(i)); } for (int i = 0; i < location_.size(); i++) { output.writeMessage(4, location_.get(i)); } for (int i = 0; i < function_.size(); i++) { output.writeMessage(5, function_.get(i)); } for (int i = 0; i < stringTable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stringTable_.getRaw(i)); } if (dropFrames_ != 0L) { output.writeInt64(7, dropFrames_); } if (keepFrames_ != 0L) { output.writeInt64(8, keepFrames_); } if (timeNanos_ != 0L) { output.writeInt64(9, timeNanos_); } if (durationNanos_ != 0L) { output.writeInt64(10, durationNanos_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(11, getPeriodType()); } if (period_ != 0L) { output.writeInt64(12, period_); } if (getCommentList().size() > 0) { output.writeUInt32NoTag(106); output.writeUInt32NoTag(commentMemoizedSerializedSize); } for (int i = 0; i < comment_.size(); i++) { output.writeInt64NoTag(comment_.getLong(i)); } if (defaultSampleType_ != 0L) { output.writeInt64(14, defaultSampleType_); } if (getLocationIndicesList().size() > 0) { output.writeUInt32NoTag(122); output.writeUInt32NoTag(locationIndicesMemoizedSerializedSize); } for (int i = 0; i < locationIndices_.size(); i++) { output.writeInt64NoTag(locationIndices_.getLong(i)); } for (int i = 0; i < attributeTable_.size(); i++) { output.writeMessage(16, attributeTable_.get(i)); } for (int i = 0; i < attributeUnits_.size(); i++) { output.writeMessage(17, attributeUnits_.get(i)); } for (int i = 0; i < linkTable_.size(); i++) { output.writeMessage(18, linkTable_.get(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 < mapping_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, mapping_.get(i)); } for (int i = 0; i < location_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, location_.get(i)); } for (int i = 0; i < function_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, function_.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 (dropFrames_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, dropFrames_); } if (keepFrames_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, keepFrames_); } if (timeNanos_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, timeNanos_); } if (durationNanos_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, durationNanos_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getPeriodType()); } if (period_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, period_); } { int dataSize = 0; for (int i = 0; i < comment_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(comment_.getLong(i)); } size += dataSize; if (!getCommentList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } commentMemoizedSerializedSize = dataSize; } if (defaultSampleType_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, defaultSampleType_); } { int dataSize = 0; for (int i = 0; i < locationIndices_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(locationIndices_.getLong(i)); } size += dataSize; if (!getLocationIndicesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } locationIndicesMemoizedSerializedSize = dataSize; } for (int i = 0; i < attributeTable_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, attributeTable_.get(i)); } for (int i = 0; i < attributeUnits_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, attributeUnits_.get(i)); } for (int i = 0; i < linkTable_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, linkTable_.get(i)); } 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile)) { return super.equals(obj); } opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile other = (opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile) obj; if (!getSampleTypeList() .equals(other.getSampleTypeList())) return false; if (!getSampleList() .equals(other.getSampleList())) return false; if (!getMappingList() .equals(other.getMappingList())) return false; if (!getLocationList() .equals(other.getLocationList())) return false; if (!getLocationIndicesList() .equals(other.getLocationIndicesList())) return false; if (!getFunctionList() .equals(other.getFunctionList())) 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 (getDropFrames() != other.getDropFrames()) return false; if (getKeepFrames() != other.getKeepFrames()) 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 (!getCommentList() .equals(other.getCommentList())) return false; if (getDefaultSampleType() != other.getDefaultSampleType()) 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 (getMappingCount() > 0) { hash = (37 * hash) + MAPPING_FIELD_NUMBER; hash = (53 * hash) + getMappingList().hashCode(); } if (getLocationCount() > 0) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocationList().hashCode(); } if (getLocationIndicesCount() > 0) { hash = (37 * hash) + LOCATION_INDICES_FIELD_NUMBER; hash = (53 * hash) + getLocationIndicesList().hashCode(); } if (getFunctionCount() > 0) { hash = (37 * hash) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getFunctionList().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) + DROP_FRAMES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDropFrames()); hash = (37 * hash) + KEEP_FRAMES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getKeepFrames()); 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 (getCommentCount() > 0) { hash = (37 * hash) + COMMENT_FIELD_NUMBER; hash = (53 * hash) + getCommentList().hashCode(); } hash = (37 * hash) + DEFAULT_SAMPLE_TYPE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDefaultSampleType()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.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(opentelemetry.proto.profiles.v1experimental.Pprofextended.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.
     * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.Profile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.profiles.v1experimental.Profile) opentelemetry.proto.profiles.v1experimental.Pprofextended.ProfileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Profile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Profile_fieldAccessorTable .ensureFieldAccessorsInitialized( opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.class, opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.Builder.class); } // Construct using opentelemetry.proto.profiles.v1experimental.Pprofextended.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(); getMappingFieldBuilder(); getLocationFieldBuilder(); getFunctionFieldBuilder(); 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 (mappingBuilder_ == null) { mapping_ = java.util.Collections.emptyList(); } else { mapping_ = null; mappingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (locationBuilder_ == null) { location_ = java.util.Collections.emptyList(); } else { location_ = null; locationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); locationIndices_ = emptyLongList(); if (functionBuilder_ == null) { function_ = java.util.Collections.emptyList(); } else { function_ = null; functionBuilder_.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(); dropFrames_ = 0L; keepFrames_ = 0L; timeNanos_ = 0L; durationNanos_ = 0L; periodType_ = null; if (periodTypeBuilder_ != null) { periodTypeBuilder_.dispose(); periodTypeBuilder_ = null; } period_ = 0L; comment_ = emptyLongList(); defaultSampleType_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Profile_descriptor; } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile getDefaultInstanceForType() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.getDefaultInstance(); } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile build() { opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile buildPartial() { opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile result = new opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(opentelemetry.proto.profiles.v1experimental.Pprofextended.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 (mappingBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { mapping_ = java.util.Collections.unmodifiableList(mapping_); bitField0_ = (bitField0_ & ~0x00000004); } result.mapping_ = mapping_; } else { result.mapping_ = mappingBuilder_.build(); } if (locationBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { location_ = java.util.Collections.unmodifiableList(location_); bitField0_ = (bitField0_ & ~0x00000008); } result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } if (functionBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { function_ = java.util.Collections.unmodifiableList(function_); bitField0_ = (bitField0_ & ~0x00000020); } result.function_ = function_; } else { result.function_ = functionBuilder_.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(opentelemetry.proto.profiles.v1experimental.Pprofextended.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.dropFrames_ = dropFrames_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.keepFrames_ = keepFrames_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.timeNanos_ = timeNanos_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.durationNanos_ = durationNanos_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00004000) != 0)) { result.periodType_ = periodTypeBuilder_ == null ? periodType_ : periodTypeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00008000) != 0)) { result.period_ = period_; } if (((from_bitField0_ & 0x00010000) != 0)) { comment_.makeImmutable(); result.comment_ = comment_; } if (((from_bitField0_ & 0x00020000) != 0)) { result.defaultSampleType_ = defaultSampleType_; } 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile) { return mergeFrom((opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile other) { if (other == opentelemetry.proto.profiles.v1experimental.Pprofextended.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 (mappingBuilder_ == null) { if (!other.mapping_.isEmpty()) { if (mapping_.isEmpty()) { mapping_ = other.mapping_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMappingIsMutable(); mapping_.addAll(other.mapping_); } onChanged(); } } else { if (!other.mapping_.isEmpty()) { if (mappingBuilder_.isEmpty()) { mappingBuilder_.dispose(); mappingBuilder_ = null; mapping_ = other.mapping_; bitField0_ = (bitField0_ & ~0x00000004); mappingBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMappingFieldBuilder() : null; } else { mappingBuilder_.addAllMessages(other.mapping_); } } } if (locationBuilder_ == null) { if (!other.location_.isEmpty()) { if (location_.isEmpty()) { location_ = other.location_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureLocationIsMutable(); location_.addAll(other.location_); } onChanged(); } } else { if (!other.location_.isEmpty()) { if (locationBuilder_.isEmpty()) { locationBuilder_.dispose(); locationBuilder_ = null; location_ = other.location_; bitField0_ = (bitField0_ & ~0x00000008); locationBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocationFieldBuilder() : null; } else { locationBuilder_.addAllMessages(other.location_); } } } if (!other.locationIndices_.isEmpty()) { if (locationIndices_.isEmpty()) { locationIndices_ = other.locationIndices_; locationIndices_.makeImmutable(); bitField0_ |= 0x00000010; } else { ensureLocationIndicesIsMutable(); locationIndices_.addAll(other.locationIndices_); } onChanged(); } if (functionBuilder_ == null) { if (!other.function_.isEmpty()) { if (function_.isEmpty()) { function_ = other.function_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureFunctionIsMutable(); function_.addAll(other.function_); } onChanged(); } } else { if (!other.function_.isEmpty()) { if (functionBuilder_.isEmpty()) { functionBuilder_.dispose(); functionBuilder_ = null; function_ = other.function_; bitField0_ = (bitField0_ & ~0x00000020); functionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFunctionFieldBuilder() : null; } else { functionBuilder_.addAllMessages(other.function_); } } } 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.getDropFrames() != 0L) { setDropFrames(other.getDropFrames()); } if (other.getKeepFrames() != 0L) { setKeepFrames(other.getKeepFrames()); } 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.comment_.isEmpty()) { if (comment_.isEmpty()) { comment_ = other.comment_; comment_.makeImmutable(); bitField0_ |= 0x00010000; } else { ensureCommentIsMutable(); comment_.addAll(other.comment_); } onChanged(); } if (other.getDefaultSampleType() != 0L) { setDefaultSampleType(other.getDefaultSampleType()); } 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: { opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType m = input.readMessage( opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.parser(), extensionRegistry); if (sampleTypeBuilder_ == null) { ensureSampleTypeIsMutable(); sampleType_.add(m); } else { sampleTypeBuilder_.addMessage(m); } break; } // case 10 case 18: { opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample m = input.readMessage( opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.parser(), extensionRegistry); if (sampleBuilder_ == null) { ensureSampleIsMutable(); sample_.add(m); } else { sampleBuilder_.addMessage(m); } break; } // case 18 case 26: { opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping m = input.readMessage( opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping.parser(), extensionRegistry); if (mappingBuilder_ == null) { ensureMappingIsMutable(); mapping_.add(m); } else { mappingBuilder_.addMessage(m); } break; } // case 26 case 34: { opentelemetry.proto.profiles.v1experimental.Pprofextended.Location m = input.readMessage( opentelemetry.proto.profiles.v1experimental.Pprofextended.Location.parser(), extensionRegistry); if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.add(m); } else { locationBuilder_.addMessage(m); } break; } // case 34 case 42: { opentelemetry.proto.profiles.v1experimental.Pprofextended.Function m = input.readMessage( opentelemetry.proto.profiles.v1experimental.Pprofextended.Function.parser(), extensionRegistry); if (functionBuilder_ == null) { ensureFunctionIsMutable(); function_.add(m); } else { functionBuilder_.addMessage(m); } break; } // case 42 case 50: { java.lang.String s = input.readStringRequireUtf8(); ensureStringTableIsMutable(); stringTable_.add(s); break; } // case 50 case 56: { dropFrames_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 56 case 64: { keepFrames_ = input.readInt64(); bitField0_ |= 0x00000800; break; } // case 64 case 72: { timeNanos_ = input.readInt64(); bitField0_ |= 0x00001000; break; } // case 72 case 80: { durationNanos_ = input.readInt64(); bitField0_ |= 0x00002000; break; } // case 80 case 90: { input.readMessage( getPeriodTypeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 90 case 96: { period_ = input.readInt64(); bitField0_ |= 0x00008000; break; } // case 96 case 104: { long v = input.readInt64(); ensureCommentIsMutable(); comment_.addLong(v); break; } // case 104 case 106: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureCommentIsMutable(); while (input.getBytesUntilLimit() > 0) { comment_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 106 case 112: { defaultSampleType_ = input.readInt64(); bitField0_ |= 0x00020000; break; } // case 112 case 120: { long v = input.readInt64(); ensureLocationIndicesIsMutable(); locationIndices_.addLong(v); break; } // case 120 case 122: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureLocationIndicesIsMutable(); while (input.getBytesUntilLimit() > 0) { locationIndices_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 122 case 130: { 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 130 case 138: { opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit m = input.readMessage( opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.parser(), extensionRegistry); if (attributeUnitsBuilder_ == null) { ensureAttributeUnitsIsMutable(); attributeUnits_.add(m); } else { attributeUnitsBuilder_.addMessage(m); } break; } // case 138 case 146: { opentelemetry.proto.profiles.v1experimental.Pprofextended.Link m = input.readMessage( opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.parser(), extensionRegistry); if (linkTableBuilder_ == null) { ensureLinkTableIsMutable(); linkTable_.add(m); } else { linkTableBuilder_.addMessage(m); } break; } // case 146 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< opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType, opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.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.v1experimental.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.v1experimental.ValueType sample_type = 1; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.ValueType sample_type = 1; */ public Builder setSampleType( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.ValueType sample_type = 1; */ public Builder setSampleType( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.ValueType sample_type = 1; */ public Builder addSampleType(opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.ValueType sample_type = 1; */ public Builder addSampleType( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.ValueType sample_type = 1; */ public Builder addSampleType( opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.ValueType sample_type = 1; */ public Builder addSampleType( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.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.v1experimental.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.v1experimental.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.v1experimental.ValueType sample_type = 1; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.ValueType sample_type = 1; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.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.v1experimental.ValueType sample_type = 1; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.Builder addSampleTypeBuilder() { return getSampleTypeFieldBuilder().addBuilder( opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.ValueType sample_type = 1; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.Builder addSampleTypeBuilder( int index) { return getSampleTypeFieldBuilder().addBuilder( index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.ValueType sample_type = 1; */ public java.util.List getSampleTypeBuilderList() { return getSampleTypeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType, opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueTypeOrBuilder> getSampleTypeFieldBuilder() { if (sampleTypeBuilder_ == null) { sampleTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType, opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.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< opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample, opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.SampleOrBuilder> sampleBuilder_; /** *
       * The set of samples recorded in this profile.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.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.v1experimental.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.v1experimental.Sample sample = 2; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.Sample sample = 2; */ public Builder setSample( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.Sample sample = 2; */ public Builder setSample( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.Sample sample = 2; */ public Builder addSample(opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.Sample sample = 2; */ public Builder addSample( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.Sample sample = 2; */ public Builder addSample( opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.Sample sample = 2; */ public Builder addSample( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.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.v1experimental.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.v1experimental.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.v1experimental.Sample sample = 2; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.Builder getSampleBuilder( int index) { return getSampleFieldBuilder().getBuilder(index); } /** *
       * The set of samples recorded in this profile.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Sample sample = 2; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.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.v1experimental.Sample sample = 2; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.Builder addSampleBuilder() { return getSampleFieldBuilder().addBuilder( opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.getDefaultInstance()); } /** *
       * The set of samples recorded in this profile.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Sample sample = 2; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.Builder addSampleBuilder( int index) { return getSampleFieldBuilder().addBuilder( index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.getDefaultInstance()); } /** *
       * The set of samples recorded in this profile.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Sample sample = 2; */ public java.util.List getSampleBuilderList() { return getSampleFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample, opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.SampleOrBuilder> getSampleFieldBuilder() { if (sampleBuilder_ == null) { sampleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample, opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.SampleOrBuilder>( sample_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); sample_ = null; } return sampleBuilder_; } private java.util.List mapping_ = java.util.Collections.emptyList(); private void ensureMappingIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { mapping_ = new java.util.ArrayList(mapping_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping, opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.MappingOrBuilder> mappingBuilder_; /** *
       * Mapping from address ranges to the image/binary/library mapped
       * into that address range.  mapping[0] will be the main binary.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public java.util.List getMappingList() { if (mappingBuilder_ == null) { return java.util.Collections.unmodifiableList(mapping_); } else { return mappingBuilder_.getMessageList(); } } /** *
       * Mapping from address ranges to the image/binary/library mapped
       * into that address range.  mapping[0] will be the main binary.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public int getMappingCount() { if (mappingBuilder_ == null) { return mapping_.size(); } else { return mappingBuilder_.getCount(); } } /** *
       * Mapping from address ranges to the image/binary/library mapped
       * into that address range.  mapping[0] will be the main binary.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping getMapping(int index) { if (mappingBuilder_ == null) { return mapping_.get(index); } else { return mappingBuilder_.getMessage(index); } } /** *
       * Mapping from address ranges to the image/binary/library mapped
       * into that address range.  mapping[0] will be the main binary.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public Builder setMapping( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping value) { if (mappingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMappingIsMutable(); mapping_.set(index, value); onChanged(); } else { mappingBuilder_.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.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public Builder setMapping( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping.Builder builderForValue) { if (mappingBuilder_ == null) { ensureMappingIsMutable(); mapping_.set(index, builderForValue.build()); onChanged(); } else { mappingBuilder_.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.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public Builder addMapping(opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping value) { if (mappingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMappingIsMutable(); mapping_.add(value); onChanged(); } else { mappingBuilder_.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.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public Builder addMapping( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping value) { if (mappingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMappingIsMutable(); mapping_.add(index, value); onChanged(); } else { mappingBuilder_.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.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public Builder addMapping( opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping.Builder builderForValue) { if (mappingBuilder_ == null) { ensureMappingIsMutable(); mapping_.add(builderForValue.build()); onChanged(); } else { mappingBuilder_.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.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public Builder addMapping( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping.Builder builderForValue) { if (mappingBuilder_ == null) { ensureMappingIsMutable(); mapping_.add(index, builderForValue.build()); onChanged(); } else { mappingBuilder_.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.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public Builder addAllMapping( java.lang.Iterable values) { if (mappingBuilder_ == null) { ensureMappingIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, mapping_); onChanged(); } else { mappingBuilder_.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.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public Builder clearMapping() { if (mappingBuilder_ == null) { mapping_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { mappingBuilder_.clear(); } return this; } /** *
       * Mapping from address ranges to the image/binary/library mapped
       * into that address range.  mapping[0] will be the main binary.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public Builder removeMapping(int index) { if (mappingBuilder_ == null) { ensureMappingIsMutable(); mapping_.remove(index); onChanged(); } else { mappingBuilder_.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.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping.Builder getMappingBuilder( int index) { return getMappingFieldBuilder().getBuilder(index); } /** *
       * Mapping from address ranges to the image/binary/library mapped
       * into that address range.  mapping[0] will be the main binary.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.MappingOrBuilder getMappingOrBuilder( int index) { if (mappingBuilder_ == null) { return mapping_.get(index); } else { return mappingBuilder_.getMessageOrBuilder(index); } } /** *
       * Mapping from address ranges to the image/binary/library mapped
       * into that address range.  mapping[0] will be the main binary.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public java.util.List getMappingOrBuilderList() { if (mappingBuilder_ != null) { return mappingBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(mapping_); } } /** *
       * Mapping from address ranges to the image/binary/library mapped
       * into that address range.  mapping[0] will be the main binary.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping.Builder addMappingBuilder() { return getMappingFieldBuilder().addBuilder( opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping.getDefaultInstance()); } /** *
       * Mapping from address ranges to the image/binary/library mapped
       * into that address range.  mapping[0] will be the main binary.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping.Builder addMappingBuilder( int index) { return getMappingFieldBuilder().addBuilder( index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping.getDefaultInstance()); } /** *
       * Mapping from address ranges to the image/binary/library mapped
       * into that address range.  mapping[0] will be the main binary.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Mapping mapping = 3; */ public java.util.List getMappingBuilderList() { return getMappingFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping, opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.MappingOrBuilder> getMappingFieldBuilder() { if (mappingBuilder_ == null) { mappingBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping, opentelemetry.proto.profiles.v1experimental.Pprofextended.Mapping.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.MappingOrBuilder>( mapping_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); mapping_ = null; } return mappingBuilder_; } private java.util.List location_ = java.util.Collections.emptyList(); private void ensureLocationIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { location_ = new java.util.ArrayList(location_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Location, opentelemetry.proto.profiles.v1experimental.Pprofextended.Location.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.LocationOrBuilder> locationBuilder_; /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public java.util.List getLocationList() { if (locationBuilder_ == null) { return java.util.Collections.unmodifiableList(location_); } else { return locationBuilder_.getMessageList(); } } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public int getLocationCount() { if (locationBuilder_ == null) { return location_.size(); } else { return locationBuilder_.getCount(); } } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Location getLocation(int index) { if (locationBuilder_ == null) { return location_.get(index); } else { return locationBuilder_.getMessage(index); } } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public Builder setLocation( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationIsMutable(); location_.set(index, value); onChanged(); } else { locationBuilder_.setMessage(index, value); } return this; } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public Builder setLocation( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Location.Builder builderForValue) { if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.set(index, builderForValue.build()); onChanged(); } else { locationBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public Builder addLocation(opentelemetry.proto.profiles.v1experimental.Pprofextended.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationIsMutable(); location_.add(value); onChanged(); } else { locationBuilder_.addMessage(value); } return this; } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public Builder addLocation( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationIsMutable(); location_.add(index, value); onChanged(); } else { locationBuilder_.addMessage(index, value); } return this; } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public Builder addLocation( opentelemetry.proto.profiles.v1experimental.Pprofextended.Location.Builder builderForValue) { if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.add(builderForValue.build()); onChanged(); } else { locationBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public Builder addLocation( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Location.Builder builderForValue) { if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.add(index, builderForValue.build()); onChanged(); } else { locationBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public Builder addAllLocation( java.lang.Iterable values) { if (locationBuilder_ == null) { ensureLocationIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, location_); onChanged(); } else { locationBuilder_.addAllMessages(values); } return this; } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { locationBuilder_.clear(); } return this; } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public Builder removeLocation(int index) { if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.remove(index); onChanged(); } else { locationBuilder_.remove(index); } return this; } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Location.Builder getLocationBuilder( int index) { return getLocationFieldBuilder().getBuilder(index); } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.LocationOrBuilder getLocationOrBuilder( int index) { if (locationBuilder_ == null) { return location_.get(index); } else { return locationBuilder_.getMessageOrBuilder(index); } } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public java.util.List getLocationOrBuilderList() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(location_); } } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Location.Builder addLocationBuilder() { return getLocationFieldBuilder().addBuilder( opentelemetry.proto.profiles.v1experimental.Pprofextended.Location.getDefaultInstance()); } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Location.Builder addLocationBuilder( int index) { return getLocationFieldBuilder().addBuilder( index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Location.getDefaultInstance()); } /** *
       * Locations referenced by samples via location_indices.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Location location = 4; */ public java.util.List getLocationBuilderList() { return getLocationFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Location, opentelemetry.proto.profiles.v1experimental.Pprofextended.Location.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Location, opentelemetry.proto.profiles.v1experimental.Pprofextended.Location.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.LocationOrBuilder>( location_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private com.google.protobuf.Internal.LongList locationIndices_ = emptyLongList(); private void ensureLocationIndicesIsMutable() { if (!locationIndices_.isModifiable()) { locationIndices_ = makeMutableCopy(locationIndices_); } bitField0_ |= 0x00000010; } /** *
       * Array of locations referenced by samples.
       * 
* * repeated int64 location_indices = 15; * @return A list containing the locationIndices. */ public java.util.List getLocationIndicesList() { locationIndices_.makeImmutable(); return locationIndices_; } /** *
       * Array of locations referenced by samples.
       * 
* * repeated int64 location_indices = 15; * @return The count of locationIndices. */ public int getLocationIndicesCount() { return locationIndices_.size(); } /** *
       * Array of locations referenced by samples.
       * 
* * repeated int64 location_indices = 15; * @param index The index of the element to return. * @return The locationIndices at the given index. */ public long getLocationIndices(int index) { return locationIndices_.getLong(index); } /** *
       * Array of locations referenced by samples.
       * 
* * repeated int64 location_indices = 15; * @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, long value) { ensureLocationIndicesIsMutable(); locationIndices_.setLong(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Array of locations referenced by samples.
       * 
* * repeated int64 location_indices = 15; * @param value The locationIndices to add. * @return This builder for chaining. */ public Builder addLocationIndices(long value) { ensureLocationIndicesIsMutable(); locationIndices_.addLong(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Array of locations referenced by samples.
       * 
* * repeated int64 location_indices = 15; * @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 int64 location_indices = 15; * @return This builder for chaining. */ public Builder clearLocationIndices() { locationIndices_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List function_ = java.util.Collections.emptyList(); private void ensureFunctionIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { function_ = new java.util.ArrayList(function_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Function, opentelemetry.proto.profiles.v1experimental.Pprofextended.Function.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.FunctionOrBuilder> functionBuilder_; /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public java.util.List getFunctionList() { if (functionBuilder_ == null) { return java.util.Collections.unmodifiableList(function_); } else { return functionBuilder_.getMessageList(); } } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public int getFunctionCount() { if (functionBuilder_ == null) { return function_.size(); } else { return functionBuilder_.getCount(); } } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Function getFunction(int index) { if (functionBuilder_ == null) { return function_.get(index); } else { return functionBuilder_.getMessage(index); } } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public Builder setFunction( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Function value) { if (functionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionIsMutable(); function_.set(index, value); onChanged(); } else { functionBuilder_.setMessage(index, value); } return this; } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public Builder setFunction( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Function.Builder builderForValue) { if (functionBuilder_ == null) { ensureFunctionIsMutable(); function_.set(index, builderForValue.build()); onChanged(); } else { functionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public Builder addFunction(opentelemetry.proto.profiles.v1experimental.Pprofextended.Function value) { if (functionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionIsMutable(); function_.add(value); onChanged(); } else { functionBuilder_.addMessage(value); } return this; } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public Builder addFunction( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Function value) { if (functionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionIsMutable(); function_.add(index, value); onChanged(); } else { functionBuilder_.addMessage(index, value); } return this; } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public Builder addFunction( opentelemetry.proto.profiles.v1experimental.Pprofextended.Function.Builder builderForValue) { if (functionBuilder_ == null) { ensureFunctionIsMutable(); function_.add(builderForValue.build()); onChanged(); } else { functionBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public Builder addFunction( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Function.Builder builderForValue) { if (functionBuilder_ == null) { ensureFunctionIsMutable(); function_.add(index, builderForValue.build()); onChanged(); } else { functionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public Builder addAllFunction( java.lang.Iterable values) { if (functionBuilder_ == null) { ensureFunctionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, function_); onChanged(); } else { functionBuilder_.addAllMessages(values); } return this; } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public Builder clearFunction() { if (functionBuilder_ == null) { function_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { functionBuilder_.clear(); } return this; } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public Builder removeFunction(int index) { if (functionBuilder_ == null) { ensureFunctionIsMutable(); function_.remove(index); onChanged(); } else { functionBuilder_.remove(index); } return this; } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Function.Builder getFunctionBuilder( int index) { return getFunctionFieldBuilder().getBuilder(index); } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.FunctionOrBuilder getFunctionOrBuilder( int index) { if (functionBuilder_ == null) { return function_.get(index); } else { return functionBuilder_.getMessageOrBuilder(index); } } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public java.util.List getFunctionOrBuilderList() { if (functionBuilder_ != null) { return functionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(function_); } } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Function.Builder addFunctionBuilder() { return getFunctionFieldBuilder().addBuilder( opentelemetry.proto.profiles.v1experimental.Pprofextended.Function.getDefaultInstance()); } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Function.Builder addFunctionBuilder( int index) { return getFunctionFieldBuilder().addBuilder( index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Function.getDefaultInstance()); } /** *
       * Functions referenced by locations.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Function function = 5; */ public java.util.List getFunctionBuilderList() { return getFunctionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Function, opentelemetry.proto.profiles.v1experimental.Pprofextended.Function.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.FunctionOrBuilder> getFunctionFieldBuilder() { if (functionBuilder_ == null) { functionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Function, opentelemetry.proto.profiles.v1experimental.Pprofextended.Function.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.FunctionOrBuilder>( function_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); function_ = null; } return functionBuilder_; } 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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 = 16; */ 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< opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit, opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnitOrBuilder> attributeUnitsBuilder_; /** *
       * Represents a mapping between Attribute Keys and Units.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ 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.v1experimental.AttributeUnit attribute_units = 17; */ 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.v1experimental.AttributeUnit attribute_units = 17; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.AttributeUnit attribute_units = 17; */ public Builder setAttributeUnits( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.AttributeUnit attribute_units = 17; */ public Builder setAttributeUnits( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.AttributeUnit attribute_units = 17; */ public Builder addAttributeUnits(opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.AttributeUnit attribute_units = 17; */ public Builder addAttributeUnits( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.AttributeUnit attribute_units = 17; */ public Builder addAttributeUnits( opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.AttributeUnit attribute_units = 17; */ public Builder addAttributeUnits( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.AttributeUnit attribute_units = 17; */ 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.v1experimental.AttributeUnit attribute_units = 17; */ 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.v1experimental.AttributeUnit attribute_units = 17; */ 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.v1experimental.AttributeUnit attribute_units = 17; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.Builder getAttributeUnitsBuilder( int index) { return getAttributeUnitsFieldBuilder().getBuilder(index); } /** *
       * Represents a mapping between Attribute Keys and Units.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.AttributeUnit attribute_units = 17; */ 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.v1experimental.AttributeUnit attribute_units = 17; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.Builder addAttributeUnitsBuilder() { return getAttributeUnitsFieldBuilder().addBuilder( opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.getDefaultInstance()); } /** *
       * Represents a mapping between Attribute Keys and Units.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.Builder addAttributeUnitsBuilder( int index) { return getAttributeUnitsFieldBuilder().addBuilder( index, opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.getDefaultInstance()); } /** *
       * Represents a mapping between Attribute Keys and Units.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.AttributeUnit attribute_units = 17; */ public java.util.List getAttributeUnitsBuilderList() { return getAttributeUnitsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit, opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnitOrBuilder> getAttributeUnitsFieldBuilder() { if (attributeUnitsBuilder_ == null) { attributeUnitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit, opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.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< opentelemetry.proto.profiles.v1experimental.Pprofextended.Link, opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.LinkOrBuilder> linkTableBuilder_; /** *
       * Lookup table for links.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ 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.v1experimental.Link link_table = 18; */ public int getLinkTableCount() { if (linkTableBuilder_ == null) { return linkTable_.size(); } else { return linkTableBuilder_.getCount(); } } /** *
       * Lookup table for links.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Link getLinkTable(int index) { if (linkTableBuilder_ == null) { return linkTable_.get(index); } else { return linkTableBuilder_.getMessage(index); } } /** *
       * Lookup table for links.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ public Builder setLinkTable( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.Link link_table = 18; */ public Builder setLinkTable( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.Link link_table = 18; */ public Builder addLinkTable(opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.Link link_table = 18; */ public Builder addLinkTable( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.Link link_table = 18; */ public Builder addLinkTable( opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.Link link_table = 18; */ public Builder addLinkTable( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.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.v1experimental.Link link_table = 18; */ 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.v1experimental.Link link_table = 18; */ 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.v1experimental.Link link_table = 18; */ 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.v1experimental.Link link_table = 18; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.Builder getLinkTableBuilder( int index) { return getLinkTableFieldBuilder().getBuilder(index); } /** *
       * Lookup table for links.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.LinkOrBuilder getLinkTableOrBuilder( int index) { if (linkTableBuilder_ == null) { return linkTable_.get(index); } else { return linkTableBuilder_.getMessageOrBuilder(index); } } /** *
       * Lookup table for links.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ 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.v1experimental.Link link_table = 18; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.Builder addLinkTableBuilder() { return getLinkTableFieldBuilder().addBuilder( opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.getDefaultInstance()); } /** *
       * Lookup table for links.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.Builder addLinkTableBuilder( int index) { return getLinkTableFieldBuilder().addBuilder( index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.getDefaultInstance()); } /** *
       * Lookup table for links.
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Link link_table = 18; */ public java.util.List getLinkTableBuilderList() { return getLinkTableFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Link, opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.LinkOrBuilder> getLinkTableFieldBuilder() { if (linkTableBuilder_ == null) { linkTableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Link, opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.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 = 6; * @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 = 6; * @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 = 6; * @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 = 6; * @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 = 6; * @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 = 6; * @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 = 6; * @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 = 6; * @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 = 6; * @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 dropFrames_ ; /** *
       * frames with Function.function_name fully matching the following
       * regexp will be dropped from the samples, along with their successors.
       * 
* * int64 drop_frames = 7; * @return The dropFrames. */ @java.lang.Override public long getDropFrames() { return dropFrames_; } /** *
       * frames with Function.function_name fully matching the following
       * regexp will be dropped from the samples, along with their successors.
       * 
* * int64 drop_frames = 7; * @param value The dropFrames to set. * @return This builder for chaining. */ public Builder setDropFrames(long value) { dropFrames_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
       * frames with Function.function_name fully matching the following
       * regexp will be dropped from the samples, along with their successors.
       * 
* * int64 drop_frames = 7; * @return This builder for chaining. */ public Builder clearDropFrames() { bitField0_ = (bitField0_ & ~0x00000400); dropFrames_ = 0L; onChanged(); return this; } private long keepFrames_ ; /** *
       * frames with Function.function_name fully matching the following
       * regexp will be kept, even if it matches drop_frames.
       * 
* * int64 keep_frames = 8; * @return The keepFrames. */ @java.lang.Override public long getKeepFrames() { return keepFrames_; } /** *
       * frames with Function.function_name fully matching the following
       * regexp will be kept, even if it matches drop_frames.
       * 
* * int64 keep_frames = 8; * @param value The keepFrames to set. * @return This builder for chaining. */ public Builder setKeepFrames(long value) { keepFrames_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
       * frames with Function.function_name fully matching the following
       * regexp will be kept, even if it matches drop_frames.
       * 
* * int64 keep_frames = 8; * @return This builder for chaining. */ public Builder clearKeepFrames() { bitField0_ = (bitField0_ & ~0x00000800); keepFrames_ = 0L; onChanged(); return this; } private long timeNanos_ ; /** *
       * Time of collection (UTC) represented as nanoseconds past the epoch.
       * 
* * int64 time_nanos = 9; * @return The timeNanos. */ @java.lang.Override public long getTimeNanos() { return timeNanos_; } /** *
       * Time of collection (UTC) represented as nanoseconds past the epoch.
       * 
* * int64 time_nanos = 9; * @param value The timeNanos to set. * @return This builder for chaining. */ public Builder setTimeNanos(long value) { timeNanos_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
       * Time of collection (UTC) represented as nanoseconds past the epoch.
       * 
* * int64 time_nanos = 9; * @return This builder for chaining. */ public Builder clearTimeNanos() { bitField0_ = (bitField0_ & ~0x00001000); timeNanos_ = 0L; onChanged(); return this; } private long durationNanos_ ; /** *
       * Duration of the profile, if a duration makes sense.
       * 
* * int64 duration_nanos = 10; * @return The durationNanos. */ @java.lang.Override public long getDurationNanos() { return durationNanos_; } /** *
       * Duration of the profile, if a duration makes sense.
       * 
* * int64 duration_nanos = 10; * @param value The durationNanos to set. * @return This builder for chaining. */ public Builder setDurationNanos(long value) { durationNanos_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
       * Duration of the profile, if a duration makes sense.
       * 
* * int64 duration_nanos = 10; * @return This builder for chaining. */ public Builder clearDurationNanos() { bitField0_ = (bitField0_ & ~0x00002000); durationNanos_ = 0L; onChanged(); return this; } private opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType periodType_; private com.google.protobuf.SingleFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType, opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueTypeOrBuilder> periodTypeBuilder_; /** *
       * The kind of events between sampled occurrences.
       * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; * @return Whether the periodType field is set. */ public boolean hasPeriodType() { return ((bitField0_ & 0x00004000) != 0); } /** *
       * The kind of events between sampled occurrences.
       * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; * @return The periodType. */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType getPeriodType() { if (periodTypeBuilder_ == null) { return periodType_ == null ? opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.getDefaultInstance() : periodType_; } else { return periodTypeBuilder_.getMessage(); } } /** *
       * The kind of events between sampled occurrences.
       * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; */ public Builder setPeriodType(opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType value) { if (periodTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } periodType_ = value; } else { periodTypeBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
       * The kind of events between sampled occurrences.
       * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; */ public Builder setPeriodType( opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.Builder builderForValue) { if (periodTypeBuilder_ == null) { periodType_ = builderForValue.build(); } else { periodTypeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); return this; } /** *
       * The kind of events between sampled occurrences.
       * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; */ public Builder mergePeriodType(opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType value) { if (periodTypeBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && periodType_ != null && periodType_ != opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.getDefaultInstance()) { getPeriodTypeBuilder().mergeFrom(value); } else { periodType_ = value; } } else { periodTypeBuilder_.mergeFrom(value); } if (periodType_ != null) { bitField0_ |= 0x00004000; onChanged(); } return this; } /** *
       * The kind of events between sampled occurrences.
       * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; */ public Builder clearPeriodType() { bitField0_ = (bitField0_ & ~0x00004000); 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.v1experimental.ValueType period_type = 11; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.Builder getPeriodTypeBuilder() { bitField0_ |= 0x00004000; onChanged(); return getPeriodTypeFieldBuilder().getBuilder(); } /** *
       * The kind of events between sampled occurrences.
       * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueTypeOrBuilder getPeriodTypeOrBuilder() { if (periodTypeBuilder_ != null) { return periodTypeBuilder_.getMessageOrBuilder(); } else { return periodType_ == null ? opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.getDefaultInstance() : periodType_; } } /** *
       * The kind of events between sampled occurrences.
       * e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
       * 
* * .opentelemetry.proto.profiles.v1experimental.ValueType period_type = 11; */ private com.google.protobuf.SingleFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType, opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueTypeOrBuilder> getPeriodTypeFieldBuilder() { if (periodTypeBuilder_ == null) { periodTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType, opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueTypeOrBuilder>( getPeriodType(), getParentForChildren(), isClean()); periodType_ = null; } return periodTypeBuilder_; } private long period_ ; /** *
       * The number of events between sampled occurrences.
       * 
* * int64 period = 12; * @return The period. */ @java.lang.Override public long getPeriod() { return period_; } /** *
       * The number of events between sampled occurrences.
       * 
* * int64 period = 12; * @param value The period to set. * @return This builder for chaining. */ public Builder setPeriod(long value) { period_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** *
       * The number of events between sampled occurrences.
       * 
* * int64 period = 12; * @return This builder for chaining. */ public Builder clearPeriod() { bitField0_ = (bitField0_ & ~0x00008000); period_ = 0L; onChanged(); return this; } private com.google.protobuf.Internal.LongList comment_ = emptyLongList(); private void ensureCommentIsMutable() { if (!comment_.isModifiable()) { comment_ = makeMutableCopy(comment_); } bitField0_ |= 0x00010000; } /** *
       * 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 int64 comment = 13; * @return A list containing the comment. */ public java.util.List getCommentList() { comment_.makeImmutable(); return comment_; } /** *
       * 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 int64 comment = 13; * @return The count of comment. */ public int getCommentCount() { return comment_.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 int64 comment = 13; * @param index The index of the element to return. * @return The comment at the given index. */ public long getComment(int index) { return comment_.getLong(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 int64 comment = 13; * @param index The index to set the value at. * @param value The comment to set. * @return This builder for chaining. */ public Builder setComment( int index, long value) { ensureCommentIsMutable(); comment_.setLong(index, value); bitField0_ |= 0x00010000; 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 int64 comment = 13; * @param value The comment to add. * @return This builder for chaining. */ public Builder addComment(long value) { ensureCommentIsMutable(); comment_.addLong(value); bitField0_ |= 0x00010000; 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 int64 comment = 13; * @param values The comment to add. * @return This builder for chaining. */ public Builder addAllComment( java.lang.Iterable values) { ensureCommentIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, comment_); bitField0_ |= 0x00010000; 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 int64 comment = 13; * @return This builder for chaining. */ public Builder clearComment() { comment_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } private long defaultSampleType_ ; /** *
       * Index into the string table of the type of the preferred sample
       * value. If unset, clients should default to the last sample value.
       * 
* * int64 default_sample_type = 14; * @return The defaultSampleType. */ @java.lang.Override public long getDefaultSampleType() { return defaultSampleType_; } /** *
       * Index into the string table of the type of the preferred sample
       * value. If unset, clients should default to the last sample value.
       * 
* * int64 default_sample_type = 14; * @param value The defaultSampleType to set. * @return This builder for chaining. */ public Builder setDefaultSampleType(long value) { defaultSampleType_ = value; bitField0_ |= 0x00020000; 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.
       * 
* * int64 default_sample_type = 14; * @return This builder for chaining. */ public Builder clearDefaultSampleType() { bitField0_ = (bitField0_ & ~0x00020000); defaultSampleType_ = 0L; 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.v1experimental.Profile) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.profiles.v1experimental.Profile) private static final opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile(); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttributeUnitOrBuilder extends // @@protoc_insertion_point(interface_extends:opentelemetry.proto.profiles.v1experimental.AttributeUnit) com.google.protobuf.MessageOrBuilder { /** *
     * Index into string table.
     * 
* * int64 attribute_key = 1; * @return The attributeKey. */ long getAttributeKey(); /** *
     * Index into string table.
     * 
* * int64 unit = 2; * @return The unit. */ long getUnit(); } /** *
   * Represents a mapping between Attribute Keys and Units.
   * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.AttributeUnit} */ public static final class AttributeUnit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opentelemetry.proto.profiles.v1experimental.AttributeUnit) AttributeUnitOrBuilder { private static final long serialVersionUID = 0L; // Use AttributeUnit.newBuilder() to construct. private AttributeUnit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttributeUnit() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AttributeUnit(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_AttributeUnit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_AttributeUnit_fieldAccessorTable .ensureFieldAccessorsInitialized( opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.class, opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.Builder.class); } public static final int ATTRIBUTE_KEY_FIELD_NUMBER = 1; private long attributeKey_ = 0L; /** *
     * Index into string table.
     * 
* * int64 attribute_key = 1; * @return The attributeKey. */ @java.lang.Override public long getAttributeKey() { return attributeKey_; } public static final int UNIT_FIELD_NUMBER = 2; private long unit_ = 0L; /** *
     * Index into string table.
     * 
* * int64 unit = 2; * @return The unit. */ @java.lang.Override public long getUnit() { return unit_; } 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 { if (attributeKey_ != 0L) { output.writeInt64(1, attributeKey_); } if (unit_ != 0L) { output.writeInt64(2, unit_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (attributeKey_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, attributeKey_); } if (unit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, unit_); } 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit)) { return super.equals(obj); } opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit other = (opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit) obj; if (getAttributeKey() != other.getAttributeKey()) return false; if (getUnit() != other.getUnit()) 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(); hash = (37 * hash) + ATTRIBUTE_KEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAttributeKey()); hash = (37 * hash) + UNIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUnit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit 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(opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit 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 mapping between Attribute Keys and Units.
     * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.AttributeUnit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.profiles.v1experimental.AttributeUnit) opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_AttributeUnit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_AttributeUnit_fieldAccessorTable .ensureFieldAccessorsInitialized( opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.class, opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.Builder.class); } // Construct using opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; attributeKey_ = 0L; unit_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_AttributeUnit_descriptor; } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit getDefaultInstanceForType() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.getDefaultInstance(); } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit build() { opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit buildPartial() { opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit result = new opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.attributeKey_ = attributeKey_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.unit_ = unit_; } } @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 opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit) { return mergeFrom((opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit other) { if (other == opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit.getDefaultInstance()) return this; if (other.getAttributeKey() != 0L) { setAttributeKey(other.getAttributeKey()); } if (other.getUnit() != 0L) { setUnit(other.getUnit()); } 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 8: { attributeKey_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { unit_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 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 long attributeKey_ ; /** *
       * Index into string table.
       * 
* * int64 attribute_key = 1; * @return The attributeKey. */ @java.lang.Override public long getAttributeKey() { return attributeKey_; } /** *
       * Index into string table.
       * 
* * int64 attribute_key = 1; * @param value The attributeKey to set. * @return This builder for chaining. */ public Builder setAttributeKey(long value) { attributeKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Index into string table.
       * 
* * int64 attribute_key = 1; * @return This builder for chaining. */ public Builder clearAttributeKey() { bitField0_ = (bitField0_ & ~0x00000001); attributeKey_ = 0L; onChanged(); return this; } private long unit_ ; /** *
       * Index into string table.
       * 
* * int64 unit = 2; * @return The unit. */ @java.lang.Override public long getUnit() { return unit_; } /** *
       * Index into string table.
       * 
* * int64 unit = 2; * @param value The unit to set. * @return This builder for chaining. */ public Builder setUnit(long value) { unit_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Index into string table.
       * 
* * int64 unit = 2; * @return This builder for chaining. */ public Builder clearUnit() { bitField0_ = (bitField0_ & ~0x00000002); unit_ = 0L; 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.v1experimental.AttributeUnit) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.profiles.v1experimental.AttributeUnit) private static final opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit(); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AttributeUnit 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.AttributeUnit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LinkOrBuilder extends // @@protoc_insertion_point(interface_extends:opentelemetry.proto.profiles.v1experimental.Link) com.google.protobuf.MessageOrBuilder { /** *
     * A unique identifier of a trace that this linked span is part of. The ID is a
     * 16-byte array.
     * 
* * bytes trace_id = 1; * @return The traceId. */ com.google.protobuf.ByteString getTraceId(); /** *
     * A unique identifier for the linked span. The ID is an 8-byte array.
     * 
* * bytes span_id = 2; * @return The spanId. */ com.google.protobuf.ByteString getSpanId(); } /** *
   * A pointer from a profile Sample to a trace Span.
   * Connects a profile sample to a trace span, identified by unique trace and span IDs.
   * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.Link} */ public static final class Link extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opentelemetry.proto.profiles.v1experimental.Link) LinkOrBuilder { private static final long serialVersionUID = 0L; // Use Link.newBuilder() to construct. private Link(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Link() { traceId_ = com.google.protobuf.ByteString.EMPTY; spanId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Link(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Link_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Link_fieldAccessorTable .ensureFieldAccessorsInitialized( opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.class, opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.Builder.class); } public static final int TRACE_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString traceId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * A unique identifier of a trace that this linked span is part of. The ID is a
     * 16-byte array.
     * 
* * bytes trace_id = 1; * @return The traceId. */ @java.lang.Override public com.google.protobuf.ByteString getTraceId() { return traceId_; } public static final int SPAN_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString spanId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * A unique identifier for the linked span. The ID is an 8-byte array.
     * 
* * bytes span_id = 2; * @return The spanId. */ @java.lang.Override public com.google.protobuf.ByteString getSpanId() { return spanId_; } 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 { if (!traceId_.isEmpty()) { output.writeBytes(1, traceId_); } if (!spanId_.isEmpty()) { output.writeBytes(2, spanId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!traceId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, traceId_); } if (!spanId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, spanId_); } 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Link)) { return super.equals(obj); } opentelemetry.proto.profiles.v1experimental.Pprofextended.Link other = (opentelemetry.proto.profiles.v1experimental.Pprofextended.Link) obj; if (!getTraceId() .equals(other.getTraceId())) return false; if (!getSpanId() .equals(other.getSpanId())) 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(); hash = (37 * hash) + TRACE_ID_FIELD_NUMBER; hash = (53 * hash) + getTraceId().hashCode(); hash = (37 * hash) + SPAN_ID_FIELD_NUMBER; hash = (53 * hash) + getSpanId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Link parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Link parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Link parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Link parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Link parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Link parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Link parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Link 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Link parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Link 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Link parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Link 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(opentelemetry.proto.profiles.v1experimental.Pprofextended.Link 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; } /** *
     * A pointer from a profile Sample to a trace Span.
     * Connects a profile sample to a trace span, identified by unique trace and span IDs.
     * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.Link} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.profiles.v1experimental.Link) opentelemetry.proto.profiles.v1experimental.Pprofextended.LinkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Link_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Link_fieldAccessorTable .ensureFieldAccessorsInitialized( opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.class, opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.Builder.class); } // Construct using opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; traceId_ = com.google.protobuf.ByteString.EMPTY; spanId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Link_descriptor; } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Link getDefaultInstanceForType() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.getDefaultInstance(); } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Link build() { opentelemetry.proto.profiles.v1experimental.Pprofextended.Link result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Link buildPartial() { opentelemetry.proto.profiles.v1experimental.Pprofextended.Link result = new opentelemetry.proto.profiles.v1experimental.Pprofextended.Link(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(opentelemetry.proto.profiles.v1experimental.Pprofextended.Link result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.traceId_ = traceId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.spanId_ = spanId_; } } @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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Link) { return mergeFrom((opentelemetry.proto.profiles.v1experimental.Pprofextended.Link)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(opentelemetry.proto.profiles.v1experimental.Pprofextended.Link other) { if (other == opentelemetry.proto.profiles.v1experimental.Pprofextended.Link.getDefaultInstance()) return this; if (other.getTraceId() != com.google.protobuf.ByteString.EMPTY) { setTraceId(other.getTraceId()); } if (other.getSpanId() != com.google.protobuf.ByteString.EMPTY) { setSpanId(other.getSpanId()); } 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: { traceId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { spanId_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 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 com.google.protobuf.ByteString traceId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * A unique identifier of a trace that this linked span is part of. The ID is a
       * 16-byte array.
       * 
* * bytes trace_id = 1; * @return The traceId. */ @java.lang.Override public com.google.protobuf.ByteString getTraceId() { return traceId_; } /** *
       * A unique identifier of a trace that this linked span is part of. The ID is a
       * 16-byte array.
       * 
* * bytes trace_id = 1; * @param value The traceId to set. * @return This builder for chaining. */ public Builder setTraceId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } traceId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * A unique identifier of a trace that this linked span is part of. The ID is a
       * 16-byte array.
       * 
* * bytes trace_id = 1; * @return This builder for chaining. */ public Builder clearTraceId() { bitField0_ = (bitField0_ & ~0x00000001); traceId_ = getDefaultInstance().getTraceId(); onChanged(); return this; } private com.google.protobuf.ByteString spanId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * A unique identifier for the linked span. The ID is an 8-byte array.
       * 
* * bytes span_id = 2; * @return The spanId. */ @java.lang.Override public com.google.protobuf.ByteString getSpanId() { return spanId_; } /** *
       * A unique identifier for the linked span. The ID is an 8-byte array.
       * 
* * bytes span_id = 2; * @param value The spanId to set. * @return This builder for chaining. */ public Builder setSpanId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } spanId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * A unique identifier for the linked span. The ID is an 8-byte array.
       * 
* * bytes span_id = 2; * @return This builder for chaining. */ public Builder clearSpanId() { bitField0_ = (bitField0_ & ~0x00000002); spanId_ = getDefaultInstance().getSpanId(); 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.v1experimental.Link) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.profiles.v1experimental.Link) private static final opentelemetry.proto.profiles.v1experimental.Pprofextended.Link DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new opentelemetry.proto.profiles.v1experimental.Pprofextended.Link(); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Link getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Link 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Link getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValueTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:opentelemetry.proto.profiles.v1experimental.ValueType) com.google.protobuf.MessageOrBuilder { /** *
     * Index into string table.
     * 
* * int64 type = 1; * @return The type. */ long getType(); /** *
     * Index into string table.
     * 
* * int64 unit = 2; * @return The unit. */ long getUnit(); /** * .opentelemetry.proto.profiles.v1experimental.AggregationTemporality aggregation_temporality = 3; * @return The enum numeric value on the wire for aggregationTemporality. */ int getAggregationTemporalityValue(); /** * .opentelemetry.proto.profiles.v1experimental.AggregationTemporality aggregation_temporality = 3; * @return The aggregationTemporality. */ opentelemetry.proto.profiles.v1experimental.Pprofextended.AggregationTemporality getAggregationTemporality(); } /** *
   * ValueType describes the type and units of a value, with an optional aggregation temporality.
   * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.ValueType} */ public static final class ValueType extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opentelemetry.proto.profiles.v1experimental.ValueType) ValueTypeOrBuilder { private static final long serialVersionUID = 0L; // Use ValueType.newBuilder() to construct. private ValueType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ValueType() { aggregationTemporality_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ValueType(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_ValueType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_ValueType_fieldAccessorTable .ensureFieldAccessorsInitialized( opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.class, opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private long type_ = 0L; /** *
     * Index into string table.
     * 
* * int64 type = 1; * @return The type. */ @java.lang.Override public long getType() { return type_; } public static final int UNIT_FIELD_NUMBER = 2; private long unit_ = 0L; /** *
     * Index into string table.
     * 
* * int64 unit = 2; * @return The unit. */ @java.lang.Override public long getUnit() { return unit_; } public static final int AGGREGATION_TEMPORALITY_FIELD_NUMBER = 3; private int aggregationTemporality_ = 0; /** * .opentelemetry.proto.profiles.v1experimental.AggregationTemporality aggregation_temporality = 3; * @return The enum numeric value on the wire for aggregationTemporality. */ @java.lang.Override public int getAggregationTemporalityValue() { return aggregationTemporality_; } /** * .opentelemetry.proto.profiles.v1experimental.AggregationTemporality aggregation_temporality = 3; * @return The aggregationTemporality. */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.AggregationTemporality getAggregationTemporality() { opentelemetry.proto.profiles.v1experimental.Pprofextended.AggregationTemporality result = opentelemetry.proto.profiles.v1experimental.Pprofextended.AggregationTemporality.forNumber(aggregationTemporality_); return result == null ? opentelemetry.proto.profiles.v1experimental.Pprofextended.AggregationTemporality.UNRECOGNIZED : result; } 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 { if (type_ != 0L) { output.writeInt64(1, type_); } if (unit_ != 0L) { output.writeInt64(2, unit_); } if (aggregationTemporality_ != opentelemetry.proto.profiles.v1experimental.Pprofextended.AggregationTemporality.AGGREGATION_TEMPORALITY_UNSPECIFIED.getNumber()) { output.writeEnum(3, aggregationTemporality_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, type_); } if (unit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, unit_); } if (aggregationTemporality_ != opentelemetry.proto.profiles.v1experimental.Pprofextended.AggregationTemporality.AGGREGATION_TEMPORALITY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, aggregationTemporality_); } 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType)) { return super.equals(obj); } opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType other = (opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType) obj; if (getType() != other.getType()) return false; if (getUnit() != other.getUnit()) return false; if (aggregationTemporality_ != other.aggregationTemporality_) 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(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getType()); hash = (37 * hash) + UNIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUnit()); hash = (37 * hash) + AGGREGATION_TEMPORALITY_FIELD_NUMBER; hash = (53 * hash) + aggregationTemporality_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType 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(opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType 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; } /** *
     * ValueType describes the type and units of a value, with an optional aggregation temporality.
     * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.ValueType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.profiles.v1experimental.ValueType) opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_ValueType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_ValueType_fieldAccessorTable .ensureFieldAccessorsInitialized( opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.class, opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.Builder.class); } // Construct using opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0L; unit_ = 0L; aggregationTemporality_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_ValueType_descriptor; } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType getDefaultInstanceForType() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.getDefaultInstance(); } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType build() { opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType buildPartial() { opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType result = new opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.unit_ = unit_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.aggregationTemporality_ = aggregationTemporality_; } } @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 opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType) { return mergeFrom((opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType other) { if (other == opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType.getDefaultInstance()) return this; if (other.getType() != 0L) { setType(other.getType()); } if (other.getUnit() != 0L) { setUnit(other.getUnit()); } if (other.aggregationTemporality_ != 0) { setAggregationTemporalityValue(other.getAggregationTemporalityValue()); } 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 8: { type_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { unit_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { aggregationTemporality_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 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 long type_ ; /** *
       * Index into string table.
       * 
* * int64 type = 1; * @return The type. */ @java.lang.Override public long getType() { return type_; } /** *
       * Index into string table.
       * 
* * int64 type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(long value) { type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Index into string table.
       * 
* * int64 type = 1; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0L; onChanged(); return this; } private long unit_ ; /** *
       * Index into string table.
       * 
* * int64 unit = 2; * @return The unit. */ @java.lang.Override public long getUnit() { return unit_; } /** *
       * Index into string table.
       * 
* * int64 unit = 2; * @param value The unit to set. * @return This builder for chaining. */ public Builder setUnit(long value) { unit_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Index into string table.
       * 
* * int64 unit = 2; * @return This builder for chaining. */ public Builder clearUnit() { bitField0_ = (bitField0_ & ~0x00000002); unit_ = 0L; onChanged(); return this; } private int aggregationTemporality_ = 0; /** * .opentelemetry.proto.profiles.v1experimental.AggregationTemporality aggregation_temporality = 3; * @return The enum numeric value on the wire for aggregationTemporality. */ @java.lang.Override public int getAggregationTemporalityValue() { return aggregationTemporality_; } /** * .opentelemetry.proto.profiles.v1experimental.AggregationTemporality aggregation_temporality = 3; * @param value The enum numeric value on the wire for aggregationTemporality to set. * @return This builder for chaining. */ public Builder setAggregationTemporalityValue(int value) { aggregationTemporality_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * .opentelemetry.proto.profiles.v1experimental.AggregationTemporality aggregation_temporality = 3; * @return The aggregationTemporality. */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.AggregationTemporality getAggregationTemporality() { opentelemetry.proto.profiles.v1experimental.Pprofextended.AggregationTemporality result = opentelemetry.proto.profiles.v1experimental.Pprofextended.AggregationTemporality.forNumber(aggregationTemporality_); return result == null ? opentelemetry.proto.profiles.v1experimental.Pprofextended.AggregationTemporality.UNRECOGNIZED : result; } /** * .opentelemetry.proto.profiles.v1experimental.AggregationTemporality aggregation_temporality = 3; * @param value The aggregationTemporality to set. * @return This builder for chaining. */ public Builder setAggregationTemporality(opentelemetry.proto.profiles.v1experimental.Pprofextended.AggregationTemporality value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; aggregationTemporality_ = value.getNumber(); onChanged(); return this; } /** * .opentelemetry.proto.profiles.v1experimental.AggregationTemporality aggregation_temporality = 3; * @return This builder for chaining. */ public Builder clearAggregationTemporality() { bitField0_ = (bitField0_ & ~0x00000004); aggregationTemporality_ = 0; 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.v1experimental.ValueType) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.profiles.v1experimental.ValueType) private static final opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType(); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ValueType 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.ValueType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SampleOrBuilder extends // @@protoc_insertion_point(interface_extends:opentelemetry.proto.profiles.v1experimental.Sample) com.google.protobuf.MessageOrBuilder { /** *
     * The indices recorded here correspond to locations in Profile.location.
     * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
     * 
* * repeated uint64 location_index = 1; * @return A list containing the locationIndex. */ java.util.List getLocationIndexList(); /** *
     * The indices recorded here correspond to locations in Profile.location.
     * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
     * 
* * repeated uint64 location_index = 1; * @return The count of locationIndex. */ int getLocationIndexCount(); /** *
     * The indices recorded here correspond to locations in Profile.location.
     * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
     * 
* * repeated uint64 location_index = 1; * @param index The index of the element to return. * @return The locationIndex at the given index. */ long getLocationIndex(int index); /** *
     * locations_start_index along with locations_length refers to to a slice of locations in Profile.location.
     * Supersedes location_index.
     * 
* * uint64 locations_start_index = 7; * @return The locationsStartIndex. */ long getLocationsStartIndex(); /** *
     * locations_length along with locations_start_index refers to a slice of locations in Profile.location.
     * Supersedes location_index.
     * 
* * uint64 locations_length = 8; * @return The locationsLength. */ long getLocationsLength(); /** *
     * A 128bit id that uniquely identifies this stacktrace, globally. Index into string table. [optional]
     * 
* * uint32 stacktrace_id_index = 9; * @return The stacktraceIdIndex. */ int getStacktraceIdIndex(); /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 2; * @return A list containing the value. */ java.util.List getValueList(); /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 2; * @return The count of value. */ int getValueCount(); /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 2; * @param index The index of the element to return. * @return The value at the given index. */ long getValue(int index); /** *
     * label includes additional context for this sample. It can include
     * things like a thread id, allocation size, etc.
     *
     * NOTE: While possible, having multiple values for the same label key is
     * strongly discouraged and should never be used. Most tools (e.g. pprof) do
     * not have good (or any) support for multi-value labels. And an even more
     * discouraged case is having a string label and a numeric label of the same
     * name on a sample.  Again, possible to express, but should not be used.
     * [deprecated, superseded by attributes]
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ java.util.List getLabelList(); /** *
     * label includes additional context for this sample. It can include
     * things like a thread id, allocation size, etc.
     *
     * NOTE: While possible, having multiple values for the same label key is
     * strongly discouraged and should never be used. Most tools (e.g. pprof) do
     * not have good (or any) support for multi-value labels. And an even more
     * discouraged case is having a string label and a numeric label of the same
     * name on a sample.  Again, possible to express, but should not be used.
     * [deprecated, superseded by attributes]
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.Label getLabel(int index); /** *
     * label includes additional context for this sample. It can include
     * things like a thread id, allocation size, etc.
     *
     * NOTE: While possible, having multiple values for the same label key is
     * strongly discouraged and should never be used. Most tools (e.g. pprof) do
     * not have good (or any) support for multi-value labels. And an even more
     * discouraged case is having a string label and a numeric label of the same
     * name on a sample.  Again, possible to express, but should not be used.
     * [deprecated, superseded by attributes]
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ int getLabelCount(); /** *
     * label includes additional context for this sample. It can include
     * things like a thread id, allocation size, etc.
     *
     * NOTE: While possible, having multiple values for the same label key is
     * strongly discouraged and should never be used. Most tools (e.g. pprof) do
     * not have good (or any) support for multi-value labels. And an even more
     * discouraged case is having a string label and a numeric label of the same
     * name on a sample.  Again, possible to express, but should not be used.
     * [deprecated, superseded by attributes]
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ java.util.List getLabelOrBuilderList(); /** *
     * label includes additional context for this sample. It can include
     * things like a thread id, allocation size, etc.
     *
     * NOTE: While possible, having multiple values for the same label key is
     * strongly discouraged and should never be used. Most tools (e.g. pprof) do
     * not have good (or any) support for multi-value labels. And an even more
     * discouraged case is having a string label and a numeric label of the same
     * name on a sample.  Again, possible to express, but should not be used.
     * [deprecated, superseded by attributes]
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ opentelemetry.proto.profiles.v1experimental.Pprofextended.LabelOrBuilder getLabelOrBuilder( int index); /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated uint64 attributes = 10; * @return A list containing the attributes. */ java.util.List getAttributesList(); /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated uint64 attributes = 10; * @return The count of attributes. */ int getAttributesCount(); /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated uint64 attributes = 10; * @param index The index of the element to return. * @return The attributes at the given index. */ long getAttributes(int index); /** *
     * Reference to link in Profile.link_table. [optional]
     * 
* * uint64 link = 12; * @return The link. */ long getLink(); /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 13; * @return A list containing the timestampsUnixNano. */ java.util.List getTimestampsUnixNanoList(); /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 13; * @return The count of timestampsUnixNano. */ int getTimestampsUnixNanoCount(); /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 13; * @param index The index of the element to return. * @return The timestampsUnixNano at the given index. */ long getTimestampsUnixNano(int index); } /** *
   * Each Sample records values encountered in some program
   * context. The program context is typically a stack trace, perhaps
   * augmented with auxiliary information like the thread-id, some
   * indicator of a higher level request being handled etc.
   * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.Sample} */ public static final class Sample extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opentelemetry.proto.profiles.v1experimental.Sample) SampleOrBuilder { private static final long serialVersionUID = 0L; // Use Sample.newBuilder() to construct. private Sample(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Sample() { locationIndex_ = emptyLongList(); value_ = emptyLongList(); label_ = java.util.Collections.emptyList(); attributes_ = emptyLongList(); timestampsUnixNano_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Sample(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Sample_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Sample_fieldAccessorTable .ensureFieldAccessorsInitialized( opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.class, opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.Builder.class); } public static final int LOCATION_INDEX_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList locationIndex_ = emptyLongList(); /** *
     * The indices recorded here correspond to locations in Profile.location.
     * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
     * 
* * repeated uint64 location_index = 1; * @return A list containing the locationIndex. */ @java.lang.Override public java.util.List getLocationIndexList() { return locationIndex_; } /** *
     * The indices recorded here correspond to locations in Profile.location.
     * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
     * 
* * repeated uint64 location_index = 1; * @return The count of locationIndex. */ public int getLocationIndexCount() { return locationIndex_.size(); } /** *
     * The indices recorded here correspond to locations in Profile.location.
     * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
     * 
* * repeated uint64 location_index = 1; * @param index The index of the element to return. * @return The locationIndex at the given index. */ public long getLocationIndex(int index) { return locationIndex_.getLong(index); } private int locationIndexMemoizedSerializedSize = -1; public static final int LOCATIONS_START_INDEX_FIELD_NUMBER = 7; private long locationsStartIndex_ = 0L; /** *
     * locations_start_index along with locations_length refers to to a slice of locations in Profile.location.
     * Supersedes location_index.
     * 
* * uint64 locations_start_index = 7; * @return The locationsStartIndex. */ @java.lang.Override public long getLocationsStartIndex() { return locationsStartIndex_; } public static final int LOCATIONS_LENGTH_FIELD_NUMBER = 8; private long locationsLength_ = 0L; /** *
     * locations_length along with locations_start_index refers to a slice of locations in Profile.location.
     * Supersedes location_index.
     * 
* * uint64 locations_length = 8; * @return The locationsLength. */ @java.lang.Override public long getLocationsLength() { return locationsLength_; } public static final int STACKTRACE_ID_INDEX_FIELD_NUMBER = 9; private int stacktraceIdIndex_ = 0; /** *
     * A 128bit id that uniquely identifies this stacktrace, globally. Index into string table. [optional]
     * 
* * uint32 stacktrace_id_index = 9; * @return The stacktraceIdIndex. */ @java.lang.Override public int getStacktraceIdIndex() { return stacktraceIdIndex_; } public static final int VALUE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList value_ = emptyLongList(); /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 2; * @return A list containing the value. */ @java.lang.Override public java.util.List getValueList() { return value_; } /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 2; * @return The count of value. */ public int getValueCount() { return value_.size(); } /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 2; * @param index The index of the element to return. * @return The value at the given index. */ public long getValue(int index) { return value_.getLong(index); } private int valueMemoizedSerializedSize = -1; public static final int LABEL_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List label_; /** *
     * label includes additional context for this sample. It can include
     * things like a thread id, allocation size, etc.
     *
     * NOTE: While possible, having multiple values for the same label key is
     * strongly discouraged and should never be used. Most tools (e.g. pprof) do
     * not have good (or any) support for multi-value labels. And an even more
     * discouraged case is having a string label and a numeric label of the same
     * name on a sample.  Again, possible to express, but should not be used.
     * [deprecated, superseded by attributes]
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ @java.lang.Override public java.util.List getLabelList() { return label_; } /** *
     * label includes additional context for this sample. It can include
     * things like a thread id, allocation size, etc.
     *
     * NOTE: While possible, having multiple values for the same label key is
     * strongly discouraged and should never be used. Most tools (e.g. pprof) do
     * not have good (or any) support for multi-value labels. And an even more
     * discouraged case is having a string label and a numeric label of the same
     * name on a sample.  Again, possible to express, but should not be used.
     * [deprecated, superseded by attributes]
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ @java.lang.Override public java.util.List getLabelOrBuilderList() { return label_; } /** *
     * label includes additional context for this sample. It can include
     * things like a thread id, allocation size, etc.
     *
     * NOTE: While possible, having multiple values for the same label key is
     * strongly discouraged and should never be used. Most tools (e.g. pprof) do
     * not have good (or any) support for multi-value labels. And an even more
     * discouraged case is having a string label and a numeric label of the same
     * name on a sample.  Again, possible to express, but should not be used.
     * [deprecated, superseded by attributes]
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ @java.lang.Override public int getLabelCount() { return label_.size(); } /** *
     * label includes additional context for this sample. It can include
     * things like a thread id, allocation size, etc.
     *
     * NOTE: While possible, having multiple values for the same label key is
     * strongly discouraged and should never be used. Most tools (e.g. pprof) do
     * not have good (or any) support for multi-value labels. And an even more
     * discouraged case is having a string label and a numeric label of the same
     * name on a sample.  Again, possible to express, but should not be used.
     * [deprecated, superseded by attributes]
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Label getLabel(int index) { return label_.get(index); } /** *
     * label includes additional context for this sample. It can include
     * things like a thread id, allocation size, etc.
     *
     * NOTE: While possible, having multiple values for the same label key is
     * strongly discouraged and should never be used. Most tools (e.g. pprof) do
     * not have good (or any) support for multi-value labels. And an even more
     * discouraged case is having a string label and a numeric label of the same
     * name on a sample.  Again, possible to express, but should not be used.
     * [deprecated, superseded by attributes]
     * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.LabelOrBuilder getLabelOrBuilder( int index) { return label_.get(index); } public static final int ATTRIBUTES_FIELD_NUMBER = 10; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList attributes_ = emptyLongList(); /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated uint64 attributes = 10; * @return A list containing the attributes. */ @java.lang.Override public java.util.List getAttributesList() { return attributes_; } /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated uint64 attributes = 10; * @return The count of attributes. */ public int getAttributesCount() { return attributes_.size(); } /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated uint64 attributes = 10; * @param index The index of the element to return. * @return The attributes at the given index. */ public long getAttributes(int index) { return attributes_.getLong(index); } private int attributesMemoizedSerializedSize = -1; public static final int LINK_FIELD_NUMBER = 12; private long link_ = 0L; /** *
     * Reference to link in Profile.link_table. [optional]
     * 
* * uint64 link = 12; * @return The link. */ @java.lang.Override public long getLink() { return link_; } public static final int TIMESTAMPS_UNIX_NANO_FIELD_NUMBER = 13; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList timestampsUnixNano_ = emptyLongList(); /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 13; * @return A list containing the timestampsUnixNano. */ @java.lang.Override public java.util.List getTimestampsUnixNanoList() { return timestampsUnixNano_; } /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 13; * @return The count of timestampsUnixNano. */ public int getTimestampsUnixNanoCount() { return timestampsUnixNano_.size(); } /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 13; * @param index The index of the element to return. * @return The timestampsUnixNano at the given index. */ public long getTimestampsUnixNano(int index) { return timestampsUnixNano_.getLong(index); } private int timestampsUnixNanoMemoizedSerializedSize = -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(); if (getLocationIndexList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(locationIndexMemoizedSerializedSize); } for (int i = 0; i < locationIndex_.size(); i++) { output.writeUInt64NoTag(locationIndex_.getLong(i)); } if (getValueList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(valueMemoizedSerializedSize); } for (int i = 0; i < value_.size(); i++) { output.writeInt64NoTag(value_.getLong(i)); } for (int i = 0; i < label_.size(); i++) { output.writeMessage(3, label_.get(i)); } if (locationsStartIndex_ != 0L) { output.writeUInt64(7, locationsStartIndex_); } if (locationsLength_ != 0L) { output.writeUInt64(8, locationsLength_); } if (stacktraceIdIndex_ != 0) { output.writeUInt32(9, stacktraceIdIndex_); } if (getAttributesList().size() > 0) { output.writeUInt32NoTag(82); output.writeUInt32NoTag(attributesMemoizedSerializedSize); } for (int i = 0; i < attributes_.size(); i++) { output.writeUInt64NoTag(attributes_.getLong(i)); } if (link_ != 0L) { output.writeUInt64(12, link_); } if (getTimestampsUnixNanoList().size() > 0) { output.writeUInt32NoTag(106); output.writeUInt32NoTag(timestampsUnixNanoMemoizedSerializedSize); } for (int i = 0; i < timestampsUnixNano_.size(); i++) { output.writeUInt64NoTag(timestampsUnixNano_.getLong(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < locationIndex_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(locationIndex_.getLong(i)); } size += dataSize; if (!getLocationIndexList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } locationIndexMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(value_.getLong(i)); } size += dataSize; if (!getValueList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } valueMemoizedSerializedSize = dataSize; } for (int i = 0; i < label_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, label_.get(i)); } if (locationsStartIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, locationsStartIndex_); } if (locationsLength_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, locationsLength_); } if (stacktraceIdIndex_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, stacktraceIdIndex_); } { int dataSize = 0; for (int i = 0; i < attributes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(attributes_.getLong(i)); } size += dataSize; if (!getAttributesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } attributesMemoizedSerializedSize = dataSize; } if (link_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(12, link_); } { int dataSize = 0; for (int i = 0; i < timestampsUnixNano_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(timestampsUnixNano_.getLong(i)); } size += dataSize; if (!getTimestampsUnixNanoList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } timestampsUnixNanoMemoizedSerializedSize = 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample)) { return super.equals(obj); } opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample other = (opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample) obj; if (!getLocationIndexList() .equals(other.getLocationIndexList())) return false; if (getLocationsStartIndex() != other.getLocationsStartIndex()) return false; if (getLocationsLength() != other.getLocationsLength()) return false; if (getStacktraceIdIndex() != other.getStacktraceIdIndex()) return false; if (!getValueList() .equals(other.getValueList())) return false; if (!getLabelList() .equals(other.getLabelList())) return false; if (!getAttributesList() .equals(other.getAttributesList())) return false; if (getLink() != other.getLink()) return false; if (!getTimestampsUnixNanoList() .equals(other.getTimestampsUnixNanoList())) 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 (getLocationIndexCount() > 0) { hash = (37 * hash) + LOCATION_INDEX_FIELD_NUMBER; hash = (53 * hash) + getLocationIndexList().hashCode(); } hash = (37 * hash) + LOCATIONS_START_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLocationsStartIndex()); hash = (37 * hash) + LOCATIONS_LENGTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLocationsLength()); hash = (37 * hash) + STACKTRACE_ID_INDEX_FIELD_NUMBER; hash = (53 * hash) + getStacktraceIdIndex(); if (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } if (getLabelCount() > 0) { hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabelList().hashCode(); } if (getAttributesCount() > 0) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getAttributesList().hashCode(); } hash = (37 * hash) + LINK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLink()); if (getTimestampsUnixNanoCount() > 0) { hash = (37 * hash) + TIMESTAMPS_UNIX_NANO_FIELD_NUMBER; hash = (53 * hash) + getTimestampsUnixNanoList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample 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(opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample 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; } /** *
     * Each Sample records values encountered in some program
     * context. The program context is typically a stack trace, perhaps
     * augmented with auxiliary information like the thread-id, some
     * indicator of a higher level request being handled etc.
     * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.Sample} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.profiles.v1experimental.Sample) opentelemetry.proto.profiles.v1experimental.Pprofextended.SampleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Sample_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Sample_fieldAccessorTable .ensureFieldAccessorsInitialized( opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.class, opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.Builder.class); } // Construct using opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; locationIndex_ = emptyLongList(); locationsStartIndex_ = 0L; locationsLength_ = 0L; stacktraceIdIndex_ = 0; value_ = emptyLongList(); if (labelBuilder_ == null) { label_ = java.util.Collections.emptyList(); } else { label_ = null; labelBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); attributes_ = emptyLongList(); link_ = 0L; timestampsUnixNano_ = emptyLongList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Sample_descriptor; } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample getDefaultInstanceForType() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.getDefaultInstance(); } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample build() { opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample buildPartial() { opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample result = new opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample result) { if (labelBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { label_ = java.util.Collections.unmodifiableList(label_); bitField0_ = (bitField0_ & ~0x00000020); } result.label_ = label_; } else { result.label_ = labelBuilder_.build(); } } private void buildPartial0(opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { locationIndex_.makeImmutable(); result.locationIndex_ = locationIndex_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.locationsStartIndex_ = locationsStartIndex_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.locationsLength_ = locationsLength_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.stacktraceIdIndex_ = stacktraceIdIndex_; } if (((from_bitField0_ & 0x00000010) != 0)) { value_.makeImmutable(); result.value_ = value_; } if (((from_bitField0_ & 0x00000040) != 0)) { attributes_.makeImmutable(); result.attributes_ = attributes_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.link_ = link_; } if (((from_bitField0_ & 0x00000100) != 0)) { timestampsUnixNano_.makeImmutable(); result.timestampsUnixNano_ = timestampsUnixNano_; } } @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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample) { return mergeFrom((opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample other) { if (other == opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample.getDefaultInstance()) return this; if (!other.locationIndex_.isEmpty()) { if (locationIndex_.isEmpty()) { locationIndex_ = other.locationIndex_; locationIndex_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureLocationIndexIsMutable(); locationIndex_.addAll(other.locationIndex_); } onChanged(); } if (other.getLocationsStartIndex() != 0L) { setLocationsStartIndex(other.getLocationsStartIndex()); } if (other.getLocationsLength() != 0L) { setLocationsLength(other.getLocationsLength()); } if (other.getStacktraceIdIndex() != 0) { setStacktraceIdIndex(other.getStacktraceIdIndex()); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; value_.makeImmutable(); bitField0_ |= 0x00000010; } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } if (labelBuilder_ == null) { if (!other.label_.isEmpty()) { if (label_.isEmpty()) { label_ = other.label_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureLabelIsMutable(); label_.addAll(other.label_); } onChanged(); } } else { if (!other.label_.isEmpty()) { if (labelBuilder_.isEmpty()) { labelBuilder_.dispose(); labelBuilder_ = null; label_ = other.label_; bitField0_ = (bitField0_ & ~0x00000020); labelBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLabelFieldBuilder() : null; } else { labelBuilder_.addAllMessages(other.label_); } } } if (!other.attributes_.isEmpty()) { if (attributes_.isEmpty()) { attributes_ = other.attributes_; attributes_.makeImmutable(); bitField0_ |= 0x00000040; } else { ensureAttributesIsMutable(); attributes_.addAll(other.attributes_); } onChanged(); } if (other.getLink() != 0L) { setLink(other.getLink()); } if (!other.timestampsUnixNano_.isEmpty()) { if (timestampsUnixNano_.isEmpty()) { timestampsUnixNano_ = other.timestampsUnixNano_; timestampsUnixNano_.makeImmutable(); bitField0_ |= 0x00000100; } else { ensureTimestampsUnixNanoIsMutable(); timestampsUnixNano_.addAll(other.timestampsUnixNano_); } 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 8: { long v = input.readUInt64(); ensureLocationIndexIsMutable(); locationIndex_.addLong(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureLocationIndexIsMutable(); while (input.getBytesUntilLimit() > 0) { locationIndex_.addLong(input.readUInt64()); } input.popLimit(limit); break; } // case 10 case 16: { long v = input.readInt64(); ensureValueIsMutable(); value_.addLong(v); break; } // case 16 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureValueIsMutable(); while (input.getBytesUntilLimit() > 0) { value_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 18 case 26: { opentelemetry.proto.profiles.v1experimental.Pprofextended.Label m = input.readMessage( opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.parser(), extensionRegistry); if (labelBuilder_ == null) { ensureLabelIsMutable(); label_.add(m); } else { labelBuilder_.addMessage(m); } break; } // case 26 case 56: { locationsStartIndex_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 56 case 64: { locationsLength_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 64 case 72: { stacktraceIdIndex_ = input.readUInt32(); bitField0_ |= 0x00000008; break; } // case 72 case 80: { long v = input.readUInt64(); ensureAttributesIsMutable(); attributes_.addLong(v); break; } // case 80 case 82: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureAttributesIsMutable(); while (input.getBytesUntilLimit() > 0) { attributes_.addLong(input.readUInt64()); } input.popLimit(limit); break; } // case 82 case 96: { link_ = input.readUInt64(); bitField0_ |= 0x00000080; break; } // case 96 case 104: { long v = input.readUInt64(); ensureTimestampsUnixNanoIsMutable(); timestampsUnixNano_.addLong(v); break; } // case 104 case 106: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureTimestampsUnixNanoIsMutable(); while (input.getBytesUntilLimit() > 0) { timestampsUnixNano_.addLong(input.readUInt64()); } input.popLimit(limit); break; } // case 106 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 com.google.protobuf.Internal.LongList locationIndex_ = emptyLongList(); private void ensureLocationIndexIsMutable() { if (!locationIndex_.isModifiable()) { locationIndex_ = makeMutableCopy(locationIndex_); } bitField0_ |= 0x00000001; } /** *
       * The indices recorded here correspond to locations in Profile.location.
       * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
       * 
* * repeated uint64 location_index = 1; * @return A list containing the locationIndex. */ public java.util.List getLocationIndexList() { locationIndex_.makeImmutable(); return locationIndex_; } /** *
       * The indices recorded here correspond to locations in Profile.location.
       * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
       * 
* * repeated uint64 location_index = 1; * @return The count of locationIndex. */ public int getLocationIndexCount() { return locationIndex_.size(); } /** *
       * The indices recorded here correspond to locations in Profile.location.
       * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
       * 
* * repeated uint64 location_index = 1; * @param index The index of the element to return. * @return The locationIndex at the given index. */ public long getLocationIndex(int index) { return locationIndex_.getLong(index); } /** *
       * The indices recorded here correspond to locations in Profile.location.
       * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
       * 
* * repeated uint64 location_index = 1; * @param index The index to set the value at. * @param value The locationIndex to set. * @return This builder for chaining. */ public Builder setLocationIndex( int index, long value) { ensureLocationIndexIsMutable(); locationIndex_.setLong(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The indices recorded here correspond to locations in Profile.location.
       * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
       * 
* * repeated uint64 location_index = 1; * @param value The locationIndex to add. * @return This builder for chaining. */ public Builder addLocationIndex(long value) { ensureLocationIndexIsMutable(); locationIndex_.addLong(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The indices recorded here correspond to locations in Profile.location.
       * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
       * 
* * repeated uint64 location_index = 1; * @param values The locationIndex to add. * @return This builder for chaining. */ public Builder addAllLocationIndex( java.lang.Iterable values) { ensureLocationIndexIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, locationIndex_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The indices recorded here correspond to locations in Profile.location.
       * The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length]
       * 
* * repeated uint64 location_index = 1; * @return This builder for chaining. */ public Builder clearLocationIndex() { locationIndex_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private long locationsStartIndex_ ; /** *
       * locations_start_index along with locations_length refers to to a slice of locations in Profile.location.
       * Supersedes location_index.
       * 
* * uint64 locations_start_index = 7; * @return The locationsStartIndex. */ @java.lang.Override public long getLocationsStartIndex() { return locationsStartIndex_; } /** *
       * locations_start_index along with locations_length refers to to a slice of locations in Profile.location.
       * Supersedes location_index.
       * 
* * uint64 locations_start_index = 7; * @param value The locationsStartIndex to set. * @return This builder for chaining. */ public Builder setLocationsStartIndex(long value) { locationsStartIndex_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * locations_start_index along with locations_length refers to to a slice of locations in Profile.location.
       * Supersedes location_index.
       * 
* * uint64 locations_start_index = 7; * @return This builder for chaining. */ public Builder clearLocationsStartIndex() { bitField0_ = (bitField0_ & ~0x00000002); locationsStartIndex_ = 0L; onChanged(); return this; } private long locationsLength_ ; /** *
       * locations_length along with locations_start_index refers to a slice of locations in Profile.location.
       * Supersedes location_index.
       * 
* * uint64 locations_length = 8; * @return The locationsLength. */ @java.lang.Override public long getLocationsLength() { return locationsLength_; } /** *
       * locations_length along with locations_start_index refers to a slice of locations in Profile.location.
       * Supersedes location_index.
       * 
* * uint64 locations_length = 8; * @param value The locationsLength to set. * @return This builder for chaining. */ public Builder setLocationsLength(long value) { locationsLength_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * locations_length along with locations_start_index refers to a slice of locations in Profile.location.
       * Supersedes location_index.
       * 
* * uint64 locations_length = 8; * @return This builder for chaining. */ public Builder clearLocationsLength() { bitField0_ = (bitField0_ & ~0x00000004); locationsLength_ = 0L; onChanged(); return this; } private int stacktraceIdIndex_ ; /** *
       * A 128bit id that uniquely identifies this stacktrace, globally. Index into string table. [optional]
       * 
* * uint32 stacktrace_id_index = 9; * @return The stacktraceIdIndex. */ @java.lang.Override public int getStacktraceIdIndex() { return stacktraceIdIndex_; } /** *
       * A 128bit id that uniquely identifies this stacktrace, globally. Index into string table. [optional]
       * 
* * uint32 stacktrace_id_index = 9; * @param value The stacktraceIdIndex to set. * @return This builder for chaining. */ public Builder setStacktraceIdIndex(int value) { stacktraceIdIndex_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * A 128bit id that uniquely identifies this stacktrace, globally. Index into string table. [optional]
       * 
* * uint32 stacktrace_id_index = 9; * @return This builder for chaining. */ public Builder clearStacktraceIdIndex() { bitField0_ = (bitField0_ & ~0x00000008); stacktraceIdIndex_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.LongList value_ = emptyLongList(); private void ensureValueIsMutable() { if (!value_.isModifiable()) { value_ = makeMutableCopy(value_); } bitField0_ |= 0x00000010; } /** *
       * The type and unit of each value is defined by the corresponding
       * entry in Profile.sample_type. All samples must have the same
       * number of values, the same as the length of Profile.sample_type.
       * When aggregating multiple samples into a single sample, the
       * result has a list of values that is the element-wise sum of the
       * lists of the originals.
       * 
* * repeated int64 value = 2; * @return A list containing the value. */ public java.util.List getValueList() { value_.makeImmutable(); return value_; } /** *
       * The type and unit of each value is defined by the corresponding
       * entry in Profile.sample_type. All samples must have the same
       * number of values, the same as the length of Profile.sample_type.
       * When aggregating multiple samples into a single sample, the
       * result has a list of values that is the element-wise sum of the
       * lists of the originals.
       * 
* * repeated int64 value = 2; * @return The count of value. */ public int getValueCount() { return value_.size(); } /** *
       * The type and unit of each value is defined by the corresponding
       * entry in Profile.sample_type. All samples must have the same
       * number of values, the same as the length of Profile.sample_type.
       * When aggregating multiple samples into a single sample, the
       * result has a list of values that is the element-wise sum of the
       * lists of the originals.
       * 
* * repeated int64 value = 2; * @param index The index of the element to return. * @return The value at the given index. */ public long getValue(int index) { return value_.getLong(index); } /** *
       * The type and unit of each value is defined by the corresponding
       * entry in Profile.sample_type. All samples must have the same
       * number of values, the same as the length of Profile.sample_type.
       * When aggregating multiple samples into a single sample, the
       * result has a list of values that is the element-wise sum of the
       * lists of the originals.
       * 
* * repeated int64 value = 2; * @param index The index to set the value at. * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( int index, long value) { ensureValueIsMutable(); value_.setLong(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The type and unit of each value is defined by the corresponding
       * entry in Profile.sample_type. All samples must have the same
       * number of values, the same as the length of Profile.sample_type.
       * When aggregating multiple samples into a single sample, the
       * result has a list of values that is the element-wise sum of the
       * lists of the originals.
       * 
* * repeated int64 value = 2; * @param value The value to add. * @return This builder for chaining. */ public Builder addValue(long value) { ensureValueIsMutable(); value_.addLong(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The type and unit of each value is defined by the corresponding
       * entry in Profile.sample_type. All samples must have the same
       * number of values, the same as the length of Profile.sample_type.
       * When aggregating multiple samples into a single sample, the
       * result has a list of values that is the element-wise sum of the
       * lists of the originals.
       * 
* * repeated int64 value = 2; * @param values The value to add. * @return This builder for chaining. */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The type and unit of each value is defined by the corresponding
       * entry in Profile.sample_type. All samples must have the same
       * number of values, the same as the length of Profile.sample_type.
       * When aggregating multiple samples into a single sample, the
       * result has a list of values that is the element-wise sum of the
       * lists of the originals.
       * 
* * repeated int64 value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List label_ = java.util.Collections.emptyList(); private void ensureLabelIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { label_ = new java.util.ArrayList(label_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Label, opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.LabelOrBuilder> labelBuilder_; /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public java.util.List getLabelList() { if (labelBuilder_ == null) { return java.util.Collections.unmodifiableList(label_); } else { return labelBuilder_.getMessageList(); } } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public int getLabelCount() { if (labelBuilder_ == null) { return label_.size(); } else { return labelBuilder_.getCount(); } } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Label getLabel(int index) { if (labelBuilder_ == null) { return label_.get(index); } else { return labelBuilder_.getMessage(index); } } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public Builder setLabel( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Label value) { if (labelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelIsMutable(); label_.set(index, value); onChanged(); } else { labelBuilder_.setMessage(index, value); } return this; } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public Builder setLabel( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.Builder builderForValue) { if (labelBuilder_ == null) { ensureLabelIsMutable(); label_.set(index, builderForValue.build()); onChanged(); } else { labelBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public Builder addLabel(opentelemetry.proto.profiles.v1experimental.Pprofextended.Label value) { if (labelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelIsMutable(); label_.add(value); onChanged(); } else { labelBuilder_.addMessage(value); } return this; } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public Builder addLabel( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Label value) { if (labelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelIsMutable(); label_.add(index, value); onChanged(); } else { labelBuilder_.addMessage(index, value); } return this; } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public Builder addLabel( opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.Builder builderForValue) { if (labelBuilder_ == null) { ensureLabelIsMutable(); label_.add(builderForValue.build()); onChanged(); } else { labelBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public Builder addLabel( int index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.Builder builderForValue) { if (labelBuilder_ == null) { ensureLabelIsMutable(); label_.add(index, builderForValue.build()); onChanged(); } else { labelBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public Builder addAllLabel( java.lang.Iterable values) { if (labelBuilder_ == null) { ensureLabelIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, label_); onChanged(); } else { labelBuilder_.addAllMessages(values); } return this; } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public Builder clearLabel() { if (labelBuilder_ == null) { label_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { labelBuilder_.clear(); } return this; } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public Builder removeLabel(int index) { if (labelBuilder_ == null) { ensureLabelIsMutable(); label_.remove(index); onChanged(); } else { labelBuilder_.remove(index); } return this; } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.Builder getLabelBuilder( int index) { return getLabelFieldBuilder().getBuilder(index); } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.LabelOrBuilder getLabelOrBuilder( int index) { if (labelBuilder_ == null) { return label_.get(index); } else { return labelBuilder_.getMessageOrBuilder(index); } } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public java.util.List getLabelOrBuilderList() { if (labelBuilder_ != null) { return labelBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(label_); } } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.Builder addLabelBuilder() { return getLabelFieldBuilder().addBuilder( opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.getDefaultInstance()); } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.Builder addLabelBuilder( int index) { return getLabelFieldBuilder().addBuilder( index, opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.getDefaultInstance()); } /** *
       * label includes additional context for this sample. It can include
       * things like a thread id, allocation size, etc.
       *
       * NOTE: While possible, having multiple values for the same label key is
       * strongly discouraged and should never be used. Most tools (e.g. pprof) do
       * not have good (or any) support for multi-value labels. And an even more
       * discouraged case is having a string label and a numeric label of the same
       * name on a sample.  Again, possible to express, but should not be used.
       * [deprecated, superseded by attributes]
       * 
* * repeated .opentelemetry.proto.profiles.v1experimental.Label label = 3; */ public java.util.List getLabelBuilderList() { return getLabelFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Label, opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.LabelOrBuilder> getLabelFieldBuilder() { if (labelBuilder_ == null) { labelBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< opentelemetry.proto.profiles.v1experimental.Pprofextended.Label, opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.LabelOrBuilder>( label_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); label_ = null; } return labelBuilder_; } private com.google.protobuf.Internal.LongList attributes_ = emptyLongList(); private void ensureAttributesIsMutable() { if (!attributes_.isModifiable()) { attributes_ = makeMutableCopy(attributes_); } bitField0_ |= 0x00000040; } /** *
       * References to attributes in Profile.attribute_table. [optional]
       * 
* * repeated uint64 attributes = 10; * @return A list containing the attributes. */ public java.util.List getAttributesList() { attributes_.makeImmutable(); return attributes_; } /** *
       * References to attributes in Profile.attribute_table. [optional]
       * 
* * repeated uint64 attributes = 10; * @return The count of attributes. */ public int getAttributesCount() { return attributes_.size(); } /** *
       * References to attributes in Profile.attribute_table. [optional]
       * 
* * repeated uint64 attributes = 10; * @param index The index of the element to return. * @return The attributes at the given index. */ public long getAttributes(int index) { return attributes_.getLong(index); } /** *
       * References to attributes in Profile.attribute_table. [optional]
       * 
* * repeated uint64 attributes = 10; * @param index The index to set the value at. * @param value The attributes to set. * @return This builder for chaining. */ public Builder setAttributes( int index, long value) { ensureAttributesIsMutable(); attributes_.setLong(index, value); bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * References to attributes in Profile.attribute_table. [optional]
       * 
* * repeated uint64 attributes = 10; * @param value The attributes to add. * @return This builder for chaining. */ public Builder addAttributes(long value) { ensureAttributesIsMutable(); attributes_.addLong(value); bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * References to attributes in Profile.attribute_table. [optional]
       * 
* * repeated uint64 attributes = 10; * @param values The attributes to add. * @return This builder for chaining. */ public Builder addAllAttributes( java.lang.Iterable values) { ensureAttributesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributes_); bitField0_ |= 0x00000040; onChanged(); return this; } /** *
       * References to attributes in Profile.attribute_table. [optional]
       * 
* * repeated uint64 attributes = 10; * @return This builder for chaining. */ public Builder clearAttributes() { attributes_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private long link_ ; /** *
       * Reference to link in Profile.link_table. [optional]
       * 
* * uint64 link = 12; * @return The link. */ @java.lang.Override public long getLink() { return link_; } /** *
       * Reference to link in Profile.link_table. [optional]
       * 
* * uint64 link = 12; * @param value The link to set. * @return This builder for chaining. */ public Builder setLink(long value) { link_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
       * Reference to link in Profile.link_table. [optional]
       * 
* * uint64 link = 12; * @return This builder for chaining. */ public Builder clearLink() { bitField0_ = (bitField0_ & ~0x00000080); link_ = 0L; onChanged(); return this; } private com.google.protobuf.Internal.LongList timestampsUnixNano_ = emptyLongList(); private void ensureTimestampsUnixNanoIsMutable() { if (!timestampsUnixNano_.isModifiable()) { timestampsUnixNano_ = makeMutableCopy(timestampsUnixNano_); } bitField0_ |= 0x00000100; } /** *
       * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
       * to fall within the Profile's time range. [optional]
       * 
* * repeated uint64 timestamps_unix_nano = 13; * @return A list containing the timestampsUnixNano. */ public java.util.List getTimestampsUnixNanoList() { timestampsUnixNano_.makeImmutable(); return timestampsUnixNano_; } /** *
       * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
       * to fall within the Profile's time range. [optional]
       * 
* * repeated uint64 timestamps_unix_nano = 13; * @return The count of timestampsUnixNano. */ public int getTimestampsUnixNanoCount() { return timestampsUnixNano_.size(); } /** *
       * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
       * to fall within the Profile's time range. [optional]
       * 
* * repeated uint64 timestamps_unix_nano = 13; * @param index The index of the element to return. * @return The timestampsUnixNano at the given index. */ public long getTimestampsUnixNano(int index) { return timestampsUnixNano_.getLong(index); } /** *
       * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
       * to fall within the Profile's time range. [optional]
       * 
* * repeated uint64 timestamps_unix_nano = 13; * @param index The index to set the value at. * @param value The timestampsUnixNano to set. * @return This builder for chaining. */ public Builder setTimestampsUnixNano( int index, long value) { ensureTimestampsUnixNanoIsMutable(); timestampsUnixNano_.setLong(index, value); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
       * to fall within the Profile's time range. [optional]
       * 
* * repeated uint64 timestamps_unix_nano = 13; * @param value The timestampsUnixNano to add. * @return This builder for chaining. */ public Builder addTimestampsUnixNano(long value) { ensureTimestampsUnixNanoIsMutable(); timestampsUnixNano_.addLong(value); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
       * to fall within the Profile's time range. [optional]
       * 
* * repeated uint64 timestamps_unix_nano = 13; * @param values The timestampsUnixNano to add. * @return This builder for chaining. */ public Builder addAllTimestampsUnixNano( java.lang.Iterable values) { ensureTimestampsUnixNanoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, timestampsUnixNano_); bitField0_ |= 0x00000100; onChanged(); return this; } /** *
       * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
       * to fall within the Profile's time range. [optional]
       * 
* * repeated uint64 timestamps_unix_nano = 13; * @return This builder for chaining. */ public Builder clearTimestampsUnixNano() { timestampsUnixNano_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000100); 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.v1experimental.Sample) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.profiles.v1experimental.Sample) private static final opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample(); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Sample 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Sample getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LabelOrBuilder extends // @@protoc_insertion_point(interface_extends:opentelemetry.proto.profiles.v1experimental.Label) com.google.protobuf.MessageOrBuilder { /** *
     * Index into string table
     * 
* * int64 key = 1; * @return The key. */ long getKey(); /** *
     * At most one of the following must be present
     * 
* * int64 str = 2; * @return The str. */ long getStr(); /** * int64 num = 3; * @return The num. */ long getNum(); /** *
     * Should only be present when num is present.
     * Specifies the units of num.
     * Use arbitrary string (for example, "requests") as a custom count unit.
     * If no unit is specified, consumer may apply heuristic to deduce the unit.
     * Consumers may also  interpret units like "bytes" and "kilobytes" as memory
     * units and units like "seconds" and "nanoseconds" as time units,
     * and apply appropriate unit conversions to these.
     * 
* * int64 num_unit = 4; * @return The numUnit. */ long getNumUnit(); } /** *
   * Provides additional context for a sample,
   * such as thread ID or allocation size, with optional units. [deprecated]
   * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.Label} */ public static final class Label extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opentelemetry.proto.profiles.v1experimental.Label) LabelOrBuilder { private static final long serialVersionUID = 0L; // Use Label.newBuilder() to construct. private Label(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Label() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Label(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Label_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Label_fieldAccessorTable .ensureFieldAccessorsInitialized( opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.class, opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private long key_ = 0L; /** *
     * Index into string table
     * 
* * int64 key = 1; * @return The key. */ @java.lang.Override public long getKey() { return key_; } public static final int STR_FIELD_NUMBER = 2; private long str_ = 0L; /** *
     * At most one of the following must be present
     * 
* * int64 str = 2; * @return The str. */ @java.lang.Override public long getStr() { return str_; } public static final int NUM_FIELD_NUMBER = 3; private long num_ = 0L; /** * int64 num = 3; * @return The num. */ @java.lang.Override public long getNum() { return num_; } public static final int NUM_UNIT_FIELD_NUMBER = 4; private long numUnit_ = 0L; /** *
     * Should only be present when num is present.
     * Specifies the units of num.
     * Use arbitrary string (for example, "requests") as a custom count unit.
     * If no unit is specified, consumer may apply heuristic to deduce the unit.
     * Consumers may also  interpret units like "bytes" and "kilobytes" as memory
     * units and units like "seconds" and "nanoseconds" as time units,
     * and apply appropriate unit conversions to these.
     * 
* * int64 num_unit = 4; * @return The numUnit. */ @java.lang.Override public long getNumUnit() { return numUnit_; } 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 { if (key_ != 0L) { output.writeInt64(1, key_); } if (str_ != 0L) { output.writeInt64(2, str_); } if (num_ != 0L) { output.writeInt64(3, num_); } if (numUnit_ != 0L) { output.writeInt64(4, numUnit_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (key_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, key_); } if (str_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, str_); } if (num_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, num_); } if (numUnit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, numUnit_); } 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Label)) { return super.equals(obj); } opentelemetry.proto.profiles.v1experimental.Pprofextended.Label other = (opentelemetry.proto.profiles.v1experimental.Pprofextended.Label) obj; if (getKey() != other.getKey()) return false; if (getStr() != other.getStr()) return false; if (getNum() != other.getNum()) return false; if (getNumUnit() != other.getNumUnit()) 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(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getKey()); hash = (37 * hash) + STR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStr()); hash = (37 * hash) + NUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNum()); hash = (37 * hash) + NUM_UNIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumUnit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Label parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Label parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Label parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Label parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Label parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Label parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Label parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Label 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Label parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Label 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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Label parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Label 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(opentelemetry.proto.profiles.v1experimental.Pprofextended.Label 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; } /** *
     * Provides additional context for a sample,
     * such as thread ID or allocation size, with optional units. [deprecated]
     * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1experimental.Label} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.profiles.v1experimental.Label) opentelemetry.proto.profiles.v1experimental.Pprofextended.LabelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Label_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Label_fieldAccessorTable .ensureFieldAccessorsInitialized( opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.class, opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.Builder.class); } // Construct using opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; key_ = 0L; str_ = 0L; num_ = 0L; numUnit_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Label_descriptor; } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Label getDefaultInstanceForType() { return opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.getDefaultInstance(); } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Label build() { opentelemetry.proto.profiles.v1experimental.Pprofextended.Label result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public opentelemetry.proto.profiles.v1experimental.Pprofextended.Label buildPartial() { opentelemetry.proto.profiles.v1experimental.Pprofextended.Label result = new opentelemetry.proto.profiles.v1experimental.Pprofextended.Label(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(opentelemetry.proto.profiles.v1experimental.Pprofextended.Label result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.str_ = str_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.num_ = num_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.numUnit_ = numUnit_; } } @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 opentelemetry.proto.profiles.v1experimental.Pprofextended.Label) { return mergeFrom((opentelemetry.proto.profiles.v1experimental.Pprofextended.Label)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(opentelemetry.proto.profiles.v1experimental.Pprofextended.Label other) { if (other == opentelemetry.proto.profiles.v1experimental.Pprofextended.Label.getDefaultInstance()) return this; if (other.getKey() != 0L) { setKey(other.getKey()); } if (other.getStr() != 0L) { setStr(other.getStr()); } if (other.getNum() != 0L) { setNum(other.getNum()); } if (other.getNumUnit() != 0L) { setNumUnit(other.getNumUnit()); } 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 8: { key_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { str_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { num_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { numUnit_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 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 long key_ ; /** *
       * Index into string table
       * 
* * int64 key = 1; * @return The key. */ @java.lang.Override public long getKey() { return key_; } /** *
       * Index into string table
       * 
* * int64 key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey(long value) { key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Index into string table
       * 
* * int64 key = 1; * @return This builder for chaining. */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = 0L; onChanged(); return this; } private long str_ ; /** *
       * At most one of the following must be present
       * 
* * int64 str = 2; * @return The str. */ @java.lang.Override public long getStr() { return str_; } /** *
       * At most one of the following must be present
       * 
* * int64 str = 2; * @param value The str to set. * @return This builder for chaining. */ public Builder setStr(long value) { str_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * At most one of the following must be present
       * 
* * int64 str = 2; * @return This builder for chaining. */ public Builder clearStr() { bitField0_ = (bitField0_ & ~0x00000002); str_ = 0L; onChanged(); return this; } private long num_ ; /** * int64 num = 3; * @return The num. */ @java.lang.Override public long getNum() { return num_; } /** * int64 num = 3; * @param value The num to set. * @return This builder for chaining. */ public Builder setNum(long value) { num_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 num = 3; * @return This builder for chaining. */ public Builder clearNum() { bitField0_ = (bitField0_ & ~0x00000004); num_ = 0L; onChanged(); return this; } private long numUnit_ ; /** *
       * Should only be present when num is present.
       * Specifies the units of num.
       * Use arbitrary string (for example, "requests") as a custom count unit.
       * If no unit is specified, consumer may apply heuristic to deduce the unit.
       * Consumers may also  interpret units like "bytes" and "kilobytes" as memory
       * units and units like "seconds" and "nanoseconds" as time units,
       * and apply appropriate unit conversions to these.
       * 
* * int64 num_unit = 4; * @return The numUnit. */ @java.lang.Override public long getNumUnit() { return numUnit_; } /** *
       * Should only be present when num is present.
       * Specifies the units of num.
       * Use arbitrary string (for example, "requests") as a custom count unit.
       * If no unit is specified, consumer may apply heuristic to deduce the unit.
       * Consumers may also  interpret units like "bytes" and "kilobytes" as memory
       * units and units like "seconds" and "nanoseconds" as time units,
       * and apply appropriate unit conversions to these.
       * 
* * int64 num_unit = 4; * @param value The numUnit to set. * @return This builder for chaining. */ public Builder setNumUnit(long value) { numUnit_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Should only be present when num is present.
       * Specifies the units of num.
       * Use arbitrary string (for example, "requests") as a custom count unit.
       * If no unit is specified, consumer may apply heuristic to deduce the unit.
       * Consumers may also  interpret units like "bytes" and "kilobytes" as memory
       * units and units like "seconds" and "nanoseconds" as time units,
       * and apply appropriate unit conversions to these.
       * 
* * int64 num_unit = 4; * @return This builder for chaining. */ public Builder clearNumUnit() { bitField0_ = (bitField0_ & ~0x00000008); numUnit_ = 0L; 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.v1experimental.Label) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.profiles.v1experimental.Label) private static final opentelemetry.proto.profiles.v1experimental.Pprofextended.Label DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new opentelemetry.proto.profiles.v1experimental.Pprofextended.Label(); } public static opentelemetry.proto.profiles.v1experimental.Pprofextended.Label getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser




© 2015 - 2025 Weber Informatics LLC | Privacy Policy