Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Enum Class 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-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int* A SHA2 algorithm SHA-384 hash. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockHashAlgorithmforNumber(int value) final intstatic com.google.protobuf.Internal.EnumLiteMap<BlockHashAlgorithm> static com.google.protobuf.Internal.EnumVerifierstatic BlockHashAlgorithmvalueOf(int value) Deprecated.static BlockHashAlgorithmReturns the enum constant of this class with the specified name.static BlockHashAlgorithm[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
-
-
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
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
-
internalGetValueMap
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-