Package p4.config.v1
Class P4InfoOuterClass.PkgInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
p4.config.v1.P4InfoOuterClass.PkgInfo
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,P4InfoOuterClass.PkgInfoOrBuilder
- Enclosing class:
P4InfoOuterClass
public static final class P4InfoOuterClass.PkgInfo
extends com.google.protobuf.GeneratedMessage
implements P4InfoOuterClass.PkgInfoOrBuilder
Top-level package documentation describing the forwarding pipeline config Can be used to manage multiple P4 packages.Protobuf type
p4.config.v1.PkgInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classTop-level package documentation describing the forwarding pipeline config Can be used to manage multiple P4 packages.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAnnotationLocations(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 PkgInfocom.google.protobuf.ProtocolStringListMiscellaneous 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.static P4InfoOuterClass.PkgInfostatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDoc()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.com.google.protobuf.Parser<P4InfoOuterClass.PkgInfo> If set, specifies the properties that the underlying platform should have.If set, specifies the properties that the underlying platform should have.intgetStructuredAnnotations(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 descriptionsinthashCode()booleanIf set, specifies the properties that the underlying platform should have.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(P4InfoOuterClass.PkgInfo prototype) protected P4InfoOuterClass.PkgInfo.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static P4InfoOuterClass.PkgInfoparseDelimitedFrom(InputStream input) static P4InfoOuterClass.PkgInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4InfoOuterClass.PkgInfoparseFrom(byte[] data) static P4InfoOuterClass.PkgInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4InfoOuterClass.PkgInfoparseFrom(com.google.protobuf.ByteString data) static P4InfoOuterClass.PkgInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4InfoOuterClass.PkgInfoparseFrom(com.google.protobuf.CodedInputStream input) static P4InfoOuterClass.PkgInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4InfoOuterClass.PkgInfoparseFrom(InputStream input) static P4InfoOuterClass.PkgInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static P4InfoOuterClass.PkgInfoparseFrom(ByteBuffer data) static P4InfoOuterClass.PkgInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<P4InfoOuterClass.PkgInfo> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER- See Also:
-
DOC_FIELD_NUMBER
public static final int DOC_FIELD_NUMBER- See Also:
-
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER- See Also:
-
ANNOTATION_LOCATIONS_FIELD_NUMBER
public static final int ANNOTATION_LOCATIONS_FIELD_NUMBER- See Also:
-
ARCH_FIELD_NUMBER
public static final int ARCH_FIELD_NUMBER- See Also:
-
ORGANIZATION_FIELD_NUMBER
public static final int ORGANIZATION_FIELD_NUMBER- See Also:
-
CONTACT_FIELD_NUMBER
public static final int CONTACT_FIELD_NUMBER- See Also:
-
URL_FIELD_NUMBER
public static final int URL_FIELD_NUMBER- See Also:
-
STRUCTURED_ANNOTATIONS_FIELD_NUMBER
public static final int STRUCTURED_ANNOTATIONS_FIELD_NUMBER- See Also:
-
PLATFORM_PROPERTIES_FIELD_NUMBER
public static final int PLATFORM_PROPERTIES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
a definitive name for this configuration, e.g. switch.p4_v1.0
string name = 1;- Specified by:
getNamein interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()a definitive name for this configuration, e.g. switch.p4_v1.0
string name = 1;- Specified by:
getNameBytesin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The bytes for name.
-
getVersion
configuration version, free-format string
string version = 2;- Specified by:
getVersionin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()configuration version, free-format string
string version = 2;- Specified by:
getVersionBytesin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The bytes for version.
-
hasDoc
public boolean hasDoc()brief and detailed descriptions
.p4.config.v1.Documentation doc = 3;- Specified by:
hasDocin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- Whether the doc field is set.
-
getDoc
brief and detailed descriptions
.p4.config.v1.Documentation doc = 3;- Specified by:
getDocin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The doc.
-
getDocOrBuilder
brief and detailed descriptions
.p4.config.v1.Documentation doc = 3;- Specified by:
getDocOrBuilderin interfaceP4InfoOuterClass.PkgInfoOrBuilder
-
getAnnotationsList
public com.google.protobuf.ProtocolStringList getAnnotationsList()Miscellaneous metadata, free-form; a way to extend PkgInfo
repeated string annotations = 4;- Specified by:
getAnnotationsListin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- A list containing the annotations.
-
getAnnotationsCount
public int getAnnotationsCount()Miscellaneous metadata, free-form; a way to extend PkgInfo
repeated string annotations = 4;- Specified by:
getAnnotationsCountin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The count of annotations.
-
getAnnotations
Miscellaneous metadata, free-form; a way to extend PkgInfo
repeated string annotations = 4;- Specified by:
getAnnotationsin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The annotations at the given index.
-
getAnnotationsBytes
public com.google.protobuf.ByteString getAnnotationsBytes(int index) Miscellaneous metadata, free-form; a way to extend PkgInfo
repeated string annotations = 4;- Specified by:
getAnnotationsBytesin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the annotations at the given index.
-
getAnnotationLocationsList
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 10;- Specified by:
getAnnotationLocationsListin interfaceP4InfoOuterClass.PkgInfoOrBuilder
-
getAnnotationLocationsOrBuilderList
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 10;- Specified by:
getAnnotationLocationsOrBuilderListin interfaceP4InfoOuterClass.PkgInfoOrBuilder
-
getAnnotationLocationsCount
public int getAnnotationLocationsCount()Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 10;- Specified by:
getAnnotationLocationsCountin interfaceP4InfoOuterClass.PkgInfoOrBuilder
-
getAnnotationLocations
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 10;- Specified by:
getAnnotationLocationsin interfaceP4InfoOuterClass.PkgInfoOrBuilder
-
getAnnotationLocationsOrBuilder
Optional. If present, the location of `annotations[i]` is given by `annotation_locations[i]`.
repeated .p4.config.v1.SourceLocation annotation_locations = 10;- Specified by:
getAnnotationLocationsOrBuilderin interfaceP4InfoOuterClass.PkgInfoOrBuilder
-
getArch
the target architecture, e.g. "psa"
string arch = 5;- Specified by:
getArchin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The arch.
-
getArchBytes
public com.google.protobuf.ByteString getArchBytes()the target architecture, e.g. "psa"
string arch = 5;- Specified by:
getArchBytesin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The bytes for arch.
-
getOrganization
organization which produced the configuration, e.g. "p4.org"
string organization = 6;- Specified by:
getOrganizationin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The organization.
-
getOrganizationBytes
public com.google.protobuf.ByteString getOrganizationBytes()organization which produced the configuration, e.g. "p4.org"
string organization = 6;- Specified by:
getOrganizationBytesin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The bytes for organization.
-
getContact
contact info for support,e.g. "tech-support@acme.org"
string contact = 7;- Specified by:
getContactin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The contact.
-
getContactBytes
public com.google.protobuf.ByteString getContactBytes()contact info for support,e.g. "tech-support@acme.org"
string contact = 7;- Specified by:
getContactBytesin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The bytes for contact.
-
getUrl
url for more information, e.g. "http://support.p4.org/ref/p4/switch.p4_v1.0"
string url = 8;- Specified by:
getUrlin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The url.
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()url for more information, e.g. "http://support.p4.org/ref/p4/switch.p4_v1.0"
string url = 8;- Specified by:
getUrlBytesin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The bytes for url.
-
getStructuredAnnotationsList
Miscellaneous metadata, structured; a way to extend PkgInfo
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9;- Specified by:
getStructuredAnnotationsListin interfaceP4InfoOuterClass.PkgInfoOrBuilder
-
getStructuredAnnotationsOrBuilderList
public List<? extends P4Types.StructuredAnnotationOrBuilder> getStructuredAnnotationsOrBuilderList()Miscellaneous metadata, structured; a way to extend PkgInfo
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9;- Specified by:
getStructuredAnnotationsOrBuilderListin interfaceP4InfoOuterClass.PkgInfoOrBuilder
-
getStructuredAnnotationsCount
public int getStructuredAnnotationsCount()Miscellaneous metadata, structured; a way to extend PkgInfo
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9;- Specified by:
getStructuredAnnotationsCountin interfaceP4InfoOuterClass.PkgInfoOrBuilder
-
getStructuredAnnotations
Miscellaneous metadata, structured; a way to extend PkgInfo
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9;- Specified by:
getStructuredAnnotationsin interfaceP4InfoOuterClass.PkgInfoOrBuilder
-
getStructuredAnnotationsOrBuilder
Miscellaneous metadata, structured; a way to extend PkgInfo
repeated .p4.config.v1.StructuredAnnotation structured_annotations = 9;- Specified by:
getStructuredAnnotationsOrBuilderin interfaceP4InfoOuterClass.PkgInfoOrBuilder
-
hasPlatformProperties
public 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;- Specified by:
hasPlatformPropertiesin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- Whether the platformProperties field is set.
-
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;- Specified by:
getPlatformPropertiesin interfaceP4InfoOuterClass.PkgInfoOrBuilder- Returns:
- The platformProperties.
-
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;- Specified by:
getPlatformPropertiesOrBuilderin interfaceP4InfoOuterClass.PkgInfoOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static P4InfoOuterClass.PkgInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4InfoOuterClass.PkgInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4InfoOuterClass.PkgInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4InfoOuterClass.PkgInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4InfoOuterClass.PkgInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static P4InfoOuterClass.PkgInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static P4InfoOuterClass.PkgInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static P4InfoOuterClass.PkgInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static P4InfoOuterClass.PkgInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static P4InfoOuterClass.PkgInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected P4InfoOuterClass.PkgInfo.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-