Package com.google.cloud.managedkafka.v1
Enum Connector.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Connector.State>
- Enclosing class:
- Connector
public static enum Connector.State
extends Enum<Connector.State>
implements com.google.protobuf.ProtocolMessageEnum
The state of the connector.Protobuf enum
google.cloud.managedkafka.v1.Connector.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe connector has failed.The connector has been paused.The connector is restarting.The connector is running.A state was not specified.The connector has been stopped.The connector is not assigned to any tasks, usually transient. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe connector has failed.static final intThe connector has been paused.static final intThe connector is restarting.static final intThe connector is running.static final intA state was not specified.static final intThe connector has been stopped.static final intThe connector is not assigned to any tasks, usually transient. -
Method Summary
Modifier and TypeMethodDescriptionstatic Connector.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<Connector.State>static Connector.StatevalueOf(int value) Deprecated.static Connector.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Connector.StateReturns the enum constant of this type with the specified name.static Connector.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
A state was not specified.
STATE_UNSPECIFIED = 0; -
UNASSIGNED
The connector is not assigned to any tasks, usually transient.
UNASSIGNED = 1; -
RUNNING
The connector is running.
RUNNING = 2; -
PAUSED
The connector has been paused.
PAUSED = 3; -
FAILED
The connector has failed. See logs for why.
FAILED = 4; -
RESTARTING
The connector is restarting.
RESTARTING = 5; -
STOPPED
The connector has been stopped.
STOPPED = 6; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEA state was not specified.
STATE_UNSPECIFIED = 0;- See Also:
-
UNASSIGNED_VALUE
public static final int UNASSIGNED_VALUEThe connector is not assigned to any tasks, usually transient.
UNASSIGNED = 1;- See Also:
-
RUNNING_VALUE
public static final int RUNNING_VALUEThe connector is running.
RUNNING = 2;- See Also:
-
PAUSED_VALUE
public static final int PAUSED_VALUEThe connector has been paused.
PAUSED = 3;- See Also:
-
FAILED_VALUE
public static final int FAILED_VALUEThe connector has failed. See logs for why.
FAILED = 4;- See Also:
-
RESTARTING_VALUE
public static final int RESTARTING_VALUEThe connector is restarting.
RESTARTING = 5;- See Also:
-
STOPPED_VALUE
public static final int STOPPED_VALUEThe connector has been stopped.
STOPPED = 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
-
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
-