public static final class PacketMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PacketMetadata.Builder> implements PacketMetadataOrBuilder
Any metadata associated with Packet-IO (controller Packet-In or Packet-Out) needs to be 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. These special headers are captured in P4Info ControllerPacketMetadata.Protobuf type
p4.PacketMetadata
Modifier and Type | Method and Description |
---|---|
PacketMetadata.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PacketMetadata |
build() |
PacketMetadata |
buildPartial() |
PacketMetadata.Builder |
clear() |
PacketMetadata.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PacketMetadata.Builder |
clearMetadataId()
This refers to Metadata.id coming from P4Info ControllerPacketMetadata.
|
PacketMetadata.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PacketMetadata.Builder |
clearValue()
bytes value = 2; |
PacketMetadata.Builder |
clone() |
PacketMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getMetadataId()
This refers to Metadata.id coming from P4Info ControllerPacketMetadata.
|
com.google.protobuf.ByteString |
getValue()
bytes value = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PacketMetadata.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PacketMetadata.Builder |
mergeFrom(com.google.protobuf.Message other) |
PacketMetadata.Builder |
mergeFrom(PacketMetadata other) |
PacketMetadata.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PacketMetadata.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PacketMetadata.Builder |
setMetadataId(int value)
This refers to Metadata.id coming from P4Info ControllerPacketMetadata.
|
PacketMetadata.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PacketMetadata.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PacketMetadata.Builder |
setValue(com.google.protobuf.ByteString value)
bytes value = 2; |
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<PacketMetadata.Builder>
public PacketMetadata.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<PacketMetadata.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<PacketMetadata.Builder>
public PacketMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public PacketMetadata build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public PacketMetadata buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public PacketMetadata.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<PacketMetadata.Builder>
public PacketMetadata.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<PacketMetadata.Builder>
public PacketMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<PacketMetadata.Builder>
public PacketMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<PacketMetadata.Builder>
public PacketMetadata.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<PacketMetadata.Builder>
public PacketMetadata.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<PacketMetadata.Builder>
public PacketMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<PacketMetadata.Builder>
public PacketMetadata.Builder mergeFrom(PacketMetadata other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<PacketMetadata.Builder>
public PacketMetadata.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<PacketMetadata.Builder>
IOException
public int getMetadataId()
This refers to Metadata.id coming from P4Info ControllerPacketMetadata.
uint32 metadata_id = 1;
getMetadataId
in interface PacketMetadataOrBuilder
public PacketMetadata.Builder setMetadataId(int value)
This refers to Metadata.id coming from P4Info ControllerPacketMetadata.
uint32 metadata_id = 1;
public PacketMetadata.Builder clearMetadataId()
This refers to Metadata.id coming from P4Info ControllerPacketMetadata.
uint32 metadata_id = 1;
public com.google.protobuf.ByteString getValue()
bytes value = 2;
getValue
in interface PacketMetadataOrBuilder
public PacketMetadata.Builder setValue(com.google.protobuf.ByteString value)
bytes value = 2;
public PacketMetadata.Builder clearValue()
bytes value = 2;
public final PacketMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<PacketMetadata.Builder>
public final PacketMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<PacketMetadata.Builder>
Copyright © 2018 OpenDaylight. All rights reserved.