All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.crypto.tink.proto.HpkeKem Maven / Gradle / Ivy

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

package com.google.crypto.tink.proto;

/**
 * Protobuf enum {@code google.crypto.tink.HpkeKem}
 */
public enum HpkeKem
    implements com.google.protobuf.Internal.EnumLite {
  /**
   * KEM_UNKNOWN = 0;
   */
  KEM_UNKNOWN(0),
  /**
   * DHKEM_X25519_HKDF_SHA256 = 1;
   */
  DHKEM_X25519_HKDF_SHA256(1),
  /**
   * DHKEM_P256_HKDF_SHA256 = 2;
   */
  DHKEM_P256_HKDF_SHA256(2),
  /**
   * DHKEM_P384_HKDF_SHA384 = 3;
   */
  DHKEM_P384_HKDF_SHA384(3),
  /**
   * DHKEM_P521_HKDF_SHA512 = 4;
   */
  DHKEM_P521_HKDF_SHA512(4),
  UNRECOGNIZED(-1),
  ;

  /**
   * KEM_UNKNOWN = 0;
   */
  public static final int KEM_UNKNOWN_VALUE = 0;
  /**
   * DHKEM_X25519_HKDF_SHA256 = 1;
   */
  public static final int DHKEM_X25519_HKDF_SHA256_VALUE = 1;
  /**
   * DHKEM_P256_HKDF_SHA256 = 2;
   */
  public static final int DHKEM_P256_HKDF_SHA256_VALUE = 2;
  /**
   * DHKEM_P384_HKDF_SHA384 = 3;
   */
  public static final int DHKEM_P384_HKDF_SHA384_VALUE = 3;
  /**
   * DHKEM_P521_HKDF_SHA512 = 4;
   */
  public static final int DHKEM_P521_HKDF_SHA512_VALUE = 4;


  @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 HpkeKem valueOf(int value) {
    return forNumber(value);
  }

  public static HpkeKem forNumber(int value) {
    switch (value) {
      case 0: return KEM_UNKNOWN;
      case 1: return DHKEM_X25519_HKDF_SHA256;
      case 2: return DHKEM_P256_HKDF_SHA256;
      case 3: return DHKEM_P384_HKDF_SHA384;
      case 4: return DHKEM_P521_HKDF_SHA512;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      HpkeKem> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          @java.lang.Override
          public HpkeKem findValueByNumber(int number) {
            return HpkeKem.forNumber(number);
          }
        };

  public static com.google.protobuf.Internal.EnumVerifier 
      internalGetVerifier() {
    return HpkeKemVerifier.INSTANCE;
  }

  private static final class HpkeKemVerifier implements 
       com.google.protobuf.Internal.EnumVerifier { 
          static final com.google.protobuf.Internal.EnumVerifier           INSTANCE = new HpkeKemVerifier();
          @java.lang.Override
          public boolean isInRange(int number) {
            return HpkeKem.forNumber(number) != null;
          }
        };

  private final int value;

  private HpkeKem(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:google.crypto.tink.HpkeKem)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy