Package com.google.container.v1
Enum UpgradeInfoEvent.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<UpgradeInfoEvent.State>
- Enclosing class:
- UpgradeInfoEvent
public static enum UpgradeInfoEvent.State
extends Enum<UpgradeInfoEvent.State>
implements com.google.protobuf.ProtocolMessageEnum
The state of the upgrade.Protobuf enum
google.container.v1.UpgradeInfoEvent.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCANCELED indicates the upgrade has canceled.FAILED indicates the upgrade has failed.SCHEDULED indicates the upgrade was scheduled.STARTED indicates the upgrade has started.STATE_UNSPECIFIED indicates the state is unspecified.SUCCEEDED indicates the upgrade has completed successfully. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCANCELED indicates the upgrade has canceled.static final intFAILED indicates the upgrade has failed.static final intSCHEDULED indicates the upgrade was scheduled.static final intSTARTED indicates the upgrade has started.static final intSTATE_UNSPECIFIED indicates the state is unspecified.static final intSUCCEEDED indicates the upgrade has completed successfully. -
Method Summary
Modifier and TypeMethodDescriptionstatic UpgradeInfoEvent.StateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<UpgradeInfoEvent.State>static UpgradeInfoEvent.StatevalueOf(int value) Deprecated.static UpgradeInfoEvent.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static UpgradeInfoEvent.StateReturns the enum constant of this type with the specified name.static UpgradeInfoEvent.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
STATE_UNSPECIFIED indicates the state is unspecified.
STATE_UNSPECIFIED = 0; -
SCHEDULED
SCHEDULED indicates the upgrade was scheduled.
SCHEDULED = 1; -
STARTED
STARTED indicates the upgrade has started.
STARTED = 3; -
SUCCEEDED
SUCCEEDED indicates the upgrade has completed successfully.
SUCCEEDED = 4; -
FAILED
FAILED indicates the upgrade has failed.
FAILED = 5; -
CANCELED
CANCELED indicates the upgrade has canceled.
CANCELED = 6; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUESTATE_UNSPECIFIED indicates the state is unspecified.
STATE_UNSPECIFIED = 0;- See Also:
-
SCHEDULED_VALUE
public static final int SCHEDULED_VALUESCHEDULED indicates the upgrade was scheduled.
SCHEDULED = 1;- See Also:
-
STARTED_VALUE
public static final int STARTED_VALUESTARTED indicates the upgrade has started.
STARTED = 3;- See Also:
-
SUCCEEDED_VALUE
public static final int SUCCEEDED_VALUESUCCEEDED indicates the upgrade has completed successfully.
SUCCEEDED = 4;- See Also:
-
FAILED_VALUE
public static final int FAILED_VALUEFAILED indicates the upgrade has failed.
FAILED = 5;- See Also:
-
CANCELED_VALUE
public static final int CANCELED_VALUECANCELED indicates the upgrade has canceled.
CANCELED = 6;- 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<UpgradeInfoEvent.State> 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 UpgradeInfoEvent.State 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
-