Enum FailUnexpected

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<FailUnexpected>

    public enum FailUnexpected
    extends java.lang.Enum<FailUnexpected>
    implements com.google.protobuf.ProtocolMessageEnum
    --// Settings //--//
     
    Protobuf enum FailUnexpected
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FIELDS
      comparison will fail in case of unexpected fields only
      FIELDS_AND_MESSAGES
      comparison will fail in case of unexpected fields or messages
      NO
      comparison won't fail in case of unexpected fields or messages
      UNRECOGNIZED  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int FIELDS_AND_MESSAGES_VALUE
      comparison will fail in case of unexpected fields or messages
      static int FIELDS_VALUE
      comparison will fail in case of unexpected fields only
      static int NO_VALUE
      comparison won't fail in case of unexpected fields or messages
    • Enum Constant Detail

      • NO

        public static final FailUnexpected NO
         comparison won't fail in case of unexpected fields or messages
         
        NO = 0;
      • FIELDS

        public static final FailUnexpected FIELDS
         comparison will fail in case of unexpected fields only
         
        FIELDS = 1;
      • FIELDS_AND_MESSAGES

        public static final FailUnexpected FIELDS_AND_MESSAGES
         comparison will fail in case of unexpected fields or messages
         
        FIELDS_AND_MESSAGES = 2;
    • Field Detail

      • NO_VALUE

        public static final int NO_VALUE
         comparison won't fail in case of unexpected fields or messages
         
        NO = 0;
        See Also:
        Constant Field Values
      • FIELDS_VALUE

        public static final int FIELDS_VALUE
         comparison will fail in case of unexpected fields only
         
        FIELDS = 1;
        See Also:
        Constant Field Values
      • FIELDS_AND_MESSAGES_VALUE

        public static final int FIELDS_AND_MESSAGES_VALUE
         comparison will fail in case of unexpected fields or messages
         
        FIELDS_AND_MESSAGES = 2;
        See Also:
        Constant Field Values
    • Method Detail

      • values

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

        public static FailUnexpected valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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 FailUnexpected 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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • forNumber

        public static FailUnexpected 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<FailUnexpected> 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 FailUnexpected 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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null