Package p4.config.v1
Interface P4InfoOuterClass.PkgInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
P4InfoOuterClass.PkgInfo,P4InfoOuterClass.PkgInfo.Builder
- Enclosing class:
P4InfoOuterClass
public static interface P4InfoOuterClass.PkgInfoOrBuilder
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) Miscellaneous metadata, free-form; a way to extend PkgInfocom.google.protobuf.ByteStringgetAnnotationsBytes(int index) Miscellaneous metadata, free-form; a way to extend PkgInfointMiscellaneous metadata, free-form; a way to extend PkgInfoMiscellaneous metadata, free-form; a way to extend PkgInfogetArch()the target architecture, e.g.com.google.protobuf.ByteStringthe target architecture, e.g.contact info for support,e.g.com.google.protobuf.ByteStringcontact info for support,e.g.getDoc()brief and detailed descriptionsbrief and detailed descriptionsgetName()a definitive name for this configuration, e.g.com.google.protobuf.ByteStringa definitive name for this configuration, e.g.organization which produced the configuration, e.g.com.google.protobuf.ByteStringorganization which produced the configuration, e.g.If set, specifies the properties that the underlying platform should have.If set, specifies the properties that the underlying platform should have.getStructuredAnnotations(int index) Miscellaneous metadata, structured; a way to extend PkgInfointMiscellaneous metadata, structured; a way to extend PkgInfoMiscellaneous metadata, structured; a way to extend PkgInfogetStructuredAnnotationsOrBuilder(int index) Miscellaneous metadata, structured; a way to extend PkgInfoList<? extends P4Types.StructuredAnnotationOrBuilder> Miscellaneous metadata, structured; a way to extend PkgInfogetUrl()url for more information, e.g.com.google.protobuf.ByteStringurl for more information, e.g.configuration version, free-format stringcom.google.protobuf.ByteStringconfiguration version, free-format stringbooleanhasDoc()brief and detailed descriptionsbooleanIf set, specifies the properties that the underlying platform should have.Methods 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
-
getName
String getName()a definitive name for this configuration, e.g. switch.p4_v1.0
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()a definitive name for this configuration, e.g. switch.p4_v1.0
string name = 1;- Returns:
- The bytes for name.
-
getVersion
String getVersion()configuration version, free-format string
string version = 2;- Returns:
- The version.
-
getVersionBytes
com.google.protobuf.ByteString getVersionBytes()configuration version, free-format string
string version = 2;- Returns:
- The bytes for version.
-
hasDoc
boolean hasDoc()brief and detailed descriptions
.p4.config.v1.Documentation doc = 3;- Returns:
- Whether the doc field is set.
-
getDoc
P4InfoOuterClass.Documentation getDoc()brief and detailed descriptions
.p4.config.v1.Documentation doc = 3;- Returns:
- The doc.
-
getDocOrBuilder
P4InfoOuterClass.DocumentationOrBuilder getDocOrBuilder()brief and detailed descriptions
.p4.config.v1.Documentation doc = 3; -
getAnnotationsList
Miscellaneous metadata, free-form; a way to extend PkgInfo
repeated string annotations = 4;- Returns:
- A list containing the annotations.
-
getAnnotationsCount
int getAnnotationsCount()Miscellaneous metadata, free-form; a way to extend PkgInfo
repeated string annotations = 4;- Returns:
- The count of annotations.
-
getAnnotations
Miscellaneous metadata, free-form; a way to extend PkgInfo
repeated string annotations = 4;- Parameters:
index- The index of the element to return.- Returns:
- The annotations at the given index.
-
getAnnotationsBytes
com.google.protobuf.ByteString getAnnotationsBytes(int index) Miscellaneous metadata, free-form; a way to extend PkgInfo
repeated string annotations = 4;- 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; -
getArch
String getArch()the target architecture, e.g. "psa"
string arch = 5;- Returns:
- The arch.
-
getArchBytes
com.google.protobuf.ByteString getArchBytes()the target architecture, e.g. "psa"
string arch = 5;- Returns:
- The bytes for arch.
-
getOrganization
String getOrganization()organization which produced the configuration, e.g. "p4.org"
string organization = 6;- Returns:
- The organization.
-
getOrganizationBytes
com.google.protobuf.ByteString getOrganizationBytes()organization which produced the configuration, e.g. "p4.org"
string organization = 6;- Returns:
- The bytes for organization.
-
getContact
String getContact()contact info for support,e.g. "tech-support@acme.org"
string contact = 7;- Returns:
- The contact.
-
getContactBytes
com.google.protobuf.ByteString getContactBytes()contact info for support,e.g. "tech-support@acme.org"
string contact = 7;- Returns:
- The bytes for contact.
-
getUrl
String getUrl()url for more information, e.g. "http://support.p4.org/ref/p4/switch.p4_v1.0"
string url = 8;- Returns:
- The url.
-
getUrlBytes
com.google.protobuf.ByteString getUrlBytes()url for more information, e.g. "http://support.p4.org/ref/p4/switch.p4_v1.0"
string url = 8;- Returns:
- The bytes for url.
-
getStructuredAnnotationsList
List<P4Types.StructuredAnnotation> getStructuredAnnotationsList()Miscellaneous metadata, structured; a way to extend PkgInfo
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9; -
getStructuredAnnotations
Miscellaneous metadata, structured; a way to extend PkgInfo
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9; -
getStructuredAnnotationsCount
int getStructuredAnnotationsCount()Miscellaneous metadata, structured; a way to extend PkgInfo
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9; -
getStructuredAnnotationsOrBuilderList
List<? extends P4Types.StructuredAnnotationOrBuilder> getStructuredAnnotationsOrBuilderList()Miscellaneous metadata, structured; a way to extend PkgInfo
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9; -
getStructuredAnnotationsOrBuilder
Miscellaneous metadata, structured; a way to extend PkgInfo
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9; -
hasPlatformProperties
boolean hasPlatformProperties()If set, specifies the properties that the underlying platform should have. If the platform does not conform to these properties, the server should reject the P4Info when used with a SetForwardingPipelineConfigRequest. Added in 1.4.0
.p4.config.v1.PlatformProperties platform_properties = 11;- Returns:
- Whether the platformProperties field is set.
-
getPlatformProperties
P4InfoOuterClass.PlatformProperties getPlatformProperties()If set, specifies the properties that the underlying platform should have. If the platform does not conform to these properties, the server should reject the P4Info when used with a SetForwardingPipelineConfigRequest. Added in 1.4.0
.p4.config.v1.PlatformProperties platform_properties = 11;- Returns:
- The platformProperties.
-
getPlatformPropertiesOrBuilder
P4InfoOuterClass.PlatformPropertiesOrBuilder getPlatformPropertiesOrBuilder()If set, specifies the properties that the underlying platform should have. If the platform does not conform to these properties, the server should reject the P4Info when used with a SetForwardingPipelineConfigRequest. Added in 1.4.0
.p4.config.v1.PlatformProperties platform_properties = 11;
-