public static final class ControllerPacketMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ControllerPacketMetadata.Builder> implements ControllerPacketMetadataOrBuilder
Any metadata associated with controller Packet-IO (Packet-In or Packet-Out) is modeled as P4 headers carrying special annotations @controller_metadata("packet_out") and @controller_metadata("packet_in") respectively. There can be at most one header each with these annotations. This message captures the info contained within these special headers, and used in p4runtime.proto to supply the metadata.Protobuf type
p4.config.ControllerPacketMetadata
Modifier and Type | Method and Description |
---|---|
ControllerPacketMetadata.Builder |
addAllMetadata(Iterable<? extends ControllerPacketMetadata.Metadata> values)
Ordered based on header layout.
|
ControllerPacketMetadata.Builder |
addMetadata(ControllerPacketMetadata.Metadata.Builder builderForValue)
Ordered based on header layout.
|
ControllerPacketMetadata.Builder |
addMetadata(ControllerPacketMetadata.Metadata value)
Ordered based on header layout.
|
ControllerPacketMetadata.Builder |
addMetadata(int index,
ControllerPacketMetadata.Metadata.Builder builderForValue)
Ordered based on header layout.
|
ControllerPacketMetadata.Builder |
addMetadata(int index,
ControllerPacketMetadata.Metadata value)
Ordered based on header layout.
|
ControllerPacketMetadata.Metadata.Builder |
addMetadataBuilder()
Ordered based on header layout.
|
ControllerPacketMetadata.Metadata.Builder |
addMetadataBuilder(int index)
Ordered based on header layout.
|
ControllerPacketMetadata.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ControllerPacketMetadata |
build() |
ControllerPacketMetadata |
buildPartial() |
ControllerPacketMetadata.Builder |
clear() |
ControllerPacketMetadata.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ControllerPacketMetadata.Builder |
clearMetadata()
Ordered based on header layout.
|
ControllerPacketMetadata.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ControllerPacketMetadata.Builder |
clearPreamble()
preamble.name and preamble.id will specify header type ("packet_out" or
"packet_in" for now).
|
ControllerPacketMetadata.Builder |
clone() |
ControllerPacketMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
ControllerPacketMetadata.Metadata |
getMetadata(int index)
Ordered based on header layout.
|
ControllerPacketMetadata.Metadata.Builder |
getMetadataBuilder(int index)
Ordered based on header layout.
|
List<ControllerPacketMetadata.Metadata.Builder> |
getMetadataBuilderList()
Ordered based on header layout.
|
int |
getMetadataCount()
Ordered based on header layout.
|
List<ControllerPacketMetadata.Metadata> |
getMetadataList()
Ordered based on header layout.
|
ControllerPacketMetadata.MetadataOrBuilder |
getMetadataOrBuilder(int index)
Ordered based on header layout.
|
List<? extends ControllerPacketMetadata.MetadataOrBuilder> |
getMetadataOrBuilderList()
Ordered based on header layout.
|
Preamble |
getPreamble()
preamble.name and preamble.id will specify header type ("packet_out" or
"packet_in" for now).
|
Preamble.Builder |
getPreambleBuilder()
preamble.name and preamble.id will specify header type ("packet_out" or
"packet_in" for now).
|
PreambleOrBuilder |
getPreambleOrBuilder()
preamble.name and preamble.id will specify header type ("packet_out" or
"packet_in" for now).
|
boolean |
hasPreamble()
preamble.name and preamble.id will specify header type ("packet_out" or
"packet_in" for now).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ControllerPacketMetadata.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ControllerPacketMetadata.Builder |
mergeFrom(ControllerPacketMetadata other) |
ControllerPacketMetadata.Builder |
mergeFrom(com.google.protobuf.Message other) |
ControllerPacketMetadata.Builder |
mergePreamble(Preamble value)
preamble.name and preamble.id will specify header type ("packet_out" or
"packet_in" for now).
|
ControllerPacketMetadata.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ControllerPacketMetadata.Builder |
removeMetadata(int index)
Ordered based on header layout.
|
ControllerPacketMetadata.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ControllerPacketMetadata.Builder |
setMetadata(int index,
ControllerPacketMetadata.Metadata.Builder builderForValue)
Ordered based on header layout.
|
ControllerPacketMetadata.Builder |
setMetadata(int index,
ControllerPacketMetadata.Metadata value)
Ordered based on header layout.
|
ControllerPacketMetadata.Builder |
setPreamble(Preamble.Builder builderForValue)
preamble.name and preamble.id will specify header type ("packet_out" or
"packet_in" for now).
|
ControllerPacketMetadata.Builder |
setPreamble(Preamble value)
preamble.name and preamble.id will specify header type ("packet_out" or
"packet_in" for now).
|
ControllerPacketMetadata.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ControllerPacketMetadata.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<ControllerPacketMetadata.Builder>
public ControllerPacketMetadata.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<ControllerPacketMetadata.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<ControllerPacketMetadata.Builder>
public ControllerPacketMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ControllerPacketMetadata build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ControllerPacketMetadata buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ControllerPacketMetadata.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<ControllerPacketMetadata.Builder>
public ControllerPacketMetadata.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<ControllerPacketMetadata.Builder>
public ControllerPacketMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ControllerPacketMetadata.Builder>
public ControllerPacketMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ControllerPacketMetadata.Builder>
public ControllerPacketMetadata.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<ControllerPacketMetadata.Builder>
public ControllerPacketMetadata.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<ControllerPacketMetadata.Builder>
public ControllerPacketMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ControllerPacketMetadata.Builder>
public ControllerPacketMetadata.Builder mergeFrom(ControllerPacketMetadata other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ControllerPacketMetadata.Builder>
public ControllerPacketMetadata.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<ControllerPacketMetadata.Builder>
IOException
public boolean hasPreamble()
preamble.name and preamble.id will specify header type ("packet_out" or "packet_in" for now).
.p4.config.Preamble preamble = 1;
hasPreamble
in interface ControllerPacketMetadataOrBuilder
public Preamble getPreamble()
preamble.name and preamble.id will specify header type ("packet_out" or "packet_in" for now).
.p4.config.Preamble preamble = 1;
getPreamble
in interface ControllerPacketMetadataOrBuilder
public ControllerPacketMetadata.Builder setPreamble(Preamble value)
preamble.name and preamble.id will specify header type ("packet_out" or "packet_in" for now).
.p4.config.Preamble preamble = 1;
public ControllerPacketMetadata.Builder setPreamble(Preamble.Builder builderForValue)
preamble.name and preamble.id will specify header type ("packet_out" or "packet_in" for now).
.p4.config.Preamble preamble = 1;
public ControllerPacketMetadata.Builder mergePreamble(Preamble value)
preamble.name and preamble.id will specify header type ("packet_out" or "packet_in" for now).
.p4.config.Preamble preamble = 1;
public ControllerPacketMetadata.Builder clearPreamble()
preamble.name and preamble.id will specify header type ("packet_out" or "packet_in" for now).
.p4.config.Preamble preamble = 1;
public Preamble.Builder getPreambleBuilder()
preamble.name and preamble.id will specify header type ("packet_out" or "packet_in" for now).
.p4.config.Preamble preamble = 1;
public PreambleOrBuilder getPreambleOrBuilder()
preamble.name and preamble.id will specify header type ("packet_out" or "packet_in" for now).
.p4.config.Preamble preamble = 1;
getPreambleOrBuilder
in interface ControllerPacketMetadataOrBuilder
public List<ControllerPacketMetadata.Metadata> getMetadataList()
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
getMetadataList
in interface ControllerPacketMetadataOrBuilder
public int getMetadataCount()
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
getMetadataCount
in interface ControllerPacketMetadataOrBuilder
public ControllerPacketMetadata.Metadata getMetadata(int index)
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
getMetadata
in interface ControllerPacketMetadataOrBuilder
public ControllerPacketMetadata.Builder setMetadata(int index, ControllerPacketMetadata.Metadata value)
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public ControllerPacketMetadata.Builder setMetadata(int index, ControllerPacketMetadata.Metadata.Builder builderForValue)
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public ControllerPacketMetadata.Builder addMetadata(ControllerPacketMetadata.Metadata value)
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public ControllerPacketMetadata.Builder addMetadata(int index, ControllerPacketMetadata.Metadata value)
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public ControllerPacketMetadata.Builder addMetadata(ControllerPacketMetadata.Metadata.Builder builderForValue)
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public ControllerPacketMetadata.Builder addMetadata(int index, ControllerPacketMetadata.Metadata.Builder builderForValue)
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public ControllerPacketMetadata.Builder addAllMetadata(Iterable<? extends ControllerPacketMetadata.Metadata> values)
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public ControllerPacketMetadata.Builder clearMetadata()
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public ControllerPacketMetadata.Builder removeMetadata(int index)
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public ControllerPacketMetadata.Metadata.Builder getMetadataBuilder(int index)
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public ControllerPacketMetadata.MetadataOrBuilder getMetadataOrBuilder(int index)
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
getMetadataOrBuilder
in interface ControllerPacketMetadataOrBuilder
public List<? extends ControllerPacketMetadata.MetadataOrBuilder> getMetadataOrBuilderList()
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
getMetadataOrBuilderList
in interface ControllerPacketMetadataOrBuilder
public ControllerPacketMetadata.Metadata.Builder addMetadataBuilder()
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public ControllerPacketMetadata.Metadata.Builder addMetadataBuilder(int index)
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public List<ControllerPacketMetadata.Metadata.Builder> getMetadataBuilderList()
Ordered based on header layout. This is a constraint on the generator of this P4Info.
repeated .p4.config.ControllerPacketMetadata.Metadata metadata = 2;
public final ControllerPacketMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ControllerPacketMetadata.Builder>
public final ControllerPacketMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ControllerPacketMetadata.Builder>
Copyright © 2018 OpenDaylight. All rights reserved.