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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public 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 PreambleOrBuilder
public String getName()
fully qualified name of the P4 object, e.g. c1.c2.ipv4_lpm
string name = 2;
getName
in interface PreambleOrBuilder
public com.google.protobuf.ByteString getNameBytes()
fully qualified name of the P4 object, e.g. c1.c2.ipv4_lpm
string name = 2;
getNameBytes
in interface PreambleOrBuilder
public 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 PreambleOrBuilder
public 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 PreambleOrBuilder
public com.google.protobuf.ProtocolStringList getAnnotationsList()
repeated string annotations = 4;
getAnnotationsList
in interface PreambleOrBuilder
public int getAnnotationsCount()
repeated string annotations = 4;
getAnnotationsCount
in interface PreambleOrBuilder
public String getAnnotations(int index)
repeated string annotations = 4;
getAnnotations
in interface PreambleOrBuilder
public com.google.protobuf.ByteString getAnnotationsBytes(int index)
repeated string annotations = 4;
getAnnotationsBytes
in interface PreambleOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Preamble parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Preamble parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Preamble parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Preamble parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Preamble parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Preamble parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Preamble parseFrom(InputStream input) throws IOException
IOException
public static Preamble parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Preamble parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Preamble parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Preamble parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Preamble parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Preamble.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Preamble.Builder newBuilder()
public static Preamble.Builder newBuilder(Preamble prototype)
public Preamble.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Preamble.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Preamble getDefaultInstance()
public static com.google.protobuf.Parser<Preamble> parser()
public com.google.protobuf.Parser<Preamble> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Preamble getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2018 OpenDaylight. All rights reserved.