Implement support for packetIn through p4Runtime

Change-Id: I92cc1a2bd7edde8916aad61c20d7411f93368612
diff --git a/protocols/p4runtime/api/src/main/java/org/onosproject/p4runtime/api/P4RuntimePacketIn.java b/protocols/p4runtime/api/src/main/java/org/onosproject/p4runtime/api/P4RuntimePacketIn.java
index 338b19a..2fe3ea4 100644
--- a/protocols/p4runtime/api/src/main/java/org/onosproject/p4runtime/api/P4RuntimePacketIn.java
+++ b/protocols/p4runtime/api/src/main/java/org/onosproject/p4runtime/api/P4RuntimePacketIn.java
@@ -17,10 +17,8 @@
 package org.onosproject.p4runtime.api;
 
 import com.google.common.annotations.Beta;
-import org.onlab.util.ImmutableByteSequence;
 import org.onosproject.net.DeviceId;
-
-import java.util.List;
+import org.onosproject.net.pi.runtime.PiPacketOperation;
 
 /**
  * Information about a packet-in received from a P4Runtime device.
@@ -36,17 +34,10 @@
     DeviceId deviceId();
 
     /**
-     * Returns the packet raw data.
+     * Returns the packet operation corresponding to this packet-in event.
      *
-     * @return byte sequence
+     * @return pi packet operation
      */
-    ImmutableByteSequence data();
+    PiPacketOperation packetOperation();
 
-    /**
-     * Returns the list of metadata associated with this packet-in, to be parsed by a
-     * {@link org.onosproject.net.pi.model.PiPipelineInterpreter}.
-     *
-     * @return list of byte sequences
-     */
-    List<ImmutableByteSequence> metadata();
 }