public static final class Preamble.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder> implements PreambleOrBuilder
p4.config.Preamble| Modifier and Type | Method and Description |
|---|---|
Preamble.Builder |
addAllAnnotations(Iterable<String> values)
repeated string annotations = 4; |
Preamble.Builder |
addAnnotations(String value)
repeated string annotations = 4; |
Preamble.Builder |
addAnnotationsBytes(com.google.protobuf.ByteString value)
repeated string annotations = 4; |
Preamble.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Preamble |
build() |
Preamble |
buildPartial() |
Preamble.Builder |
clear() |
Preamble.Builder |
clearAlias()
an alias for the P4 object, probably shorter than its name.
|
Preamble.Builder |
clearAnnotations()
repeated string annotations = 4; |
Preamble.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Preamble.Builder |
clearId()
ids share the same number-space; e.g.
|
Preamble.Builder |
clearName()
fully qualified name of the P4 object, e.g.
|
Preamble.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Preamble.Builder |
clone() |
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; |
Preamble |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Preamble.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Preamble.Builder |
mergeFrom(com.google.protobuf.Message other) |
Preamble.Builder |
mergeFrom(Preamble other) |
Preamble.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Preamble.Builder |
setAlias(String value)
an alias for the P4 object, probably shorter than its name.
|
Preamble.Builder |
setAliasBytes(com.google.protobuf.ByteString value)
an alias for the P4 object, probably shorter than its name.
|
Preamble.Builder |
setAnnotations(int index,
String value)
repeated string annotations = 4; |
Preamble.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Preamble.Builder |
setId(int value)
ids share the same number-space; e.g.
|
Preamble.Builder |
setName(String value)
fully qualified name of the P4 object, e.g.
|
Preamble.Builder |
setNameBytes(com.google.protobuf.ByteString value)
fully qualified name of the P4 object, e.g.
|
Preamble.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Preamble.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>public Preamble.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>public Preamble getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Preamble build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Preamble buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Preamble.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>public Preamble.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>public Preamble.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>public Preamble.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>public Preamble.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>public Preamble.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>public Preamble.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Preamble.Builder>public Preamble.Builder mergeFrom(Preamble other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>public Preamble.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Preamble.Builder>IOExceptionpublic 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 Preamble.Builder setId(int value)
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;public Preamble.Builder clearId()
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;public 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 Preamble.Builder setName(String value)
fully qualified name of the P4 object, e.g. c1.c2.ipv4_lpm
string name = 2;public Preamble.Builder clearName()
fully qualified name of the P4 object, e.g. c1.c2.ipv4_lpm
string name = 2;public Preamble.Builder setNameBytes(com.google.protobuf.ByteString value)
fully qualified name of the P4 object, e.g. c1.c2.ipv4_lpm
string name = 2;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 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 Preamble.Builder setAlias(String value)
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;public Preamble.Builder clearAlias()
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;public Preamble.Builder setAliasBytes(com.google.protobuf.ByteString value)
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;public 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 Preamble.Builder setAnnotations(int index, String value)
repeated string annotations = 4;public Preamble.Builder addAnnotations(String value)
repeated string annotations = 4;public Preamble.Builder addAllAnnotations(Iterable<String> values)
repeated string annotations = 4;public Preamble.Builder clearAnnotations()
repeated string annotations = 4;public Preamble.Builder addAnnotationsBytes(com.google.protobuf.ByteString value)
repeated string annotations = 4;public final Preamble.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>public final Preamble.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>Copyright © 2019 OpenDaylight. All rights reserved.