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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
    • clear

      public Sample.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
    • getDefaultInstanceForType

      public Sample getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Sample build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Sample buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Sample.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
    • setField

      public Sample.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
    • clearField

      public Sample.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
    • clearOneof

      public Sample.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
    • setRepeatedField

      public Sample.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
    • addRepeatedField

      public Sample.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
    • mergeFrom

      public Sample.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Sample.Builder>
    • mergeFrom

      public Sample.Builder mergeFrom(Sample other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Sample.Builder>
      Throws:
      IOException
    • getLocationIndexList

      public List<Long> 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:
      getLocationIndexList in interface SampleOrBuilder
      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:
      getLocationIndexCount in interface SampleOrBuilder
      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:
      getLocationIndex in interface SampleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The locationIndex at the given index.
    • setLocationIndex

      public Sample.Builder setLocationIndex(int index, long value)
       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

      public Sample.Builder addLocationIndex(long value)
       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

      public Sample.Builder addAllLocationIndex(Iterable<? extends Long> values)
       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

      public Sample.Builder 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:
      getLocationsStartIndex in interface SampleOrBuilder
      Returns:
      The locationsStartIndex.
    • setLocationsStartIndex

      public Sample.Builder setLocationsStartIndex(long value)
       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

      public Sample.Builder 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:
      getLocationsLength in interface SampleOrBuilder
      Returns:
      The locationsLength.
    • setLocationsLength

      public Sample.Builder setLocationsLength(long value)
       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

      public Sample.Builder 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:
      getStacktraceIdIndex in interface SampleOrBuilder
      Returns:
      The stacktraceIdIndex.
    • setStacktraceIdIndex

      public Sample.Builder setStacktraceIdIndex(int value)
       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

      public Sample.Builder 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

      public List<Long> 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:
      getValueList in interface SampleOrBuilder
      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:
      getValueCount in interface SampleOrBuilder
      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:
      getValue in interface SampleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The value at the given index.
    • setValue

      public Sample.Builder setValue(int index, long 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;
      Parameters:
      index - The index to set the value at.
      value - The value to set.
      Returns:
      This builder for chaining.
    • addValue

      public Sample.Builder addValue(long 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;
      Parameters:
      value - The value to add.
      Returns:
      This builder for chaining.
    • addAllValue

      public Sample.Builder addAllValue(Iterable<? extends Long> values)
       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

      public Sample.Builder 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

      public List<Label> 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:
      getLabelList in interface SampleOrBuilder
    • 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:
      getLabelCount in interface SampleOrBuilder
    • getLabel

      public 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;
      Specified by:
      getLabel in interface SampleOrBuilder
    • setLabel

      public Sample.Builder setLabel(int index, Label value)
       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

      public Sample.Builder setLabel(int index, Label.Builder builderForValue)
       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

      public Sample.Builder addLabel(Label value)
       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

      public Sample.Builder addLabel(int index, Label value)
       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

      public Sample.Builder addLabel(Label.Builder builderForValue)
       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

      public Sample.Builder addLabel(int index, Label.Builder builderForValue)
       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

      public Sample.Builder addAllLabel(Iterable<? extends Label> values)
       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

      public Sample.Builder 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

      public Sample.Builder removeLabel(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;
    • getLabelBuilder

      public Label.Builder getLabelBuilder(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;
    • getLabelOrBuilder

      public LabelOrBuilder getLabelOrBuilder(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;
      Specified by:
      getLabelOrBuilder in interface SampleOrBuilder
    • getLabelOrBuilderList

      public List<? extends LabelOrBuilder> 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:
      getLabelOrBuilderList in interface SampleOrBuilder
    • addLabelBuilder

      public Label.Builder 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

      public Label.Builder addLabelBuilder(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;
    • getLabelBuilderList

      public List<Label.Builder> 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

      public List<Long> getAttributesList()
       References to attributes in Profile.attribute_table. [optional]
       
      repeated uint64 attributes = 10;
      Specified by:
      getAttributesList in interface SampleOrBuilder
      Returns:
      A list containing the attributes.
    • getAttributesCount

      public int getAttributesCount()
       References to attributes in Profile.attribute_table. [optional]
       
      repeated uint64 attributes = 10;
      Specified by:
      getAttributesCount in interface SampleOrBuilder
      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:
      getAttributes in interface SampleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The attributes at the given index.
    • setAttributes

      public Sample.Builder setAttributes(int index, long value)
       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

      public Sample.Builder addAttributes(long value)
       References to attributes in Profile.attribute_table. [optional]
       
      repeated uint64 attributes = 10;
      Parameters:
      value - The attributes to add.
      Returns:
      This builder for chaining.
    • addAllAttributes

      public Sample.Builder addAllAttributes(Iterable<? extends Long> values)
       References to attributes in Profile.attribute_table. [optional]
       
      repeated uint64 attributes = 10;
      Parameters:
      values - The attributes to add.
      Returns:
      This builder for chaining.
    • clearAttributes

      public Sample.Builder 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:
      getLink in interface SampleOrBuilder
      Returns:
      The link.
    • setLink

      public Sample.Builder setLink(long value)
       Reference to link in Profile.link_table. [optional]
       
      uint64 link = 12;
      Parameters:
      value - The link to set.
      Returns:
      This builder for chaining.
    • clearLink

      public Sample.Builder clearLink()
       Reference to link in Profile.link_table. [optional]
       
      uint64 link = 12;
      Returns:
      This builder for chaining.
    • getTimestampsUnixNanoList

      public List<Long> 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:
      getTimestampsUnixNanoList in interface SampleOrBuilder
      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:
      getTimestampsUnixNanoCount in interface SampleOrBuilder
      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:
      getTimestampsUnixNano in interface SampleOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The timestampsUnixNano at the given index.
    • setTimestampsUnixNano

      public Sample.Builder setTimestampsUnixNano(int index, long value)
       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

      public Sample.Builder addTimestampsUnixNano(long value)
       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

      public Sample.Builder addAllTimestampsUnixNano(Iterable<? extends Long> values)
       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

      public Sample.Builder 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

      public final Sample.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>
    • mergeUnknownFields

      public final Sample.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Sample.Builder>