All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.proto.profiles.v1development.Sample Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: opentelemetry/proto/profiles/v1development/profiles.proto

// Protobuf Java Version: 3.25.1
package io.opentelemetry.proto.profiles.v1development;

/**
 * 
 * Each Sample records values encountered in some program
 * context. The program context is typically a stack trace, perhaps
 * augmented with auxiliary information like the thread-id, some
 * indicator of a higher level request being handled etc.
 * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1development.Sample} */ public final class Sample extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opentelemetry.proto.profiles.v1development.Sample) SampleOrBuilder { private static final long serialVersionUID = 0L; // Use Sample.newBuilder() to construct. private Sample(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Sample() { value_ = emptyLongList(); attributeIndices_ = emptyIntList(); timestampsUnixNano_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Sample(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opentelemetry.proto.profiles.v1development.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1development_Sample_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.profiles.v1development.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1development_Sample_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.profiles.v1development.Sample.class, io.opentelemetry.proto.profiles.v1development.Sample.Builder.class); } private int bitField0_; public static final int LOCATIONS_START_INDEX_FIELD_NUMBER = 1; private int locationsStartIndex_ = 0; /** *
   * locations_start_index along with locations_length refers to to a slice of locations in Profile.location_indices.
   * 
* * int32 locations_start_index = 1; * @return The locationsStartIndex. */ @java.lang.Override public int getLocationsStartIndex() { return locationsStartIndex_; } public static final int LOCATIONS_LENGTH_FIELD_NUMBER = 2; private int locationsLength_ = 0; /** *
   * locations_length along with locations_start_index refers to a slice of locations in Profile.location_indices.
   * Supersedes location_index.
   * 
* * int32 locations_length = 2; * @return The locationsLength. */ @java.lang.Override public int getLocationsLength() { return locationsLength_; } public static final int VALUE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList value_ = emptyLongList(); /** *
   * The type and unit of each value is defined by the corresponding
   * entry in Profile.sample_type. All samples must have the same
   * number of values, the same as the length of Profile.sample_type.
   * When aggregating multiple samples into a single sample, the
   * result has a list of values that is the element-wise sum of the
   * lists of the originals.
   * 
* * repeated int64 value = 3; * @return A list containing the value. */ @java.lang.Override public java.util.List getValueList() { return value_; } /** *
   * The type and unit of each value is defined by the corresponding
   * entry in Profile.sample_type. All samples must have the same
   * number of values, the same as the length of Profile.sample_type.
   * When aggregating multiple samples into a single sample, the
   * result has a list of values that is the element-wise sum of the
   * lists of the originals.
   * 
* * repeated int64 value = 3; * @return The count of value. */ public int getValueCount() { return value_.size(); } /** *
   * The type and unit of each value is defined by the corresponding
   * entry in Profile.sample_type. All samples must have the same
   * number of values, the same as the length of Profile.sample_type.
   * When aggregating multiple samples into a single sample, the
   * result has a list of values that is the element-wise sum of the
   * lists of the originals.
   * 
* * repeated int64 value = 3; * @param index The index of the element to return. * @return The value at the given index. */ public long getValue(int index) { return value_.getLong(index); } private int valueMemoizedSerializedSize = -1; public static final int ATTRIBUTE_INDICES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList attributeIndices_ = emptyIntList(); /** *
   * References to attributes in Profile.attribute_table. [optional]
   * 
* * repeated int32 attribute_indices = 4; * @return A list containing the attributeIndices. */ @java.lang.Override public java.util.List getAttributeIndicesList() { return attributeIndices_; } /** *
   * References to attributes in Profile.attribute_table. [optional]
   * 
* * repeated int32 attribute_indices = 4; * @return The count of attributeIndices. */ public int getAttributeIndicesCount() { return attributeIndices_.size(); } /** *
   * References to attributes in Profile.attribute_table. [optional]
   * 
* * repeated int32 attribute_indices = 4; * @param index The index of the element to return. * @return The attributeIndices at the given index. */ public int getAttributeIndices(int index) { return attributeIndices_.getInt(index); } private int attributeIndicesMemoizedSerializedSize = -1; public static final int LINK_INDEX_FIELD_NUMBER = 5; private int linkIndex_ = 0; /** *
   * Reference to link in Profile.link_table. [optional]
   * 
* * optional int32 link_index = 5; * @return Whether the linkIndex field is set. */ @java.lang.Override public boolean hasLinkIndex() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Reference to link in Profile.link_table. [optional]
   * 
* * optional int32 link_index = 5; * @return The linkIndex. */ @java.lang.Override public int getLinkIndex() { return linkIndex_; } public static final int TIMESTAMPS_UNIX_NANO_FIELD_NUMBER = 6; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList timestampsUnixNano_ = emptyLongList(); /** *
   * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
   * to fall within the Profile's time range. [optional]
   * 
* * repeated uint64 timestamps_unix_nano = 6; * @return A list containing the timestampsUnixNano. */ @java.lang.Override public java.util.List getTimestampsUnixNanoList() { return timestampsUnixNano_; } /** *
   * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
   * to fall within the Profile's time range. [optional]
   * 
* * repeated uint64 timestamps_unix_nano = 6; * @return The count of timestampsUnixNano. */ public int getTimestampsUnixNanoCount() { return timestampsUnixNano_.size(); } /** *
   * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
   * to fall within the Profile's time range. [optional]
   * 
* * repeated uint64 timestamps_unix_nano = 6; * @param index The index of the element to return. * @return The timestampsUnixNano at the given index. */ public long getTimestampsUnixNano(int index) { return timestampsUnixNano_.getLong(index); } private int timestampsUnixNanoMemoizedSerializedSize = -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 (locationsStartIndex_ != 0) { output.writeInt32(1, locationsStartIndex_); } if (locationsLength_ != 0) { output.writeInt32(2, locationsLength_); } if (getValueList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(valueMemoizedSerializedSize); } for (int i = 0; i < value_.size(); i++) { output.writeInt64NoTag(value_.getLong(i)); } if (getAttributeIndicesList().size() > 0) { output.writeUInt32NoTag(34); output.writeUInt32NoTag(attributeIndicesMemoizedSerializedSize); } for (int i = 0; i < attributeIndices_.size(); i++) { output.writeInt32NoTag(attributeIndices_.getInt(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(5, linkIndex_); } if (getTimestampsUnixNanoList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(timestampsUnixNanoMemoizedSerializedSize); } for (int i = 0; i < timestampsUnixNano_.size(); i++) { output.writeUInt64NoTag(timestampsUnixNano_.getLong(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (locationsStartIndex_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, locationsStartIndex_); } if (locationsLength_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, locationsLength_); } { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(value_.getLong(i)); } size += dataSize; if (!getValueList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } valueMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < attributeIndices_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(attributeIndices_.getInt(i)); } size += dataSize; if (!getAttributeIndicesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } attributeIndicesMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, linkIndex_); } { int dataSize = 0; for (int i = 0; i < timestampsUnixNano_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(timestampsUnixNano_.getLong(i)); } size += dataSize; if (!getTimestampsUnixNanoList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } timestampsUnixNanoMemoizedSerializedSize = dataSize; } 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.v1development.Sample)) { return super.equals(obj); } io.opentelemetry.proto.profiles.v1development.Sample other = (io.opentelemetry.proto.profiles.v1development.Sample) obj; if (getLocationsStartIndex() != other.getLocationsStartIndex()) return false; if (getLocationsLength() != other.getLocationsLength()) return false; if (!getValueList() .equals(other.getValueList())) return false; if (!getAttributeIndicesList() .equals(other.getAttributeIndicesList())) return false; if (hasLinkIndex() != other.hasLinkIndex()) return false; if (hasLinkIndex()) { if (getLinkIndex() != other.getLinkIndex()) return false; } if (!getTimestampsUnixNanoList() .equals(other.getTimestampsUnixNanoList())) 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) + LOCATIONS_START_INDEX_FIELD_NUMBER; hash = (53 * hash) + getLocationsStartIndex(); hash = (37 * hash) + LOCATIONS_LENGTH_FIELD_NUMBER; hash = (53 * hash) + getLocationsLength(); if (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } if (getAttributeIndicesCount() > 0) { hash = (37 * hash) + ATTRIBUTE_INDICES_FIELD_NUMBER; hash = (53 * hash) + getAttributeIndicesList().hashCode(); } if (hasLinkIndex()) { hash = (37 * hash) + LINK_INDEX_FIELD_NUMBER; hash = (53 * hash) + getLinkIndex(); } if (getTimestampsUnixNanoCount() > 0) { hash = (37 * hash) + TIMESTAMPS_UNIX_NANO_FIELD_NUMBER; hash = (53 * hash) + getTimestampsUnixNanoList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.opentelemetry.proto.profiles.v1development.Sample parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.profiles.v1development.Sample 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.v1development.Sample parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.profiles.v1development.Sample 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.v1development.Sample parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.profiles.v1development.Sample parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.profiles.v1development.Sample parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.profiles.v1development.Sample 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.v1development.Sample parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opentelemetry.proto.profiles.v1development.Sample 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.v1development.Sample parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.profiles.v1development.Sample 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.v1development.Sample 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; } /** *
   * Each Sample records values encountered in some program
   * context. The program context is typically a stack trace, perhaps
   * augmented with auxiliary information like the thread-id, some
   * indicator of a higher level request being handled etc.
   * 
* * Protobuf type {@code opentelemetry.proto.profiles.v1development.Sample} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.profiles.v1development.Sample) io.opentelemetry.proto.profiles.v1development.SampleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opentelemetry.proto.profiles.v1development.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1development_Sample_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.profiles.v1development.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1development_Sample_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.profiles.v1development.Sample.class, io.opentelemetry.proto.profiles.v1development.Sample.Builder.class); } // Construct using io.opentelemetry.proto.profiles.v1development.Sample.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; locationsStartIndex_ = 0; locationsLength_ = 0; value_ = emptyLongList(); attributeIndices_ = emptyIntList(); linkIndex_ = 0; timestampsUnixNano_ = emptyLongList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opentelemetry.proto.profiles.v1development.ProfilesProto.internal_static_opentelemetry_proto_profiles_v1development_Sample_descriptor; } @java.lang.Override public io.opentelemetry.proto.profiles.v1development.Sample getDefaultInstanceForType() { return io.opentelemetry.proto.profiles.v1development.Sample.getDefaultInstance(); } @java.lang.Override public io.opentelemetry.proto.profiles.v1development.Sample build() { io.opentelemetry.proto.profiles.v1development.Sample result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opentelemetry.proto.profiles.v1development.Sample buildPartial() { io.opentelemetry.proto.profiles.v1development.Sample result = new io.opentelemetry.proto.profiles.v1development.Sample(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.opentelemetry.proto.profiles.v1development.Sample result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.locationsStartIndex_ = locationsStartIndex_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.locationsLength_ = locationsLength_; } if (((from_bitField0_ & 0x00000004) != 0)) { value_.makeImmutable(); result.value_ = value_; } if (((from_bitField0_ & 0x00000008) != 0)) { attributeIndices_.makeImmutable(); result.attributeIndices_ = attributeIndices_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.linkIndex_ = linkIndex_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { timestampsUnixNano_.makeImmutable(); result.timestampsUnixNano_ = timestampsUnixNano_; } 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.v1development.Sample) { return mergeFrom((io.opentelemetry.proto.profiles.v1development.Sample)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opentelemetry.proto.profiles.v1development.Sample other) { if (other == io.opentelemetry.proto.profiles.v1development.Sample.getDefaultInstance()) return this; if (other.getLocationsStartIndex() != 0) { setLocationsStartIndex(other.getLocationsStartIndex()); } if (other.getLocationsLength() != 0) { setLocationsLength(other.getLocationsLength()); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; value_.makeImmutable(); bitField0_ |= 0x00000004; } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } if (!other.attributeIndices_.isEmpty()) { if (attributeIndices_.isEmpty()) { attributeIndices_ = other.attributeIndices_; attributeIndices_.makeImmutable(); bitField0_ |= 0x00000008; } else { ensureAttributeIndicesIsMutable(); attributeIndices_.addAll(other.attributeIndices_); } onChanged(); } if (other.hasLinkIndex()) { setLinkIndex(other.getLinkIndex()); } if (!other.timestampsUnixNano_.isEmpty()) { if (timestampsUnixNano_.isEmpty()) { timestampsUnixNano_ = other.timestampsUnixNano_; timestampsUnixNano_.makeImmutable(); bitField0_ |= 0x00000020; } else { ensureTimestampsUnixNanoIsMutable(); timestampsUnixNano_.addAll(other.timestampsUnixNano_); } onChanged(); } 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 8: { locationsStartIndex_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { locationsLength_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { long v = input.readInt64(); ensureValueIsMutable(); value_.addLong(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureValueIsMutable(); while (input.getBytesUntilLimit() > 0) { value_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 26 case 32: { int v = input.readInt32(); ensureAttributeIndicesIsMutable(); attributeIndices_.addInt(v); break; } // case 32 case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureAttributeIndicesIsMutable(); while (input.getBytesUntilLimit() > 0) { attributeIndices_.addInt(input.readInt32()); } input.popLimit(limit); break; } // case 34 case 40: { linkIndex_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { long v = input.readUInt64(); ensureTimestampsUnixNanoIsMutable(); timestampsUnixNano_.addLong(v); break; } // case 48 case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureTimestampsUnixNanoIsMutable(); while (input.getBytesUntilLimit() > 0) { timestampsUnixNano_.addLong(input.readUInt64()); } input.popLimit(limit); break; } // case 50 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 int locationsStartIndex_ ; /** *
     * locations_start_index along with locations_length refers to to a slice of locations in Profile.location_indices.
     * 
* * int32 locations_start_index = 1; * @return The locationsStartIndex. */ @java.lang.Override public int getLocationsStartIndex() { return locationsStartIndex_; } /** *
     * locations_start_index along with locations_length refers to to a slice of locations in Profile.location_indices.
     * 
* * int32 locations_start_index = 1; * @param value The locationsStartIndex to set. * @return This builder for chaining. */ public Builder setLocationsStartIndex(int value) { locationsStartIndex_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * locations_start_index along with locations_length refers to to a slice of locations in Profile.location_indices.
     * 
* * int32 locations_start_index = 1; * @return This builder for chaining. */ public Builder clearLocationsStartIndex() { bitField0_ = (bitField0_ & ~0x00000001); locationsStartIndex_ = 0; onChanged(); return this; } private int locationsLength_ ; /** *
     * locations_length along with locations_start_index refers to a slice of locations in Profile.location_indices.
     * Supersedes location_index.
     * 
* * int32 locations_length = 2; * @return The locationsLength. */ @java.lang.Override public int getLocationsLength() { return locationsLength_; } /** *
     * locations_length along with locations_start_index refers to a slice of locations in Profile.location_indices.
     * Supersedes location_index.
     * 
* * int32 locations_length = 2; * @param value The locationsLength to set. * @return This builder for chaining. */ public Builder setLocationsLength(int value) { locationsLength_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * locations_length along with locations_start_index refers to a slice of locations in Profile.location_indices.
     * Supersedes location_index.
     * 
* * int32 locations_length = 2; * @return This builder for chaining. */ public Builder clearLocationsLength() { bitField0_ = (bitField0_ & ~0x00000002); locationsLength_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.LongList value_ = emptyLongList(); private void ensureValueIsMutable() { if (!value_.isModifiable()) { value_ = makeMutableCopy(value_); } bitField0_ |= 0x00000004; } /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 3; * @return A list containing the value. */ public java.util.List getValueList() { value_.makeImmutable(); return value_; } /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 3; * @return The count of value. */ public int getValueCount() { return value_.size(); } /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 3; * @param index The index of the element to return. * @return The value at the given index. */ public long getValue(int index) { return value_.getLong(index); } /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 3; * @param index The index to set the value at. * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( int index, long value) { ensureValueIsMutable(); value_.setLong(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 3; * @param value The value to add. * @return This builder for chaining. */ public Builder addValue(long value) { ensureValueIsMutable(); value_.addLong(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 3; * @param values The value to add. * @return This builder for chaining. */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The type and unit of each value is defined by the corresponding
     * entry in Profile.sample_type. All samples must have the same
     * number of values, the same as the length of Profile.sample_type.
     * When aggregating multiple samples into a single sample, the
     * result has a list of values that is the element-wise sum of the
     * lists of the originals.
     * 
* * repeated int64 value = 3; * @return This builder for chaining. */ public Builder clearValue() { value_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private com.google.protobuf.Internal.IntList attributeIndices_ = emptyIntList(); private void ensureAttributeIndicesIsMutable() { if (!attributeIndices_.isModifiable()) { attributeIndices_ = makeMutableCopy(attributeIndices_); } bitField0_ |= 0x00000008; } /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated int32 attribute_indices = 4; * @return A list containing the attributeIndices. */ public java.util.List getAttributeIndicesList() { attributeIndices_.makeImmutable(); return attributeIndices_; } /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated int32 attribute_indices = 4; * @return The count of attributeIndices. */ public int getAttributeIndicesCount() { return attributeIndices_.size(); } /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated int32 attribute_indices = 4; * @param index The index of the element to return. * @return The attributeIndices at the given index. */ public int getAttributeIndices(int index) { return attributeIndices_.getInt(index); } /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated int32 attribute_indices = 4; * @param index The index to set the value at. * @param value The attributeIndices to set. * @return This builder for chaining. */ public Builder setAttributeIndices( int index, int value) { ensureAttributeIndicesIsMutable(); attributeIndices_.setInt(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated int32 attribute_indices = 4; * @param value The attributeIndices to add. * @return This builder for chaining. */ public Builder addAttributeIndices(int value) { ensureAttributeIndicesIsMutable(); attributeIndices_.addInt(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated int32 attribute_indices = 4; * @param values The attributeIndices to add. * @return This builder for chaining. */ public Builder addAllAttributeIndices( java.lang.Iterable values) { ensureAttributeIndicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributeIndices_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * References to attributes in Profile.attribute_table. [optional]
     * 
* * repeated int32 attribute_indices = 4; * @return This builder for chaining. */ public Builder clearAttributeIndices() { attributeIndices_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private int linkIndex_ ; /** *
     * Reference to link in Profile.link_table. [optional]
     * 
* * optional int32 link_index = 5; * @return Whether the linkIndex field is set. */ @java.lang.Override public boolean hasLinkIndex() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Reference to link in Profile.link_table. [optional]
     * 
* * optional int32 link_index = 5; * @return The linkIndex. */ @java.lang.Override public int getLinkIndex() { return linkIndex_; } /** *
     * Reference to link in Profile.link_table. [optional]
     * 
* * optional int32 link_index = 5; * @param value The linkIndex to set. * @return This builder for chaining. */ public Builder setLinkIndex(int value) { linkIndex_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Reference to link in Profile.link_table. [optional]
     * 
* * optional int32 link_index = 5; * @return This builder for chaining. */ public Builder clearLinkIndex() { bitField0_ = (bitField0_ & ~0x00000010); linkIndex_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.LongList timestampsUnixNano_ = emptyLongList(); private void ensureTimestampsUnixNanoIsMutable() { if (!timestampsUnixNano_.isModifiable()) { timestampsUnixNano_ = makeMutableCopy(timestampsUnixNano_); } bitField0_ |= 0x00000020; } /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 6; * @return A list containing the timestampsUnixNano. */ public java.util.List getTimestampsUnixNanoList() { timestampsUnixNano_.makeImmutable(); return timestampsUnixNano_; } /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 6; * @return The count of timestampsUnixNano. */ public int getTimestampsUnixNanoCount() { return timestampsUnixNano_.size(); } /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 6; * @param index The index of the element to return. * @return The timestampsUnixNano at the given index. */ public long getTimestampsUnixNano(int index) { return timestampsUnixNano_.getLong(index); } /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 6; * @param index The index to set the value at. * @param value The timestampsUnixNano to set. * @return This builder for chaining. */ public Builder setTimestampsUnixNano( int index, long value) { ensureTimestampsUnixNanoIsMutable(); timestampsUnixNano_.setLong(index, value); bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 6; * @param value The timestampsUnixNano to add. * @return This builder for chaining. */ public Builder addTimestampsUnixNano(long value) { ensureTimestampsUnixNanoIsMutable(); timestampsUnixNano_.addLong(value); bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 6; * @param values The timestampsUnixNano to add. * @return This builder for chaining. */ public Builder addAllTimestampsUnixNano( java.lang.Iterable values) { ensureTimestampsUnixNanoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, timestampsUnixNano_); bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
     * to fall within the Profile's time range. [optional]
     * 
* * repeated uint64 timestamps_unix_nano = 6; * @return This builder for chaining. */ public Builder clearTimestampsUnixNano() { timestampsUnixNano_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000020); 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.v1development.Sample) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.profiles.v1development.Sample) private static final io.opentelemetry.proto.profiles.v1development.Sample DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opentelemetry.proto.profiles.v1development.Sample(); } public static io.opentelemetry.proto.profiles.v1development.Sample getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Sample 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.v1development.Sample getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy