Package com.google.cloudbuild.v1
Enum Build.Status
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Build.Status>
- Enclosing class:
- Build
public static enum Build.Status
extends Enum<Build.Status>
implements com.google.protobuf.ProtocolMessageEnum
Possible status of a build or build step.Protobuf enum
google.devtools.cloudbuild.v1.Build.Status-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBuild or step was canceled by a user.Build was enqueued for longer than the value of `queue_ttl`.Build or step failed to complete successfully.Build or step failed due to an internal cause.Build has been created and is pending execution and queuing.Build or step is queued; work has not yet begun.Status of the build is unknown.Build or step finished successfully.Build or step took longer than was allowed.Build or step is being executed. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBuild or step was canceled by a user.static final intBuild was enqueued for longer than the value of `queue_ttl`.static final intBuild or step failed to complete successfully.static final intBuild or step failed due to an internal cause.static final intBuild has been created and is pending execution and queuing.static final intBuild or step is queued; work has not yet begun.static final intStatus of the build is unknown.static final intBuild or step finished successfully.static final intBuild or step took longer than was allowed.static final intBuild or step is being executed. -
Method Summary
Modifier and TypeMethodDescriptionstatic Build.StatusforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Build.Status>static Build.StatusvalueOf(int value) Deprecated.static Build.StatusvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Build.StatusReturns the enum constant of this type with the specified name.static Build.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATUS_UNKNOWN
Status of the build is unknown.
STATUS_UNKNOWN = 0; -
PENDING
Build has been created and is pending execution and queuing. It has not been queued.
PENDING = 10; -
QUEUED
Build or step is queued; work has not yet begun.
QUEUED = 1; -
WORKING
Build or step is being executed.
WORKING = 2; -
SUCCESS
Build or step finished successfully.
SUCCESS = 3; -
FAILURE
Build or step failed to complete successfully.
FAILURE = 4; -
INTERNAL_ERROR
Build or step failed due to an internal cause.
INTERNAL_ERROR = 5; -
TIMEOUT
Build or step took longer than was allowed.
TIMEOUT = 6; -
CANCELLED
Build or step was canceled by a user.
CANCELLED = 7; -
EXPIRED
Build was enqueued for longer than the value of `queue_ttl`.
EXPIRED = 9; -
UNRECOGNIZED
-
-
Field Details
-
STATUS_UNKNOWN_VALUE
public static final int STATUS_UNKNOWN_VALUEStatus of the build is unknown.
STATUS_UNKNOWN = 0;- See Also:
-
PENDING_VALUE
public static final int PENDING_VALUEBuild has been created and is pending execution and queuing. It has not been queued.
PENDING = 10;- See Also:
-
QUEUED_VALUE
public static final int QUEUED_VALUEBuild or step is queued; work has not yet begun.
QUEUED = 1;- See Also:
-
WORKING_VALUE
public static final int WORKING_VALUEBuild or step is being executed.
WORKING = 2;- See Also:
-
SUCCESS_VALUE
public static final int SUCCESS_VALUEBuild or step finished successfully.
SUCCESS = 3;- See Also:
-
FAILURE_VALUE
public static final int FAILURE_VALUEBuild or step failed to complete successfully.
FAILURE = 4;- See Also:
-
INTERNAL_ERROR_VALUE
public static final int INTERNAL_ERROR_VALUEBuild or step failed due to an internal cause.
INTERNAL_ERROR = 5;- See Also:
-
TIMEOUT_VALUE
public static final int TIMEOUT_VALUEBuild or step took longer than was allowed.
TIMEOUT = 6;- See Also:
-
CANCELLED_VALUE
public static final int CANCELLED_VALUEBuild or step was canceled by a user.
CANCELLED = 7;- See Also:
-
EXPIRED_VALUE
public static final int EXPIRED_VALUEBuild was enqueued for longer than the value of `queue_ttl`.
EXPIRED = 9;- 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
-