Enum PgProto.Op
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PgProto.Op>
- Enclosing class:
- PgProto
public static enum PgProto.Op
extends Enum<PgProto.Op>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
decoderbufs.Op-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBEGIN = 3;static final intCOMMIT = 4;static final intDELETE = 2;static final intINSERT = 0;private static final com.google.protobuf.Internal.EnumLiteMap<PgProto.Op>static final intUNKNOWN = -1;static final intUPDATE = 1;private final intprivate static final PgProto.Op[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PgProto.OpforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<PgProto.Op>static PgProto.OpvalueOf(int value) Deprecated.static PgProto.OpvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static PgProto.OpReturns the enum constant of this type with the specified name.static PgProto.Op[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
UNKNOWN = -1; -
INSERT
INSERT = 0; -
UPDATE
UPDATE = 1; -
DELETE
DELETE = 2; -
BEGIN
BEGIN = 3; -
COMMIT
COMMIT = 4;
-
-
Field Details
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEUNKNOWN = -1;- See Also:
-
INSERT_VALUE
public static final int INSERT_VALUEINSERT = 0;- See Also:
-
UPDATE_VALUE
public static final int UPDATE_VALUEUPDATE = 1;- See Also:
-
DELETE_VALUE
public static final int DELETE_VALUEDELETE = 2;- See Also:
-
BEGIN_VALUE
public static final int BEGIN_VALUEBEGIN = 3;- See Also:
-
COMMIT_VALUE
public static final int COMMIT_VALUECOMMIT = 4;- See Also:
-
internalValueMap
-
VALUES
-
value
private final int value
-
-
Constructor Details
-
Op
private Op(int value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- 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.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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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
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 nameNullPointerException- if the argument is null
-