Package p4.config.v1
Interface P4InfoOuterClass.MatchFieldOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
P4InfoOuterClass.MatchField,P4InfoOuterClass.MatchField.Builder
- Enclosing class:
P4InfoOuterClass
public static interface P4InfoOuterClass.MatchFieldOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotationLocations(int index) Optional.intOptional.Optional.getAnnotationLocationsOrBuilder(int index) Optional.List<? extends P4Types.SourceLocationOrBuilder> Optional.getAnnotations(int index) repeated string annotations = 3;com.google.protobuf.ByteStringgetAnnotationsBytes(int index) repeated string annotations = 3;intrepeated string annotations = 3;repeated string annotations = 3;intint32 bitwidth = 4;getDoc()Documentation of the match fieldDocumentation of the match fieldintgetId()uint32 id = 1;.p4.config.v1.MatchField.MatchType match_type = 5;int.p4.config.v1.MatchField.MatchType match_type = 5;getName()string name = 2;com.google.protobuf.ByteStringstring name = 2;used for architecture-specific match types which are not part of the core P4 language or of the PSA architecture.com.google.protobuf.ByteStringused for architecture-specific match types which are not part of the core P4 language or of the PSA architecture.getStructuredAnnotations(int index) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9;intrepeated .p4.config.v1.StructuredAnnotation structured_annotations = 9;repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9;getStructuredAnnotationsOrBuilder(int index) repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9;List<? extends P4Types.StructuredAnnotationOrBuilder> repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9;unset if not user-defined typeunset if not user-defined typebooleanhasDoc()Documentation of the match fieldboolean.p4.config.v1.MatchField.MatchType match_type = 5;booleanused for architecture-specific match types which are not part of the core P4 language or of the PSA architecture.booleanunset if not user-defined typeMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getId
int getId()uint32 id = 1;- Returns:
- The id.
-
getName
String getName()string name = 2;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()string name = 2;- Returns:
- The bytes for name.
-
getAnnotationsList
repeated string annotations = 3;- Returns:
- A list containing the annotations.
-
getAnnotationsCount
int getAnnotationsCount()repeated string annotations = 3;- Returns:
- The count of annotations.
-
getAnnotations
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 = 10; -
getAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 10; -
getAnnotationLocationsCount
int getAnnotationLocationsCount()Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 10; -
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 = 10; -
getAnnotationLocationsOrBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 10; -
getBitwidth
int getBitwidth()int32 bitwidth = 4;- Returns:
- The bitwidth.
-
hasMatchType
boolean hasMatchType().p4.config.v1.MatchField.MatchType match_type = 5;- Returns:
- Whether the matchType field is set.
-
getMatchTypeValue
int getMatchTypeValue().p4.config.v1.MatchField.MatchType match_type = 5;- Returns:
- The enum numeric value on the wire for matchType.
-
getMatchType
P4InfoOuterClass.MatchField.MatchType getMatchType().p4.config.v1.MatchField.MatchType match_type = 5;- Returns:
- The matchType.
-
hasOtherMatchType
boolean hasOtherMatchType()used for architecture-specific match types which are not part of the core P4 language or of the PSA architecture.
string other_match_type = 7;- Returns:
- Whether the otherMatchType field is set.
-
getOtherMatchType
String getOtherMatchType()used for architecture-specific match types which are not part of the core P4 language or of the PSA architecture.
string other_match_type = 7;- Returns:
- The otherMatchType.
-
getOtherMatchTypeBytes
com.google.protobuf.ByteString getOtherMatchTypeBytes()used for architecture-specific match types which are not part of the core P4 language or of the PSA architecture.
string other_match_type = 7;- Returns:
- The bytes for otherMatchType.
-
hasDoc
boolean hasDoc()Documentation of the match field
.p4.config.v1.Documentation doc = 6;- Returns:
- Whether the doc field is set.
-
getDoc
P4InfoOuterClass.Documentation getDoc()Documentation of the match field
.p4.config.v1.Documentation doc = 6;- Returns:
- The doc.
-
getDocOrBuilder
P4InfoOuterClass.DocumentationOrBuilder getDocOrBuilder()Documentation of the match field
.p4.config.v1.Documentation doc = 6; -
hasTypeName
boolean hasTypeName()unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8;- Returns:
- Whether the typeName field is set.
-
getTypeName
P4Types.P4NamedType getTypeName()unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8;- Returns:
- The typeName.
-
getTypeNameOrBuilder
P4Types.P4NamedTypeOrBuilder getTypeNameOrBuilder()unset if not user-defined type
.p4.config.v1.P4NamedType type_name = 8; -
getStructuredAnnotationsList
List<P4Types.StructuredAnnotation> getStructuredAnnotationsList()repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9; -
getStructuredAnnotations
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9; -
getStructuredAnnotationsCount
int getStructuredAnnotationsCount()repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9; -
getStructuredAnnotationsOrBuilderList
List<? extends P4Types.StructuredAnnotationOrBuilder> getStructuredAnnotationsOrBuilderList()repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9; -
getStructuredAnnotationsOrBuilder
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9; -
getMatchCase
P4InfoOuterClass.MatchField.MatchCase getMatchCase()
-