Package p4.config.v1

Interface P4InfoOuterClass.ControllerPacketMetadata.MetadataOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
P4InfoOuterClass.ControllerPacketMetadata.Metadata, P4InfoOuterClass.ControllerPacketMetadata.Metadata.Builder
Enclosing class:
P4InfoOuterClass.ControllerPacketMetadata

public static interface P4InfoOuterClass.ControllerPacketMetadata.MetadataOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getId

      int getId()
      uint32 id = 1;
      Returns:
      The id.
    • getName

      String getName()
       This is the name of the header field (not fully-qualified), similar
       to e.g. Action.Param.name.
       
      string name = 2;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       This is the name of the header field (not fully-qualified), similar
       to e.g. Action.Param.name.
       
      string name = 2;
      Returns:
      The bytes for name.
    • getAnnotationsList

      List<String> getAnnotationsList()
      repeated string annotations = 3;
      Returns:
      A list containing the annotations.
    • getAnnotationsCount

      int getAnnotationsCount()
      repeated string annotations = 3;
      Returns:
      The count of annotations.
    • getAnnotations

      String getAnnotations(int index)
      repeated string annotations = 3;
      Parameters:
      index - The index of the element to return.
      Returns:
      The annotations at the given index.
    • getAnnotationsBytes

      com.google.protobuf.ByteString getAnnotationsBytes(int index)
      repeated string annotations = 3;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the annotations at the given index.
    • getAnnotationLocationsList

      List<P4Types.SourceLocation> getAnnotationLocationsList()
       Optional. If present, the location of `annotations[i]` is given by
       `annotation_locations[i]`.
       
      repeated .p4.config.v1.SourceLocation annotation_locations = 7;
    • getAnnotationLocations

      P4Types.SourceLocation getAnnotationLocations(int index)
       Optional. If present, the location of `annotations[i]` is given by
       `annotation_locations[i]`.
       
      repeated .p4.config.v1.SourceLocation annotation_locations = 7;
    • getAnnotationLocationsCount

      int getAnnotationLocationsCount()
       Optional. If present, the location of `annotations[i]` is given by
       `annotation_locations[i]`.
       
      repeated .p4.config.v1.SourceLocation annotation_locations = 7;
    • getAnnotationLocationsOrBuilderList

      List<? extends P4Types.SourceLocationOrBuilder> getAnnotationLocationsOrBuilderList()
       Optional. If present, the location of `annotations[i]` is given by
       `annotation_locations[i]`.
       
      repeated .p4.config.v1.SourceLocation annotation_locations = 7;
    • getAnnotationLocationsOrBuilder

      P4Types.SourceLocationOrBuilder getAnnotationLocationsOrBuilder(int index)
       Optional. If present, the location of `annotations[i]` is given by
       `annotation_locations[i]`.
       
      repeated .p4.config.v1.SourceLocation annotation_locations = 7;
    • getBitwidth

      int getBitwidth()
      int32 bitwidth = 4;
      Returns:
      The bitwidth.
    • hasTypeName

      boolean hasTypeName()
       unset if not user-defined type
       
      .p4.config.v1.P4NamedType type_name = 5;
      Returns:
      Whether the typeName field is set.
    • getTypeName

      P4Types.P4NamedType getTypeName()
       unset if not user-defined type
       
      .p4.config.v1.P4NamedType type_name = 5;
      Returns:
      The typeName.
    • getTypeNameOrBuilder

      P4Types.P4NamedTypeOrBuilder getTypeNameOrBuilder()
       unset if not user-defined type
       
      .p4.config.v1.P4NamedType type_name = 5;
    • getStructuredAnnotationsList

      List<P4Types.StructuredAnnotation> getStructuredAnnotationsList()
      repeated .p4.config.v1.StructuredAnnotation structured_annotations = 6;
    • getStructuredAnnotations

      P4Types.StructuredAnnotation getStructuredAnnotations(int index)
      repeated .p4.config.v1.StructuredAnnotation structured_annotations = 6;
    • getStructuredAnnotationsCount

      int getStructuredAnnotationsCount()
      repeated .p4.config.v1.StructuredAnnotation structured_annotations = 6;
    • getStructuredAnnotationsOrBuilderList

      List<? extends P4Types.StructuredAnnotationOrBuilder> getStructuredAnnotationsOrBuilderList()
      repeated .p4.config.v1.StructuredAnnotation structured_annotations = 6;
    • getStructuredAnnotationsOrBuilder

      P4Types.StructuredAnnotationOrBuilder getStructuredAnnotationsOrBuilder(int index)
      repeated .p4.config.v1.StructuredAnnotation structured_annotations = 6;