Package com.google.cloud.deploy.v1
Enum DeployJobRun.FailureCause
- java.lang.Object
-
- java.lang.Enum<DeployJobRun.FailureCause>
-
- com.google.cloud.deploy.v1.DeployJobRun.FailureCause
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DeployJobRun.FailureCause>
- Enclosing class:
- DeployJobRun
public static enum DeployJobRun.FailureCause extends Enum<DeployJobRun.FailureCause> implements com.google.protobuf.ProtocolMessageEnum
Well-known deploy failures.
Protobuf enumgoogle.cloud.deploy.v1.DeployJobRun.FailureCause
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOUD_BUILD_REQUEST_FAILEDCloud Build failed to fulfill Cloud Deploy's request.CLOUD_BUILD_UNAVAILABLECloud Build is not available, either because it is not enabled or because Cloud Deploy has insufficient permissions.DEADLINE_EXCEEDEDThe deploy build did not complete within the alloted time.EXECUTION_FAILEDThe deploy operation did not complete successfully; check Cloud Build logs.FAILURE_CAUSE_UNSPECIFIEDNo reason for failure is specified.MISSING_RESOURCES_FOR_CANARYThere were missing resources in the runtime environment required for a canary deployment.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intCLOUD_BUILD_REQUEST_FAILED_VALUECloud Build failed to fulfill Cloud Deploy's request.static intCLOUD_BUILD_UNAVAILABLE_VALUECloud Build is not available, either because it is not enabled or because Cloud Deploy has insufficient permissions.static intDEADLINE_EXCEEDED_VALUEThe deploy build did not complete within the alloted time.static intEXECUTION_FAILED_VALUEThe deploy operation did not complete successfully; check Cloud Build logs.static intFAILURE_CAUSE_UNSPECIFIED_VALUENo reason for failure is specified.static intMISSING_RESOURCES_FOR_CANARY_VALUEThere were missing resources in the runtime environment required for a canary deployment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DeployJobRun.FailureCauseforNumber(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<DeployJobRun.FailureCause>internalGetValueMap()static DeployJobRun.FailureCausevalueOf(int value)Deprecated.static DeployJobRun.FailureCausevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static DeployJobRun.FailureCausevalueOf(String name)Returns the enum constant of this type with the specified name.static DeployJobRun.FailureCause[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAILURE_CAUSE_UNSPECIFIED
public static final DeployJobRun.FailureCause FAILURE_CAUSE_UNSPECIFIED
No reason for failure is specified.
FAILURE_CAUSE_UNSPECIFIED = 0;
-
CLOUD_BUILD_UNAVAILABLE
public static final DeployJobRun.FailureCause CLOUD_BUILD_UNAVAILABLE
Cloud Build is not available, either because it is not enabled or because Cloud Deploy has insufficient permissions. See [Required permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions).
CLOUD_BUILD_UNAVAILABLE = 1;
-
EXECUTION_FAILED
public static final DeployJobRun.FailureCause EXECUTION_FAILED
The deploy operation did not complete successfully; check Cloud Build logs.
EXECUTION_FAILED = 2;
-
DEADLINE_EXCEEDED
public static final DeployJobRun.FailureCause DEADLINE_EXCEEDED
The deploy build did not complete within the alloted time.
DEADLINE_EXCEEDED = 3;
-
MISSING_RESOURCES_FOR_CANARY
public static final DeployJobRun.FailureCause MISSING_RESOURCES_FOR_CANARY
There were missing resources in the runtime environment required for a canary deployment. Check the Cloud Build logs for more information.
MISSING_RESOURCES_FOR_CANARY = 4;
-
CLOUD_BUILD_REQUEST_FAILED
public static final DeployJobRun.FailureCause CLOUD_BUILD_REQUEST_FAILED
Cloud Build failed to fulfill Cloud Deploy's request. See failure_message for additional details.
CLOUD_BUILD_REQUEST_FAILED = 5;
-
UNRECOGNIZED
public static final DeployJobRun.FailureCause UNRECOGNIZED
-
-
Field Detail
-
FAILURE_CAUSE_UNSPECIFIED_VALUE
public static final int FAILURE_CAUSE_UNSPECIFIED_VALUE
No reason for failure is specified.
FAILURE_CAUSE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
CLOUD_BUILD_UNAVAILABLE_VALUE
public static final int CLOUD_BUILD_UNAVAILABLE_VALUE
Cloud Build is not available, either because it is not enabled or because Cloud Deploy has insufficient permissions. See [Required permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions).
CLOUD_BUILD_UNAVAILABLE = 1;- See Also:
- Constant Field Values
-
EXECUTION_FAILED_VALUE
public static final int EXECUTION_FAILED_VALUE
The deploy operation did not complete successfully; check Cloud Build logs.
EXECUTION_FAILED = 2;- See Also:
- Constant Field Values
-
DEADLINE_EXCEEDED_VALUE
public static final int DEADLINE_EXCEEDED_VALUE
The deploy build did not complete within the alloted time.
DEADLINE_EXCEEDED = 3;- See Also:
- Constant Field Values
-
MISSING_RESOURCES_FOR_CANARY_VALUE
public static final int MISSING_RESOURCES_FOR_CANARY_VALUE
There were missing resources in the runtime environment required for a canary deployment. Check the Cloud Build logs for more information.
MISSING_RESOURCES_FOR_CANARY = 4;- See Also:
- Constant Field Values
-
CLOUD_BUILD_REQUEST_FAILED_VALUE
public static final int CLOUD_BUILD_REQUEST_FAILED_VALUE
Cloud Build failed to fulfill Cloud Deploy's request. See failure_message for additional details.
CLOUD_BUILD_REQUEST_FAILED = 5;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static DeployJobRun.FailureCause[] 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 (DeployJobRun.FailureCause c : DeployJobRun.FailureCause.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeployJobRun.FailureCause 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 DeployJobRun.FailureCause 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 DeployJobRun.FailureCause 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<DeployJobRun.FailureCause> 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 DeployJobRun.FailureCause 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
-
-