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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>
public Preamble getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Preamble build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Preamble buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Preamble.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Preamble.Builder>
IOException
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 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 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 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 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 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 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 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Preamble.Builder>
Copyright © 2018 OpenDaylight. All rights reserved.