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 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

       brief and detailed descriptions
       
      .p4.config.v1.Documentation doc = 3;
      Returns:
      The doc.
    • getDocOrBuilder

       brief and detailed descriptions
       
      .p4.config.v1.Documentation doc = 3;
    • getAnnotationsList

      List<String> 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

      String getAnnotations(int index)
       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

      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 = 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

      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 = 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

      P4Types.StructuredAnnotation getStructuredAnnotations(int index)
       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

      P4Types.StructuredAnnotationOrBuilder getStructuredAnnotationsOrBuilder(int index)
       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;