
io.opentelemetry.proto.profiles.v1experimental.BuildIdKind 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;
/**
*
* Indicates the semantics of the build_id field.
*
*
* Protobuf enum {@code opentelemetry.proto.profiles.v1experimental.BuildIdKind}
*/
public enum BuildIdKind
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Linker-generated build ID, stored in the ELF binary notes.
*
*
* BUILD_ID_LINKER = 0;
*/
BUILD_ID_LINKER(0),
/**
*
* Build ID based on the content hash of the binary. Currently no particular
* hashing approach is standardized, so a given producer needs to define it
* themselves and thus unlike BUILD_ID_LINKER this kind of hash is producer-specific.
* We may choose to provide a standardized stable hash recommendation later.
*
*
* BUILD_ID_BINARY_HASH = 1;
*/
BUILD_ID_BINARY_HASH(1),
UNRECOGNIZED(-1),
;
/**
*
* Linker-generated build ID, stored in the ELF binary notes.
*
*
* BUILD_ID_LINKER = 0;
*/
public static final int BUILD_ID_LINKER_VALUE = 0;
/**
*
* Build ID based on the content hash of the binary. Currently no particular
* hashing approach is standardized, so a given producer needs to define it
* themselves and thus unlike BUILD_ID_LINKER this kind of hash is producer-specific.
* We may choose to provide a standardized stable hash recommendation later.
*
*
* BUILD_ID_BINARY_HASH = 1;
*/
public static final int BUILD_ID_BINARY_HASH_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BuildIdKind valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static BuildIdKind forNumber(int value) {
switch (value) {
case 0: return BUILD_ID_LINKER;
case 1: return BUILD_ID_BINARY_HASH;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BuildIdKind> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public BuildIdKind findValueByNumber(int number) {
return BuildIdKind.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.opentelemetry.proto.profiles.v1experimental.Pprofextended.getDescriptor().getEnumTypes().get(1);
}
private static final BuildIdKind[] VALUES = values();
public static BuildIdKind valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private BuildIdKind(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:opentelemetry.proto.profiles.v1experimental.BuildIdKind)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy