
io.opentelemetry.proto.profiles.v1experimental.ProfileContainer Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opentelemetry/proto/profiles/v1experimental/profiles.proto
// Protobuf Java Version: 3.25.1
package io.opentelemetry.proto.profiles.v1experimental;
/**
*
* A ProfileContainer represents a single profile. It wraps pprof profile with OpenTelemetry specific metadata.
*
*
* Protobuf type {@code opentelemetry.proto.profiles.v1experimental.ProfileContainer}
*/
public final class ProfileContainer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opentelemetry.proto.profiles.v1experimental.ProfileContainer)
ProfileContainerOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProfileContainer.newBuilder() to construct.
private ProfileContainer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProfileContainer() {
profileId_ = com.google.protobuf.ByteString.EMPTY;
attributes_ = java.util.Collections.emptyList();
originalPayloadFormat_ = "";
originalPayload_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProfileContainer();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ProfileContainer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ProfileContainer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.class, io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.Builder.class);
}
private int bitField0_;
public static final int PROFILE_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString profileId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* 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;
* @return The profileId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProfileId() {
return profileId_;
}
public static final int START_TIME_UNIX_NANO_FIELD_NUMBER = 2;
private long startTimeUnixNano_ = 0L;
/**
*
* 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;
* @return The startTimeUnixNano.
*/
@java.lang.Override
public long getStartTimeUnixNano() {
return startTimeUnixNano_;
}
public static final int END_TIME_UNIX_NANO_FIELD_NUMBER = 3;
private long endTimeUnixNano_ = 0L;
/**
*
* 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;
* @return The endTimeUnixNano.
*/
@java.lang.Override
public long getEndTimeUnixNano() {
return endTimeUnixNano_;
}
public static final int ATTRIBUTES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List attributes_;
/**
*
* 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;
*/
@java.lang.Override
public java.util.List getAttributesList() {
return attributes_;
}
/**
*
* 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;
*/
@java.lang.Override
public java.util.List extends io.opentelemetry.proto.common.v1.KeyValueOrBuilder>
getAttributesOrBuilderList() {
return attributes_;
}
/**
*
* 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;
*/
@java.lang.Override
public int getAttributesCount() {
return attributes_.size();
}
/**
*
* 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;
*/
@java.lang.Override
public io.opentelemetry.proto.common.v1.KeyValue getAttributes(int index) {
return attributes_.get(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;
*/
@java.lang.Override
public io.opentelemetry.proto.common.v1.KeyValueOrBuilder getAttributesOrBuilder(
int index) {
return attributes_.get(index);
}
public static final int DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER = 5;
private int droppedAttributesCount_ = 0;
/**
*
* 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;
* @return The droppedAttributesCount.
*/
@java.lang.Override
public int getDroppedAttributesCount() {
return droppedAttributesCount_;
}
public static final int ORIGINAL_PAYLOAD_FORMAT_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object originalPayloadFormat_ = "";
/**
*
* Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
*
*
* string original_payload_format = 6;
* @return The originalPayloadFormat.
*/
@java.lang.Override
public java.lang.String getOriginalPayloadFormat() {
java.lang.Object ref = originalPayloadFormat_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
originalPayloadFormat_ = s;
return s;
}
}
/**
*
* Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
*
*
* string original_payload_format = 6;
* @return The bytes for originalPayloadFormat.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOriginalPayloadFormatBytes() {
java.lang.Object ref = originalPayloadFormat_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originalPayloadFormat_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORIGINAL_PAYLOAD_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString originalPayload_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* 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;
* @return The originalPayload.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOriginalPayload() {
return originalPayload_;
}
public static final int PROFILE_FIELD_NUMBER = 8;
private opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile profile_;
/**
*
* This is a reference to a pprof profile. Required, even when original_payload is present.
*
*
* .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
* @return Whether the profile field is set.
*/
@java.lang.Override
public boolean hasProfile() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* This is a reference to a pprof profile. Required, even when original_payload is present.
*
*
* .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
* @return The profile.
*/
@java.lang.Override
public opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile getProfile() {
return profile_ == null ? opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.getDefaultInstance() : profile_;
}
/**
*
* This is a reference to a pprof profile. Required, even when original_payload is present.
*
*
* .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
*/
@java.lang.Override
public opentelemetry.proto.profiles.v1experimental.Pprofextended.ProfileOrBuilder getProfileOrBuilder() {
return profile_ == null ? opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.getDefaultInstance() : profile_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!profileId_.isEmpty()) {
output.writeBytes(1, profileId_);
}
if (startTimeUnixNano_ != 0L) {
output.writeFixed64(2, startTimeUnixNano_);
}
if (endTimeUnixNano_ != 0L) {
output.writeFixed64(3, endTimeUnixNano_);
}
for (int i = 0; i < attributes_.size(); i++) {
output.writeMessage(4, attributes_.get(i));
}
if (droppedAttributesCount_ != 0) {
output.writeUInt32(5, droppedAttributesCount_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalPayloadFormat_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, originalPayloadFormat_);
}
if (!originalPayload_.isEmpty()) {
output.writeBytes(7, originalPayload_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(8, getProfile());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!profileId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, profileId_);
}
if (startTimeUnixNano_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(2, startTimeUnixNano_);
}
if (endTimeUnixNano_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(3, endTimeUnixNano_);
}
for (int i = 0; i < attributes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, attributes_.get(i));
}
if (droppedAttributesCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, droppedAttributesCount_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalPayloadFormat_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, originalPayloadFormat_);
}
if (!originalPayload_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, originalPayload_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getProfile());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.opentelemetry.proto.profiles.v1experimental.ProfileContainer)) {
return super.equals(obj);
}
io.opentelemetry.proto.profiles.v1experimental.ProfileContainer other = (io.opentelemetry.proto.profiles.v1experimental.ProfileContainer) obj;
if (!getProfileId()
.equals(other.getProfileId())) return false;
if (getStartTimeUnixNano()
!= other.getStartTimeUnixNano()) return false;
if (getEndTimeUnixNano()
!= other.getEndTimeUnixNano()) return false;
if (!getAttributesList()
.equals(other.getAttributesList())) return false;
if (getDroppedAttributesCount()
!= other.getDroppedAttributesCount()) return false;
if (!getOriginalPayloadFormat()
.equals(other.getOriginalPayloadFormat())) return false;
if (!getOriginalPayload()
.equals(other.getOriginalPayload())) return false;
if (hasProfile() != other.hasProfile()) return false;
if (hasProfile()) {
if (!getProfile()
.equals(other.getProfile())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PROFILE_ID_FIELD_NUMBER;
hash = (53 * hash) + getProfileId().hashCode();
hash = (37 * hash) + START_TIME_UNIX_NANO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTimeUnixNano());
hash = (37 * hash) + END_TIME_UNIX_NANO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndTimeUnixNano());
if (getAttributesCount() > 0) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getAttributesList().hashCode();
}
hash = (37 * hash) + DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getDroppedAttributesCount();
hash = (37 * hash) + ORIGINAL_PAYLOAD_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getOriginalPayloadFormat().hashCode();
hash = (37 * hash) + ORIGINAL_PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getOriginalPayload().hashCode();
if (hasProfile()) {
hash = (37 * hash) + PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getProfile().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.opentelemetry.proto.profiles.v1experimental.ProfileContainer prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A ProfileContainer represents a single profile. It wraps pprof profile with OpenTelemetry specific metadata.
*
*
* Protobuf type {@code opentelemetry.proto.profiles.v1experimental.ProfileContainer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opentelemetry.proto.profiles.v1experimental.ProfileContainer)
io.opentelemetry.proto.profiles.v1experimental.ProfileContainerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ProfileContainer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ProfileContainer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.class, io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.Builder.class);
}
// Construct using io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAttributesFieldBuilder();
getProfileFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
profileId_ = com.google.protobuf.ByteString.EMPTY;
startTimeUnixNano_ = 0L;
endTimeUnixNano_ = 0L;
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
} else {
attributes_ = null;
attributesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
droppedAttributesCount_ = 0;
originalPayloadFormat_ = "";
originalPayload_ = com.google.protobuf.ByteString.EMPTY;
profile_ = null;
if (profileBuilder_ != null) {
profileBuilder_.dispose();
profileBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.opentelemetry.proto.profiles.v1experimental.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1experimental_ProfileContainer_descriptor;
}
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.ProfileContainer getDefaultInstanceForType() {
return io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.getDefaultInstance();
}
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.ProfileContainer build() {
io.opentelemetry.proto.profiles.v1experimental.ProfileContainer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.ProfileContainer buildPartial() {
io.opentelemetry.proto.profiles.v1experimental.ProfileContainer result = new io.opentelemetry.proto.profiles.v1experimental.ProfileContainer(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.opentelemetry.proto.profiles.v1experimental.ProfileContainer result) {
if (attributesBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
attributes_ = java.util.Collections.unmodifiableList(attributes_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.attributes_ = attributes_;
} else {
result.attributes_ = attributesBuilder_.build();
}
}
private void buildPartial0(io.opentelemetry.proto.profiles.v1experimental.ProfileContainer result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.profileId_ = profileId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.startTimeUnixNano_ = startTimeUnixNano_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.endTimeUnixNano_ = endTimeUnixNano_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.droppedAttributesCount_ = droppedAttributesCount_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.originalPayloadFormat_ = originalPayloadFormat_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.originalPayload_ = originalPayload_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000080) != 0)) {
result.profile_ = profileBuilder_ == null
? profile_
: profileBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.opentelemetry.proto.profiles.v1experimental.ProfileContainer) {
return mergeFrom((io.opentelemetry.proto.profiles.v1experimental.ProfileContainer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opentelemetry.proto.profiles.v1experimental.ProfileContainer other) {
if (other == io.opentelemetry.proto.profiles.v1experimental.ProfileContainer.getDefaultInstance()) return this;
if (other.getProfileId() != com.google.protobuf.ByteString.EMPTY) {
setProfileId(other.getProfileId());
}
if (other.getStartTimeUnixNano() != 0L) {
setStartTimeUnixNano(other.getStartTimeUnixNano());
}
if (other.getEndTimeUnixNano() != 0L) {
setEndTimeUnixNano(other.getEndTimeUnixNano());
}
if (attributesBuilder_ == null) {
if (!other.attributes_.isEmpty()) {
if (attributes_.isEmpty()) {
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAttributesIsMutable();
attributes_.addAll(other.attributes_);
}
onChanged();
}
} else {
if (!other.attributes_.isEmpty()) {
if (attributesBuilder_.isEmpty()) {
attributesBuilder_.dispose();
attributesBuilder_ = null;
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000008);
attributesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAttributesFieldBuilder() : null;
} else {
attributesBuilder_.addAllMessages(other.attributes_);
}
}
}
if (other.getDroppedAttributesCount() != 0) {
setDroppedAttributesCount(other.getDroppedAttributesCount());
}
if (!other.getOriginalPayloadFormat().isEmpty()) {
originalPayloadFormat_ = other.originalPayloadFormat_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.getOriginalPayload() != com.google.protobuf.ByteString.EMPTY) {
setOriginalPayload(other.getOriginalPayload());
}
if (other.hasProfile()) {
mergeProfile(other.getProfile());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
profileId_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 17: {
startTimeUnixNano_ = input.readFixed64();
bitField0_ |= 0x00000002;
break;
} // case 17
case 25: {
endTimeUnixNano_ = input.readFixed64();
bitField0_ |= 0x00000004;
break;
} // case 25
case 34: {
io.opentelemetry.proto.common.v1.KeyValue m =
input.readMessage(
io.opentelemetry.proto.common.v1.KeyValue.parser(),
extensionRegistry);
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(m);
} else {
attributesBuilder_.addMessage(m);
}
break;
} // case 34
case 40: {
droppedAttributesCount_ = input.readUInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
originalPayloadFormat_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
originalPayload_ = input.readBytes();
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getProfileFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString profileId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* 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;
* @return The profileId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getProfileId() {
return profileId_;
}
/**
*
* 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;
* @param value The profileId to set.
* @return This builder for chaining.
*/
public Builder setProfileId(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
profileId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearProfileId() {
bitField0_ = (bitField0_ & ~0x00000001);
profileId_ = getDefaultInstance().getProfileId();
onChanged();
return this;
}
private long startTimeUnixNano_ ;
/**
*
* 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;
* @return The startTimeUnixNano.
*/
@java.lang.Override
public long getStartTimeUnixNano() {
return startTimeUnixNano_;
}
/**
*
* 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;
* @param value The startTimeUnixNano to set.
* @return This builder for chaining.
*/
public Builder setStartTimeUnixNano(long value) {
startTimeUnixNano_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearStartTimeUnixNano() {
bitField0_ = (bitField0_ & ~0x00000002);
startTimeUnixNano_ = 0L;
onChanged();
return this;
}
private long endTimeUnixNano_ ;
/**
*
* 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;
* @return The endTimeUnixNano.
*/
@java.lang.Override
public long getEndTimeUnixNano() {
return endTimeUnixNano_;
}
/**
*
* 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;
* @param value The endTimeUnixNano to set.
* @return This builder for chaining.
*/
public Builder setEndTimeUnixNano(long value) {
endTimeUnixNano_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearEndTimeUnixNano() {
bitField0_ = (bitField0_ & ~0x00000004);
endTimeUnixNano_ = 0L;
onChanged();
return this;
}
private java.util.List attributes_ =
java.util.Collections.emptyList();
private void ensureAttributesIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
attributes_ = new java.util.ArrayList(attributes_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opentelemetry.proto.common.v1.KeyValue, io.opentelemetry.proto.common.v1.KeyValue.Builder, io.opentelemetry.proto.common.v1.KeyValueOrBuilder> attributesBuilder_;
/**
*
* 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;
*/
public java.util.List getAttributesList() {
if (attributesBuilder_ == null) {
return java.util.Collections.unmodifiableList(attributes_);
} else {
return attributesBuilder_.getMessageList();
}
}
/**
*
* 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;
*/
public int getAttributesCount() {
if (attributesBuilder_ == null) {
return attributes_.size();
} else {
return attributesBuilder_.getCount();
}
}
/**
*
* 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;
*/
public io.opentelemetry.proto.common.v1.KeyValue getAttributes(int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index);
} else {
return attributesBuilder_.getMessage(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;
*/
public Builder setAttributes(
int index, io.opentelemetry.proto.common.v1.KeyValue value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.set(index, value);
onChanged();
} else {
attributesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* 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;
*/
public Builder setAttributes(
int index, io.opentelemetry.proto.common.v1.KeyValue.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.set(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* 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;
*/
public Builder addAttributes(io.opentelemetry.proto.common.v1.KeyValue value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(value);
onChanged();
} else {
attributesBuilder_.addMessage(value);
}
return this;
}
/**
*
* 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;
*/
public Builder addAttributes(
int index, io.opentelemetry.proto.common.v1.KeyValue value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(index, value);
onChanged();
} else {
attributesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* 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;
*/
public Builder addAttributes(
io.opentelemetry.proto.common.v1.KeyValue.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* 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;
*/
public Builder addAttributes(
int index, io.opentelemetry.proto.common.v1.KeyValue.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* 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;
*/
public Builder addAllAttributes(
java.lang.Iterable extends io.opentelemetry.proto.common.v1.KeyValue> values) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attributes_);
onChanged();
} else {
attributesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* 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;
*/
public Builder clearAttributes() {
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
attributesBuilder_.clear();
}
return this;
}
/**
*
* 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;
*/
public Builder removeAttributes(int index) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.remove(index);
onChanged();
} else {
attributesBuilder_.remove(index);
}
return this;
}
/**
*
* 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;
*/
public io.opentelemetry.proto.common.v1.KeyValue.Builder getAttributesBuilder(
int index) {
return getAttributesFieldBuilder().getBuilder(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;
*/
public io.opentelemetry.proto.common.v1.KeyValueOrBuilder getAttributesOrBuilder(
int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index); } else {
return attributesBuilder_.getMessageOrBuilder(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;
*/
public java.util.List extends io.opentelemetry.proto.common.v1.KeyValueOrBuilder>
getAttributesOrBuilderList() {
if (attributesBuilder_ != null) {
return attributesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attributes_);
}
}
/**
*
* 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;
*/
public io.opentelemetry.proto.common.v1.KeyValue.Builder addAttributesBuilder() {
return getAttributesFieldBuilder().addBuilder(
io.opentelemetry.proto.common.v1.KeyValue.getDefaultInstance());
}
/**
*
* 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;
*/
public io.opentelemetry.proto.common.v1.KeyValue.Builder addAttributesBuilder(
int index) {
return getAttributesFieldBuilder().addBuilder(
index, io.opentelemetry.proto.common.v1.KeyValue.getDefaultInstance());
}
/**
*
* 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;
*/
public java.util.List
getAttributesBuilderList() {
return getAttributesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opentelemetry.proto.common.v1.KeyValue, io.opentelemetry.proto.common.v1.KeyValue.Builder, io.opentelemetry.proto.common.v1.KeyValueOrBuilder>
getAttributesFieldBuilder() {
if (attributesBuilder_ == null) {
attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.opentelemetry.proto.common.v1.KeyValue, io.opentelemetry.proto.common.v1.KeyValue.Builder, io.opentelemetry.proto.common.v1.KeyValueOrBuilder>(
attributes_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
attributes_ = null;
}
return attributesBuilder_;
}
private int droppedAttributesCount_ ;
/**
*
* 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;
* @return The droppedAttributesCount.
*/
@java.lang.Override
public int getDroppedAttributesCount() {
return droppedAttributesCount_;
}
/**
*
* 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;
* @param value The droppedAttributesCount to set.
* @return This builder for chaining.
*/
public Builder setDroppedAttributesCount(int value) {
droppedAttributesCount_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearDroppedAttributesCount() {
bitField0_ = (bitField0_ & ~0x00000010);
droppedAttributesCount_ = 0;
onChanged();
return this;
}
private java.lang.Object originalPayloadFormat_ = "";
/**
*
* Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
*
*
* string original_payload_format = 6;
* @return The originalPayloadFormat.
*/
public java.lang.String getOriginalPayloadFormat() {
java.lang.Object ref = originalPayloadFormat_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
originalPayloadFormat_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
*
*
* string original_payload_format = 6;
* @return The bytes for originalPayloadFormat.
*/
public com.google.protobuf.ByteString
getOriginalPayloadFormatBytes() {
java.lang.Object ref = originalPayloadFormat_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originalPayloadFormat_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
*
*
* string original_payload_format = 6;
* @param value The originalPayloadFormat to set.
* @return This builder for chaining.
*/
public Builder setOriginalPayloadFormat(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
originalPayloadFormat_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
*
*
* string original_payload_format = 6;
* @return This builder for chaining.
*/
public Builder clearOriginalPayloadFormat() {
originalPayloadFormat_ = getDefaultInstance().getOriginalPayloadFormat();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present]
*
*
* string original_payload_format = 6;
* @param value The bytes for originalPayloadFormat to set.
* @return This builder for chaining.
*/
public Builder setOriginalPayloadFormatBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
originalPayloadFormat_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private com.google.protobuf.ByteString originalPayload_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* 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;
* @return The originalPayload.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOriginalPayload() {
return originalPayload_;
}
/**
*
* 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;
* @param value The originalPayload to set.
* @return This builder for chaining.
*/
public Builder setOriginalPayload(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
originalPayload_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* 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;
* @return This builder for chaining.
*/
public Builder clearOriginalPayload() {
bitField0_ = (bitField0_ & ~0x00000040);
originalPayload_ = getDefaultInstance().getOriginalPayload();
onChanged();
return this;
}
private opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile profile_;
private com.google.protobuf.SingleFieldBuilderV3<
opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile, opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.ProfileOrBuilder> profileBuilder_;
/**
*
* This is a reference to a pprof profile. Required, even when original_payload is present.
*
*
* .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
* @return Whether the profile field is set.
*/
public boolean hasProfile() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* This is a reference to a pprof profile. Required, even when original_payload is present.
*
*
* .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
* @return The profile.
*/
public opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile getProfile() {
if (profileBuilder_ == null) {
return profile_ == null ? opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.getDefaultInstance() : profile_;
} else {
return profileBuilder_.getMessage();
}
}
/**
*
* This is a reference to a pprof profile. Required, even when original_payload is present.
*
*
* .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
*/
public Builder setProfile(opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile value) {
if (profileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
profile_ = value;
} else {
profileBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* This is a reference to a pprof profile. Required, even when original_payload is present.
*
*
* .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
*/
public Builder setProfile(
opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.Builder builderForValue) {
if (profileBuilder_ == null) {
profile_ = builderForValue.build();
} else {
profileBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* This is a reference to a pprof profile. Required, even when original_payload is present.
*
*
* .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
*/
public Builder mergeProfile(opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile value) {
if (profileBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
profile_ != null &&
profile_ != opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.getDefaultInstance()) {
getProfileBuilder().mergeFrom(value);
} else {
profile_ = value;
}
} else {
profileBuilder_.mergeFrom(value);
}
if (profile_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
* This is a reference to a pprof profile. Required, even when original_payload is present.
*
*
* .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
*/
public Builder clearProfile() {
bitField0_ = (bitField0_ & ~0x00000080);
profile_ = null;
if (profileBuilder_ != null) {
profileBuilder_.dispose();
profileBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* This is a reference to a pprof profile. Required, even when original_payload is present.
*
*
* .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
*/
public opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.Builder getProfileBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getProfileFieldBuilder().getBuilder();
}
/**
*
* This is a reference to a pprof profile. Required, even when original_payload is present.
*
*
* .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
*/
public opentelemetry.proto.profiles.v1experimental.Pprofextended.ProfileOrBuilder getProfileOrBuilder() {
if (profileBuilder_ != null) {
return profileBuilder_.getMessageOrBuilder();
} else {
return profile_ == null ?
opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.getDefaultInstance() : profile_;
}
}
/**
*
* This is a reference to a pprof profile. Required, even when original_payload is present.
*
*
* .opentelemetry.proto.profiles.v1experimental.Profile profile = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile, opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.ProfileOrBuilder>
getProfileFieldBuilder() {
if (profileBuilder_ == null) {
profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile, opentelemetry.proto.profiles.v1experimental.Pprofextended.Profile.Builder, opentelemetry.proto.profiles.v1experimental.Pprofextended.ProfileOrBuilder>(
getProfile(),
getParentForChildren(),
isClean());
profile_ = null;
}
return profileBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:opentelemetry.proto.profiles.v1experimental.ProfileContainer)
}
// @@protoc_insertion_point(class_scope:opentelemetry.proto.profiles.v1experimental.ProfileContainer)
private static final io.opentelemetry.proto.profiles.v1experimental.ProfileContainer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opentelemetry.proto.profiles.v1experimental.ProfileContainer();
}
public static io.opentelemetry.proto.profiles.v1experimental.ProfileContainer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProfileContainer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.ProfileContainer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy