Package org.onosproject.net.pi.runtime
Class PiPacketMetadata
- java.lang.Object
- 
- org.onosproject.net.pi.runtime.PiPacketMetadata
 
- 
 @Beta public final class PiPacketMetadata extends java.lang.ObjectInstance of a metadata field for a controller packet-in/out for a protocol-independent pipeline. Metadata are used to carry information other than the packet-in/out payload, such as the original ingress port of a packet-in, or the egress port of packet-out.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPiPacketMetadata.BuilderBuilder of protocol-independent packet metadatas.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PiPacketMetadata.Builderbuilder()Returns a packet metadata builder.booleanequals(java.lang.Object o)inthashCode()PiPacketMetadataIdid()Return the identifier of this packet metadata.java.lang.StringtoString()ImmutableByteSequencevalue()Returns the value for the field in this metadata.
 
- 
- 
- 
Method Detail- 
idpublic PiPacketMetadataId id() Return the identifier of this packet metadata.- Returns:
- packet metadata identifier
 
 - 
valuepublic ImmutableByteSequence value() Returns the value for the field in this metadata.- Returns:
- value
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
builderpublic static PiPacketMetadata.Builder builder() Returns a packet metadata builder.- Returns:
- a new builder
 
 
- 
 
-