// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/common.proto

package com.google.crypto.tink.proto;

Protobuf enum google.crypto.tink.EcPointFormat
/** * Protobuf enum {@code google.crypto.tink.EcPointFormat} */
public enum EcPointFormat implements com.google.protobuf.ProtocolMessageEnum {
UNKNOWN_FORMAT = 0;
/** * <code>UNKNOWN_FORMAT = 0;</code> */
UNKNOWN_FORMAT(0),
UNCOMPRESSED = 1;
/** * <code>UNCOMPRESSED = 1;</code> */
UNCOMPRESSED(1),
COMPRESSED = 2;
/** * <code>COMPRESSED = 2;</code> */
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;
/** * <pre> * Like UNCOMPRESSED but without the &#92;x04 prefix. Crunchy uses this format. * DO NOT USE unless you are a Crunchy user moving to Tink. * </pre> * * <code>DO_NOT_USE_CRUNCHY_UNCOMPRESSED = 3;</code> */
DO_NOT_USE_CRUNCHY_UNCOMPRESSED(3), UNRECOGNIZED(-1), ;
UNKNOWN_FORMAT = 0;
/** * <code>UNKNOWN_FORMAT = 0;</code> */
public static final int UNKNOWN_FORMAT_VALUE = 0;
UNCOMPRESSED = 1;
/** * <code>UNCOMPRESSED = 1;</code> */
public static final int UNCOMPRESSED_VALUE = 1;
COMPRESSED = 2;
/** * <code>COMPRESSED = 2;</code> */
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;
/** * <pre> * Like UNCOMPRESSED but without the &#92;x04 prefix. Crunchy uses this format. * DO NOT USE unless you are a Crunchy user moving to Tink. * </pre> * * <code>DO_NOT_USE_CRUNCHY_UNCOMPRESSED = 3;</code> */
public static final int DO_NOT_USE_CRUNCHY_UNCOMPRESSED_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
Deprecated:Use forNumber(int) instead.
/** * @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 EcPointFormat valueOf(int value) { return forNumber(value); }
Params:
  • value – The numeric wire value of the corresponding enum entry.
Returns:The enum associated with the given numeric wire value.
/** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire 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<EcPointFormat> internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< EcPointFormat> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<EcPointFormat>() { public EcPointFormat findValueByNumber(int number) { return EcPointFormat.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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.google.crypto.tink.proto.Common.getDescriptor().getEnumTypes().get(1); } private static final EcPointFormat[] VALUES = values(); public static EcPointFormat 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 EcPointFormat(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.crypto.tink.EcPointFormat) }