Enum Class BlockHashAlgorithm

java.lang.Object
java.lang.Enum<BlockHashAlgorithm>
com.hedera.hashgraph.sdk.proto.BlockHashAlgorithm
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<BlockHashAlgorithm>, Constable

@Generated public enum BlockHashAlgorithm extends Enum<BlockHashAlgorithm> implements com.google.protobuf.Internal.EnumLite
 *
 A specific hash algorithm.

 We did not reuse Record Stream `HashAlgorithm` here because in all cases,
 currently, this will be `SHA2_384` and if that is the default value then
 we can save space by not serializing it, whereas `HASH_ALGORITHM_UNKNOWN`
 is the default for Record Stream `HashAlgorithm`.

 Note that enum values here MUST NOT match the name of any other enum value
 in the same `package`, as protobuf follows `C++` scope rules and all enum
 _names_ are treated as global constants within the `package`.
 
Protobuf enum proto.BlockHashAlgorithm
  • Enum Constant Details

    • SHA2_384

      public static final BlockHashAlgorithm SHA2_384
       *
       A SHA2 algorithm SHA-384 hash.
       <p>
       This is the default value, if a field of this enumerated type is
       not set, then this is the value that will be decoded when the
       serialized message is read.
       
      SHA2_384 = 0;
    • UNRECOGNIZED

      public static final BlockHashAlgorithm UNRECOGNIZED
  • Field Details

    • SHA2_384_VALUE

      public static final int SHA2_384_VALUE
       *
       A SHA2 algorithm SHA-384 hash.
       <p>
       This is the default value, if a field of this enumerated type is
       not set, then this is the value that will be decoded when the
       serialized message is read.
       
      SHA2_384 = 0;
      See Also:
  • Method Details

    • values

      public static BlockHashAlgorithm[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BlockHashAlgorithm valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
    • valueOf

      @Deprecated public static BlockHashAlgorithm valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static BlockHashAlgorithm forNumber(int value)
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<BlockHashAlgorithm> internalGetValueMap()
    • internalGetVerifier

      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()