Enum BuildOptions.VerifyOption

java.lang.Object
java.lang.Enum<BuildOptions.VerifyOption>
com.google.cloudbuild.v1.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 Details

  • Field Details

    • NOT_VERIFIED_VALUE

      public static final int NOT_VERIFIED_VALUE
       Not a verifiable build (the default).
       
      NOT_VERIFIED = 0;
      See Also:
    • VERIFIED_VALUE

      public static final int VERIFIED_VALUE
       Build must be verified.
       
      VERIFIED = 1;
      See Also:
  • Method Details

    • values

      public static BuildOptions.VerifyOption[] 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

      public static BuildOptions.VerifyOption valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

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

      @Deprecated public static BuildOptions.VerifyOption valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static BuildOptions.VerifyOption forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null