Package p4.v1

Interface P4DataOuterClass.P4HeaderOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
P4DataOuterClass.P4Header, P4DataOuterClass.P4Header.Builder
Enclosing class:
P4DataOuterClass

public static interface P4DataOuterClass.P4HeaderOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.ByteString
    getBitstrings(int index)
    repeated bytes bitstrings = 2;
    int
    repeated bytes bitstrings = 2;
    List<com.google.protobuf.ByteString>
    repeated bytes bitstrings = 2;
    boolean
    If the header is invalid (is_valid is "false"), then the bitstrings repeated field must be empty.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getIsValid

      boolean getIsValid()
       If the header is invalid (is_valid is "false"), then the bitstrings
       repeated field must be empty.
       
      bool is_valid = 1;
      Returns:
      The isValid.
    • getBitstringsList

      List<com.google.protobuf.ByteString> getBitstringsList()
      repeated bytes bitstrings = 2;
      Returns:
      A list containing the bitstrings.
    • getBitstringsCount

      int getBitstringsCount()
      repeated bytes bitstrings = 2;
      Returns:
      The count of bitstrings.
    • getBitstrings

      com.google.protobuf.ByteString getBitstrings(int index)
      repeated bytes bitstrings = 2;
      Parameters:
      index - The index of the element to return.
      Returns:
      The bitstrings at the given index.