Package com.google.cloudbuild.v1
Enum Hash.HashType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Hash.HashType>
- Enclosing class:
- Hash
public static enum Hash.HashType
extends Enum<Hash.HashType>
implements com.google.protobuf.ProtocolMessageEnum
Specifies the hash algorithm, if any.Protobuf enum
google.devtools.cloudbuild.v1.Hash.HashType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDirhash of a Go module's source code which is then hex-encoded.Use a md5 hash.No hash requested.Use a sha256 hash.Use a sha512 hash. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDirhash of a Go module's source code which is then hex-encoded.static final intUse a md5 hash.static final intNo hash requested.static final intUse a sha256 hash.static final intUse a sha512 hash. -
Method Summary
Modifier and TypeMethodDescriptionstatic Hash.HashTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Hash.HashType>static Hash.HashTypevalueOf(int value) Deprecated.static Hash.HashTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Hash.HashTypeReturns the enum constant of this type with the specified name.static Hash.HashType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No hash requested.
NONE = 0; -
SHA256
Use a sha256 hash.
SHA256 = 1; -
MD5
Use a md5 hash.
MD5 = 2; -
GO_MODULE_H1
Dirhash of a Go module's source code which is then hex-encoded.
GO_MODULE_H1 = 3; -
SHA512
Use a sha512 hash.
SHA512 = 4; -
UNRECOGNIZED
-
-
Field Details
-
NONE_VALUE
public static final int NONE_VALUENo hash requested.
NONE = 0;- See Also:
-
SHA256_VALUE
public static final int SHA256_VALUEUse a sha256 hash.
SHA256 = 1;- See Also:
-
MD5_VALUE
public static final int MD5_VALUEUse a md5 hash.
MD5 = 2;- See Also:
-
GO_MODULE_H1_VALUE
public static final int GO_MODULE_H1_VALUEDirhash of a Go module's source code which is then hex-encoded.
GO_MODULE_H1 = 3;- See Also:
-
SHA512_VALUE
public static final int SHA512_VALUEUse a sha512 hash.
SHA512 = 4;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-