Package com.google.cloudbuild.v1
Enum BuildOptions.VerifyOption
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<BuildOptions.VerifyOption>
- Enclosing class:
- BuildOptions
public static enum BuildOptions.VerifyOption
extends Enum<BuildOptions.VerifyOption>
implements com.google.protobuf.ProtocolMessageEnum
Specifies the manner in which the build should be verified, if at all. If a verified build is requested, and any part of the process to generate and upload provenance fails, the build will also fail. If the build does not request verification then that process may occur, but is not guaranteed to. If it does occur and fails, the build will not fail. For more information, see [Viewing Build Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance).Protobuf enum
google.devtools.cloudbuild.v1.BuildOptions.VerifyOption-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNot a verifiable build (the default).Build must be verified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNot a verifiable build (the default).static final intBuild must be verified. -
Method Summary
Modifier and TypeMethodDescriptionstatic BuildOptions.VerifyOptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<BuildOptions.VerifyOption>static BuildOptions.VerifyOptionvalueOf(int value) Deprecated.static BuildOptions.VerifyOptionvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static BuildOptions.VerifyOptionReturns the enum constant of this type with the specified name.static BuildOptions.VerifyOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOT_VERIFIED
Not a verifiable build (the default).
NOT_VERIFIED = 0; -
VERIFIED
Build must be verified.
VERIFIED = 1; -
UNRECOGNIZED
-
-
Field Details
-
NOT_VERIFIED_VALUE
public static final int NOT_VERIFIED_VALUENot a verifiable build (the default).
NOT_VERIFIED = 0;- See Also:
-
VERIFIED_VALUE
public static final int VERIFIED_VALUEBuild must be verified.
VERIFIED = 1;- 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
public static com.google.protobuf.Internal.EnumLiteMap<BuildOptions.VerifyOption> 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
public static BuildOptions.VerifyOption valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) 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
-