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 Summary
Modifier and TypeMethodDescriptionaddAllAttributes(Iterable<? extends KeyValue> values) attributes is a collection of key/value pairs.addAttributes(int index, KeyValue value) attributes is a collection of key/value pairs.addAttributes(int index, KeyValue.Builder builderForValue) attributes is a collection of key/value pairs.addAttributes(KeyValue value) attributes is a collection of key/value pairs.addAttributes(KeyValue.Builder builderForValue) attributes is a collection of key/value pairs.attributes is a collection of key/value pairs.addAttributesBuilder(int index) attributes is a collection of key/value pairs.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()attributes is a collection of key/value pairs.dropped_attributes_count is the number of attributes that were discarded.end_time_unix_nano is the end time of the profile.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Original payload can be stored in this field.Specifies format of the original payload.This is a reference to a pprof profile.A globally unique identifier for a profile.start_time_unix_nano is the start time of the profile.clone()getAttributes(int index) attributes is a collection of key/value pairs.getAttributesBuilder(int index) attributes is a collection of key/value pairs.attributes is a collection of key/value pairs.intattributes is a collection of key/value pairs.attributes is a collection of key/value pairs.getAttributesOrBuilder(int index) attributes is a collection of key/value pairs.List<? extends KeyValueOrBuilder>attributes is a collection of key/value pairs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorintdropped_attributes_count is the number of attributes that were discarded.longend_time_unix_nano is the end time of the profile.com.google.protobuf.ByteStringOriginal payload can be stored in this field.Specifies format of the original payload.com.google.protobuf.ByteStringSpecifies format of the original payload.This is a reference to a pprof profile.This is a reference to a pprof profile.com.google.protobuf.ByteStringA globally unique identifier for a profile.This is a reference to a pprof profile.longstart_time_unix_nano is the start time of the profile.booleanThis is a reference to a pprof profile.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ProfileContainer other) mergeProfile(Profile value) This is a reference to a pprof profile.final ProfileContainer.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAttributes(int index) attributes is a collection of key/value pairs.setAttributes(int index, KeyValue value) attributes is a collection of key/value pairs.setAttributes(int index, KeyValue.Builder builderForValue) attributes is a collection of key/value pairs.setDroppedAttributesCount(int value) dropped_attributes_count is the number of attributes that were discarded.setEndTimeUnixNano(long value) end_time_unix_nano is the end time of the profile.setOriginalPayload(com.google.protobuf.ByteString value) Original payload can be stored in this field.setOriginalPayloadFormat(String value) Specifies format of the original payload.setOriginalPayloadFormatBytes(com.google.protobuf.ByteString value) Specifies format of the original payload.setProfile(Profile value) This is a reference to a pprof profile.setProfile(Profile.Builder builderForValue) This is a reference to a pprof profile.setProfileId(com.google.protobuf.ByteString value) A globally unique identifier for a profile.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartTimeUnixNano(long value) start_time_unix_nano is the start time of the profile.final ProfileContainer.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, 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<ProfileContainer.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<ProfileContainer.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<ProfileContainer.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<ProfileContainer.Builder>
-
setField
public ProfileContainer.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileContainer.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileContainer.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileContainer.Builder>
-
setRepeatedField
public ProfileContainer.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<ProfileContainer.Builder>
-
addRepeatedField
public ProfileContainer.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<ProfileContainer.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProfileContainer.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getProfileIdin interfaceProfileContainerOrBuilder- Returns:
- The profileId.
-
setProfileId
A globally unique identifier for a profile. The ID is a 16-byte array. An ID with all zeroes is considered invalid. This field is required.
bytes profile_id = 1;- Parameters:
value- The profileId to set.- Returns:
- This builder for chaining.
-
clearProfileId
A globally unique identifier for a profile. The ID is a 16-byte array. An ID with all zeroes is considered invalid. 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:
getStartTimeUnixNanoin interfaceProfileContainerOrBuilder- Returns:
- The startTimeUnixNano.
-
setStartTimeUnixNano
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
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:
getEndTimeUnixNanoin interfaceProfileContainerOrBuilder- Returns:
- The endTimeUnixNano.
-
setEndTimeUnixNano
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
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
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:
getAttributesListin interfaceProfileContainerOrBuilder
-
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:
getAttributesCountin interfaceProfileContainerOrBuilder
-
getAttributes
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:
getAttributesin interfaceProfileContainerOrBuilder
-
setAttributes
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
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
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
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
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
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
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
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
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
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
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:
getAttributesOrBuilderin interfaceProfileContainerOrBuilder
-
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:
getAttributesOrBuilderListin interfaceProfileContainerOrBuilder
-
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
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
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:
getDroppedAttributesCountin interfaceProfileContainerOrBuilder- Returns:
- The droppedAttributesCount.
-
setDroppedAttributesCount
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
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
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:
getOriginalPayloadFormatin interfaceProfileContainerOrBuilder- 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:
getOriginalPayloadFormatBytesin interfaceProfileContainerOrBuilder- Returns:
- The bytes for originalPayloadFormat.
-
setOriginalPayloadFormat
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
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
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:
getOriginalPayloadin interfaceProfileContainerOrBuilder- Returns:
- The originalPayload.
-
setOriginalPayload
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
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:
hasProfilein interfaceProfileContainerOrBuilder- Returns:
- Whether the profile field is set.
-
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:
getProfilein interfaceProfileContainerOrBuilder- Returns:
- The profile.
-
setProfile
This is a reference to a pprof profile. Required, even when original_payload is present.
.opentelemetry.proto.profiles.v1experimental.Profile profile = 8; -
setProfile
This is a reference to a pprof profile. Required, even when original_payload is present.
.opentelemetry.proto.profiles.v1experimental.Profile profile = 8; -
mergeProfile
This is a reference to a pprof profile. Required, even when original_payload is present.
.opentelemetry.proto.profiles.v1experimental.Profile profile = 8; -
clearProfile
This is a reference to a pprof profile. Required, even when original_payload is present.
.opentelemetry.proto.profiles.v1experimental.Profile profile = 8; -
getProfileBuilder
This is a reference to a pprof profile. Required, even when original_payload is present.
.opentelemetry.proto.profiles.v1experimental.Profile profile = 8; -
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:
getProfileOrBuilderin interfaceProfileContainerOrBuilder
-
setUnknownFields
public final ProfileContainer.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileContainer.Builder>
-
mergeUnknownFields
public final ProfileContainer.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProfileContainer.Builder>
-