
io.opentelemetry.proto.profiles.v1experimental.Location Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of open-telemetry-protocol Show documentation
Show all versions of open-telemetry-protocol Show documentation
Open Telemetry protocol for building storage integrations
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opentelemetry/proto/profiles/v1experimental/pprofextended.proto
package io.opentelemetry.proto.profiles.v1experimental;
/**
*
* Describes function and line table debug information.
*
*
* Protobuf type {@code opentelemetry.proto.profiles.v1experimental.Location}
*/
public final class Location extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opentelemetry.proto.profiles.v1experimental.Location)
LocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Location.newBuilder() to construct.
private Location(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Location() {
line_ = java.util.Collections.emptyList();
attributes_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Location();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Location(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
id_ = input.readUInt64();
break;
}
case 16: {
mappingIndex_ = input.readUInt64();
break;
}
case 24: {
address_ = input.readUInt64();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
line_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
line_.add(
input.readMessage(io.opentelemetry.proto.profiles.v1experimental.Line.parser(), extensionRegistry));
break;
}
case 40: {
isFolded_ = input.readBool();
break;
}
case 48: {
typeIndex_ = input.readUInt32();
break;
}
case 56: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
attributes_ = newLongList();
mutable_bitField0_ |= 0x00000002;
}
attributes_.addLong(input.readUInt64());
break;
}
case 58: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
attributes_ = newLongList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
attributes_.addLong(input.readUInt64());
}
input.popLimit(limit);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
line_ = java.util.Collections.unmodifiableList(line_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
attributes_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Location_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.profiles.v1experimental.Location.class, io.opentelemetry.proto.profiles.v1experimental.Location.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private long id_;
/**
*
* Unique nonzero id for the location. A profile could use
* instruction addresses or any integer sequence as ids. [deprecated]
*
*
* uint64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int MAPPING_INDEX_FIELD_NUMBER = 2;
private long mappingIndex_;
/**
*
* The index of the corresponding profile.Mapping for this location.
* It can be unset if the mapping is unknown or not applicable for
* this profile type.
*
*
* uint64 mapping_index = 2;
* @return The mappingIndex.
*/
@java.lang.Override
public long getMappingIndex() {
return mappingIndex_;
}
public static final int ADDRESS_FIELD_NUMBER = 3;
private long address_;
/**
*
* The instruction address for this location, if available. It
* should be within [Mapping.memory_start...Mapping.memory_limit]
* for the corresponding mapping. A non-leaf address may be in the
* middle of a call instruction. It is up to display tools to find
* the beginning of the instruction if necessary.
*
*
* uint64 address = 3;
* @return The address.
*/
@java.lang.Override
public long getAddress() {
return address_;
}
public static final int LINE_FIELD_NUMBER = 4;
private java.util.List line_;
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
@java.lang.Override
public java.util.List getLineList() {
return line_;
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
@java.lang.Override
public java.util.List extends io.opentelemetry.proto.profiles.v1experimental.LineOrBuilder>
getLineOrBuilderList() {
return line_;
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
@java.lang.Override
public int getLineCount() {
return line_.size();
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.Line getLine(int index) {
return line_.get(index);
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.LineOrBuilder getLineOrBuilder(
int index) {
return line_.get(index);
}
public static final int IS_FOLDED_FIELD_NUMBER = 5;
private boolean isFolded_;
/**
*
* Provides an indication that multiple symbols map to this location's
* address, for example due to identical code folding by the linker. In that
* case the line information above represents one of the multiple
* symbols. This field must be recomputed when the symbolization state of the
* profile changes.
*
*
* bool is_folded = 5;
* @return The isFolded.
*/
@java.lang.Override
public boolean getIsFolded() {
return isFolded_;
}
public static final int TYPE_INDEX_FIELD_NUMBER = 6;
private int typeIndex_;
/**
*
* Type of frame (e.g. kernel, native, python, hotspot, php). Index into string table.
*
*
* uint32 type_index = 6;
* @return The typeIndex.
*/
@java.lang.Override
public int getTypeIndex() {
return typeIndex_;
}
public static final int ATTRIBUTES_FIELD_NUMBER = 7;
private com.google.protobuf.Internal.LongList attributes_;
/**
*
* References to attributes in Profile.attribute_table. [optional]
*
*
* repeated uint64 attributes = 7;
* @return A list containing the attributes.
*/
@java.lang.Override
public java.util.List
getAttributesList() {
return attributes_;
}
/**
*
* References to attributes in Profile.attribute_table. [optional]
*
*
* repeated uint64 attributes = 7;
* @return The count of attributes.
*/
public int getAttributesCount() {
return attributes_.size();
}
/**
*
* References to attributes in Profile.attribute_table. [optional]
*
*
* repeated uint64 attributes = 7;
* @param index The index of the element to return.
* @return The attributes at the given index.
*/
public long getAttributes(int index) {
return attributes_.getLong(index);
}
private int attributesMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (id_ != 0L) {
output.writeUInt64(1, id_);
}
if (mappingIndex_ != 0L) {
output.writeUInt64(2, mappingIndex_);
}
if (address_ != 0L) {
output.writeUInt64(3, address_);
}
for (int i = 0; i < line_.size(); i++) {
output.writeMessage(4, line_.get(i));
}
if (isFolded_ != false) {
output.writeBool(5, isFolded_);
}
if (typeIndex_ != 0) {
output.writeUInt32(6, typeIndex_);
}
if (getAttributesList().size() > 0) {
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(attributesMemoizedSerializedSize);
}
for (int i = 0; i < attributes_.size(); i++) {
output.writeUInt64NoTag(attributes_.getLong(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, id_);
}
if (mappingIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, mappingIndex_);
}
if (address_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, address_);
}
for (int i = 0; i < line_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, line_.get(i));
}
if (isFolded_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, isFolded_);
}
if (typeIndex_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, typeIndex_);
}
{
int dataSize = 0;
for (int i = 0; i < attributes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(attributes_.getLong(i));
}
size += dataSize;
if (!getAttributesList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
attributesMemoizedSerializedSize = dataSize;
}
size += unknownFields.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.Location)) {
return super.equals(obj);
}
io.opentelemetry.proto.profiles.v1experimental.Location other = (io.opentelemetry.proto.profiles.v1experimental.Location) obj;
if (getId()
!= other.getId()) return false;
if (getMappingIndex()
!= other.getMappingIndex()) return false;
if (getAddress()
!= other.getAddress()) return false;
if (!getLineList()
.equals(other.getLineList())) return false;
if (getIsFolded()
!= other.getIsFolded()) return false;
if (getTypeIndex()
!= other.getTypeIndex()) return false;
if (!getAttributesList()
.equals(other.getAttributesList())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
hash = (37 * hash) + MAPPING_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMappingIndex());
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAddress());
if (getLineCount() > 0) {
hash = (37 * hash) + LINE_FIELD_NUMBER;
hash = (53 * hash) + getLineList().hashCode();
}
hash = (37 * hash) + IS_FOLDED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsFolded());
hash = (37 * hash) + TYPE_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getTypeIndex();
if (getAttributesCount() > 0) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getAttributesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opentelemetry.proto.profiles.v1experimental.Location parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.profiles.v1experimental.Location 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.Location parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.profiles.v1experimental.Location 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.Location parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.profiles.v1experimental.Location 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.Location parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.profiles.v1experimental.Location 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.Location parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.profiles.v1experimental.Location 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.Location 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.Location 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.Location 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;
}
/**
*
* Describes function and line table debug information.
*
*
* Protobuf type {@code opentelemetry.proto.profiles.v1experimental.Location}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opentelemetry.proto.profiles.v1experimental.Location)
io.opentelemetry.proto.profiles.v1experimental.LocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Location_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.profiles.v1experimental.Location.class, io.opentelemetry.proto.profiles.v1experimental.Location.Builder.class);
}
// Construct using io.opentelemetry.proto.profiles.v1experimental.Location.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLineFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = 0L;
mappingIndex_ = 0L;
address_ = 0L;
if (lineBuilder_ == null) {
line_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
lineBuilder_.clear();
}
isFolded_ = false;
typeIndex_ = 0;
attributes_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.opentelemetry.proto.profiles.v1experimental.Pprofextended.internal_static_opentelemetry_proto_profiles_v1experimental_Location_descriptor;
}
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.Location getDefaultInstanceForType() {
return io.opentelemetry.proto.profiles.v1experimental.Location.getDefaultInstance();
}
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.Location build() {
io.opentelemetry.proto.profiles.v1experimental.Location result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opentelemetry.proto.profiles.v1experimental.Location buildPartial() {
io.opentelemetry.proto.profiles.v1experimental.Location result = new io.opentelemetry.proto.profiles.v1experimental.Location(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.mappingIndex_ = mappingIndex_;
result.address_ = address_;
if (lineBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
line_ = java.util.Collections.unmodifiableList(line_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.line_ = line_;
} else {
result.line_ = lineBuilder_.build();
}
result.isFolded_ = isFolded_;
result.typeIndex_ = typeIndex_;
if (((bitField0_ & 0x00000002) != 0)) {
attributes_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.attributes_ = attributes_;
onBuilt();
return result;
}
@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.Location) {
return mergeFrom((io.opentelemetry.proto.profiles.v1experimental.Location)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opentelemetry.proto.profiles.v1experimental.Location other) {
if (other == io.opentelemetry.proto.profiles.v1experimental.Location.getDefaultInstance()) return this;
if (other.getId() != 0L) {
setId(other.getId());
}
if (other.getMappingIndex() != 0L) {
setMappingIndex(other.getMappingIndex());
}
if (other.getAddress() != 0L) {
setAddress(other.getAddress());
}
if (lineBuilder_ == null) {
if (!other.line_.isEmpty()) {
if (line_.isEmpty()) {
line_ = other.line_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLineIsMutable();
line_.addAll(other.line_);
}
onChanged();
}
} else {
if (!other.line_.isEmpty()) {
if (lineBuilder_.isEmpty()) {
lineBuilder_.dispose();
lineBuilder_ = null;
line_ = other.line_;
bitField0_ = (bitField0_ & ~0x00000001);
lineBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLineFieldBuilder() : null;
} else {
lineBuilder_.addAllMessages(other.line_);
}
}
}
if (other.getIsFolded() != false) {
setIsFolded(other.getIsFolded());
}
if (other.getTypeIndex() != 0) {
setTypeIndex(other.getTypeIndex());
}
if (!other.attributes_.isEmpty()) {
if (attributes_.isEmpty()) {
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAttributesIsMutable();
attributes_.addAll(other.attributes_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
io.opentelemetry.proto.profiles.v1experimental.Location parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opentelemetry.proto.profiles.v1experimental.Location) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long id_ ;
/**
*
* Unique nonzero id for the location. A profile could use
* instruction addresses or any integer sequence as ids. [deprecated]
*
*
* uint64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* Unique nonzero id for the location. A profile could use
* instruction addresses or any integer sequence as ids. [deprecated]
*
*
* uint64 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
onChanged();
return this;
}
/**
*
* Unique nonzero id for the location. A profile could use
* instruction addresses or any integer sequence as ids. [deprecated]
*
*
* uint64 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = 0L;
onChanged();
return this;
}
private long mappingIndex_ ;
/**
*
* The index of the corresponding profile.Mapping for this location.
* It can be unset if the mapping is unknown or not applicable for
* this profile type.
*
*
* uint64 mapping_index = 2;
* @return The mappingIndex.
*/
@java.lang.Override
public long getMappingIndex() {
return mappingIndex_;
}
/**
*
* The index of the corresponding profile.Mapping for this location.
* It can be unset if the mapping is unknown or not applicable for
* this profile type.
*
*
* uint64 mapping_index = 2;
* @param value The mappingIndex to set.
* @return This builder for chaining.
*/
public Builder setMappingIndex(long value) {
mappingIndex_ = value;
onChanged();
return this;
}
/**
*
* The index of the corresponding profile.Mapping for this location.
* It can be unset if the mapping is unknown or not applicable for
* this profile type.
*
*
* uint64 mapping_index = 2;
* @return This builder for chaining.
*/
public Builder clearMappingIndex() {
mappingIndex_ = 0L;
onChanged();
return this;
}
private long address_ ;
/**
*
* The instruction address for this location, if available. It
* should be within [Mapping.memory_start...Mapping.memory_limit]
* for the corresponding mapping. A non-leaf address may be in the
* middle of a call instruction. It is up to display tools to find
* the beginning of the instruction if necessary.
*
*
* uint64 address = 3;
* @return The address.
*/
@java.lang.Override
public long getAddress() {
return address_;
}
/**
*
* The instruction address for this location, if available. It
* should be within [Mapping.memory_start...Mapping.memory_limit]
* for the corresponding mapping. A non-leaf address may be in the
* middle of a call instruction. It is up to display tools to find
* the beginning of the instruction if necessary.
*
*
* uint64 address = 3;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(long value) {
address_ = value;
onChanged();
return this;
}
/**
*
* The instruction address for this location, if available. It
* should be within [Mapping.memory_start...Mapping.memory_limit]
* for the corresponding mapping. A non-leaf address may be in the
* middle of a call instruction. It is up to display tools to find
* the beginning of the instruction if necessary.
*
*
* uint64 address = 3;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = 0L;
onChanged();
return this;
}
private java.util.List line_ =
java.util.Collections.emptyList();
private void ensureLineIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
line_ = new java.util.ArrayList(line_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opentelemetry.proto.profiles.v1experimental.Line, io.opentelemetry.proto.profiles.v1experimental.Line.Builder, io.opentelemetry.proto.profiles.v1experimental.LineOrBuilder> lineBuilder_;
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public java.util.List getLineList() {
if (lineBuilder_ == null) {
return java.util.Collections.unmodifiableList(line_);
} else {
return lineBuilder_.getMessageList();
}
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public int getLineCount() {
if (lineBuilder_ == null) {
return line_.size();
} else {
return lineBuilder_.getCount();
}
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public io.opentelemetry.proto.profiles.v1experimental.Line getLine(int index) {
if (lineBuilder_ == null) {
return line_.get(index);
} else {
return lineBuilder_.getMessage(index);
}
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public Builder setLine(
int index, io.opentelemetry.proto.profiles.v1experimental.Line value) {
if (lineBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLineIsMutable();
line_.set(index, value);
onChanged();
} else {
lineBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public Builder setLine(
int index, io.opentelemetry.proto.profiles.v1experimental.Line.Builder builderForValue) {
if (lineBuilder_ == null) {
ensureLineIsMutable();
line_.set(index, builderForValue.build());
onChanged();
} else {
lineBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public Builder addLine(io.opentelemetry.proto.profiles.v1experimental.Line value) {
if (lineBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLineIsMutable();
line_.add(value);
onChanged();
} else {
lineBuilder_.addMessage(value);
}
return this;
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public Builder addLine(
int index, io.opentelemetry.proto.profiles.v1experimental.Line value) {
if (lineBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLineIsMutable();
line_.add(index, value);
onChanged();
} else {
lineBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public Builder addLine(
io.opentelemetry.proto.profiles.v1experimental.Line.Builder builderForValue) {
if (lineBuilder_ == null) {
ensureLineIsMutable();
line_.add(builderForValue.build());
onChanged();
} else {
lineBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public Builder addLine(
int index, io.opentelemetry.proto.profiles.v1experimental.Line.Builder builderForValue) {
if (lineBuilder_ == null) {
ensureLineIsMutable();
line_.add(index, builderForValue.build());
onChanged();
} else {
lineBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public Builder addAllLine(
java.lang.Iterable extends io.opentelemetry.proto.profiles.v1experimental.Line> values) {
if (lineBuilder_ == null) {
ensureLineIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, line_);
onChanged();
} else {
lineBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public Builder clearLine() {
if (lineBuilder_ == null) {
line_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
lineBuilder_.clear();
}
return this;
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public Builder removeLine(int index) {
if (lineBuilder_ == null) {
ensureLineIsMutable();
line_.remove(index);
onChanged();
} else {
lineBuilder_.remove(index);
}
return this;
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public io.opentelemetry.proto.profiles.v1experimental.Line.Builder getLineBuilder(
int index) {
return getLineFieldBuilder().getBuilder(index);
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public io.opentelemetry.proto.profiles.v1experimental.LineOrBuilder getLineOrBuilder(
int index) {
if (lineBuilder_ == null) {
return line_.get(index); } else {
return lineBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public java.util.List extends io.opentelemetry.proto.profiles.v1experimental.LineOrBuilder>
getLineOrBuilderList() {
if (lineBuilder_ != null) {
return lineBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(line_);
}
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public io.opentelemetry.proto.profiles.v1experimental.Line.Builder addLineBuilder() {
return getLineFieldBuilder().addBuilder(
io.opentelemetry.proto.profiles.v1experimental.Line.getDefaultInstance());
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public io.opentelemetry.proto.profiles.v1experimental.Line.Builder addLineBuilder(
int index) {
return getLineFieldBuilder().addBuilder(
index, io.opentelemetry.proto.profiles.v1experimental.Line.getDefaultInstance());
}
/**
*
* Multiple line indicates this location has inlined functions,
* where the last entry represents the caller into which the
* preceding entries were inlined.
* E.g., if memcpy() is inlined into printf:
* line[0].function_name == "memcpy"
* line[1].function_name == "printf"
*
*
* repeated .opentelemetry.proto.profiles.v1experimental.Line line = 4;
*/
public java.util.List
getLineBuilderList() {
return getLineFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opentelemetry.proto.profiles.v1experimental.Line, io.opentelemetry.proto.profiles.v1experimental.Line.Builder, io.opentelemetry.proto.profiles.v1experimental.LineOrBuilder>
getLineFieldBuilder() {
if (lineBuilder_ == null) {
lineBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.opentelemetry.proto.profiles.v1experimental.Line, io.opentelemetry.proto.profiles.v1experimental.Line.Builder, io.opentelemetry.proto.profiles.v1experimental.LineOrBuilder>(
line_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
line_ = null;
}
return lineBuilder_;
}
private boolean isFolded_ ;
/**
*
* Provides an indication that multiple symbols map to this location's
* address, for example due to identical code folding by the linker. In that
* case the line information above represents one of the multiple
* symbols. This field must be recomputed when the symbolization state of the
* profile changes.
*
*
* bool is_folded = 5;
* @return The isFolded.
*/
@java.lang.Override
public boolean getIsFolded() {
return isFolded_;
}
/**
*
* Provides an indication that multiple symbols map to this location's
* address, for example due to identical code folding by the linker. In that
* case the line information above represents one of the multiple
* symbols. This field must be recomputed when the symbolization state of the
* profile changes.
*
*
* bool is_folded = 5;
* @param value The isFolded to set.
* @return This builder for chaining.
*/
public Builder setIsFolded(boolean value) {
isFolded_ = value;
onChanged();
return this;
}
/**
*
* Provides an indication that multiple symbols map to this location's
* address, for example due to identical code folding by the linker. In that
* case the line information above represents one of the multiple
* symbols. This field must be recomputed when the symbolization state of the
* profile changes.
*
*
* bool is_folded = 5;
* @return This builder for chaining.
*/
public Builder clearIsFolded() {
isFolded_ = false;
onChanged();
return this;
}
private int typeIndex_ ;
/**
*
* Type of frame (e.g. kernel, native, python, hotspot, php). Index into string table.
*
*
* uint32 type_index = 6;
* @return The typeIndex.
*/
@java.lang.Override
public int getTypeIndex() {
return typeIndex_;
}
/**
*
* Type of frame (e.g. kernel, native, python, hotspot, php). Index into string table.
*
*
* uint32 type_index = 6;
* @param value The typeIndex to set.
* @return This builder for chaining.
*/
public Builder setTypeIndex(int value) {
typeIndex_ = value;
onChanged();
return this;
}
/**
*
* Type of frame (e.g. kernel, native, python, hotspot, php). Index into string table.
*
*
* uint32 type_index = 6;
* @return This builder for chaining.
*/
public Builder clearTypeIndex() {
typeIndex_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList attributes_ = emptyLongList();
private void ensureAttributesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
attributes_ = mutableCopy(attributes_);
bitField0_ |= 0x00000002;
}
}
/**
*
* References to attributes in Profile.attribute_table. [optional]
*
*
* repeated uint64 attributes = 7;
* @return A list containing the attributes.
*/
public java.util.List
getAttributesList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(attributes_) : attributes_;
}
/**
*
* References to attributes in Profile.attribute_table. [optional]
*
*
* repeated uint64 attributes = 7;
* @return The count of attributes.
*/
public int getAttributesCount() {
return attributes_.size();
}
/**
*
* References to attributes in Profile.attribute_table. [optional]
*
*
* repeated uint64 attributes = 7;
* @param index The index of the element to return.
* @return The attributes at the given index.
*/
public long getAttributes(int index) {
return attributes_.getLong(index);
}
/**
*
* References to attributes in Profile.attribute_table. [optional]
*
*
* repeated uint64 attributes = 7;
* @param index The index to set the value at.
* @param value The attributes to set.
* @return This builder for chaining.
*/
public Builder setAttributes(
int index, long value) {
ensureAttributesIsMutable();
attributes_.setLong(index, value);
onChanged();
return this;
}
/**
*
* References to attributes in Profile.attribute_table. [optional]
*
*
* repeated uint64 attributes = 7;
* @param value The attributes to add.
* @return This builder for chaining.
*/
public Builder addAttributes(long value) {
ensureAttributesIsMutable();
attributes_.addLong(value);
onChanged();
return this;
}
/**
*
* References to attributes in Profile.attribute_table. [optional]
*
*
* repeated uint64 attributes = 7;
* @param values The attributes to add.
* @return This builder for chaining.
*/
public Builder addAllAttributes(
java.lang.Iterable extends java.lang.Long> values) {
ensureAttributesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attributes_);
onChanged();
return this;
}
/**
*
* References to attributes in Profile.attribute_table. [optional]
*
*
* repeated uint64 attributes = 7;
* @return This builder for chaining.
*/
public Builder clearAttributes() {
attributes_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@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.Location)
}
// @@protoc_insertion_point(class_scope:opentelemetry.proto.profiles.v1experimental.Location)
private static final io.opentelemetry.proto.profiles.v1experimental.Location DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opentelemetry.proto.profiles.v1experimental.Location();
}
public static io.opentelemetry.proto.profiles.v1experimental.Location getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Location parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Location(input, extensionRegistry);
}
};
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.Location getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy