Package p4.v1
Enum Class P4RuntimeOuterClass.WriteRequest.Atomicity
java.lang.Object
java.lang.Enum<P4RuntimeOuterClass.WriteRequest.Atomicity>
p4.v1.P4RuntimeOuterClass.WriteRequest.Atomicity
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<P4RuntimeOuterClass.WriteRequest.Atomicity>,Constable
- Enclosing class:
P4RuntimeOuterClass.WriteRequest
public static enum P4RuntimeOuterClass.WriteRequest.Atomicity
extends Enum<P4RuntimeOuterClass.WriteRequest.Atomicity>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
p4.v1.WriteRequest.Atomicity-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRequired.Optional.Optional. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intRequired.static final intOptional.static final intOptional. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<P4RuntimeOuterClass.WriteRequest.Atomicity> valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTINUE_ON_ERROR
Required. This is the default behavior. The batch is processed in a non-atomic manner from a data plane point of view. Each operation within the batch must be attempted even if one or more encounter errors. Every data plane packet is guaranteed to be processed according to table contents as they are between two individual operations of the batch, but there could be several packets processed that see each of these intermediate stages.
CONTINUE_ON_ERROR = 0; -
ROLLBACK_ON_ERROR
Optional. Operations within the batch are committed to data plane until an error is encountered. At this point, the operations must be rolled back such that both software and data plane state is consistent with the state before the batch was attempted. The resulting behavior is all-or-none, except the batch is not atomic from a data plane point of view. Every data plane packet is guaranteed to be processed according to table contents as they are between two individual operations of the batch, but there could be several packets processed that see each of these intermediate stages.
ROLLBACK_ON_ERROR = 1; -
DATAPLANE_ATOMIC
Optional. Every data plane packet is guaranteed to be processed according to table contents before the batch began, or after the batch completed and the operations were programmed to the hardware. The batch is therefore treated as a transaction.
DATAPLANE_ATOMIC = 2; -
UNRECOGNIZED
-
-
Field Details
-
CONTINUE_ON_ERROR_VALUE
public static final int CONTINUE_ON_ERROR_VALUERequired. This is the default behavior. The batch is processed in a non-atomic manner from a data plane point of view. Each operation within the batch must be attempted even if one or more encounter errors. Every data plane packet is guaranteed to be processed according to table contents as they are between two individual operations of the batch, but there could be several packets processed that see each of these intermediate stages.
CONTINUE_ON_ERROR = 0;- See Also:
-
ROLLBACK_ON_ERROR_VALUE
public static final int ROLLBACK_ON_ERROR_VALUEOptional. Operations within the batch are committed to data plane until an error is encountered. At this point, the operations must be rolled back such that both software and data plane state is consistent with the state before the batch was attempted. The resulting behavior is all-or-none, except the batch is not atomic from a data plane point of view. Every data plane packet is guaranteed to be processed according to table contents as they are between two individual operations of the batch, but there could be several packets processed that see each of these intermediate stages.
ROLLBACK_ON_ERROR = 1;- See Also:
-
DATAPLANE_ATOMIC_VALUE
public static final int DATAPLANE_ATOMIC_VALUEOptional. Every data plane packet is guaranteed to be processed according to table contents before the batch began, or after the batch completed and the operations were programmed to the hardware. The batch is therefore treated as a transaction.
DATAPLANE_ATOMIC = 2;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
public static com.google.protobuf.Internal.EnumLiteMap<P4RuntimeOuterClass.WriteRequest.Atomicity> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static P4RuntimeOuterClass.WriteRequest.Atomicity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-