com.google.crypto.tink.proto.EcPointFormat Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/common.proto
package com.google.crypto.tink.proto;
/**
* Protobuf enum {@code google.crypto.tink.EcPointFormat}
*/
public enum EcPointFormat
implements com.google.protobuf.Internal.EnumLite {
/**
* UNKNOWN_FORMAT = 0;
*/
UNKNOWN_FORMAT(0),
/**
* UNCOMPRESSED = 1;
*/
UNCOMPRESSED(1),
/**
* COMPRESSED = 2;
*/
COMPRESSED(2),
/**
*
* Like UNCOMPRESSED but without the \x04 prefix. Crunchy uses this format.
* DO NOT USE unless you are a Crunchy user moving to Tink.
*
*
* DO_NOT_USE_CRUNCHY_UNCOMPRESSED = 3;
*/
DO_NOT_USE_CRUNCHY_UNCOMPRESSED(3),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_FORMAT = 0;
*/
public static final int UNKNOWN_FORMAT_VALUE = 0;
/**
* UNCOMPRESSED = 1;
*/
public static final int UNCOMPRESSED_VALUE = 1;
/**
* COMPRESSED = 2;
*/
public static final int COMPRESSED_VALUE = 2;
/**
*
* Like UNCOMPRESSED but without the \x04 prefix. Crunchy uses this format.
* DO NOT USE unless you are a Crunchy user moving to Tink.
*
*
* DO_NOT_USE_CRUNCHY_UNCOMPRESSED = 3;
*/
public static final int DO_NOT_USE_CRUNCHY_UNCOMPRESSED_VALUE = 3;
@java.lang.Override
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 number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EcPointFormat valueOf(int value) {
return forNumber(value);
}
public static EcPointFormat forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_FORMAT;
case 1: return UNCOMPRESSED;
case 2: return COMPRESSED;
case 3: return DO_NOT_USE_CRUNCHY_UNCOMPRESSED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EcPointFormat> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public EcPointFormat findValueByNumber(int number) {
return EcPointFormat.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return EcPointFormatVerifier.INSTANCE;
}
private static final class EcPointFormatVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new EcPointFormatVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return EcPointFormat.forNumber(number) != null;
}
};
private final int value;
private EcPointFormat(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.crypto.tink.EcPointFormat)
}