Enum UseCase

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<UseCase>

    public enum UseCase
    extends Enum<UseCase>
    implements com.google.protobuf.ProtocolMessageEnum
    Protobuf enum delivery.UseCase
    • Enum Constant Detail

      • UNKNOWN_USE_CASE

        public static final UseCase UNKNOWN_USE_CASE
        UNKNOWN_USE_CASE = 0;
      • CUSTOM

        public static final UseCase CUSTOM
        CUSTOM = 1;
      • SEARCH

        public static final UseCase SEARCH
        SEARCH = 2;
      • SEARCH_SUGGESTIONS

        public static final UseCase SEARCH_SUGGESTIONS
        SEARCH_SUGGESTIONS = 3;
      • FEED

        public static final UseCase FEED
        FEED = 4;
      • RELATED_CONTENT

        public static final UseCase RELATED_CONTENT
        RELATED_CONTENT = 5;
      • CLOSE_UP

        public static final UseCase CLOSE_UP
        CLOSE_UP = 6;
      • CATEGORY_CONTENT

        public static final UseCase CATEGORY_CONTENT
        CATEGORY_CONTENT = 7;
      • MY_CONTENT

        public static final UseCase MY_CONTENT
        MY_CONTENT = 8;
      • MY_SAVED_CONTENT

        public static final UseCase MY_SAVED_CONTENT
        MY_SAVED_CONTENT = 9;
      • SELLER_CONTENT

        public static final UseCase SELLER_CONTENT
        SELLER_CONTENT = 10;
      • DISCOVER

        public static final UseCase DISCOVER
        DISCOVER = 11;
      • UNRECOGNIZED

        public static final UseCase UNRECOGNIZED
    • Field Detail

      • UNKNOWN_USE_CASE_VALUE

        public static final int UNKNOWN_USE_CASE_VALUE
        UNKNOWN_USE_CASE = 0;
        See Also:
        Constant Field Values
      • SEARCH_SUGGESTIONS_VALUE

        public static final int SEARCH_SUGGESTIONS_VALUE
        SEARCH_SUGGESTIONS = 3;
        See Also:
        Constant Field Values
      • RELATED_CONTENT_VALUE

        public static final int RELATED_CONTENT_VALUE
        RELATED_CONTENT = 5;
        See Also:
        Constant Field Values
      • CATEGORY_CONTENT_VALUE

        public static final int CATEGORY_CONTENT_VALUE
        CATEGORY_CONTENT = 7;
        See Also:
        Constant Field Values
      • MY_CONTENT_VALUE

        public static final int MY_CONTENT_VALUE
        MY_CONTENT = 8;
        See Also:
        Constant Field Values
      • MY_SAVED_CONTENT_VALUE

        public static final int MY_SAVED_CONTENT_VALUE
        MY_SAVED_CONTENT = 9;
        See Also:
        Constant Field Values
      • SELLER_CONTENT_VALUE

        public static final int SELLER_CONTENT_VALUE
        SELLER_CONTENT = 10;
        See Also:
        Constant Field Values
    • Method Detail

      • values

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

        public static UseCase 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 UseCase 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 UseCase 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<UseCase> 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 UseCase 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