com.spotify.telemetry.v1.Platform Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: confidence/telemetry.proto
package com.spotify.telemetry.v1;
/**
* Protobuf enum {@code confidence.telemetry.v1.Platform}
*/
public enum Platform
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PLATFORM_UNSPECIFIED = 0;
*/
PLATFORM_UNSPECIFIED(0),
/**
* PLATFORM_JAVA = 1;
*/
PLATFORM_JAVA(1),
/**
* PLATFORM_KOTLIN = 2;
*/
PLATFORM_KOTLIN(2),
/**
* PLATFORM_SWIFT = 3;
*/
PLATFORM_SWIFT(3),
/**
* PLATFORM_JS_WEB = 4;
*/
PLATFORM_JS_WEB(4),
/**
* PLATFORM_JS_SERVER = 5;
*/
PLATFORM_JS_SERVER(5),
/**
* PLATFORM_PYTHON = 6;
*/
PLATFORM_PYTHON(6),
/**
* PLATFORM_GO = 7;
*/
PLATFORM_GO(7),
/**
* PLATFORM_RUBY = 8;
*/
PLATFORM_RUBY(8),
/**
* PLATFORM_RUST = 9;
*/
PLATFORM_RUST(9),
/**
* PLATFORM_FLUTTER_IOS = 10;
*/
PLATFORM_FLUTTER_IOS(10),
/**
* PLATFORM_FLUTTER_ANDROID = 11;
*/
PLATFORM_FLUTTER_ANDROID(11),
UNRECOGNIZED(-1),
;
/**
* PLATFORM_UNSPECIFIED = 0;
*/
public static final int PLATFORM_UNSPECIFIED_VALUE = 0;
/**
* PLATFORM_JAVA = 1;
*/
public static final int PLATFORM_JAVA_VALUE = 1;
/**
* PLATFORM_KOTLIN = 2;
*/
public static final int PLATFORM_KOTLIN_VALUE = 2;
/**
* PLATFORM_SWIFT = 3;
*/
public static final int PLATFORM_SWIFT_VALUE = 3;
/**
* PLATFORM_JS_WEB = 4;
*/
public static final int PLATFORM_JS_WEB_VALUE = 4;
/**
* PLATFORM_JS_SERVER = 5;
*/
public static final int PLATFORM_JS_SERVER_VALUE = 5;
/**
* PLATFORM_PYTHON = 6;
*/
public static final int PLATFORM_PYTHON_VALUE = 6;
/**
* PLATFORM_GO = 7;
*/
public static final int PLATFORM_GO_VALUE = 7;
/**
* PLATFORM_RUBY = 8;
*/
public static final int PLATFORM_RUBY_VALUE = 8;
/**
* PLATFORM_RUST = 9;
*/
public static final int PLATFORM_RUST_VALUE = 9;
/**
* PLATFORM_FLUTTER_IOS = 10;
*/
public static final int PLATFORM_FLUTTER_IOS_VALUE = 10;
/**
* PLATFORM_FLUTTER_ANDROID = 11;
*/
public static final int PLATFORM_FLUTTER_ANDROID_VALUE = 11;
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 Platform 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 Platform forNumber(int value) {
switch (value) {
case 0: return PLATFORM_UNSPECIFIED;
case 1: return PLATFORM_JAVA;
case 2: return PLATFORM_KOTLIN;
case 3: return PLATFORM_SWIFT;
case 4: return PLATFORM_JS_WEB;
case 5: return PLATFORM_JS_SERVER;
case 6: return PLATFORM_PYTHON;
case 7: return PLATFORM_GO;
case 8: return PLATFORM_RUBY;
case 9: return PLATFORM_RUST;
case 10: return PLATFORM_FLUTTER_IOS;
case 11: return PLATFORM_FLUTTER_ANDROID;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Platform> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Platform findValueByNumber(int number) {
return Platform.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 com.spotify.telemetry.v1.TelemetryProto.getDescriptor().getEnumTypes().get(0);
}
private static final Platform[] VALUES = values();
public static Platform 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 Platform(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:confidence.telemetry.v1.Platform)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy