tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 1 | // Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University |
| 2 | // Copyright (c) 2011, 2012 Open Networking Foundation |
| 3 | // Copyright (c) 2012, 2013 Big Switch Networks, Inc. |
| 4 | // This library was generated by the LoxiGen Compiler. |
| 5 | // See the file LICENSE.txt which should have been included in the source distribution |
| 6 | |
| 7 | // Automatically generated by LOXI from template of_factory_class.java |
| 8 | // Do not modify |
| 9 | |
| 10 | package org.projectfloodlight.openflow.protocol.ver13; |
| 11 | |
| 12 | import org.projectfloodlight.openflow.protocol.*; |
| 13 | import org.projectfloodlight.openflow.protocol.action.*; |
| 14 | import org.projectfloodlight.openflow.protocol.actionid.*; |
| 15 | import org.projectfloodlight.openflow.protocol.bsntlv.*; |
| 16 | import org.projectfloodlight.openflow.protocol.errormsg.*; |
| 17 | import org.projectfloodlight.openflow.protocol.meterband.*; |
| 18 | import org.projectfloodlight.openflow.protocol.instruction.*; |
| 19 | import org.projectfloodlight.openflow.protocol.instructionid.*; |
| 20 | import org.projectfloodlight.openflow.protocol.match.*; |
| 21 | import org.projectfloodlight.openflow.protocol.oxm.*; |
| 22 | import org.projectfloodlight.openflow.protocol.queueprop.*; |
| 23 | import org.projectfloodlight.openflow.types.*; |
| 24 | import org.projectfloodlight.openflow.util.*; |
| 25 | import org.projectfloodlight.openflow.exceptions.*; |
| 26 | |
| 27 | |
| 28 | public class OFBsnTlvsVer13 implements OFBsnTlvs { |
| 29 | public final static OFBsnTlvsVer13 INSTANCE = new OFBsnTlvsVer13(); |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | public OFBsnTlvBroadcastQueryTimeout.Builder buildBroadcastQueryTimeout() { |
| 35 | return new OFBsnTlvBroadcastQueryTimeoutVer13.Builder(); |
| 36 | } |
| 37 | public OFBsnTlvBroadcastQueryTimeout broadcastQueryTimeout(long value) { |
| 38 | return new OFBsnTlvBroadcastQueryTimeoutVer13( |
| 39 | value |
| 40 | ); |
| 41 | } |
| 42 | |
| 43 | public OFBsnTlvCircuitId.Builder buildCircuitId() { |
| 44 | return new OFBsnTlvCircuitIdVer13.Builder(); |
| 45 | } |
| 46 | public OFBsnTlvCircuitId circuitId(byte[] value) { |
| 47 | return new OFBsnTlvCircuitIdVer13( |
| 48 | value |
| 49 | ); |
| 50 | } |
| 51 | |
| 52 | public OFBsnTlvCrcEnabled.Builder buildCrcEnabled() { |
| 53 | return new OFBsnTlvCrcEnabledVer13.Builder(); |
| 54 | } |
| 55 | public OFBsnTlvCrcEnabled crcEnabled(short value) { |
| 56 | return new OFBsnTlvCrcEnabledVer13( |
| 57 | value |
| 58 | ); |
| 59 | } |
| 60 | |
| 61 | public OFBsnTlvIdleNotification idleNotification() { |
| 62 | return OFBsnTlvIdleNotificationVer13.INSTANCE; |
| 63 | } |
| 64 | |
| 65 | public OFBsnTlvIdleTime.Builder buildIdleTime() { |
| 66 | return new OFBsnTlvIdleTimeVer13.Builder(); |
| 67 | } |
| 68 | public OFBsnTlvIdleTime idleTime(U64 value) { |
| 69 | return new OFBsnTlvIdleTimeVer13( |
| 70 | value |
| 71 | ); |
| 72 | } |
| 73 | |
| 74 | public OFBsnTlvIdleTimeout.Builder buildIdleTimeout() { |
| 75 | return new OFBsnTlvIdleTimeoutVer13.Builder(); |
| 76 | } |
| 77 | public OFBsnTlvIdleTimeout idleTimeout(long value) { |
| 78 | return new OFBsnTlvIdleTimeoutVer13( |
| 79 | value |
| 80 | ); |
| 81 | } |
| 82 | |
| 83 | public OFBsnTlvIpv4.Builder buildIpv4() { |
| 84 | return new OFBsnTlvIpv4Ver13.Builder(); |
| 85 | } |
| 86 | public OFBsnTlvIpv4 ipv4(IPv4Address value) { |
| 87 | return new OFBsnTlvIpv4Ver13( |
| 88 | value |
| 89 | ); |
| 90 | } |
| 91 | |
| 92 | public OFBsnTlvMac.Builder buildMac() { |
| 93 | return new OFBsnTlvMacVer13.Builder(); |
| 94 | } |
| 95 | public OFBsnTlvMac mac(MacAddress value) { |
| 96 | return new OFBsnTlvMacVer13( |
| 97 | value |
| 98 | ); |
| 99 | } |
| 100 | |
| 101 | public OFBsnTlvMissPackets.Builder buildMissPackets() { |
| 102 | return new OFBsnTlvMissPacketsVer13.Builder(); |
| 103 | } |
| 104 | public OFBsnTlvMissPackets missPackets(U64 value) { |
| 105 | return new OFBsnTlvMissPacketsVer13( |
| 106 | value |
| 107 | ); |
| 108 | } |
| 109 | |
| 110 | public OFBsnTlvPort.Builder buildPort() { |
| 111 | return new OFBsnTlvPortVer13.Builder(); |
| 112 | } |
| 113 | public OFBsnTlvPort port(OFPort value) { |
| 114 | return new OFBsnTlvPortVer13( |
| 115 | value |
| 116 | ); |
| 117 | } |
| 118 | |
| 119 | public OFBsnTlvQueueId.Builder buildQueueId() { |
| 120 | return new OFBsnTlvQueueIdVer13.Builder(); |
| 121 | } |
| 122 | public OFBsnTlvQueueId queueId(long value) { |
| 123 | return new OFBsnTlvQueueIdVer13( |
| 124 | value |
| 125 | ); |
| 126 | } |
| 127 | |
| 128 | public OFBsnTlvQueueWeight.Builder buildQueueWeight() { |
| 129 | return new OFBsnTlvQueueWeightVer13.Builder(); |
| 130 | } |
| 131 | public OFBsnTlvQueueWeight queueWeight(long value) { |
| 132 | return new OFBsnTlvQueueWeightVer13( |
| 133 | value |
| 134 | ); |
| 135 | } |
| 136 | |
| 137 | public OFBsnTlvReplyPackets.Builder buildReplyPackets() { |
| 138 | return new OFBsnTlvReplyPacketsVer13.Builder(); |
| 139 | } |
| 140 | public OFBsnTlvReplyPackets replyPackets(U64 value) { |
| 141 | return new OFBsnTlvReplyPacketsVer13( |
| 142 | value |
| 143 | ); |
| 144 | } |
| 145 | |
| 146 | public OFBsnTlvRequestPackets.Builder buildRequestPackets() { |
| 147 | return new OFBsnTlvRequestPacketsVer13.Builder(); |
| 148 | } |
| 149 | public OFBsnTlvRequestPackets requestPackets(U64 value) { |
| 150 | return new OFBsnTlvRequestPacketsVer13( |
| 151 | value |
| 152 | ); |
| 153 | } |
| 154 | |
| 155 | public OFBsnTlvRxPackets.Builder buildRxPackets() { |
| 156 | return new OFBsnTlvRxPacketsVer13.Builder(); |
| 157 | } |
| 158 | public OFBsnTlvRxPackets rxPackets(U64 value) { |
| 159 | return new OFBsnTlvRxPacketsVer13( |
| 160 | value |
| 161 | ); |
| 162 | } |
| 163 | |
| 164 | public OFBsnTlvTxPackets.Builder buildTxPackets() { |
| 165 | return new OFBsnTlvTxPacketsVer13.Builder(); |
| 166 | } |
| 167 | public OFBsnTlvTxPackets txPackets(U64 value) { |
| 168 | return new OFBsnTlvTxPacketsVer13( |
| 169 | value |
| 170 | ); |
| 171 | } |
| 172 | |
| 173 | public OFBsnTlvUdfAnchor.Builder buildUdfAnchor() { |
| 174 | return new OFBsnTlvUdfAnchorVer13.Builder(); |
| 175 | } |
| 176 | public OFBsnTlvUdfAnchor udfAnchor(OFBsnUdfAnchor value) { |
| 177 | return new OFBsnTlvUdfAnchorVer13( |
| 178 | value |
| 179 | ); |
| 180 | } |
| 181 | |
| 182 | public OFBsnTlvUdfId.Builder buildUdfId() { |
| 183 | return new OFBsnTlvUdfIdVer13.Builder(); |
| 184 | } |
| 185 | public OFBsnTlvUdfId udfId(int value) { |
| 186 | return new OFBsnTlvUdfIdVer13( |
| 187 | value |
| 188 | ); |
| 189 | } |
| 190 | |
| 191 | public OFBsnTlvUdfLength.Builder buildUdfLength() { |
| 192 | return new OFBsnTlvUdfLengthVer13.Builder(); |
| 193 | } |
| 194 | public OFBsnTlvUdfLength udfLength(int value) { |
| 195 | return new OFBsnTlvUdfLengthVer13( |
| 196 | value |
| 197 | ); |
| 198 | } |
| 199 | |
| 200 | public OFBsnTlvUdfOffset.Builder buildUdfOffset() { |
| 201 | return new OFBsnTlvUdfOffsetVer13.Builder(); |
| 202 | } |
| 203 | public OFBsnTlvUdfOffset udfOffset(int value) { |
| 204 | return new OFBsnTlvUdfOffsetVer13( |
| 205 | value |
| 206 | ); |
| 207 | } |
| 208 | |
| 209 | public OFBsnTlvUnicastQueryTimeout.Builder buildUnicastQueryTimeout() { |
| 210 | return new OFBsnTlvUnicastQueryTimeoutVer13.Builder(); |
| 211 | } |
| 212 | public OFBsnTlvUnicastQueryTimeout unicastQueryTimeout(long value) { |
| 213 | return new OFBsnTlvUnicastQueryTimeoutVer13( |
| 214 | value |
| 215 | ); |
| 216 | } |
| 217 | |
| 218 | public OFBsnTlvVlanVid.Builder buildVlanVid() { |
| 219 | return new OFBsnTlvVlanVidVer13.Builder(); |
| 220 | } |
| 221 | public OFBsnTlvVlanVid vlanVid(VlanVid value) { |
| 222 | return new OFBsnTlvVlanVidVer13( |
| 223 | value |
| 224 | ); |
| 225 | } |
| 226 | |
| 227 | public OFBsnTlvVrf.Builder buildVrf() { |
| 228 | return new OFBsnTlvVrfVer13.Builder(); |
| 229 | } |
| 230 | public OFBsnTlvVrf vrf(long value) { |
| 231 | return new OFBsnTlvVrfVer13( |
| 232 | value |
| 233 | ); |
| 234 | } |
| 235 | |
| 236 | public OFMessageReader<OFBsnTlv> getReader() { |
| 237 | return OFBsnTlvVer13.READER; |
| 238 | } |
| 239 | |
| 240 | |
| 241 | public OFVersion getVersion() { |
| 242 | return OFVersion.OF_13; |
| 243 | } |
| 244 | } |