Class Profile.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
io.opentelemetry.proto.profiles.v1development.Profile.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ProfileOrBuilder,Cloneable
- Enclosing class:
- Profile
public static final class Profile.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
implements ProfileOrBuilder
Represents a complete profile, including sample types, samples, mappings to binaries, stacks, locations, functions, string table, and additional metadata. It modifies and annotates pprof Profile with OpenTelemetry specific fields. Note that whilst fields in this message retain the name and field id from pprof in most cases for ease of understanding data migration, it is not intended that pprof:Profile and OpenTelemetry:Profile encoding be wire compatible.Protobuf type
opentelemetry.proto.profiles.v1development.Profile-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributeIndices(Iterable<? extends Integer> values) References to attributes in attribute_table.addAllSamples(Iterable<? extends Sample> values) The set of samples recorded in this profile.addAttributeIndices(int value) References to attributes in attribute_table.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSamples(int index, Sample value) The set of samples recorded in this profile.addSamples(int index, Sample.Builder builderForValue) The set of samples recorded in this profile.addSamples(Sample value) The set of samples recorded in this profile.addSamples(Sample.Builder builderForValue) The set of samples recorded in this profile.The set of samples recorded in this profile.addSamplesBuilder(int index) The set of samples recorded in this profile.build()clear()References to attributes in attribute_table.The number of attributes that were discarded.Duration of the profile, if a duration makes sense.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The original payload bytes.The original payload format.The number of events between sampled occurrences.The kind of events between sampled occurrences.A globally unique identifier for a profile.The set of samples recorded in this profile.The type and unit of all Sample.values in this profile.Time of collection (UTC) represented as nanoseconds past the epoch.clone()intgetAttributeIndices(int index) References to attributes in attribute_table.intReferences to attributes in attribute_table.References to attributes in attribute_table.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe number of attributes that were discarded.longDuration of the profile, if a duration makes sense.com.google.protobuf.ByteStringThe original payload bytes.The original payload format.com.google.protobuf.ByteStringThe original payload format.longThe number of events between sampled occurrences.The kind of events between sampled occurrences.The kind of events between sampled occurrences.The kind of events between sampled occurrences.com.google.protobuf.ByteStringA globally unique identifier for a profile.getSamples(int index) The set of samples recorded in this profile.getSamplesBuilder(int index) The set of samples recorded in this profile.The set of samples recorded in this profile.intThe set of samples recorded in this profile.The set of samples recorded in this profile.getSamplesOrBuilder(int index) The set of samples recorded in this profile.List<? extends SampleOrBuilder>The set of samples recorded in this profile.The type and unit of all Sample.values in this profile.The type and unit of all Sample.values in this profile.The type and unit of all Sample.values in this profile.longTime of collection (UTC) represented as nanoseconds past the epoch.booleanThe kind of events between sampled occurrences.booleanThe type and unit of all Sample.values in this profile.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePeriodType(ValueType value) The kind of events between sampled occurrences.mergeSampleType(ValueType value) The type and unit of all Sample.values in this profile.final Profile.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeSamples(int index) The set of samples recorded in this profile.setAttributeIndices(int index, int value) References to attributes in attribute_table.setDroppedAttributesCount(int value) The number of attributes that were discarded.setDurationNano(long value) Duration of the profile, if a duration makes sense.setOriginalPayload(com.google.protobuf.ByteString value) The original payload bytes.setOriginalPayloadFormat(String value) The original payload format.setOriginalPayloadFormatBytes(com.google.protobuf.ByteString value) The original payload format.setPeriod(long value) The number of events between sampled occurrences.setPeriodType(ValueType value) The kind of events between sampled occurrences.setPeriodType(ValueType.Builder builderForValue) The kind of events between sampled occurrences.setProfileId(com.google.protobuf.ByteString value) A globally unique identifier for a profile.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSamples(int index, Sample value) The set of samples recorded in this profile.setSamples(int index, Sample.Builder builderForValue) The set of samples recorded in this profile.setSampleType(ValueType value) The type and unit of all Sample.values in this profile.setSampleType(ValueType.Builder builderForValue) The type and unit of all Sample.values in this profile.setTimeUnixNano(long value) Time of collection (UTC) represented as nanoseconds past the epoch.final Profile.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
setField
public Profile.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
setRepeatedField
public Profile.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
addRepeatedField
public Profile.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Profile.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
mergeFrom
public Profile.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Profile.Builder>- Throws:
IOException
-
hasSampleType
public boolean hasSampleType()The type and unit of all Sample.values in this profile. For a cpu or off-cpu profile this might be: ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"] For a heap profile, this might be: ["allocated_objects","count"] or ["allocated_space","bytes"],
.opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;- Specified by:
hasSampleTypein interfaceProfileOrBuilder- Returns:
- Whether the sampleType field is set.
-
getSampleType
The type and unit of all Sample.values in this profile. For a cpu or off-cpu profile this might be: ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"] For a heap profile, this might be: ["allocated_objects","count"] or ["allocated_space","bytes"],
.opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;- Specified by:
getSampleTypein interfaceProfileOrBuilder- Returns:
- The sampleType.
-
setSampleType
The type and unit of all Sample.values in this profile. For a cpu or off-cpu profile this might be: ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"] For a heap profile, this might be: ["allocated_objects","count"] or ["allocated_space","bytes"],
.opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; -
setSampleType
The type and unit of all Sample.values in this profile. For a cpu or off-cpu profile this might be: ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"] For a heap profile, this might be: ["allocated_objects","count"] or ["allocated_space","bytes"],
.opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; -
mergeSampleType
The type and unit of all Sample.values in this profile. For a cpu or off-cpu profile this might be: ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"] For a heap profile, this might be: ["allocated_objects","count"] or ["allocated_space","bytes"],
.opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; -
clearSampleType
The type and unit of all Sample.values in this profile. For a cpu or off-cpu profile this might be: ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"] For a heap profile, this might be: ["allocated_objects","count"] or ["allocated_space","bytes"],
.opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; -
getSampleTypeBuilder
The type and unit of all Sample.values in this profile. For a cpu or off-cpu profile this might be: ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"] For a heap profile, this might be: ["allocated_objects","count"] or ["allocated_space","bytes"],
.opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; -
getSampleTypeOrBuilder
The type and unit of all Sample.values in this profile. For a cpu or off-cpu profile this might be: ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"] For a heap profile, this might be: ["allocated_objects","count"] or ["allocated_space","bytes"],
.opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;- Specified by:
getSampleTypeOrBuilderin interfaceProfileOrBuilder
-
getSamplesList
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;- Specified by:
getSamplesListin interfaceProfileOrBuilder
-
getSamplesCount
public int getSamplesCount()The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;- Specified by:
getSamplesCountin interfaceProfileOrBuilder
-
getSamples
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;- Specified by:
getSamplesin interfaceProfileOrBuilder
-
setSamples
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
setSamples
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
addSamples
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
addSamples
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
addSamples
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
addSamples
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
addAllSamples
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
clearSamples
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
removeSamples
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
getSamplesBuilder
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
getSamplesOrBuilder
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;- Specified by:
getSamplesOrBuilderin interfaceProfileOrBuilder
-
getSamplesOrBuilderList
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2;- Specified by:
getSamplesOrBuilderListin interfaceProfileOrBuilder
-
addSamplesBuilder
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
addSamplesBuilder
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
getSamplesBuilderList
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
getTimeUnixNano
public long getTimeUnixNano()Time of collection (UTC) represented as nanoseconds past the epoch.
fixed64 time_unix_nano = 3;- Specified by:
getTimeUnixNanoin interfaceProfileOrBuilder- Returns:
- The timeUnixNano.
-
setTimeUnixNano
Time of collection (UTC) represented as nanoseconds past the epoch.
fixed64 time_unix_nano = 3;- Parameters:
value- The timeUnixNano to set.- Returns:
- This builder for chaining.
-
clearTimeUnixNano
Time of collection (UTC) represented as nanoseconds past the epoch.
fixed64 time_unix_nano = 3;- Returns:
- This builder for chaining.
-
getDurationNano
public long getDurationNano()Duration of the profile, if a duration makes sense.
uint64 duration_nano = 4;- Specified by:
getDurationNanoin interfaceProfileOrBuilder- Returns:
- The durationNano.
-
setDurationNano
Duration of the profile, if a duration makes sense.
uint64 duration_nano = 4;- Parameters:
value- The durationNano to set.- Returns:
- This builder for chaining.
-
clearDurationNano
Duration of the profile, if a duration makes sense.
uint64 duration_nano = 4;- Returns:
- This builder for chaining.
-
hasPeriodType
public boolean hasPeriodType()The kind of events between sampled occurrences. e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
.opentelemetry.proto.profiles.v1development.ValueType period_type = 5;- Specified by:
hasPeriodTypein interfaceProfileOrBuilder- Returns:
- Whether the periodType field is set.
-
getPeriodType
The kind of events between sampled occurrences. e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
.opentelemetry.proto.profiles.v1development.ValueType period_type = 5;- Specified by:
getPeriodTypein interfaceProfileOrBuilder- Returns:
- The periodType.
-
setPeriodType
The kind of events between sampled occurrences. e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
.opentelemetry.proto.profiles.v1development.ValueType period_type = 5; -
setPeriodType
The kind of events between sampled occurrences. e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
.opentelemetry.proto.profiles.v1development.ValueType period_type = 5; -
mergePeriodType
The kind of events between sampled occurrences. e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
.opentelemetry.proto.profiles.v1development.ValueType period_type = 5; -
clearPeriodType
The kind of events between sampled occurrences. e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
.opentelemetry.proto.profiles.v1development.ValueType period_type = 5; -
getPeriodTypeBuilder
The kind of events between sampled occurrences. e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
.opentelemetry.proto.profiles.v1development.ValueType period_type = 5; -
getPeriodTypeOrBuilder
The kind of events between sampled occurrences. e.g [ "cpu","cycles" ] or [ "heap","bytes" ]
.opentelemetry.proto.profiles.v1development.ValueType period_type = 5;- Specified by:
getPeriodTypeOrBuilderin interfaceProfileOrBuilder
-
getPeriod
public long getPeriod()The number of events between sampled occurrences.
int64 period = 6;- Specified by:
getPeriodin interfaceProfileOrBuilder- Returns:
- The period.
-
setPeriod
The number of events between sampled occurrences.
int64 period = 6;- Parameters:
value- The period to set.- Returns:
- This builder for chaining.
-
clearPeriod
The number of events between sampled occurrences.
int64 period = 6;- Returns:
- This builder for chaining.
-
getProfileId
public com.google.protobuf.ByteString getProfileId()A globally unique identifier for a profile. The ID is a 16-byte array. An ID with all zeroes is considered invalid. It may be used for deduplication and signal correlation purposes. It is acceptable to treat two profiles with different values in this field as not equal, even if they represented the same object at an earlier time. This field is optional; an ID may be assigned to an ID-less profile in a later step.
bytes profile_id = 7;- Specified by:
getProfileIdin interfaceProfileOrBuilder- Returns:
- The profileId.
-
setProfileId
A globally unique identifier for a profile. The ID is a 16-byte array. An ID with all zeroes is considered invalid. It may be used for deduplication and signal correlation purposes. It is acceptable to treat two profiles with different values in this field as not equal, even if they represented the same object at an earlier time. This field is optional; an ID may be assigned to an ID-less profile in a later step.
bytes profile_id = 7;- Parameters:
value- The profileId to set.- Returns:
- This builder for chaining.
-
clearProfileId
A globally unique identifier for a profile. The ID is a 16-byte array. An ID with all zeroes is considered invalid. It may be used for deduplication and signal correlation purposes. It is acceptable to treat two profiles with different values in this field as not equal, even if they represented the same object at an earlier time. This field is optional; an ID may be assigned to an ID-less profile in a later step.
bytes profile_id = 7;- Returns:
- This builder for chaining.
-
getDroppedAttributesCount
public int getDroppedAttributesCount()The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 8;- Specified by:
getDroppedAttributesCountin interfaceProfileOrBuilder- Returns:
- The droppedAttributesCount.
-
setDroppedAttributesCount
The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 8;- Parameters:
value- The droppedAttributesCount to set.- Returns:
- This builder for chaining.
-
clearDroppedAttributesCount
The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 8;- Returns:
- This builder for chaining.
-
getOriginalPayloadFormat
The original payload format. See also original_payload. Optional, but the format and the bytes must be set or unset together. The allowed values for the format string are defined by the OpenTelemetry specification. Some examples are "jfr", "pprof", "linux_perf". The original payload may be optionally provided when the conversion to the OLTP format was done from a different format with some loss of the fidelity and the receiver may want to store the original payload to allow future lossless export or reinterpretation. Some examples of the original format are JFR (Java Flight Recorder), pprof, Linux perf. Even when the original payload is in a format that is semantically close to OTLP, such as pprof, a conversion may still be lossy in some cases (e.g. if the pprof file contains custom extensions or conventions). The original payload can be large in size, so including the original payload should be configurable by the profiler or collector options. The default behavior should be to not include the original payload.
string original_payload_format = 9;- Specified by:
getOriginalPayloadFormatin interfaceProfileOrBuilder- Returns:
- The originalPayloadFormat.
-
getOriginalPayloadFormatBytes
public com.google.protobuf.ByteString getOriginalPayloadFormatBytes()The original payload format. See also original_payload. Optional, but the format and the bytes must be set or unset together. The allowed values for the format string are defined by the OpenTelemetry specification. Some examples are "jfr", "pprof", "linux_perf". The original payload may be optionally provided when the conversion to the OLTP format was done from a different format with some loss of the fidelity and the receiver may want to store the original payload to allow future lossless export or reinterpretation. Some examples of the original format are JFR (Java Flight Recorder), pprof, Linux perf. Even when the original payload is in a format that is semantically close to OTLP, such as pprof, a conversion may still be lossy in some cases (e.g. if the pprof file contains custom extensions or conventions). The original payload can be large in size, so including the original payload should be configurable by the profiler or collector options. The default behavior should be to not include the original payload.
string original_payload_format = 9;- Specified by:
getOriginalPayloadFormatBytesin interfaceProfileOrBuilder- Returns:
- The bytes for originalPayloadFormat.
-
setOriginalPayloadFormat
The original payload format. See also original_payload. Optional, but the format and the bytes must be set or unset together. The allowed values for the format string are defined by the OpenTelemetry specification. Some examples are "jfr", "pprof", "linux_perf". The original payload may be optionally provided when the conversion to the OLTP format was done from a different format with some loss of the fidelity and the receiver may want to store the original payload to allow future lossless export or reinterpretation. Some examples of the original format are JFR (Java Flight Recorder), pprof, Linux perf. Even when the original payload is in a format that is semantically close to OTLP, such as pprof, a conversion may still be lossy in some cases (e.g. if the pprof file contains custom extensions or conventions). The original payload can be large in size, so including the original payload should be configurable by the profiler or collector options. The default behavior should be to not include the original payload.
string original_payload_format = 9;- Parameters:
value- The originalPayloadFormat to set.- Returns:
- This builder for chaining.
-
clearOriginalPayloadFormat
The original payload format. See also original_payload. Optional, but the format and the bytes must be set or unset together. The allowed values for the format string are defined by the OpenTelemetry specification. Some examples are "jfr", "pprof", "linux_perf". The original payload may be optionally provided when the conversion to the OLTP format was done from a different format with some loss of the fidelity and the receiver may want to store the original payload to allow future lossless export or reinterpretation. Some examples of the original format are JFR (Java Flight Recorder), pprof, Linux perf. Even when the original payload is in a format that is semantically close to OTLP, such as pprof, a conversion may still be lossy in some cases (e.g. if the pprof file contains custom extensions or conventions). The original payload can be large in size, so including the original payload should be configurable by the profiler or collector options. The default behavior should be to not include the original payload.
string original_payload_format = 9;- Returns:
- This builder for chaining.
-
setOriginalPayloadFormatBytes
The original payload format. See also original_payload. Optional, but the format and the bytes must be set or unset together. The allowed values for the format string are defined by the OpenTelemetry specification. Some examples are "jfr", "pprof", "linux_perf". The original payload may be optionally provided when the conversion to the OLTP format was done from a different format with some loss of the fidelity and the receiver may want to store the original payload to allow future lossless export or reinterpretation. Some examples of the original format are JFR (Java Flight Recorder), pprof, Linux perf. Even when the original payload is in a format that is semantically close to OTLP, such as pprof, a conversion may still be lossy in some cases (e.g. if the pprof file contains custom extensions or conventions). The original payload can be large in size, so including the original payload should be configurable by the profiler or collector options. The default behavior should be to not include the original payload.
string original_payload_format = 9;- Parameters:
value- The bytes for originalPayloadFormat to set.- Returns:
- This builder for chaining.
-
getOriginalPayload
public com.google.protobuf.ByteString getOriginalPayload()The original payload bytes. See also original_payload_format. Optional, but format and the bytes must be set or unset together.
bytes original_payload = 10;- Specified by:
getOriginalPayloadin interfaceProfileOrBuilder- Returns:
- The originalPayload.
-
setOriginalPayload
The original payload bytes. See also original_payload_format. Optional, but format and the bytes must be set or unset together.
bytes original_payload = 10;- Parameters:
value- The originalPayload to set.- Returns:
- This builder for chaining.
-
clearOriginalPayload
The original payload bytes. See also original_payload_format. Optional, but format and the bytes must be set or unset together.
bytes original_payload = 10;- Returns:
- This builder for chaining.
-
getAttributeIndicesList
References to attributes in attribute_table. [optional]
repeated int32 attribute_indices = 11;- Specified by:
getAttributeIndicesListin interfaceProfileOrBuilder- Returns:
- A list containing the attributeIndices.
-
getAttributeIndicesCount
public int getAttributeIndicesCount()References to attributes in attribute_table. [optional]
repeated int32 attribute_indices = 11;- Specified by:
getAttributeIndicesCountin interfaceProfileOrBuilder- Returns:
- The count of attributeIndices.
-
getAttributeIndices
public int getAttributeIndices(int index) References to attributes in attribute_table. [optional]
repeated int32 attribute_indices = 11;- Specified by:
getAttributeIndicesin interfaceProfileOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The attributeIndices at the given index.
-
setAttributeIndices
References to attributes in attribute_table. [optional]
repeated int32 attribute_indices = 11;- Parameters:
index- The index to set the value at.value- The attributeIndices to set.- Returns:
- This builder for chaining.
-
addAttributeIndices
References to attributes in attribute_table. [optional]
repeated int32 attribute_indices = 11;- Parameters:
value- The attributeIndices to add.- Returns:
- This builder for chaining.
-
addAllAttributeIndices
References to attributes in attribute_table. [optional]
repeated int32 attribute_indices = 11;- Parameters:
values- The attributeIndices to add.- Returns:
- This builder for chaining.
-
clearAttributeIndices
References to attributes in attribute_table. [optional]
repeated int32 attribute_indices = 11;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Profile.Builder>
-