Package flyteidl.core

Enum Catalog.CatalogCacheStatus

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

    public static enum Catalog.CatalogCacheStatus
    extends Enum<Catalog.CatalogCacheStatus>
    implements com.google.protobuf.ProtocolMessageEnum
     Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future
     
    Protobuf enum flyteidl.core.CatalogCacheStatus
    • Enum Constant Detail

      • CACHE_DISABLED

        public static final Catalog.CatalogCacheStatus CACHE_DISABLED
         Used to indicate that caching was disabled
         
        CACHE_DISABLED = 0;
      • CACHE_MISS

        public static final Catalog.CatalogCacheStatus CACHE_MISS
         Used to indicate that the cache lookup resulted in no matches
         
        CACHE_MISS = 1;
      • CACHE_HIT

        public static final Catalog.CatalogCacheStatus CACHE_HIT
         used to indicate that the associated artifact was a result of a previous execution
         
        CACHE_HIT = 2;
      • CACHE_POPULATED

        public static final Catalog.CatalogCacheStatus CACHE_POPULATED
         used to indicate that the resultant artifact was added to the cache
         
        CACHE_POPULATED = 3;
      • CACHE_LOOKUP_FAILURE

        public static final Catalog.CatalogCacheStatus CACHE_LOOKUP_FAILURE
         Used to indicate that cache lookup failed because of an error
         
        CACHE_LOOKUP_FAILURE = 4;
      • CACHE_PUT_FAILURE

        public static final Catalog.CatalogCacheStatus CACHE_PUT_FAILURE
         Used to indicate that cache lookup failed because of an error
         
        CACHE_PUT_FAILURE = 5;
    • Field Detail

      • CACHE_DISABLED_VALUE

        public static final int CACHE_DISABLED_VALUE
         Used to indicate that caching was disabled
         
        CACHE_DISABLED = 0;
        See Also:
        Constant Field Values
      • CACHE_MISS_VALUE

        public static final int CACHE_MISS_VALUE
         Used to indicate that the cache lookup resulted in no matches
         
        CACHE_MISS = 1;
        See Also:
        Constant Field Values
      • CACHE_HIT_VALUE

        public static final int CACHE_HIT_VALUE
         used to indicate that the associated artifact was a result of a previous execution
         
        CACHE_HIT = 2;
        See Also:
        Constant Field Values
      • CACHE_POPULATED_VALUE

        public static final int CACHE_POPULATED_VALUE
         used to indicate that the resultant artifact was added to the cache
         
        CACHE_POPULATED = 3;
        See Also:
        Constant Field Values
      • CACHE_LOOKUP_FAILURE_VALUE

        public static final int CACHE_LOOKUP_FAILURE_VALUE
         Used to indicate that cache lookup failed because of an error
         
        CACHE_LOOKUP_FAILURE = 4;
        See Also:
        Constant Field Values
      • CACHE_PUT_FAILURE_VALUE

        public static final int CACHE_PUT_FAILURE_VALUE
         Used to indicate that cache lookup failed because of an error
         
        CACHE_PUT_FAILURE = 5;
        See Also:
        Constant Field Values
      • value

        private final int value
    • Constructor Detail

      • CatalogCacheStatus

        private CatalogCacheStatus​(int value)
    • Method Detail

      • values

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

        public static Catalog.CatalogCacheStatus 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 Catalog.CatalogCacheStatus 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 Catalog.CatalogCacheStatus forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • 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 Catalog.CatalogCacheStatus 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