Package org.onosproject.net.pi.runtime
Class PiPacketMetadata.Builder
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiPacketMetadata.Builder
-
- Enclosing class:
- PiPacketMetadata
public static final class PiPacketMetadata.Builder extends Object
Builder of protocol-independent packet metadatas.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiPacketMetadata
build()
Returns a new packet metadata instance.PiPacketMetadata.Builder
withId(PiPacketMetadataId id)
Sets the identifier of this packet metadata.PiPacketMetadata.Builder
withValue(ImmutableByteSequence value)
Sets the value of this metadata.
-
-
-
Method Detail
-
withId
public PiPacketMetadata.Builder withId(PiPacketMetadataId id)
Sets the identifier of this packet metadata.- Parameters:
id
- packet metadata identifier- Returns:
- this
-
withValue
public PiPacketMetadata.Builder withValue(ImmutableByteSequence value)
Sets the value of this metadata.- Parameters:
value
- value of the metadata- Returns:
- this
-
build
public PiPacketMetadata build()
Returns a new packet metadata instance.- Returns:
- packet metadata
-
-