
apache.rocketmq.v2.Language Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rocketmq-proto Show documentation
Show all versions of rocketmq-proto Show documentation
Common Protocol APIs of Apache RocketMQ
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: apache/rocketmq/v2/definition.proto
package apache.rocketmq.v2;
/**
* Protobuf enum {@code apache.rocketmq.v2.Language}
*/
public enum Language
implements com.google.protobuf.ProtocolMessageEnum {
/**
* LANGUAGE_UNSPECIFIED = 0;
*/
LANGUAGE_UNSPECIFIED(0),
/**
* JAVA = 1;
*/
JAVA(1),
/**
* CPP = 2;
*/
CPP(2),
/**
* DOT_NET = 3;
*/
DOT_NET(3),
/**
* GOLANG = 4;
*/
GOLANG(4),
/**
* RUST = 5;
*/
RUST(5),
/**
* PYTHON = 6;
*/
PYTHON(6),
/**
* PHP = 7;
*/
PHP(7),
/**
* NODE_JS = 8;
*/
NODE_JS(8),
/**
* RUBY = 9;
*/
RUBY(9),
/**
* OBJECTIVE_C = 10;
*/
OBJECTIVE_C(10),
/**
* DART = 11;
*/
DART(11),
/**
* KOTLIN = 12;
*/
KOTLIN(12),
UNRECOGNIZED(-1),
;
/**
* LANGUAGE_UNSPECIFIED = 0;
*/
public static final int LANGUAGE_UNSPECIFIED_VALUE = 0;
/**
* JAVA = 1;
*/
public static final int JAVA_VALUE = 1;
/**
* CPP = 2;
*/
public static final int CPP_VALUE = 2;
/**
* DOT_NET = 3;
*/
public static final int DOT_NET_VALUE = 3;
/**
* GOLANG = 4;
*/
public static final int GOLANG_VALUE = 4;
/**
* RUST = 5;
*/
public static final int RUST_VALUE = 5;
/**
* PYTHON = 6;
*/
public static final int PYTHON_VALUE = 6;
/**
* PHP = 7;
*/
public static final int PHP_VALUE = 7;
/**
* NODE_JS = 8;
*/
public static final int NODE_JS_VALUE = 8;
/**
* RUBY = 9;
*/
public static final int RUBY_VALUE = 9;
/**
* OBJECTIVE_C = 10;
*/
public static final int OBJECTIVE_C_VALUE = 10;
/**
* DART = 11;
*/
public static final int DART_VALUE = 11;
/**
* KOTLIN = 12;
*/
public static final int KOTLIN_VALUE = 12;
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 Language 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 Language forNumber(int value) {
switch (value) {
case 0: return LANGUAGE_UNSPECIFIED;
case 1: return JAVA;
case 2: return CPP;
case 3: return DOT_NET;
case 4: return GOLANG;
case 5: return RUST;
case 6: return PYTHON;
case 7: return PHP;
case 8: return NODE_JS;
case 9: return RUBY;
case 10: return OBJECTIVE_C;
case 11: return DART;
case 12: return KOTLIN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Language> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Language findValueByNumber(int number) {
return Language.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 apache.rocketmq.v2.MQDomain.getDescriptor().getEnumTypes().get(10);
}
private static final Language[] VALUES = values();
public static Language 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 Language(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:apache.rocketmq.v2.Language)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy