Enum Connector.State

java.lang.Object
java.lang.Enum<Connector.State>
com.google.cloud.managedkafka.v1.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 Details

    • STATE_UNSPECIFIED

      public static final Connector.State STATE_UNSPECIFIED
       A state was not specified.
       
      STATE_UNSPECIFIED = 0;
    • UNASSIGNED

      public static final Connector.State UNASSIGNED
       The connector is not assigned to any tasks, usually transient.
       
      UNASSIGNED = 1;
    • RUNNING

      public static final Connector.State RUNNING
       The connector is running.
       
      RUNNING = 2;
    • PAUSED

      public static final Connector.State PAUSED
       The connector has been paused.
       
      PAUSED = 3;
    • FAILED

      public static final Connector.State FAILED
       The connector has failed. See logs for why.
       
      FAILED = 4;
    • RESTARTING

      public static final Connector.State RESTARTING
       The connector is restarting.
       
      RESTARTING = 5;
    • STOPPED

      public static final Connector.State STOPPED
       The connector has been stopped.
       
      STOPPED = 6;
    • UNRECOGNIZED

      public static final Connector.State UNRECOGNIZED
  • Field Details

    • STATE_UNSPECIFIED_VALUE

      public static final int STATE_UNSPECIFIED_VALUE
       A state was not specified.
       
      STATE_UNSPECIFIED = 0;
      See Also:
    • UNASSIGNED_VALUE

      public static final int UNASSIGNED_VALUE
       The connector is not assigned to any tasks, usually transient.
       
      UNASSIGNED = 1;
      See Also:
    • RUNNING_VALUE

      public static final int RUNNING_VALUE
       The connector is running.
       
      RUNNING = 2;
      See Also:
    • PAUSED_VALUE

      public static final int PAUSED_VALUE
       The connector has been paused.
       
      PAUSED = 3;
      See Also:
    • FAILED_VALUE

      public static final int FAILED_VALUE
       The connector has failed. See logs for why.
       
      FAILED = 4;
      See Also:
    • RESTARTING_VALUE

      public static final int RESTARTING_VALUE
       The connector is restarting.
       
      RESTARTING = 5;
      See Also:
    • STOPPED_VALUE

      public static final int STOPPED_VALUE
       The connector has been stopped.
       
      STOPPED = 6;
      See Also:
  • Method Details

    • values

      public static Connector.State[] 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

      public static Connector.State 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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Connector.State 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 name
      NullPointerException - if the argument is null
    • forNumber

      public static Connector.State 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<Connector.State> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static Connector.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 name
      NullPointerException - if the argument is null