Package com.exactpro.th2.common.grpc
Enum FailUnexpected
- java.lang.Object
-
- java.lang.Enum<FailUnexpected>
-
- com.exactpro.th2.common.grpc.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 enumFailUnexpected
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIELDScomparison will fail in case of unexpected fields onlyFIELDS_AND_MESSAGEScomparison will fail in case of unexpected fields or messagesNOcomparison won't fail in case of unexpected fields or messagesUNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intFIELDS_AND_MESSAGES_VALUEcomparison will fail in case of unexpected fields or messagesstatic intFIELDS_VALUEcomparison will fail in case of unexpected fields onlystatic intNO_VALUEcomparison won't fail in case of unexpected fields or messages
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FailUnexpectedforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<FailUnexpected>internalGetValueMap()static FailUnexpectedvalueOf(int value)Deprecated.static FailUnexpectedvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static FailUnexpectedvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FailUnexpected[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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;
-
UNRECOGNIZED
public static final FailUnexpected UNRECOGNIZED
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.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 namejava.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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.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 namejava.lang.NullPointerException- if the argument is null
-
-