Package p4.v1
Enum Class P4RuntimeOuterClass.SetForwardingPipelineConfigRequest.Action
java.lang.Object
java.lang.Enum<P4RuntimeOuterClass.SetForwardingPipelineConfigRequest.Action>
p4.v1.P4RuntimeOuterClass.SetForwardingPipelineConfigRequest.Action
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<P4RuntimeOuterClass.SetForwardingPipelineConfigRequest.Action>,Constable
- Enclosing class:
P4RuntimeOuterClass.SetForwardingPipelineConfigRequest
public static enum P4RuntimeOuterClass.SetForwardingPipelineConfigRequest.Action
extends Enum<P4RuntimeOuterClass.SetForwardingPipelineConfigRequest.Action>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
p4.v1.SetForwardingPipelineConfigRequest.Action-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRealize the last saved, but not yet committed, config.Verify, save and realize the given config, while preserving the forwarding state in the target.UNSPECIFIED = 0;Verify that the target can realize the given config.Verify, save and realize the given config.Save the config if the target can realize it. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intRealize the last saved, but not yet committed, config.static final intVerify, save and realize the given config, while preserving the forwarding state in the target.static final intUNSPECIFIED = 0;static final intVerify, save and realize the given config.static final intSave the config if the target can realize it.static final intVerify that the target can realize the given config. -
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.SetForwardingPipelineConfigRequest.Action> 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
-
UNSPECIFIED
UNSPECIFIED = 0; -
VERIFY
Verify that the target can realize the given config. Do not modify the forwarding state in the target. Returns error if config is not provided of if the provided config cannot be realized.
VERIFY = 1; -
VERIFY_AND_SAVE
Save the config if the target can realize it. Do not modify the forwarding state in the target. Any subsequent read/write requests must refer to fields in the new config. Returns error if config is not provided of if the provided config cannot be realized.
VERIFY_AND_SAVE = 2; -
VERIFY_AND_COMMIT
Verify, save and realize the given config. Clear the forwarding state in the target. Returns error if config is not provided of if the provided config cannot be realized.
VERIFY_AND_COMMIT = 3; -
COMMIT
Realize the last saved, but not yet committed, config. Update the forwarding state in the target by replaying the write requests since the last config was saved. Config should not be provided for this action type. Returns an error if no saved config is found or if a config is provided with this message.
COMMIT = 4; -
RECONCILE_AND_COMMIT
public static final P4RuntimeOuterClass.SetForwardingPipelineConfigRequest.Action RECONCILE_AND_COMMITVerify, save and realize the given config, while preserving the forwarding state in the target. This is an advanced use case to enable changes to the P4 forwarding pipeline configuration with minimal traffic loss. P4Runtime does not impose any constraints on the duration of the traffic loss. The support for this option is not expected to be uniform across all P4Runtime targets. A target that does not support this option may return an UNIMPLEMENTED error. For targets that support this option, an INVALID_ARGUMENT error is returned if no config is provided, or if the existing forwarding state cannot be preserved for the given config by the target.
RECONCILE_AND_COMMIT = 5; -
UNRECOGNIZED
-
-
Field Details
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUEUNSPECIFIED = 0;- See Also:
-
VERIFY_VALUE
public static final int VERIFY_VALUEVerify that the target can realize the given config. Do not modify the forwarding state in the target. Returns error if config is not provided of if the provided config cannot be realized.
VERIFY = 1;- See Also:
-
VERIFY_AND_SAVE_VALUE
public static final int VERIFY_AND_SAVE_VALUESave the config if the target can realize it. Do not modify the forwarding state in the target. Any subsequent read/write requests must refer to fields in the new config. Returns error if config is not provided of if the provided config cannot be realized.
VERIFY_AND_SAVE = 2;- See Also:
-
VERIFY_AND_COMMIT_VALUE
public static final int VERIFY_AND_COMMIT_VALUEVerify, save and realize the given config. Clear the forwarding state in the target. Returns error if config is not provided of if the provided config cannot be realized.
VERIFY_AND_COMMIT = 3;- See Also:
-
COMMIT_VALUE
public static final int COMMIT_VALUERealize the last saved, but not yet committed, config. Update the forwarding state in the target by replaying the write requests since the last config was saved. Config should not be provided for this action type. Returns an error if no saved config is found or if a config is provided with this message.
COMMIT = 4;- See Also:
-
RECONCILE_AND_COMMIT_VALUE
public static final int RECONCILE_AND_COMMIT_VALUEVerify, save and realize the given config, while preserving the forwarding state in the target. This is an advanced use case to enable changes to the P4 forwarding pipeline configuration with minimal traffic loss. P4Runtime does not impose any constraints on the duration of the traffic loss. The support for this option is not expected to be uniform across all P4Runtime targets. A target that does not support this option may return an UNIMPLEMENTED error. For targets that support this option, an INVALID_ARGUMENT error is returned if no config is provided, or if the existing forwarding state cannot be preserved for the given config by the target.
RECONCILE_AND_COMMIT = 5;- 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 public static P4RuntimeOuterClass.SetForwardingPipelineConfigRequest.Action valueOf(int value) 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.SetForwardingPipelineConfigRequest.Action> 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.SetForwardingPipelineConfigRequest.Action 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
-