Class Sample.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
io.opentelemetry.proto.profiles.v1experimental.Sample.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SampleOrBuilder,Cloneable
- Enclosing class:
- Sample
public static final class Sample.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
implements SampleOrBuilder
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
opentelemetry.proto.profiles.v1experimental.Sample-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributes(Iterable<? extends Long> values) References to attributes in Profile.attribute_table.addAllLabel(Iterable<? extends Label> values) label includes additional context for this sample.addAllLocationIndex(Iterable<? extends Long> values) The indices recorded here correspond to locations in Profile.location.addAllTimestampsUnixNano(Iterable<? extends Long> values) Timestamps associated with Sample represented in nanoseconds.addAllValue(Iterable<? extends Long> values) The type and unit of each value is defined by the corresponding entry in Profile.sample_type.addAttributes(long value) References to attributes in Profile.attribute_table.label includes additional context for this sample.addLabel(int index, Label.Builder builderForValue) label includes additional context for this sample.label includes additional context for this sample.addLabel(Label.Builder builderForValue) label includes additional context for this sample.label includes additional context for this sample.addLabelBuilder(int index) label includes additional context for this sample.addLocationIndex(long value) The indices recorded here correspond to locations in Profile.location.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTimestampsUnixNano(long value) Timestamps associated with Sample represented in nanoseconds.addValue(long value) The type and unit of each value is defined by the corresponding entry in Profile.sample_type.build()clear()References to attributes in Profile.attribute_table.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) label includes additional context for this sample.Reference to link in Profile.link_table.The indices recorded here correspond to locations in Profile.location.locations_length along with locations_start_index refers to a slice of locations in Profile.location.locations_start_index along with locations_length refers to to a slice of locations in Profile.location.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) A 128bit id that uniquely identifies this stacktrace, globally.Timestamps associated with Sample represented in nanoseconds.The type and unit of each value is defined by the corresponding entry in Profile.sample_type.clone()longgetAttributes(int index) References to attributes in Profile.attribute_table.intReferences to attributes in Profile.attribute_table.References to attributes in Profile.attribute_table.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetLabel(int index) label includes additional context for this sample.getLabelBuilder(int index) label includes additional context for this sample.label includes additional context for this sample.intlabel includes additional context for this sample.label includes additional context for this sample.getLabelOrBuilder(int index) label includes additional context for this sample.List<? extends LabelOrBuilder>label includes additional context for this sample.longgetLink()Reference to link in Profile.link_table.longgetLocationIndex(int index) The indices recorded here correspond to locations in Profile.location.intThe indices recorded here correspond to locations in Profile.location.The indices recorded here correspond to locations in Profile.location.longlocations_length along with locations_start_index refers to a slice of locations in Profile.location.longlocations_start_index along with locations_length refers to to a slice of locations in Profile.location.intA 128bit id that uniquely identifies this stacktrace, globally.longgetTimestampsUnixNano(int index) Timestamps associated with Sample represented in nanoseconds.intTimestamps associated with Sample represented in nanoseconds.Timestamps associated with Sample represented in nanoseconds.longgetValue(int index) The type and unit of each value is defined by the corresponding entry in Profile.sample_type.intThe type and unit of each value is defined by the corresponding entry in Profile.sample_type.The type and unit of each value is defined by the corresponding entry in Profile.sample_type.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Sample.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeLabel(int index) label includes additional context for this sample.setAttributes(int index, long value) References to attributes in Profile.attribute_table.label includes additional context for this sample.setLabel(int index, Label.Builder builderForValue) label includes additional context for this sample.setLink(long value) Reference to link in Profile.link_table.setLocationIndex(int index, long value) The indices recorded here correspond to locations in Profile.location.setLocationsLength(long value) locations_length along with locations_start_index refers to a slice of locations in Profile.location.setLocationsStartIndex(long value) locations_start_index along with locations_length refers to to a slice of locations in Profile.location.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStacktraceIdIndex(int value) A 128bit id that uniquely identifies this stacktrace, globally.setTimestampsUnixNano(int index, long value) Timestamps associated with Sample represented in nanoseconds.final Sample.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setValue(int index, long value) The type and unit of each value is defined by the corresponding entry in Profile.sample_type.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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<Sample.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<Sample.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<Sample.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<Sample.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
-
setRepeatedField
public Sample.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<Sample.Builder>
-
addRepeatedField
public Sample.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<Sample.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Sample.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
-
mergeFrom
public Sample.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<Sample.Builder>- Throws:
IOException
-
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;- Specified by:
getLocationIndexListin interfaceSampleOrBuilder- Returns:
- A list containing the locationIndex.
-
getLocationIndexCount
public 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;- Specified by:
getLocationIndexCountin interfaceSampleOrBuilder- Returns:
- The count of locationIndex.
-
getLocationIndex
public long getLocationIndex(int 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;- Specified by:
getLocationIndexin interfaceSampleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The locationIndex at the given index.
-
setLocationIndex
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;- Parameters:
index- The index to set the value at.value- The locationIndex to set.- Returns:
- This builder for chaining.
-
addLocationIndex
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;- Parameters:
value- The locationIndex to add.- Returns:
- This builder for chaining.
-
addAllLocationIndex
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;- Parameters:
values- The locationIndex to add.- Returns:
- This builder for chaining.
-
clearLocationIndex
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;- Returns:
- This builder for chaining.
-
getLocationsStartIndex
public long getLocationsStartIndex()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;- Specified by:
getLocationsStartIndexin interfaceSampleOrBuilder- Returns:
- The locationsStartIndex.
-
setLocationsStartIndex
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;- Parameters:
value- The locationsStartIndex to set.- Returns:
- This builder for chaining.
-
clearLocationsStartIndex
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;- Returns:
- This builder for chaining.
-
getLocationsLength
public long getLocationsLength()locations_length along with locations_start_index refers to a slice of locations in Profile.location. Supersedes location_index.
uint64 locations_length = 8;- Specified by:
getLocationsLengthin interfaceSampleOrBuilder- Returns:
- The locationsLength.
-
setLocationsLength
locations_length along with locations_start_index refers to a slice of locations in Profile.location. Supersedes location_index.
uint64 locations_length = 8;- Parameters:
value- The locationsLength to set.- Returns:
- This builder for chaining.
-
clearLocationsLength
locations_length along with locations_start_index refers to a slice of locations in Profile.location. Supersedes location_index.
uint64 locations_length = 8;- Returns:
- This builder for chaining.
-
getStacktraceIdIndex
public int getStacktraceIdIndex()A 128bit id that uniquely identifies this stacktrace, globally. Index into string table. [optional]
uint32 stacktrace_id_index = 9;- Specified by:
getStacktraceIdIndexin interfaceSampleOrBuilder- Returns:
- The stacktraceIdIndex.
-
setStacktraceIdIndex
A 128bit id that uniquely identifies this stacktrace, globally. Index into string table. [optional]
uint32 stacktrace_id_index = 9;- Parameters:
value- The stacktraceIdIndex to set.- Returns:
- This builder for chaining.
-
clearStacktraceIdIndex
A 128bit id that uniquely identifies this stacktrace, globally. Index into string table. [optional]
uint32 stacktrace_id_index = 9;- Returns:
- This builder for chaining.
-
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;- Specified by:
getValueListin interfaceSampleOrBuilder- Returns:
- A list containing the value.
-
getValueCount
public 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;- Specified by:
getValueCountin interfaceSampleOrBuilder- Returns:
- The count of value.
-
getValue
public long getValue(int 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;- Specified by:
getValuein interfaceSampleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The value at the given index.
-
setValue
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;- Parameters:
index- The index to set the value at.value- The value to set.- Returns:
- This builder for chaining.
-
addValue
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;- Parameters:
value- The value to add.- Returns:
- This builder for chaining.
-
addAllValue
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;- Parameters:
values- The value to add.- Returns:
- This builder for chaining.
-
clearValue
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;- Returns:
- This builder for chaining.
-
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;- Specified by:
getLabelListin interfaceSampleOrBuilder
-
getLabelCount
public 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;- Specified by:
getLabelCountin interfaceSampleOrBuilder
-
getLabel
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;- Specified by:
getLabelin interfaceSampleOrBuilder
-
setLabel
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; -
setLabel
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; -
addLabel
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; -
addLabel
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; -
addLabel
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; -
addLabel
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; -
addAllLabel
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; -
clearLabel
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; -
removeLabel
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; -
getLabelBuilder
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; -
getLabelOrBuilder
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;- Specified by:
getLabelOrBuilderin interfaceSampleOrBuilder
-
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;- Specified by:
getLabelOrBuilderListin interfaceSampleOrBuilder
-
addLabelBuilder
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; -
addLabelBuilder
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; -
getLabelBuilderList
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; -
getAttributesList
References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 10;- Specified by:
getAttributesListin interfaceSampleOrBuilder- Returns:
- A list containing the attributes.
-
getAttributesCount
public int getAttributesCount()References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 10;- Specified by:
getAttributesCountin interfaceSampleOrBuilder- Returns:
- The count of attributes.
-
getAttributes
public long getAttributes(int index) References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 10;- Specified by:
getAttributesin interfaceSampleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The attributes at the given index.
-
setAttributes
References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 10;- Parameters:
index- The index to set the value at.value- The attributes to set.- Returns:
- This builder for chaining.
-
addAttributes
References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 10;- Parameters:
value- The attributes to add.- Returns:
- This builder for chaining.
-
addAllAttributes
References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 10;- Parameters:
values- The attributes to add.- Returns:
- This builder for chaining.
-
clearAttributes
References to attributes in Profile.attribute_table. [optional]
repeated uint64 attributes = 10;- Returns:
- This builder for chaining.
-
getLink
public long getLink()Reference to link in Profile.link_table. [optional]
uint64 link = 12;- Specified by:
getLinkin interfaceSampleOrBuilder- Returns:
- The link.
-
setLink
Reference to link in Profile.link_table. [optional]
uint64 link = 12;- Parameters:
value- The link to set.- Returns:
- This builder for chaining.
-
clearLink
Reference to link in Profile.link_table. [optional]
uint64 link = 12;- Returns:
- This builder for chaining.
-
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;- Specified by:
getTimestampsUnixNanoListin interfaceSampleOrBuilder- Returns:
- A list containing the timestampsUnixNano.
-
getTimestampsUnixNanoCount
public 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;- Specified by:
getTimestampsUnixNanoCountin interfaceSampleOrBuilder- Returns:
- The count of timestampsUnixNano.
-
getTimestampsUnixNano
public long getTimestampsUnixNano(int 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;- Specified by:
getTimestampsUnixNanoin interfaceSampleOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The timestampsUnixNano at the given index.
-
setTimestampsUnixNano
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;- Parameters:
index- The index to set the value at.value- The timestampsUnixNano to set.- Returns:
- This builder for chaining.
-
addTimestampsUnixNano
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;- Parameters:
value- The timestampsUnixNano to add.- Returns:
- This builder for chaining.
-
addAllTimestampsUnixNano
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;- Parameters:
values- The timestampsUnixNano to add.- Returns:
- This builder for chaining.
-
clearTimestampsUnixNano
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;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
-