Class ProfileContainer.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ProfileContainer.Builder>
io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ProfileContainerOrBuilder, Cloneable
Enclosing class:
ProfileContainer

public static final class ProfileContainer.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProfileContainer.Builder> implements ProfileContainerOrBuilder
 A ProfileContainer represents a single profile. It wraps pprof profile with OpenTelemetry specific metadata.
 
Protobuf type opentelemetry.proto.profiles.v1experimental.ProfileContainer
  • 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<ProfileContainer.Builder>
    • clear

      public ProfileContainer.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<ProfileContainer.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<ProfileContainer.Builder>
    • getDefaultInstanceForType

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

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

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

      public ProfileContainer.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<ProfileContainer.Builder>
    • setField

      public ProfileContainer.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<ProfileContainer.Builder>
    • clearField

      public ProfileContainer.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<ProfileContainer.Builder>
    • clearOneof

      public ProfileContainer.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<ProfileContainer.Builder>
    • setRepeatedField

      public ProfileContainer.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<ProfileContainer.Builder>
    • addRepeatedField

      public ProfileContainer.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<ProfileContainer.Builder>
    • mergeFrom

      public ProfileContainer.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<ProfileContainer.Builder>
    • mergeFrom

      public ProfileContainer.Builder mergeFrom(ProfileContainer other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProfileContainer.Builder>
    • mergeFrom

      public ProfileContainer.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<ProfileContainer.Builder>
      Throws:
      IOException
    • 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.
      
       This field is required.
       
      bytes profile_id = 1;
      Specified by:
      getProfileId in interface ProfileContainerOrBuilder
      Returns:
      The profileId.
    • setProfileId

      public ProfileContainer.Builder setProfileId(com.google.protobuf.ByteString value)
       A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
       all zeroes is considered invalid.
      
       This field is required.
       
      bytes profile_id = 1;
      Parameters:
      value - The profileId to set.
      Returns:
      This builder for chaining.
    • clearProfileId

      public ProfileContainer.Builder clearProfileId()
       A globally unique identifier for a profile. The ID is a 16-byte array. An ID with
       all zeroes is considered invalid.
      
       This field is required.
       
      bytes profile_id = 1;
      Returns:
      This builder for chaining.
    • getStartTimeUnixNano

      public long getStartTimeUnixNano()
       start_time_unix_nano is the start time of the profile.
       Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
      
       This field is semantically required and it is expected that end_time >= start_time.
       
      fixed64 start_time_unix_nano = 2;
      Specified by:
      getStartTimeUnixNano in interface ProfileContainerOrBuilder
      Returns:
      The startTimeUnixNano.
    • setStartTimeUnixNano

      public ProfileContainer.Builder setStartTimeUnixNano(long value)
       start_time_unix_nano is the start time of the profile.
       Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
      
       This field is semantically required and it is expected that end_time >= start_time.
       
      fixed64 start_time_unix_nano = 2;
      Parameters:
      value - The startTimeUnixNano to set.
      Returns:
      This builder for chaining.
    • clearStartTimeUnixNano

      public ProfileContainer.Builder clearStartTimeUnixNano()
       start_time_unix_nano is the start time of the profile.
       Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
      
       This field is semantically required and it is expected that end_time >= start_time.
       
      fixed64 start_time_unix_nano = 2;
      Returns:
      This builder for chaining.
    • getEndTimeUnixNano

      public long getEndTimeUnixNano()
       end_time_unix_nano is the end time of the profile.
       Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
      
       This field is semantically required and it is expected that end_time >= start_time.
       
      fixed64 end_time_unix_nano = 3;
      Specified by:
      getEndTimeUnixNano in interface ProfileContainerOrBuilder
      Returns:
      The endTimeUnixNano.
    • setEndTimeUnixNano

      public ProfileContainer.Builder setEndTimeUnixNano(long value)
       end_time_unix_nano is the end time of the profile.
       Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
      
       This field is semantically required and it is expected that end_time >= start_time.
       
      fixed64 end_time_unix_nano = 3;
      Parameters:
      value - The endTimeUnixNano to set.
      Returns:
      This builder for chaining.
    • clearEndTimeUnixNano

      public ProfileContainer.Builder clearEndTimeUnixNano()
       end_time_unix_nano is the end time of the profile.
       Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
      
       This field is semantically required and it is expected that end_time >= start_time.
       
      fixed64 end_time_unix_nano = 3;
      Returns:
      This builder for chaining.
    • getAttributesList

      public List<KeyValue> getAttributesList()
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
      Specified by:
      getAttributesList in interface ProfileContainerOrBuilder
    • getAttributesCount

      public int getAttributesCount()
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
      Specified by:
      getAttributesCount in interface ProfileContainerOrBuilder
    • getAttributes

      public KeyValue getAttributes(int index)
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
      Specified by:
      getAttributes in interface ProfileContainerOrBuilder
    • setAttributes

      public ProfileContainer.Builder setAttributes(int index, KeyValue value)
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • setAttributes

      public ProfileContainer.Builder setAttributes(int index, KeyValue.Builder builderForValue)
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • addAttributes

      public ProfileContainer.Builder addAttributes(KeyValue value)
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • addAttributes

      public ProfileContainer.Builder addAttributes(int index, KeyValue value)
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • addAttributes

      public ProfileContainer.Builder addAttributes(KeyValue.Builder builderForValue)
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • addAttributes

      public ProfileContainer.Builder addAttributes(int index, KeyValue.Builder builderForValue)
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • addAllAttributes

      public ProfileContainer.Builder addAllAttributes(Iterable<? extends KeyValue> values)
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • clearAttributes

      public ProfileContainer.Builder clearAttributes()
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • removeAttributes

      public ProfileContainer.Builder removeAttributes(int index)
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • getAttributesBuilder

      public KeyValue.Builder getAttributesBuilder(int index)
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • getAttributesOrBuilder

      public KeyValueOrBuilder getAttributesOrBuilder(int index)
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
      Specified by:
      getAttributesOrBuilder in interface ProfileContainerOrBuilder
    • getAttributesOrBuilderList

      public List<? extends KeyValueOrBuilder> getAttributesOrBuilderList()
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
      Specified by:
      getAttributesOrBuilderList in interface ProfileContainerOrBuilder
    • addAttributesBuilder

      public KeyValue.Builder addAttributesBuilder()
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • addAttributesBuilder

      public KeyValue.Builder addAttributesBuilder(int index)
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • getAttributesBuilderList

      public List<KeyValue.Builder> getAttributesBuilderList()
       attributes is a collection of key/value pairs. Note, global attributes
       like server name can be set using the resource API. Examples of attributes:
      
           "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
           "/http/server_latency": 300
           "abc.com/myattribute": true
           "abc.com/score": 10.239
      
       The OpenTelemetry API specification further restricts the allowed value types:
       https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
       Attribute keys MUST be unique (it is not allowed to have more than one
       attribute with the same key).
       
      repeated .opentelemetry.proto.common.v1.KeyValue attributes = 4;
    • getDroppedAttributesCount

      public int getDroppedAttributesCount()
       dropped_attributes_count is the number of attributes that were discarded. Attributes
       can be discarded because their keys are too long or because there are too many
       attributes. If this value is 0, then no attributes were dropped.
       
      uint32 dropped_attributes_count = 5;
      Specified by:
      getDroppedAttributesCount in interface ProfileContainerOrBuilder
      Returns:
      The droppedAttributesCount.
    • setDroppedAttributesCount

      public ProfileContainer.Builder setDroppedAttributesCount(int value)
       dropped_attributes_count is the number of attributes that were discarded. Attributes
       can be discarded because their keys are too long or because there are too many
       attributes. If this value is 0, then no attributes were dropped.
       
      uint32 dropped_attributes_count = 5;
      Parameters:
      value - The droppedAttributesCount to set.
      Returns:
      This builder for chaining.
    • clearDroppedAttributesCount

      public ProfileContainer.Builder clearDroppedAttributesCount()
       dropped_attributes_count is the number of attributes that were discarded. Attributes
       can be discarded because their keys are too long or because there are too many
       attributes. If this value is 0, then no attributes were dropped.
       
      uint32 dropped_attributes_count = 5;
      Returns:
      This builder for chaining.
    • getOriginalPayloadFormat

      public String getOriginalPayloadFormat()
       Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
       
      string original_payload_format = 6;
      Specified by:
      getOriginalPayloadFormat in interface ProfileContainerOrBuilder
      Returns:
      The originalPayloadFormat.
    • getOriginalPayloadFormatBytes

      public com.google.protobuf.ByteString getOriginalPayloadFormatBytes()
       Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
       
      string original_payload_format = 6;
      Specified by:
      getOriginalPayloadFormatBytes in interface ProfileContainerOrBuilder
      Returns:
      The bytes for originalPayloadFormat.
    • setOriginalPayloadFormat

      public ProfileContainer.Builder setOriginalPayloadFormat(String value)
       Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
       
      string original_payload_format = 6;
      Parameters:
      value - The originalPayloadFormat to set.
      Returns:
      This builder for chaining.
    • clearOriginalPayloadFormat

      public ProfileContainer.Builder clearOriginalPayloadFormat()
       Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
       
      string original_payload_format = 6;
      Returns:
      This builder for chaining.
    • setOriginalPayloadFormatBytes

      public ProfileContainer.Builder setOriginalPayloadFormatBytes(com.google.protobuf.ByteString value)
       Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
       
      string original_payload_format = 6;
      Parameters:
      value - The bytes for originalPayloadFormat to set.
      Returns:
      This builder for chaining.
    • getOriginalPayload

      public com.google.protobuf.ByteString getOriginalPayload()
       Original payload can be stored in this field. This can be useful for users who want to get the original payload.
       Formats such as JFR are highly extensible and can contain more information than what is defined in this spec.
       Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload.
       If the original payload is in pprof format, it SHOULD not be included in this field.
       The field is optional, however if it is present `profile` MUST be present and contain the same profiling information.
       
      bytes original_payload = 7;
      Specified by:
      getOriginalPayload in interface ProfileContainerOrBuilder
      Returns:
      The originalPayload.
    • setOriginalPayload

      public ProfileContainer.Builder setOriginalPayload(com.google.protobuf.ByteString value)
       Original payload can be stored in this field. This can be useful for users who want to get the original payload.
       Formats such as JFR are highly extensible and can contain more information than what is defined in this spec.
       Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload.
       If the original payload is in pprof format, it SHOULD not be included in this field.
       The field is optional, however if it is present `profile` MUST be present and contain the same profiling information.
       
      bytes original_payload = 7;
      Parameters:
      value - The originalPayload to set.
      Returns:
      This builder for chaining.
    • clearOriginalPayload

      public ProfileContainer.Builder clearOriginalPayload()
       Original payload can be stored in this field. This can be useful for users who want to get the original payload.
       Formats such as JFR are highly extensible and can contain more information than what is defined in this spec.
       Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload.
       If the original payload is in pprof format, it SHOULD not be included in this field.
       The field is optional, however if it is present `profile` MUST be present and contain the same profiling information.
       
      bytes original_payload = 7;
      Returns:
      This builder for chaining.
    • hasProfile

      public boolean hasProfile()
       This is a reference to a pprof profile. Required, even when original_payload is present.
       
      .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
      Specified by:
      hasProfile in interface ProfileContainerOrBuilder
      Returns:
      Whether the profile field is set.
    • getProfile

      public Profile getProfile()
       This is a reference to a pprof profile. Required, even when original_payload is present.
       
      .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
      Specified by:
      getProfile in interface ProfileContainerOrBuilder
      Returns:
      The profile.
    • setProfile

      public ProfileContainer.Builder setProfile(Profile value)
       This is a reference to a pprof profile. Required, even when original_payload is present.
       
      .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
    • setProfile

      public ProfileContainer.Builder setProfile(Profile.Builder builderForValue)
       This is a reference to a pprof profile. Required, even when original_payload is present.
       
      .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
    • mergeProfile

      public ProfileContainer.Builder mergeProfile(Profile value)
       This is a reference to a pprof profile. Required, even when original_payload is present.
       
      .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
    • clearProfile

      public ProfileContainer.Builder clearProfile()
       This is a reference to a pprof profile. Required, even when original_payload is present.
       
      .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
    • getProfileBuilder

      public Profile.Builder getProfileBuilder()
       This is a reference to a pprof profile. Required, even when original_payload is present.
       
      .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
    • getProfileOrBuilder

      public ProfileOrBuilder getProfileOrBuilder()
       This is a reference to a pprof profile. Required, even when original_payload is present.
       
      .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
      Specified by:
      getProfileOrBuilder in interface ProfileContainerOrBuilder
    • setUnknownFields

      public final ProfileContainer.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<ProfileContainer.Builder>
    • mergeUnknownFields

      public final ProfileContainer.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<ProfileContainer.Builder>