public final class Preamble extends com.google.protobuf.GeneratedMessageV3 implements PreambleOrBuilder
p4.config.Preamble| Modifier and Type | Class and Description |
|---|---|
static class |
Preamble.Builder
Protobuf type
p4.config.Preamble |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ALIAS_FIELD_NUMBER |
static int |
ANNOTATIONS_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAlias()
an alias for the P4 object, probably shorter than its name.
|
com.google.protobuf.ByteString |
getAliasBytes()
an alias for the P4 object, probably shorter than its name.
|
String |
getAnnotations(int index)
repeated string annotations = 4; |
com.google.protobuf.ByteString |
getAnnotationsBytes(int index)
repeated string annotations = 4; |
int |
getAnnotationsCount()
repeated string annotations = 4; |
com.google.protobuf.ProtocolStringList |
getAnnotationsList()
repeated string annotations = 4; |
static Preamble |
getDefaultInstance() |
Preamble |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getId()
ids share the same number-space; e.g.
|
String |
getName()
fully qualified name of the P4 object, e.g.
|
com.google.protobuf.ByteString |
getNameBytes()
fully qualified name of the P4 object, e.g.
|
com.google.protobuf.Parser<Preamble> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Preamble.Builder |
newBuilder() |
static Preamble.Builder |
newBuilder(Preamble prototype) |
Preamble.Builder |
newBuilderForType() |
protected Preamble.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Preamble |
parseDelimitedFrom(InputStream input) |
static Preamble |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Preamble |
parseFrom(byte[] data) |
static Preamble |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Preamble |
parseFrom(ByteBuffer data) |
static Preamble |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Preamble |
parseFrom(com.google.protobuf.ByteString data) |
static Preamble |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Preamble |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Preamble |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Preamble |
parseFrom(InputStream input) |
static Preamble |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Preamble> |
parser() |
Preamble.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int ALIAS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getId()
ids share the same number-space; e.g. table ids cannot overlap with counter ids. Even though this is irrelevant to this proto definition, the ids are allocated in such a way that it is possible based on an id to deduce the resource type (e.g. table, action, counter, ...). This means that code using these ids can detect if the wrong resource type is used somewhere. This also means that ids of different types can be mixed (e.g. direct resource list for a table) without ambiguity. Note that id 0 is reserved and means "invalid id".
uint32 id = 1;getId in interface PreambleOrBuilderpublic String getName()
fully qualified name of the P4 object, e.g. c1.c2.ipv4_lpm
string name = 2;getName in interface PreambleOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
fully qualified name of the P4 object, e.g. c1.c2.ipv4_lpm
string name = 2;getNameBytes in interface PreambleOrBuilderpublic String getAlias()
an alias for the P4 object, probably shorter than its name. The only constraint is for it to be unique with respect to other P4 objects of the same type. By default, the compiler uses the shortest suffix of the name that uniquely indentifies the object. For example if the P4 program contains two tables with names s.c1.t and s.c2.t, the default aliases will respectively be c1.t and c2.t. The P4 programmer may also override the default alias for any P4 object (TBD). When resolving a P4 object id, an application should be able to indiscriminately use the name or the alias.
string alias = 3;getAlias in interface PreambleOrBuilderpublic com.google.protobuf.ByteString getAliasBytes()
an alias for the P4 object, probably shorter than its name. The only constraint is for it to be unique with respect to other P4 objects of the same type. By default, the compiler uses the shortest suffix of the name that uniquely indentifies the object. For example if the P4 program contains two tables with names s.c1.t and s.c2.t, the default aliases will respectively be c1.t and c2.t. The P4 programmer may also override the default alias for any P4 object (TBD). When resolving a P4 object id, an application should be able to indiscriminately use the name or the alias.
string alias = 3;getAliasBytes in interface PreambleOrBuilderpublic com.google.protobuf.ProtocolStringList getAnnotationsList()
repeated string annotations = 4;getAnnotationsList in interface PreambleOrBuilderpublic int getAnnotationsCount()
repeated string annotations = 4;getAnnotationsCount in interface PreambleOrBuilderpublic String getAnnotations(int index)
repeated string annotations = 4;getAnnotations in interface PreambleOrBuilderpublic com.google.protobuf.ByteString getAnnotationsBytes(int index)
repeated string annotations = 4;getAnnotationsBytes in interface PreambleOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Preamble parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Preamble parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Preamble parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Preamble parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Preamble parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Preamble parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Preamble parseFrom(InputStream input) throws IOException
IOExceptionpublic static Preamble parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Preamble parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Preamble parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Preamble parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Preamble parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Preamble.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Preamble.Builder newBuilder()
public static Preamble.Builder newBuilder(Preamble prototype)
public Preamble.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Preamble.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Preamble getDefaultInstance()
public static com.google.protobuf.Parser<Preamble> parser()
public com.google.protobuf.Parser<Preamble> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Preamble getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018 OpenDaylight. All rights reserved.