Enum SyncState.SyncCode

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<SyncState.SyncCode>
    Enclosing class:
    SyncState

    public static enum SyncState.SyncCode
    extends Enum<SyncState.SyncCode>
    implements com.google.protobuf.ProtocolMessageEnum
     An enum representing an ACM's status syncing configs to a cluster
     
    Protobuf enum google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode
    • Enum Constant Detail

      • SYNC_CODE_UNSPECIFIED

        public static final SyncState.SyncCode SYNC_CODE_UNSPECIFIED
         ACM cannot determine a sync code
         
        SYNC_CODE_UNSPECIFIED = 0;
      • SYNCED

        public static final SyncState.SyncCode SYNCED
         ACM successfully synced the git Repo with the cluster
         
        SYNCED = 1;
      • PENDING

        public static final SyncState.SyncCode PENDING
         ACM is in the progress of syncing a new change
         
        PENDING = 2;
      • ERROR

        public static final SyncState.SyncCode ERROR
         Indicates an error configuring ACM, and user action is required
         
        ERROR = 3;
      • NOT_CONFIGURED

        public static final SyncState.SyncCode NOT_CONFIGURED
         ACM has been installed (operator manifest deployed),
         but not configured.
         
        NOT_CONFIGURED = 4;
      • NOT_INSTALLED

        public static final SyncState.SyncCode NOT_INSTALLED
         ACM has not been installed (no operator pod found)
         
        NOT_INSTALLED = 5;
      • UNAUTHORIZED

        public static final SyncState.SyncCode UNAUTHORIZED
         Error authorizing with the cluster
         
        UNAUTHORIZED = 6;
      • UNREACHABLE

        public static final SyncState.SyncCode UNREACHABLE
         Cluster could not be reached
         
        UNREACHABLE = 7;
    • Field Detail

      • SYNC_CODE_UNSPECIFIED_VALUE

        public static final int SYNC_CODE_UNSPECIFIED_VALUE
         ACM cannot determine a sync code
         
        SYNC_CODE_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • SYNCED_VALUE

        public static final int SYNCED_VALUE
         ACM successfully synced the git Repo with the cluster
         
        SYNCED = 1;
        See Also:
        Constant Field Values
      • PENDING_VALUE

        public static final int PENDING_VALUE
         ACM is in the progress of syncing a new change
         
        PENDING = 2;
        See Also:
        Constant Field Values
      • ERROR_VALUE

        public static final int ERROR_VALUE
         Indicates an error configuring ACM, and user action is required
         
        ERROR = 3;
        See Also:
        Constant Field Values
      • NOT_CONFIGURED_VALUE

        public static final int NOT_CONFIGURED_VALUE
         ACM has been installed (operator manifest deployed),
         but not configured.
         
        NOT_CONFIGURED = 4;
        See Also:
        Constant Field Values
      • NOT_INSTALLED_VALUE

        public static final int NOT_INSTALLED_VALUE
         ACM has not been installed (no operator pod found)
         
        NOT_INSTALLED = 5;
        See Also:
        Constant Field Values
      • UNAUTHORIZED_VALUE

        public static final int UNAUTHORIZED_VALUE
         Error authorizing with the cluster
         
        UNAUTHORIZED = 6;
        See Also:
        Constant Field Values
      • UNREACHABLE_VALUE

        public static final int UNREACHABLE_VALUE
         Cluster could not be reached
         
        UNREACHABLE = 7;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static SyncState.SyncCode[] 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 (SyncState.SyncCode c : SyncState.SyncCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SyncState.SyncCode 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 SyncState.SyncCode 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 SyncState.SyncCode 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<SyncState.SyncCode> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static SyncState.SyncCode 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