Package com.google.cloud.config.v1
Enum Revision.ErrorCode
- java.lang.Object
-
- java.lang.Enum<Revision.ErrorCode>
-
- com.google.cloud.config.v1.Revision.ErrorCode
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Revision.ErrorCode>
- Enclosing class:
- Revision
public static enum Revision.ErrorCode extends Enum<Revision.ErrorCode> implements com.google.protobuf.ProtocolMessageEnum
Possible errors if Revision could not be created or updated successfully.
Protobuf enumgoogle.cloud.config.v1.Revision.ErrorCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLY_BUILD_API_FAILEDCloud Build job associated with creating or updating a deployment could not be started.APPLY_BUILD_RUN_FAILEDCloud Build job associated with creating or updating a deployment was started but failed.CLOUD_BUILD_PERMISSION_DENIEDCloud Build failed due to a permission issue.ERROR_CODE_UNSPECIFIEDNo error code was specified.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intAPPLY_BUILD_API_FAILED_VALUECloud Build job associated with creating or updating a deployment could not be started.static intAPPLY_BUILD_RUN_FAILED_VALUECloud Build job associated with creating or updating a deployment was started but failed.static intCLOUD_BUILD_PERMISSION_DENIED_VALUECloud Build failed due to a permission issue.static intERROR_CODE_UNSPECIFIED_VALUENo error code was specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Revision.ErrorCodeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Revision.ErrorCode>internalGetValueMap()static Revision.ErrorCodevalueOf(int value)Deprecated.static Revision.ErrorCodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Revision.ErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static Revision.ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR_CODE_UNSPECIFIED
public static final Revision.ErrorCode ERROR_CODE_UNSPECIFIED
No error code was specified.
ERROR_CODE_UNSPECIFIED = 0;
-
CLOUD_BUILD_PERMISSION_DENIED
public static final Revision.ErrorCode CLOUD_BUILD_PERMISSION_DENIED
Cloud Build failed due to a permission issue.
CLOUD_BUILD_PERMISSION_DENIED = 1;
-
APPLY_BUILD_API_FAILED
public static final Revision.ErrorCode APPLY_BUILD_API_FAILED
Cloud Build job associated with creating or updating a deployment could not be started.
APPLY_BUILD_API_FAILED = 4;
-
APPLY_BUILD_RUN_FAILED
public static final Revision.ErrorCode APPLY_BUILD_RUN_FAILED
Cloud Build job associated with creating or updating a deployment was started but failed.
APPLY_BUILD_RUN_FAILED = 5;
-
UNRECOGNIZED
public static final Revision.ErrorCode UNRECOGNIZED
-
-
Field Detail
-
ERROR_CODE_UNSPECIFIED_VALUE
public static final int ERROR_CODE_UNSPECIFIED_VALUE
No error code was specified.
ERROR_CODE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
CLOUD_BUILD_PERMISSION_DENIED_VALUE
public static final int CLOUD_BUILD_PERMISSION_DENIED_VALUE
Cloud Build failed due to a permission issue.
CLOUD_BUILD_PERMISSION_DENIED = 1;- See Also:
- Constant Field Values
-
APPLY_BUILD_API_FAILED_VALUE
public static final int APPLY_BUILD_API_FAILED_VALUE
Cloud Build job associated with creating or updating a deployment could not be started.
APPLY_BUILD_API_FAILED = 4;- See Also:
- Constant Field Values
-
APPLY_BUILD_RUN_FAILED_VALUE
public static final int APPLY_BUILD_RUN_FAILED_VALUE
Cloud Build job associated with creating or updating a deployment was started but failed.
APPLY_BUILD_RUN_FAILED = 5;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Revision.ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Revision.ErrorCode c : Revision.ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Revision.ErrorCode 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 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 public static Revision.ErrorCode 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 nameNullPointerException- if the argument is null
-
forNumber
public static Revision.ErrorCode 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<Revision.ErrorCode> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Revision.ErrorCode 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
-
-