Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: protobuf/ramcloud.proto |
| 3 | |
Jonathan Hart | 6df9017 | 2014-04-03 10:13:11 -0700 | [diff] [blame] | 4 | package net.onrc.onos.core.datastore; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 5 | |
| 6 | public final class RCProtos { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 7 | private RCProtos() { |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 8 | } |
| 9 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 10 | public static void registerAllExtensions( |
| 11 | com.google.protobuf.ExtensionRegistry registry) { |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 12 | } |
| 13 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 14 | public interface SwitchPropertyOrBuilder |
| 15 | extends com.google.protobuf.MessageOrBuilder { |
| 16 | |
| 17 | // required int64 dpid = 1; |
| 18 | |
| 19 | /** |
| 20 | * <code>required int64 dpid = 1;</code> |
| 21 | */ |
| 22 | boolean hasDpid(); |
| 23 | |
| 24 | /** |
| 25 | * <code>required int64 dpid = 1;</code> |
| 26 | */ |
| 27 | long getDpid(); |
| 28 | |
| 29 | // required int32 status = 2; |
| 30 | |
| 31 | /** |
| 32 | * <code>required int32 status = 2;</code> |
| 33 | */ |
| 34 | boolean hasStatus(); |
| 35 | |
| 36 | /** |
| 37 | * <code>required int32 status = 2;</code> |
| 38 | */ |
| 39 | int getStatus(); |
| 40 | |
| 41 | // optional bytes value = 3; |
| 42 | |
| 43 | /** |
| 44 | * <code>optional bytes value = 3;</code> |
| 45 | */ |
| 46 | boolean hasValue(); |
| 47 | |
| 48 | /** |
| 49 | * <code>optional bytes value = 3;</code> |
| 50 | */ |
| 51 | com.google.protobuf.ByteString getValue(); |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 52 | } |
| 53 | |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 54 | /** |
| 55 | * Protobuf type {@code RCProtos.SwitchProperty} |
| 56 | */ |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 57 | public static final class SwitchProperty extends |
| 58 | com.google.protobuf.GeneratedMessage |
| 59 | implements SwitchPropertyOrBuilder { |
| 60 | // Use SwitchProperty.newBuilder() to construct. |
| 61 | private SwitchProperty(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| 62 | super(builder); |
| 63 | this.unknownFields = builder.getUnknownFields(); |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 64 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 65 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 66 | private SwitchProperty(boolean noInit) { |
| 67 | this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 68 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 69 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 70 | private static final SwitchProperty defaultInstance; |
| 71 | |
| 72 | public static SwitchProperty getDefaultInstance() { |
| 73 | return defaultInstance; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 74 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 75 | |
| 76 | public SwitchProperty getDefaultInstanceForType() { |
| 77 | return defaultInstance; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 78 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 79 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 80 | private final com.google.protobuf.UnknownFieldSet unknownFields; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 81 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 82 | @java.lang.Override |
| 83 | public final com.google.protobuf.UnknownFieldSet |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 84 | getUnknownFields() { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 85 | return this.unknownFields; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 86 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 87 | |
| 88 | private SwitchProperty( |
| 89 | com.google.protobuf.CodedInputStream input, |
| 90 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 91 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 92 | initFields(); |
| 93 | int mutable_bitField0_ = 0; |
| 94 | com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
| 95 | com.google.protobuf.UnknownFieldSet.newBuilder(); |
| 96 | try { |
| 97 | boolean done = false; |
| 98 | while (!done) { |
| 99 | int tag = input.readTag(); |
| 100 | switch (tag) { |
| 101 | case 0: |
| 102 | done = true; |
| 103 | break; |
| 104 | default: { |
| 105 | if (!parseUnknownField(input, unknownFields, |
| 106 | extensionRegistry, tag)) { |
| 107 | done = true; |
| 108 | } |
| 109 | break; |
| 110 | } |
| 111 | case 8: { |
| 112 | bitField0_ |= 0x00000001; |
| 113 | dpid_ = input.readInt64(); |
| 114 | break; |
| 115 | } |
| 116 | case 16: { |
| 117 | bitField0_ |= 0x00000002; |
| 118 | status_ = input.readInt32(); |
| 119 | break; |
| 120 | } |
| 121 | case 26: { |
| 122 | bitField0_ |= 0x00000004; |
| 123 | value_ = input.readBytes(); |
| 124 | break; |
| 125 | } |
| 126 | } |
| 127 | } |
| 128 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| 129 | throw e.setUnfinishedMessage(this); |
| 130 | } catch (java.io.IOException e) { |
| 131 | throw new com.google.protobuf.InvalidProtocolBufferException( |
| 132 | e.getMessage()).setUnfinishedMessage(this); |
| 133 | } finally { |
| 134 | this.unknownFields = unknownFields.build(); |
| 135 | makeExtensionsImmutable(); |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | public static final com.google.protobuf.Descriptors.Descriptor |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 140 | getDescriptor() { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 141 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_SwitchProperty_descriptor; |
| 142 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 143 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 144 | protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 145 | internalGetFieldAccessorTable() { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 146 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_SwitchProperty_fieldAccessorTable |
| 147 | .ensureFieldAccessorsInitialized( |
| 148 | net.onrc.onos.core.datastore.RCProtos.SwitchProperty.class, net.onrc.onos.core.datastore.RCProtos.SwitchProperty.Builder.class); |
| 149 | } |
| 150 | |
| 151 | public static com.google.protobuf.Parser<SwitchProperty> PARSER = |
| 152 | new com.google.protobuf.AbstractParser<SwitchProperty>() { |
| 153 | public SwitchProperty parsePartialFrom( |
| 154 | com.google.protobuf.CodedInputStream input, |
| 155 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 156 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 157 | return new SwitchProperty(input, extensionRegistry); |
| 158 | } |
| 159 | }; |
| 160 | |
| 161 | @java.lang.Override |
| 162 | public com.google.protobuf.Parser<SwitchProperty> getParserForType() { |
| 163 | return PARSER; |
| 164 | } |
| 165 | |
| 166 | private int bitField0_; |
| 167 | // required int64 dpid = 1; |
| 168 | public static final int DPID_FIELD_NUMBER = 1; |
| 169 | private long dpid_; |
| 170 | |
| 171 | /** |
| 172 | * <code>required int64 dpid = 1;</code> |
| 173 | */ |
| 174 | public boolean hasDpid() { |
| 175 | return ((bitField0_ & 0x00000001) == 0x00000001); |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * <code>required int64 dpid = 1;</code> |
| 180 | */ |
| 181 | public long getDpid() { |
| 182 | return dpid_; |
| 183 | } |
| 184 | |
| 185 | // required int32 status = 2; |
| 186 | public static final int STATUS_FIELD_NUMBER = 2; |
| 187 | private int status_; |
| 188 | |
| 189 | /** |
| 190 | * <code>required int32 status = 2;</code> |
| 191 | */ |
| 192 | public boolean hasStatus() { |
| 193 | return ((bitField0_ & 0x00000002) == 0x00000002); |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * <code>required int32 status = 2;</code> |
| 198 | */ |
| 199 | public int getStatus() { |
| 200 | return status_; |
| 201 | } |
| 202 | |
| 203 | // optional bytes value = 3; |
| 204 | public static final int VALUE_FIELD_NUMBER = 3; |
| 205 | private com.google.protobuf.ByteString value_; |
| 206 | |
| 207 | /** |
| 208 | * <code>optional bytes value = 3;</code> |
| 209 | */ |
| 210 | public boolean hasValue() { |
| 211 | return ((bitField0_ & 0x00000004) == 0x00000004); |
| 212 | } |
| 213 | |
| 214 | /** |
| 215 | * <code>optional bytes value = 3;</code> |
| 216 | */ |
| 217 | public com.google.protobuf.ByteString getValue() { |
| 218 | return value_; |
| 219 | } |
| 220 | |
| 221 | private void initFields() { |
| 222 | dpid_ = 0L; |
| 223 | status_ = 0; |
| 224 | value_ = com.google.protobuf.ByteString.EMPTY; |
| 225 | } |
| 226 | |
| 227 | private byte memoizedIsInitialized = -1; |
| 228 | |
| 229 | public final boolean isInitialized() { |
| 230 | byte isInitialized = memoizedIsInitialized; |
| 231 | if (isInitialized != -1) return isInitialized == 1; |
| 232 | |
| 233 | if (!hasDpid()) { |
| 234 | memoizedIsInitialized = 0; |
| 235 | return false; |
| 236 | } |
| 237 | if (!hasStatus()) { |
| 238 | memoizedIsInitialized = 0; |
| 239 | return false; |
| 240 | } |
| 241 | memoizedIsInitialized = 1; |
| 242 | return true; |
| 243 | } |
| 244 | |
| 245 | public void writeTo(com.google.protobuf.CodedOutputStream output) |
| 246 | throws java.io.IOException { |
| 247 | getSerializedSize(); |
| 248 | if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| 249 | output.writeInt64(1, dpid_); |
| 250 | } |
| 251 | if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| 252 | output.writeInt32(2, status_); |
| 253 | } |
| 254 | if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| 255 | output.writeBytes(3, value_); |
| 256 | } |
| 257 | getUnknownFields().writeTo(output); |
| 258 | } |
| 259 | |
| 260 | private int memoizedSerializedSize = -1; |
| 261 | |
| 262 | public int getSerializedSize() { |
| 263 | int size = memoizedSerializedSize; |
| 264 | if (size != -1) return size; |
| 265 | |
| 266 | size = 0; |
| 267 | if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| 268 | size += com.google.protobuf.CodedOutputStream |
| 269 | .computeInt64Size(1, dpid_); |
| 270 | } |
| 271 | if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| 272 | size += com.google.protobuf.CodedOutputStream |
| 273 | .computeInt32Size(2, status_); |
| 274 | } |
| 275 | if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| 276 | size += com.google.protobuf.CodedOutputStream |
| 277 | .computeBytesSize(3, value_); |
| 278 | } |
| 279 | size += getUnknownFields().getSerializedSize(); |
| 280 | memoizedSerializedSize = size; |
| 281 | return size; |
| 282 | } |
| 283 | |
| 284 | private static final long serialVersionUID = 0L; |
| 285 | |
| 286 | @java.lang.Override |
| 287 | protected java.lang.Object writeReplace() |
| 288 | throws java.io.ObjectStreamException { |
| 289 | return super.writeReplace(); |
| 290 | } |
| 291 | |
| 292 | public static net.onrc.onos.core.datastore.RCProtos.SwitchProperty parseFrom( |
| 293 | com.google.protobuf.ByteString data) |
| 294 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 295 | return PARSER.parseFrom(data); |
| 296 | } |
| 297 | |
| 298 | public static net.onrc.onos.core.datastore.RCProtos.SwitchProperty parseFrom( |
| 299 | com.google.protobuf.ByteString data, |
| 300 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 301 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 302 | return PARSER.parseFrom(data, extensionRegistry); |
| 303 | } |
| 304 | |
| 305 | public static net.onrc.onos.core.datastore.RCProtos.SwitchProperty parseFrom(byte[] data) |
| 306 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 307 | return PARSER.parseFrom(data); |
| 308 | } |
| 309 | |
| 310 | public static net.onrc.onos.core.datastore.RCProtos.SwitchProperty parseFrom( |
| 311 | byte[] data, |
| 312 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 313 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 314 | return PARSER.parseFrom(data, extensionRegistry); |
| 315 | } |
| 316 | |
| 317 | public static net.onrc.onos.core.datastore.RCProtos.SwitchProperty parseFrom(java.io.InputStream input) |
| 318 | throws java.io.IOException { |
| 319 | return PARSER.parseFrom(input); |
| 320 | } |
| 321 | |
| 322 | public static net.onrc.onos.core.datastore.RCProtos.SwitchProperty parseFrom( |
| 323 | java.io.InputStream input, |
| 324 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 325 | throws java.io.IOException { |
| 326 | return PARSER.parseFrom(input, extensionRegistry); |
| 327 | } |
| 328 | |
| 329 | public static net.onrc.onos.core.datastore.RCProtos.SwitchProperty parseDelimitedFrom(java.io.InputStream input) |
| 330 | throws java.io.IOException { |
| 331 | return PARSER.parseDelimitedFrom(input); |
| 332 | } |
| 333 | |
| 334 | public static net.onrc.onos.core.datastore.RCProtos.SwitchProperty parseDelimitedFrom( |
| 335 | java.io.InputStream input, |
| 336 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 337 | throws java.io.IOException { |
| 338 | return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| 339 | } |
| 340 | |
| 341 | public static net.onrc.onos.core.datastore.RCProtos.SwitchProperty parseFrom( |
| 342 | com.google.protobuf.CodedInputStream input) |
| 343 | throws java.io.IOException { |
| 344 | return PARSER.parseFrom(input); |
| 345 | } |
| 346 | |
| 347 | public static net.onrc.onos.core.datastore.RCProtos.SwitchProperty parseFrom( |
| 348 | com.google.protobuf.CodedInputStream input, |
| 349 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 350 | throws java.io.IOException { |
| 351 | return PARSER.parseFrom(input, extensionRegistry); |
| 352 | } |
| 353 | |
| 354 | public static Builder newBuilder() { |
| 355 | return Builder.create(); |
| 356 | } |
| 357 | |
| 358 | public Builder newBuilderForType() { |
| 359 | return newBuilder(); |
| 360 | } |
| 361 | |
| 362 | public static Builder newBuilder(net.onrc.onos.core.datastore.RCProtos.SwitchProperty prototype) { |
| 363 | return newBuilder().mergeFrom(prototype); |
| 364 | } |
| 365 | |
| 366 | public Builder toBuilder() { |
| 367 | return newBuilder(this); |
| 368 | } |
| 369 | |
| 370 | @java.lang.Override |
| 371 | protected Builder newBuilderForType( |
| 372 | com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| 373 | Builder builder = new Builder(parent); |
| 374 | return builder; |
| 375 | } |
| 376 | |
| 377 | /** |
| 378 | * Protobuf type {@code RCProtos.SwitchProperty} |
| 379 | */ |
| 380 | public static final class Builder extends |
| 381 | com.google.protobuf.GeneratedMessage.Builder<Builder> |
| 382 | implements net.onrc.onos.core.datastore.RCProtos.SwitchPropertyOrBuilder { |
| 383 | public static final com.google.protobuf.Descriptors.Descriptor |
| 384 | getDescriptor() { |
| 385 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_SwitchProperty_descriptor; |
| 386 | } |
| 387 | |
| 388 | protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| 389 | internalGetFieldAccessorTable() { |
| 390 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_SwitchProperty_fieldAccessorTable |
| 391 | .ensureFieldAccessorsInitialized( |
| 392 | net.onrc.onos.core.datastore.RCProtos.SwitchProperty.class, net.onrc.onos.core.datastore.RCProtos.SwitchProperty.Builder.class); |
| 393 | } |
| 394 | |
| 395 | // Construct using net.onrc.onos.core.datastore.RCProtos.SwitchProperty.newBuilder() |
| 396 | private Builder() { |
| 397 | maybeForceBuilderInitialization(); |
| 398 | } |
| 399 | |
| 400 | private Builder( |
| 401 | com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| 402 | super(parent); |
| 403 | maybeForceBuilderInitialization(); |
| 404 | } |
| 405 | |
| 406 | private void maybeForceBuilderInitialization() { |
| 407 | if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | private static Builder create() { |
| 412 | return new Builder(); |
| 413 | } |
| 414 | |
| 415 | public Builder clear() { |
| 416 | super.clear(); |
| 417 | dpid_ = 0L; |
| 418 | bitField0_ = (bitField0_ & ~0x00000001); |
| 419 | status_ = 0; |
| 420 | bitField0_ = (bitField0_ & ~0x00000002); |
| 421 | value_ = com.google.protobuf.ByteString.EMPTY; |
| 422 | bitField0_ = (bitField0_ & ~0x00000004); |
| 423 | return this; |
| 424 | } |
| 425 | |
| 426 | public Builder clone() { |
| 427 | return create().mergeFrom(buildPartial()); |
| 428 | } |
| 429 | |
| 430 | public com.google.protobuf.Descriptors.Descriptor |
| 431 | getDescriptorForType() { |
| 432 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_SwitchProperty_descriptor; |
| 433 | } |
| 434 | |
| 435 | public net.onrc.onos.core.datastore.RCProtos.SwitchProperty getDefaultInstanceForType() { |
| 436 | return net.onrc.onos.core.datastore.RCProtos.SwitchProperty.getDefaultInstance(); |
| 437 | } |
| 438 | |
| 439 | public net.onrc.onos.core.datastore.RCProtos.SwitchProperty build() { |
| 440 | net.onrc.onos.core.datastore.RCProtos.SwitchProperty result = buildPartial(); |
| 441 | if (!result.isInitialized()) { |
| 442 | throw newUninitializedMessageException(result); |
| 443 | } |
| 444 | return result; |
| 445 | } |
| 446 | |
| 447 | public net.onrc.onos.core.datastore.RCProtos.SwitchProperty buildPartial() { |
| 448 | net.onrc.onos.core.datastore.RCProtos.SwitchProperty result = new net.onrc.onos.core.datastore.RCProtos.SwitchProperty(this); |
| 449 | int from_bitField0_ = bitField0_; |
| 450 | int to_bitField0_ = 0; |
| 451 | if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| 452 | to_bitField0_ |= 0x00000001; |
| 453 | } |
| 454 | result.dpid_ = dpid_; |
| 455 | if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| 456 | to_bitField0_ |= 0x00000002; |
| 457 | } |
| 458 | result.status_ = status_; |
| 459 | if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| 460 | to_bitField0_ |= 0x00000004; |
| 461 | } |
| 462 | result.value_ = value_; |
| 463 | result.bitField0_ = to_bitField0_; |
| 464 | onBuilt(); |
| 465 | return result; |
| 466 | } |
| 467 | |
| 468 | public Builder mergeFrom(com.google.protobuf.Message other) { |
| 469 | if (other instanceof net.onrc.onos.core.datastore.RCProtos.SwitchProperty) { |
| 470 | return mergeFrom((net.onrc.onos.core.datastore.RCProtos.SwitchProperty) other); |
| 471 | } else { |
| 472 | super.mergeFrom(other); |
| 473 | return this; |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | public Builder mergeFrom(net.onrc.onos.core.datastore.RCProtos.SwitchProperty other) { |
| 478 | if (other == net.onrc.onos.core.datastore.RCProtos.SwitchProperty.getDefaultInstance()) |
| 479 | return this; |
| 480 | if (other.hasDpid()) { |
| 481 | setDpid(other.getDpid()); |
| 482 | } |
| 483 | if (other.hasStatus()) { |
| 484 | setStatus(other.getStatus()); |
| 485 | } |
| 486 | if (other.hasValue()) { |
| 487 | setValue(other.getValue()); |
| 488 | } |
| 489 | this.mergeUnknownFields(other.getUnknownFields()); |
| 490 | return this; |
| 491 | } |
| 492 | |
| 493 | public final boolean isInitialized() { |
| 494 | if (!hasDpid()) { |
| 495 | |
| 496 | return false; |
| 497 | } |
| 498 | if (!hasStatus()) { |
| 499 | |
| 500 | return false; |
| 501 | } |
| 502 | return true; |
| 503 | } |
| 504 | |
| 505 | public Builder mergeFrom( |
| 506 | com.google.protobuf.CodedInputStream input, |
| 507 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 508 | throws java.io.IOException { |
| 509 | net.onrc.onos.core.datastore.RCProtos.SwitchProperty parsedMessage = null; |
| 510 | try { |
| 511 | parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| 512 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| 513 | parsedMessage = (net.onrc.onos.core.datastore.RCProtos.SwitchProperty) e.getUnfinishedMessage(); |
| 514 | throw e; |
| 515 | } finally { |
| 516 | if (parsedMessage != null) { |
| 517 | mergeFrom(parsedMessage); |
| 518 | } |
| 519 | } |
| 520 | return this; |
| 521 | } |
| 522 | |
| 523 | private int bitField0_; |
| 524 | |
| 525 | // required int64 dpid = 1; |
| 526 | private long dpid_; |
| 527 | |
| 528 | /** |
| 529 | * <code>required int64 dpid = 1;</code> |
| 530 | */ |
| 531 | public boolean hasDpid() { |
| 532 | return ((bitField0_ & 0x00000001) == 0x00000001); |
| 533 | } |
| 534 | |
| 535 | /** |
| 536 | * <code>required int64 dpid = 1;</code> |
| 537 | */ |
| 538 | public long getDpid() { |
| 539 | return dpid_; |
| 540 | } |
| 541 | |
| 542 | /** |
| 543 | * <code>required int64 dpid = 1;</code> |
| 544 | */ |
| 545 | public Builder setDpid(long value) { |
| 546 | bitField0_ |= 0x00000001; |
| 547 | dpid_ = value; |
| 548 | onChanged(); |
| 549 | return this; |
| 550 | } |
| 551 | |
| 552 | /** |
| 553 | * <code>required int64 dpid = 1;</code> |
| 554 | */ |
| 555 | public Builder clearDpid() { |
| 556 | bitField0_ = (bitField0_ & ~0x00000001); |
| 557 | dpid_ = 0L; |
| 558 | onChanged(); |
| 559 | return this; |
| 560 | } |
| 561 | |
| 562 | // required int32 status = 2; |
| 563 | private int status_; |
| 564 | |
| 565 | /** |
| 566 | * <code>required int32 status = 2;</code> |
| 567 | */ |
| 568 | public boolean hasStatus() { |
| 569 | return ((bitField0_ & 0x00000002) == 0x00000002); |
| 570 | } |
| 571 | |
| 572 | /** |
| 573 | * <code>required int32 status = 2;</code> |
| 574 | */ |
| 575 | public int getStatus() { |
| 576 | return status_; |
| 577 | } |
| 578 | |
| 579 | /** |
| 580 | * <code>required int32 status = 2;</code> |
| 581 | */ |
| 582 | public Builder setStatus(int value) { |
| 583 | bitField0_ |= 0x00000002; |
| 584 | status_ = value; |
| 585 | onChanged(); |
| 586 | return this; |
| 587 | } |
| 588 | |
| 589 | /** |
| 590 | * <code>required int32 status = 2;</code> |
| 591 | */ |
| 592 | public Builder clearStatus() { |
| 593 | bitField0_ = (bitField0_ & ~0x00000002); |
| 594 | status_ = 0; |
| 595 | onChanged(); |
| 596 | return this; |
| 597 | } |
| 598 | |
| 599 | // optional bytes value = 3; |
| 600 | private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; |
| 601 | |
| 602 | /** |
| 603 | * <code>optional bytes value = 3;</code> |
| 604 | */ |
| 605 | public boolean hasValue() { |
| 606 | return ((bitField0_ & 0x00000004) == 0x00000004); |
| 607 | } |
| 608 | |
| 609 | /** |
| 610 | * <code>optional bytes value = 3;</code> |
| 611 | */ |
| 612 | public com.google.protobuf.ByteString getValue() { |
| 613 | return value_; |
| 614 | } |
| 615 | |
| 616 | /** |
| 617 | * <code>optional bytes value = 3;</code> |
| 618 | */ |
| 619 | public Builder setValue(com.google.protobuf.ByteString value) { |
| 620 | if (value == null) { |
| 621 | throw new NullPointerException(); |
| 622 | } |
| 623 | bitField0_ |= 0x00000004; |
| 624 | value_ = value; |
| 625 | onChanged(); |
| 626 | return this; |
| 627 | } |
| 628 | |
| 629 | /** |
| 630 | * <code>optional bytes value = 3;</code> |
| 631 | */ |
| 632 | public Builder clearValue() { |
| 633 | bitField0_ = (bitField0_ & ~0x00000004); |
| 634 | value_ = getDefaultInstance().getValue(); |
| 635 | onChanged(); |
| 636 | return this; |
| 637 | } |
| 638 | |
| 639 | // @@protoc_insertion_point(builder_scope:RCProtos.SwitchProperty) |
| 640 | } |
| 641 | |
| 642 | static { |
| 643 | defaultInstance = new SwitchProperty(true); |
| 644 | defaultInstance.initFields(); |
| 645 | } |
| 646 | |
| 647 | // @@protoc_insertion_point(class_scope:RCProtos.SwitchProperty) |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 648 | } |
| 649 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 650 | public interface PortPropertyOrBuilder |
| 651 | extends com.google.protobuf.MessageOrBuilder { |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 652 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 653 | // required int64 dpid = 1; |
| 654 | |
| 655 | /** |
| 656 | * <code>required int64 dpid = 1;</code> |
| 657 | */ |
| 658 | boolean hasDpid(); |
| 659 | |
| 660 | /** |
| 661 | * <code>required int64 dpid = 1;</code> |
| 662 | */ |
| 663 | long getDpid(); |
| 664 | |
| 665 | // required int64 number = 2; |
| 666 | |
| 667 | /** |
| 668 | * <code>required int64 number = 2;</code> |
| 669 | */ |
| 670 | boolean hasNumber(); |
| 671 | |
| 672 | /** |
| 673 | * <code>required int64 number = 2;</code> |
| 674 | */ |
| 675 | long getNumber(); |
| 676 | |
| 677 | // required int32 status = 3; |
| 678 | |
| 679 | /** |
| 680 | * <code>required int32 status = 3;</code> |
| 681 | */ |
| 682 | boolean hasStatus(); |
| 683 | |
| 684 | /** |
| 685 | * <code>required int32 status = 3;</code> |
| 686 | */ |
| 687 | int getStatus(); |
| 688 | |
| 689 | // optional bytes value = 4; |
| 690 | |
| 691 | /** |
| 692 | * <code>optional bytes value = 4;</code> |
| 693 | */ |
| 694 | boolean hasValue(); |
| 695 | |
| 696 | /** |
| 697 | * <code>optional bytes value = 4;</code> |
| 698 | */ |
| 699 | com.google.protobuf.ByteString getValue(); |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 700 | } |
| 701 | |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 702 | /** |
| 703 | * Protobuf type {@code RCProtos.PortProperty} |
| 704 | */ |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 705 | public static final class PortProperty extends |
| 706 | com.google.protobuf.GeneratedMessage |
| 707 | implements PortPropertyOrBuilder { |
| 708 | // Use PortProperty.newBuilder() to construct. |
| 709 | private PortProperty(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| 710 | super(builder); |
| 711 | this.unknownFields = builder.getUnknownFields(); |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 712 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 713 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 714 | private PortProperty(boolean noInit) { |
| 715 | this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 716 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 717 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 718 | private static final PortProperty defaultInstance; |
| 719 | |
| 720 | public static PortProperty getDefaultInstance() { |
| 721 | return defaultInstance; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 722 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 723 | |
| 724 | public PortProperty getDefaultInstanceForType() { |
| 725 | return defaultInstance; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 726 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 727 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 728 | private final com.google.protobuf.UnknownFieldSet unknownFields; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 729 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 730 | @java.lang.Override |
| 731 | public final com.google.protobuf.UnknownFieldSet |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 732 | getUnknownFields() { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 733 | return this.unknownFields; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 734 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 735 | |
| 736 | private PortProperty( |
| 737 | com.google.protobuf.CodedInputStream input, |
| 738 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 739 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 740 | initFields(); |
| 741 | int mutable_bitField0_ = 0; |
| 742 | com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
| 743 | com.google.protobuf.UnknownFieldSet.newBuilder(); |
| 744 | try { |
| 745 | boolean done = false; |
| 746 | while (!done) { |
| 747 | int tag = input.readTag(); |
| 748 | switch (tag) { |
| 749 | case 0: |
| 750 | done = true; |
| 751 | break; |
| 752 | default: { |
| 753 | if (!parseUnknownField(input, unknownFields, |
| 754 | extensionRegistry, tag)) { |
| 755 | done = true; |
| 756 | } |
| 757 | break; |
| 758 | } |
| 759 | case 8: { |
| 760 | bitField0_ |= 0x00000001; |
| 761 | dpid_ = input.readInt64(); |
| 762 | break; |
| 763 | } |
| 764 | case 16: { |
| 765 | bitField0_ |= 0x00000002; |
| 766 | number_ = input.readInt64(); |
| 767 | break; |
| 768 | } |
| 769 | case 24: { |
| 770 | bitField0_ |= 0x00000004; |
| 771 | status_ = input.readInt32(); |
| 772 | break; |
| 773 | } |
| 774 | case 34: { |
| 775 | bitField0_ |= 0x00000008; |
| 776 | value_ = input.readBytes(); |
| 777 | break; |
| 778 | } |
| 779 | } |
| 780 | } |
| 781 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| 782 | throw e.setUnfinishedMessage(this); |
| 783 | } catch (java.io.IOException e) { |
| 784 | throw new com.google.protobuf.InvalidProtocolBufferException( |
| 785 | e.getMessage()).setUnfinishedMessage(this); |
| 786 | } finally { |
| 787 | this.unknownFields = unknownFields.build(); |
| 788 | makeExtensionsImmutable(); |
| 789 | } |
| 790 | } |
| 791 | |
| 792 | public static final com.google.protobuf.Descriptors.Descriptor |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 793 | getDescriptor() { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 794 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_PortProperty_descriptor; |
| 795 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 796 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 797 | protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 798 | internalGetFieldAccessorTable() { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 799 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_PortProperty_fieldAccessorTable |
| 800 | .ensureFieldAccessorsInitialized( |
| 801 | net.onrc.onos.core.datastore.RCProtos.PortProperty.class, net.onrc.onos.core.datastore.RCProtos.PortProperty.Builder.class); |
| 802 | } |
| 803 | |
| 804 | public static com.google.protobuf.Parser<PortProperty> PARSER = |
| 805 | new com.google.protobuf.AbstractParser<PortProperty>() { |
| 806 | public PortProperty parsePartialFrom( |
| 807 | com.google.protobuf.CodedInputStream input, |
| 808 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 809 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 810 | return new PortProperty(input, extensionRegistry); |
| 811 | } |
| 812 | }; |
| 813 | |
| 814 | @java.lang.Override |
| 815 | public com.google.protobuf.Parser<PortProperty> getParserForType() { |
| 816 | return PARSER; |
| 817 | } |
| 818 | |
| 819 | private int bitField0_; |
| 820 | // required int64 dpid = 1; |
| 821 | public static final int DPID_FIELD_NUMBER = 1; |
| 822 | private long dpid_; |
| 823 | |
| 824 | /** |
| 825 | * <code>required int64 dpid = 1;</code> |
| 826 | */ |
| 827 | public boolean hasDpid() { |
| 828 | return ((bitField0_ & 0x00000001) == 0x00000001); |
| 829 | } |
| 830 | |
| 831 | /** |
| 832 | * <code>required int64 dpid = 1;</code> |
| 833 | */ |
| 834 | public long getDpid() { |
| 835 | return dpid_; |
| 836 | } |
| 837 | |
| 838 | // required int64 number = 2; |
| 839 | public static final int NUMBER_FIELD_NUMBER = 2; |
| 840 | private long number_; |
| 841 | |
| 842 | /** |
| 843 | * <code>required int64 number = 2;</code> |
| 844 | */ |
| 845 | public boolean hasNumber() { |
| 846 | return ((bitField0_ & 0x00000002) == 0x00000002); |
| 847 | } |
| 848 | |
| 849 | /** |
| 850 | * <code>required int64 number = 2;</code> |
| 851 | */ |
| 852 | public long getNumber() { |
| 853 | return number_; |
| 854 | } |
| 855 | |
| 856 | // required int32 status = 3; |
| 857 | public static final int STATUS_FIELD_NUMBER = 3; |
| 858 | private int status_; |
| 859 | |
| 860 | /** |
| 861 | * <code>required int32 status = 3;</code> |
| 862 | */ |
| 863 | public boolean hasStatus() { |
| 864 | return ((bitField0_ & 0x00000004) == 0x00000004); |
| 865 | } |
| 866 | |
| 867 | /** |
| 868 | * <code>required int32 status = 3;</code> |
| 869 | */ |
| 870 | public int getStatus() { |
| 871 | return status_; |
| 872 | } |
| 873 | |
| 874 | // optional bytes value = 4; |
| 875 | public static final int VALUE_FIELD_NUMBER = 4; |
| 876 | private com.google.protobuf.ByteString value_; |
| 877 | |
| 878 | /** |
| 879 | * <code>optional bytes value = 4;</code> |
| 880 | */ |
| 881 | public boolean hasValue() { |
| 882 | return ((bitField0_ & 0x00000008) == 0x00000008); |
| 883 | } |
| 884 | |
| 885 | /** |
| 886 | * <code>optional bytes value = 4;</code> |
| 887 | */ |
| 888 | public com.google.protobuf.ByteString getValue() { |
| 889 | return value_; |
| 890 | } |
| 891 | |
| 892 | private void initFields() { |
| 893 | dpid_ = 0L; |
| 894 | number_ = 0L; |
| 895 | status_ = 0; |
| 896 | value_ = com.google.protobuf.ByteString.EMPTY; |
| 897 | } |
| 898 | |
| 899 | private byte memoizedIsInitialized = -1; |
| 900 | |
| 901 | public final boolean isInitialized() { |
| 902 | byte isInitialized = memoizedIsInitialized; |
| 903 | if (isInitialized != -1) return isInitialized == 1; |
| 904 | |
| 905 | if (!hasDpid()) { |
| 906 | memoizedIsInitialized = 0; |
| 907 | return false; |
| 908 | } |
| 909 | if (!hasNumber()) { |
| 910 | memoizedIsInitialized = 0; |
| 911 | return false; |
| 912 | } |
| 913 | if (!hasStatus()) { |
| 914 | memoizedIsInitialized = 0; |
| 915 | return false; |
| 916 | } |
| 917 | memoizedIsInitialized = 1; |
| 918 | return true; |
| 919 | } |
| 920 | |
| 921 | public void writeTo(com.google.protobuf.CodedOutputStream output) |
| 922 | throws java.io.IOException { |
| 923 | getSerializedSize(); |
| 924 | if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| 925 | output.writeInt64(1, dpid_); |
| 926 | } |
| 927 | if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| 928 | output.writeInt64(2, number_); |
| 929 | } |
| 930 | if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| 931 | output.writeInt32(3, status_); |
| 932 | } |
| 933 | if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| 934 | output.writeBytes(4, value_); |
| 935 | } |
| 936 | getUnknownFields().writeTo(output); |
| 937 | } |
| 938 | |
| 939 | private int memoizedSerializedSize = -1; |
| 940 | |
| 941 | public int getSerializedSize() { |
| 942 | int size = memoizedSerializedSize; |
| 943 | if (size != -1) return size; |
| 944 | |
| 945 | size = 0; |
| 946 | if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| 947 | size += com.google.protobuf.CodedOutputStream |
| 948 | .computeInt64Size(1, dpid_); |
| 949 | } |
| 950 | if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| 951 | size += com.google.protobuf.CodedOutputStream |
| 952 | .computeInt64Size(2, number_); |
| 953 | } |
| 954 | if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| 955 | size += com.google.protobuf.CodedOutputStream |
| 956 | .computeInt32Size(3, status_); |
| 957 | } |
| 958 | if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| 959 | size += com.google.protobuf.CodedOutputStream |
| 960 | .computeBytesSize(4, value_); |
| 961 | } |
| 962 | size += getUnknownFields().getSerializedSize(); |
| 963 | memoizedSerializedSize = size; |
| 964 | return size; |
| 965 | } |
| 966 | |
| 967 | private static final long serialVersionUID = 0L; |
| 968 | |
| 969 | @java.lang.Override |
| 970 | protected java.lang.Object writeReplace() |
| 971 | throws java.io.ObjectStreamException { |
| 972 | return super.writeReplace(); |
| 973 | } |
| 974 | |
| 975 | public static net.onrc.onos.core.datastore.RCProtos.PortProperty parseFrom( |
| 976 | com.google.protobuf.ByteString data) |
| 977 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 978 | return PARSER.parseFrom(data); |
| 979 | } |
| 980 | |
| 981 | public static net.onrc.onos.core.datastore.RCProtos.PortProperty parseFrom( |
| 982 | com.google.protobuf.ByteString data, |
| 983 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 984 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 985 | return PARSER.parseFrom(data, extensionRegistry); |
| 986 | } |
| 987 | |
| 988 | public static net.onrc.onos.core.datastore.RCProtos.PortProperty parseFrom(byte[] data) |
| 989 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 990 | return PARSER.parseFrom(data); |
| 991 | } |
| 992 | |
| 993 | public static net.onrc.onos.core.datastore.RCProtos.PortProperty parseFrom( |
| 994 | byte[] data, |
| 995 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 996 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 997 | return PARSER.parseFrom(data, extensionRegistry); |
| 998 | } |
| 999 | |
| 1000 | public static net.onrc.onos.core.datastore.RCProtos.PortProperty parseFrom(java.io.InputStream input) |
| 1001 | throws java.io.IOException { |
| 1002 | return PARSER.parseFrom(input); |
| 1003 | } |
| 1004 | |
| 1005 | public static net.onrc.onos.core.datastore.RCProtos.PortProperty parseFrom( |
| 1006 | java.io.InputStream input, |
| 1007 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 1008 | throws java.io.IOException { |
| 1009 | return PARSER.parseFrom(input, extensionRegistry); |
| 1010 | } |
| 1011 | |
| 1012 | public static net.onrc.onos.core.datastore.RCProtos.PortProperty parseDelimitedFrom(java.io.InputStream input) |
| 1013 | throws java.io.IOException { |
| 1014 | return PARSER.parseDelimitedFrom(input); |
| 1015 | } |
| 1016 | |
| 1017 | public static net.onrc.onos.core.datastore.RCProtos.PortProperty parseDelimitedFrom( |
| 1018 | java.io.InputStream input, |
| 1019 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 1020 | throws java.io.IOException { |
| 1021 | return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| 1022 | } |
| 1023 | |
| 1024 | public static net.onrc.onos.core.datastore.RCProtos.PortProperty parseFrom( |
| 1025 | com.google.protobuf.CodedInputStream input) |
| 1026 | throws java.io.IOException { |
| 1027 | return PARSER.parseFrom(input); |
| 1028 | } |
| 1029 | |
| 1030 | public static net.onrc.onos.core.datastore.RCProtos.PortProperty parseFrom( |
| 1031 | com.google.protobuf.CodedInputStream input, |
| 1032 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 1033 | throws java.io.IOException { |
| 1034 | return PARSER.parseFrom(input, extensionRegistry); |
| 1035 | } |
| 1036 | |
| 1037 | public static Builder newBuilder() { |
| 1038 | return Builder.create(); |
| 1039 | } |
| 1040 | |
| 1041 | public Builder newBuilderForType() { |
| 1042 | return newBuilder(); |
| 1043 | } |
| 1044 | |
| 1045 | public static Builder newBuilder(net.onrc.onos.core.datastore.RCProtos.PortProperty prototype) { |
| 1046 | return newBuilder().mergeFrom(prototype); |
| 1047 | } |
| 1048 | |
| 1049 | public Builder toBuilder() { |
| 1050 | return newBuilder(this); |
| 1051 | } |
| 1052 | |
| 1053 | @java.lang.Override |
| 1054 | protected Builder newBuilderForType( |
| 1055 | com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| 1056 | Builder builder = new Builder(parent); |
| 1057 | return builder; |
| 1058 | } |
| 1059 | |
| 1060 | /** |
| 1061 | * Protobuf type {@code RCProtos.PortProperty} |
| 1062 | */ |
| 1063 | public static final class Builder extends |
| 1064 | com.google.protobuf.GeneratedMessage.Builder<Builder> |
| 1065 | implements net.onrc.onos.core.datastore.RCProtos.PortPropertyOrBuilder { |
| 1066 | public static final com.google.protobuf.Descriptors.Descriptor |
| 1067 | getDescriptor() { |
| 1068 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_PortProperty_descriptor; |
| 1069 | } |
| 1070 | |
| 1071 | protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| 1072 | internalGetFieldAccessorTable() { |
| 1073 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_PortProperty_fieldAccessorTable |
| 1074 | .ensureFieldAccessorsInitialized( |
| 1075 | net.onrc.onos.core.datastore.RCProtos.PortProperty.class, net.onrc.onos.core.datastore.RCProtos.PortProperty.Builder.class); |
| 1076 | } |
| 1077 | |
| 1078 | // Construct using net.onrc.onos.core.datastore.RCProtos.PortProperty.newBuilder() |
| 1079 | private Builder() { |
| 1080 | maybeForceBuilderInitialization(); |
| 1081 | } |
| 1082 | |
| 1083 | private Builder( |
| 1084 | com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| 1085 | super(parent); |
| 1086 | maybeForceBuilderInitialization(); |
| 1087 | } |
| 1088 | |
| 1089 | private void maybeForceBuilderInitialization() { |
| 1090 | if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| 1091 | } |
| 1092 | } |
| 1093 | |
| 1094 | private static Builder create() { |
| 1095 | return new Builder(); |
| 1096 | } |
| 1097 | |
| 1098 | public Builder clear() { |
| 1099 | super.clear(); |
| 1100 | dpid_ = 0L; |
| 1101 | bitField0_ = (bitField0_ & ~0x00000001); |
| 1102 | number_ = 0L; |
| 1103 | bitField0_ = (bitField0_ & ~0x00000002); |
| 1104 | status_ = 0; |
| 1105 | bitField0_ = (bitField0_ & ~0x00000004); |
| 1106 | value_ = com.google.protobuf.ByteString.EMPTY; |
| 1107 | bitField0_ = (bitField0_ & ~0x00000008); |
| 1108 | return this; |
| 1109 | } |
| 1110 | |
| 1111 | public Builder clone() { |
| 1112 | return create().mergeFrom(buildPartial()); |
| 1113 | } |
| 1114 | |
| 1115 | public com.google.protobuf.Descriptors.Descriptor |
| 1116 | getDescriptorForType() { |
| 1117 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_PortProperty_descriptor; |
| 1118 | } |
| 1119 | |
| 1120 | public net.onrc.onos.core.datastore.RCProtos.PortProperty getDefaultInstanceForType() { |
| 1121 | return net.onrc.onos.core.datastore.RCProtos.PortProperty.getDefaultInstance(); |
| 1122 | } |
| 1123 | |
| 1124 | public net.onrc.onos.core.datastore.RCProtos.PortProperty build() { |
| 1125 | net.onrc.onos.core.datastore.RCProtos.PortProperty result = buildPartial(); |
| 1126 | if (!result.isInitialized()) { |
| 1127 | throw newUninitializedMessageException(result); |
| 1128 | } |
| 1129 | return result; |
| 1130 | } |
| 1131 | |
| 1132 | public net.onrc.onos.core.datastore.RCProtos.PortProperty buildPartial() { |
| 1133 | net.onrc.onos.core.datastore.RCProtos.PortProperty result = new net.onrc.onos.core.datastore.RCProtos.PortProperty(this); |
| 1134 | int from_bitField0_ = bitField0_; |
| 1135 | int to_bitField0_ = 0; |
| 1136 | if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| 1137 | to_bitField0_ |= 0x00000001; |
| 1138 | } |
| 1139 | result.dpid_ = dpid_; |
| 1140 | if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| 1141 | to_bitField0_ |= 0x00000002; |
| 1142 | } |
| 1143 | result.number_ = number_; |
| 1144 | if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| 1145 | to_bitField0_ |= 0x00000004; |
| 1146 | } |
| 1147 | result.status_ = status_; |
| 1148 | if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| 1149 | to_bitField0_ |= 0x00000008; |
| 1150 | } |
| 1151 | result.value_ = value_; |
| 1152 | result.bitField0_ = to_bitField0_; |
| 1153 | onBuilt(); |
| 1154 | return result; |
| 1155 | } |
| 1156 | |
| 1157 | public Builder mergeFrom(com.google.protobuf.Message other) { |
| 1158 | if (other instanceof net.onrc.onos.core.datastore.RCProtos.PortProperty) { |
| 1159 | return mergeFrom((net.onrc.onos.core.datastore.RCProtos.PortProperty) other); |
| 1160 | } else { |
| 1161 | super.mergeFrom(other); |
| 1162 | return this; |
| 1163 | } |
| 1164 | } |
| 1165 | |
| 1166 | public Builder mergeFrom(net.onrc.onos.core.datastore.RCProtos.PortProperty other) { |
| 1167 | if (other == net.onrc.onos.core.datastore.RCProtos.PortProperty.getDefaultInstance()) |
| 1168 | return this; |
| 1169 | if (other.hasDpid()) { |
| 1170 | setDpid(other.getDpid()); |
| 1171 | } |
| 1172 | if (other.hasNumber()) { |
| 1173 | setNumber(other.getNumber()); |
| 1174 | } |
| 1175 | if (other.hasStatus()) { |
| 1176 | setStatus(other.getStatus()); |
| 1177 | } |
| 1178 | if (other.hasValue()) { |
| 1179 | setValue(other.getValue()); |
| 1180 | } |
| 1181 | this.mergeUnknownFields(other.getUnknownFields()); |
| 1182 | return this; |
| 1183 | } |
| 1184 | |
| 1185 | public final boolean isInitialized() { |
| 1186 | if (!hasDpid()) { |
| 1187 | |
| 1188 | return false; |
| 1189 | } |
| 1190 | if (!hasNumber()) { |
| 1191 | |
| 1192 | return false; |
| 1193 | } |
| 1194 | if (!hasStatus()) { |
| 1195 | |
| 1196 | return false; |
| 1197 | } |
| 1198 | return true; |
| 1199 | } |
| 1200 | |
| 1201 | public Builder mergeFrom( |
| 1202 | com.google.protobuf.CodedInputStream input, |
| 1203 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 1204 | throws java.io.IOException { |
| 1205 | net.onrc.onos.core.datastore.RCProtos.PortProperty parsedMessage = null; |
| 1206 | try { |
| 1207 | parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| 1208 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| 1209 | parsedMessage = (net.onrc.onos.core.datastore.RCProtos.PortProperty) e.getUnfinishedMessage(); |
| 1210 | throw e; |
| 1211 | } finally { |
| 1212 | if (parsedMessage != null) { |
| 1213 | mergeFrom(parsedMessage); |
| 1214 | } |
| 1215 | } |
| 1216 | return this; |
| 1217 | } |
| 1218 | |
| 1219 | private int bitField0_; |
| 1220 | |
| 1221 | // required int64 dpid = 1; |
| 1222 | private long dpid_; |
| 1223 | |
| 1224 | /** |
| 1225 | * <code>required int64 dpid = 1;</code> |
| 1226 | */ |
| 1227 | public boolean hasDpid() { |
| 1228 | return ((bitField0_ & 0x00000001) == 0x00000001); |
| 1229 | } |
| 1230 | |
| 1231 | /** |
| 1232 | * <code>required int64 dpid = 1;</code> |
| 1233 | */ |
| 1234 | public long getDpid() { |
| 1235 | return dpid_; |
| 1236 | } |
| 1237 | |
| 1238 | /** |
| 1239 | * <code>required int64 dpid = 1;</code> |
| 1240 | */ |
| 1241 | public Builder setDpid(long value) { |
| 1242 | bitField0_ |= 0x00000001; |
| 1243 | dpid_ = value; |
| 1244 | onChanged(); |
| 1245 | return this; |
| 1246 | } |
| 1247 | |
| 1248 | /** |
| 1249 | * <code>required int64 dpid = 1;</code> |
| 1250 | */ |
| 1251 | public Builder clearDpid() { |
| 1252 | bitField0_ = (bitField0_ & ~0x00000001); |
| 1253 | dpid_ = 0L; |
| 1254 | onChanged(); |
| 1255 | return this; |
| 1256 | } |
| 1257 | |
| 1258 | // required int64 number = 2; |
| 1259 | private long number_; |
| 1260 | |
| 1261 | /** |
| 1262 | * <code>required int64 number = 2;</code> |
| 1263 | */ |
| 1264 | public boolean hasNumber() { |
| 1265 | return ((bitField0_ & 0x00000002) == 0x00000002); |
| 1266 | } |
| 1267 | |
| 1268 | /** |
| 1269 | * <code>required int64 number = 2;</code> |
| 1270 | */ |
| 1271 | public long getNumber() { |
| 1272 | return number_; |
| 1273 | } |
| 1274 | |
| 1275 | /** |
| 1276 | * <code>required int64 number = 2;</code> |
| 1277 | */ |
| 1278 | public Builder setNumber(long value) { |
| 1279 | bitField0_ |= 0x00000002; |
| 1280 | number_ = value; |
| 1281 | onChanged(); |
| 1282 | return this; |
| 1283 | } |
| 1284 | |
| 1285 | /** |
| 1286 | * <code>required int64 number = 2;</code> |
| 1287 | */ |
| 1288 | public Builder clearNumber() { |
| 1289 | bitField0_ = (bitField0_ & ~0x00000002); |
| 1290 | number_ = 0L; |
| 1291 | onChanged(); |
| 1292 | return this; |
| 1293 | } |
| 1294 | |
| 1295 | // required int32 status = 3; |
| 1296 | private int status_; |
| 1297 | |
| 1298 | /** |
| 1299 | * <code>required int32 status = 3;</code> |
| 1300 | */ |
| 1301 | public boolean hasStatus() { |
| 1302 | return ((bitField0_ & 0x00000004) == 0x00000004); |
| 1303 | } |
| 1304 | |
| 1305 | /** |
| 1306 | * <code>required int32 status = 3;</code> |
| 1307 | */ |
| 1308 | public int getStatus() { |
| 1309 | return status_; |
| 1310 | } |
| 1311 | |
| 1312 | /** |
| 1313 | * <code>required int32 status = 3;</code> |
| 1314 | */ |
| 1315 | public Builder setStatus(int value) { |
| 1316 | bitField0_ |= 0x00000004; |
| 1317 | status_ = value; |
| 1318 | onChanged(); |
| 1319 | return this; |
| 1320 | } |
| 1321 | |
| 1322 | /** |
| 1323 | * <code>required int32 status = 3;</code> |
| 1324 | */ |
| 1325 | public Builder clearStatus() { |
| 1326 | bitField0_ = (bitField0_ & ~0x00000004); |
| 1327 | status_ = 0; |
| 1328 | onChanged(); |
| 1329 | return this; |
| 1330 | } |
| 1331 | |
| 1332 | // optional bytes value = 4; |
| 1333 | private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; |
| 1334 | |
| 1335 | /** |
| 1336 | * <code>optional bytes value = 4;</code> |
| 1337 | */ |
| 1338 | public boolean hasValue() { |
| 1339 | return ((bitField0_ & 0x00000008) == 0x00000008); |
| 1340 | } |
| 1341 | |
| 1342 | /** |
| 1343 | * <code>optional bytes value = 4;</code> |
| 1344 | */ |
| 1345 | public com.google.protobuf.ByteString getValue() { |
| 1346 | return value_; |
| 1347 | } |
| 1348 | |
| 1349 | /** |
| 1350 | * <code>optional bytes value = 4;</code> |
| 1351 | */ |
| 1352 | public Builder setValue(com.google.protobuf.ByteString value) { |
| 1353 | if (value == null) { |
| 1354 | throw new NullPointerException(); |
| 1355 | } |
| 1356 | bitField0_ |= 0x00000008; |
| 1357 | value_ = value; |
| 1358 | onChanged(); |
| 1359 | return this; |
| 1360 | } |
| 1361 | |
| 1362 | /** |
| 1363 | * <code>optional bytes value = 4;</code> |
| 1364 | */ |
| 1365 | public Builder clearValue() { |
| 1366 | bitField0_ = (bitField0_ & ~0x00000008); |
| 1367 | value_ = getDefaultInstance().getValue(); |
| 1368 | onChanged(); |
| 1369 | return this; |
| 1370 | } |
| 1371 | |
| 1372 | // @@protoc_insertion_point(builder_scope:RCProtos.PortProperty) |
| 1373 | } |
| 1374 | |
| 1375 | static { |
| 1376 | defaultInstance = new PortProperty(true); |
| 1377 | defaultInstance.initFields(); |
| 1378 | } |
| 1379 | |
| 1380 | // @@protoc_insertion_point(class_scope:RCProtos.PortProperty) |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1381 | } |
| 1382 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1383 | public interface LinkPropertyOrBuilder |
| 1384 | extends com.google.protobuf.MessageOrBuilder { |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1385 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1386 | // required bytes srcSwId = 1; |
| 1387 | |
| 1388 | /** |
| 1389 | * <code>required bytes srcSwId = 1;</code> |
| 1390 | */ |
| 1391 | boolean hasSrcSwId(); |
| 1392 | |
| 1393 | /** |
| 1394 | * <code>required bytes srcSwId = 1;</code> |
| 1395 | */ |
| 1396 | com.google.protobuf.ByteString getSrcSwId(); |
| 1397 | |
| 1398 | // required bytes srcPortId = 2; |
| 1399 | |
| 1400 | /** |
| 1401 | * <code>required bytes srcPortId = 2;</code> |
| 1402 | */ |
| 1403 | boolean hasSrcPortId(); |
| 1404 | |
| 1405 | /** |
| 1406 | * <code>required bytes srcPortId = 2;</code> |
| 1407 | */ |
| 1408 | com.google.protobuf.ByteString getSrcPortId(); |
| 1409 | |
| 1410 | // required bytes dstSwId = 3; |
| 1411 | |
| 1412 | /** |
| 1413 | * <code>required bytes dstSwId = 3;</code> |
| 1414 | */ |
| 1415 | boolean hasDstSwId(); |
| 1416 | |
| 1417 | /** |
| 1418 | * <code>required bytes dstSwId = 3;</code> |
| 1419 | */ |
| 1420 | com.google.protobuf.ByteString getDstSwId(); |
| 1421 | |
| 1422 | // required bytes dstPortId = 4; |
| 1423 | |
| 1424 | /** |
| 1425 | * <code>required bytes dstPortId = 4;</code> |
| 1426 | */ |
| 1427 | boolean hasDstPortId(); |
| 1428 | |
| 1429 | /** |
| 1430 | * <code>required bytes dstPortId = 4;</code> |
| 1431 | */ |
| 1432 | com.google.protobuf.ByteString getDstPortId(); |
| 1433 | |
| 1434 | // required int32 status = 5; |
| 1435 | |
| 1436 | /** |
| 1437 | * <code>required int32 status = 5;</code> |
| 1438 | */ |
| 1439 | boolean hasStatus(); |
| 1440 | |
| 1441 | /** |
| 1442 | * <code>required int32 status = 5;</code> |
| 1443 | */ |
| 1444 | int getStatus(); |
| 1445 | |
| 1446 | // optional bytes value = 6; |
| 1447 | |
| 1448 | /** |
| 1449 | * <code>optional bytes value = 6;</code> |
| 1450 | */ |
| 1451 | boolean hasValue(); |
| 1452 | |
| 1453 | /** |
| 1454 | * <code>optional bytes value = 6;</code> |
| 1455 | */ |
| 1456 | com.google.protobuf.ByteString getValue(); |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1457 | } |
| 1458 | |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1459 | /** |
| 1460 | * Protobuf type {@code RCProtos.LinkProperty} |
| 1461 | */ |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1462 | public static final class LinkProperty extends |
| 1463 | com.google.protobuf.GeneratedMessage |
| 1464 | implements LinkPropertyOrBuilder { |
| 1465 | // Use LinkProperty.newBuilder() to construct. |
| 1466 | private LinkProperty(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| 1467 | super(builder); |
| 1468 | this.unknownFields = builder.getUnknownFields(); |
| 1469 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1470 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1471 | private LinkProperty(boolean noInit) { |
| 1472 | this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); |
| 1473 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1474 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1475 | private static final LinkProperty defaultInstance; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1476 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1477 | public static LinkProperty getDefaultInstance() { |
| 1478 | return defaultInstance; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1479 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1480 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1481 | public LinkProperty getDefaultInstanceForType() { |
| 1482 | return defaultInstance; |
| 1483 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1484 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1485 | private final com.google.protobuf.UnknownFieldSet unknownFields; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1486 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1487 | @java.lang.Override |
| 1488 | public final com.google.protobuf.UnknownFieldSet |
| 1489 | getUnknownFields() { |
| 1490 | return this.unknownFields; |
| 1491 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1492 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1493 | private LinkProperty( |
| 1494 | com.google.protobuf.CodedInputStream input, |
| 1495 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 1496 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 1497 | initFields(); |
| 1498 | int mutable_bitField0_ = 0; |
| 1499 | com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
| 1500 | com.google.protobuf.UnknownFieldSet.newBuilder(); |
| 1501 | try { |
| 1502 | boolean done = false; |
| 1503 | while (!done) { |
| 1504 | int tag = input.readTag(); |
| 1505 | switch (tag) { |
| 1506 | case 0: |
| 1507 | done = true; |
| 1508 | break; |
| 1509 | default: { |
| 1510 | if (!parseUnknownField(input, unknownFields, |
| 1511 | extensionRegistry, tag)) { |
| 1512 | done = true; |
| 1513 | } |
| 1514 | break; |
| 1515 | } |
| 1516 | case 10: { |
| 1517 | bitField0_ |= 0x00000001; |
| 1518 | srcSwId_ = input.readBytes(); |
| 1519 | break; |
| 1520 | } |
| 1521 | case 18: { |
| 1522 | bitField0_ |= 0x00000002; |
| 1523 | srcPortId_ = input.readBytes(); |
| 1524 | break; |
| 1525 | } |
| 1526 | case 26: { |
| 1527 | bitField0_ |= 0x00000004; |
| 1528 | dstSwId_ = input.readBytes(); |
| 1529 | break; |
| 1530 | } |
| 1531 | case 34: { |
| 1532 | bitField0_ |= 0x00000008; |
| 1533 | dstPortId_ = input.readBytes(); |
| 1534 | break; |
| 1535 | } |
| 1536 | case 40: { |
| 1537 | bitField0_ |= 0x00000010; |
| 1538 | status_ = input.readInt32(); |
| 1539 | break; |
| 1540 | } |
| 1541 | case 50: { |
| 1542 | bitField0_ |= 0x00000020; |
| 1543 | value_ = input.readBytes(); |
| 1544 | break; |
| 1545 | } |
| 1546 | } |
| 1547 | } |
| 1548 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| 1549 | throw e.setUnfinishedMessage(this); |
| 1550 | } catch (java.io.IOException e) { |
| 1551 | throw new com.google.protobuf.InvalidProtocolBufferException( |
| 1552 | e.getMessage()).setUnfinishedMessage(this); |
| 1553 | } finally { |
| 1554 | this.unknownFields = unknownFields.build(); |
| 1555 | makeExtensionsImmutable(); |
| 1556 | } |
| 1557 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1558 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1559 | public static final com.google.protobuf.Descriptors.Descriptor |
| 1560 | getDescriptor() { |
| 1561 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_LinkProperty_descriptor; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1562 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1563 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1564 | protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| 1565 | internalGetFieldAccessorTable() { |
| 1566 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_LinkProperty_fieldAccessorTable |
| 1567 | .ensureFieldAccessorsInitialized( |
| 1568 | net.onrc.onos.core.datastore.RCProtos.LinkProperty.class, net.onrc.onos.core.datastore.RCProtos.LinkProperty.Builder.class); |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1569 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1570 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1571 | public static com.google.protobuf.Parser<LinkProperty> PARSER = |
| 1572 | new com.google.protobuf.AbstractParser<LinkProperty>() { |
| 1573 | public LinkProperty parsePartialFrom( |
| 1574 | com.google.protobuf.CodedInputStream input, |
| 1575 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 1576 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 1577 | return new LinkProperty(input, extensionRegistry); |
| 1578 | } |
| 1579 | }; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1580 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1581 | @java.lang.Override |
| 1582 | public com.google.protobuf.Parser<LinkProperty> getParserForType() { |
| 1583 | return PARSER; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1584 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1585 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1586 | private int bitField0_; |
| 1587 | // required bytes srcSwId = 1; |
| 1588 | public static final int SRCSWID_FIELD_NUMBER = 1; |
| 1589 | private com.google.protobuf.ByteString srcSwId_; |
| 1590 | |
| 1591 | /** |
| 1592 | * <code>required bytes srcSwId = 1;</code> |
| 1593 | */ |
| 1594 | public boolean hasSrcSwId() { |
| 1595 | return ((bitField0_ & 0x00000001) == 0x00000001); |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1596 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1597 | |
| 1598 | /** |
| 1599 | * <code>required bytes srcSwId = 1;</code> |
| 1600 | */ |
| 1601 | public com.google.protobuf.ByteString getSrcSwId() { |
| 1602 | return srcSwId_; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1603 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1604 | |
| 1605 | // required bytes srcPortId = 2; |
| 1606 | public static final int SRCPORTID_FIELD_NUMBER = 2; |
| 1607 | private com.google.protobuf.ByteString srcPortId_; |
| 1608 | |
| 1609 | /** |
| 1610 | * <code>required bytes srcPortId = 2;</code> |
| 1611 | */ |
| 1612 | public boolean hasSrcPortId() { |
| 1613 | return ((bitField0_ & 0x00000002) == 0x00000002); |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1614 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1615 | |
| 1616 | /** |
| 1617 | * <code>required bytes srcPortId = 2;</code> |
| 1618 | */ |
| 1619 | public com.google.protobuf.ByteString getSrcPortId() { |
| 1620 | return srcPortId_; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1621 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1622 | |
| 1623 | // required bytes dstSwId = 3; |
| 1624 | public static final int DSTSWID_FIELD_NUMBER = 3; |
| 1625 | private com.google.protobuf.ByteString dstSwId_; |
| 1626 | |
| 1627 | /** |
| 1628 | * <code>required bytes dstSwId = 3;</code> |
| 1629 | */ |
| 1630 | public boolean hasDstSwId() { |
| 1631 | return ((bitField0_ & 0x00000004) == 0x00000004); |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1632 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1633 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1634 | /** |
| 1635 | * <code>required bytes dstSwId = 3;</code> |
| 1636 | */ |
| 1637 | public com.google.protobuf.ByteString getDstSwId() { |
| 1638 | return dstSwId_; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1639 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1640 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1641 | // required bytes dstPortId = 4; |
| 1642 | public static final int DSTPORTID_FIELD_NUMBER = 4; |
| 1643 | private com.google.protobuf.ByteString dstPortId_; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1644 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1645 | /** |
| 1646 | * <code>required bytes dstPortId = 4;</code> |
| 1647 | */ |
| 1648 | public boolean hasDstPortId() { |
| 1649 | return ((bitField0_ & 0x00000008) == 0x00000008); |
| 1650 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1651 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1652 | /** |
| 1653 | * <code>required bytes dstPortId = 4;</code> |
| 1654 | */ |
| 1655 | public com.google.protobuf.ByteString getDstPortId() { |
| 1656 | return dstPortId_; |
| 1657 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1658 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1659 | // required int32 status = 5; |
| 1660 | public static final int STATUS_FIELD_NUMBER = 5; |
| 1661 | private int status_; |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1662 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1663 | /** |
| 1664 | * <code>required int32 status = 5;</code> |
| 1665 | */ |
| 1666 | public boolean hasStatus() { |
| 1667 | return ((bitField0_ & 0x00000010) == 0x00000010); |
| 1668 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1669 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1670 | /** |
| 1671 | * <code>required int32 status = 5;</code> |
| 1672 | */ |
| 1673 | public int getStatus() { |
| 1674 | return status_; |
| 1675 | } |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 1676 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 1677 | // optional bytes value = 6; |
| 1678 | public static final int VALUE_FIELD_NUMBER = 6; |
| 1679 | private com.google.protobuf.ByteString value_; |
| 1680 | |
| 1681 | /** |
| 1682 | * <code>optional bytes value = 6;</code> |
| 1683 | */ |
| 1684 | public boolean hasValue() { |
| 1685 | return ((bitField0_ & 0x00000020) == 0x00000020); |
| 1686 | } |
| 1687 | |
| 1688 | /** |
| 1689 | * <code>optional bytes value = 6;</code> |
| 1690 | */ |
| 1691 | public com.google.protobuf.ByteString getValue() { |
| 1692 | return value_; |
| 1693 | } |
| 1694 | |
| 1695 | private void initFields() { |
| 1696 | srcSwId_ = com.google.protobuf.ByteString.EMPTY; |
| 1697 | srcPortId_ = com.google.protobuf.ByteString.EMPTY; |
| 1698 | dstSwId_ = com.google.protobuf.ByteString.EMPTY; |
| 1699 | dstPortId_ = com.google.protobuf.ByteString.EMPTY; |
| 1700 | status_ = 0; |
| 1701 | value_ = com.google.protobuf.ByteString.EMPTY; |
| 1702 | } |
| 1703 | |
| 1704 | private byte memoizedIsInitialized = -1; |
| 1705 | |
| 1706 | public final boolean isInitialized() { |
| 1707 | byte isInitialized = memoizedIsInitialized; |
| 1708 | if (isInitialized != -1) return isInitialized == 1; |
| 1709 | |
| 1710 | if (!hasSrcSwId()) { |
| 1711 | memoizedIsInitialized = 0; |
| 1712 | return false; |
| 1713 | } |
| 1714 | if (!hasSrcPortId()) { |
| 1715 | memoizedIsInitialized = 0; |
| 1716 | return false; |
| 1717 | } |
| 1718 | if (!hasDstSwId()) { |
| 1719 | memoizedIsInitialized = 0; |
| 1720 | return false; |
| 1721 | } |
| 1722 | if (!hasDstPortId()) { |
| 1723 | memoizedIsInitialized = 0; |
| 1724 | return false; |
| 1725 | } |
| 1726 | if (!hasStatus()) { |
| 1727 | memoizedIsInitialized = 0; |
| 1728 | return false; |
| 1729 | } |
| 1730 | memoizedIsInitialized = 1; |
| 1731 | return true; |
| 1732 | } |
| 1733 | |
| 1734 | public void writeTo(com.google.protobuf.CodedOutputStream output) |
| 1735 | throws java.io.IOException { |
| 1736 | getSerializedSize(); |
| 1737 | if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| 1738 | output.writeBytes(1, srcSwId_); |
| 1739 | } |
| 1740 | if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| 1741 | output.writeBytes(2, srcPortId_); |
| 1742 | } |
| 1743 | if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| 1744 | output.writeBytes(3, dstSwId_); |
| 1745 | } |
| 1746 | if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| 1747 | output.writeBytes(4, dstPortId_); |
| 1748 | } |
| 1749 | if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| 1750 | output.writeInt32(5, status_); |
| 1751 | } |
| 1752 | if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| 1753 | output.writeBytes(6, value_); |
| 1754 | } |
| 1755 | getUnknownFields().writeTo(output); |
| 1756 | } |
| 1757 | |
| 1758 | private int memoizedSerializedSize = -1; |
| 1759 | |
| 1760 | public int getSerializedSize() { |
| 1761 | int size = memoizedSerializedSize; |
| 1762 | if (size != -1) return size; |
| 1763 | |
| 1764 | size = 0; |
| 1765 | if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| 1766 | size += com.google.protobuf.CodedOutputStream |
| 1767 | .computeBytesSize(1, srcSwId_); |
| 1768 | } |
| 1769 | if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| 1770 | size += com.google.protobuf.CodedOutputStream |
| 1771 | .computeBytesSize(2, srcPortId_); |
| 1772 | } |
| 1773 | if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| 1774 | size += com.google.protobuf.CodedOutputStream |
| 1775 | .computeBytesSize(3, dstSwId_); |
| 1776 | } |
| 1777 | if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| 1778 | size += com.google.protobuf.CodedOutputStream |
| 1779 | .computeBytesSize(4, dstPortId_); |
| 1780 | } |
| 1781 | if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| 1782 | size += com.google.protobuf.CodedOutputStream |
| 1783 | .computeInt32Size(5, status_); |
| 1784 | } |
| 1785 | if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| 1786 | size += com.google.protobuf.CodedOutputStream |
| 1787 | .computeBytesSize(6, value_); |
| 1788 | } |
| 1789 | size += getUnknownFields().getSerializedSize(); |
| 1790 | memoizedSerializedSize = size; |
| 1791 | return size; |
| 1792 | } |
| 1793 | |
| 1794 | private static final long serialVersionUID = 0L; |
| 1795 | |
| 1796 | @java.lang.Override |
| 1797 | protected java.lang.Object writeReplace() |
| 1798 | throws java.io.ObjectStreamException { |
| 1799 | return super.writeReplace(); |
| 1800 | } |
| 1801 | |
| 1802 | public static net.onrc.onos.core.datastore.RCProtos.LinkProperty parseFrom( |
| 1803 | com.google.protobuf.ByteString data) |
| 1804 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 1805 | return PARSER.parseFrom(data); |
| 1806 | } |
| 1807 | |
| 1808 | public static net.onrc.onos.core.datastore.RCProtos.LinkProperty parseFrom( |
| 1809 | com.google.protobuf.ByteString data, |
| 1810 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 1811 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 1812 | return PARSER.parseFrom(data, extensionRegistry); |
| 1813 | } |
| 1814 | |
| 1815 | public static net.onrc.onos.core.datastore.RCProtos.LinkProperty parseFrom(byte[] data) |
| 1816 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 1817 | return PARSER.parseFrom(data); |
| 1818 | } |
| 1819 | |
| 1820 | public static net.onrc.onos.core.datastore.RCProtos.LinkProperty parseFrom( |
| 1821 | byte[] data, |
| 1822 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 1823 | throws com.google.protobuf.InvalidProtocolBufferException { |
| 1824 | return PARSER.parseFrom(data, extensionRegistry); |
| 1825 | } |
| 1826 | |
| 1827 | public static net.onrc.onos.core.datastore.RCProtos.LinkProperty parseFrom(java.io.InputStream input) |
| 1828 | throws java.io.IOException { |
| 1829 | return PARSER.parseFrom(input); |
| 1830 | } |
| 1831 | |
| 1832 | public static net.onrc.onos.core.datastore.RCProtos.LinkProperty parseFrom( |
| 1833 | java.io.InputStream input, |
| 1834 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 1835 | throws java.io.IOException { |
| 1836 | return PARSER.parseFrom(input, extensionRegistry); |
| 1837 | } |
| 1838 | |
| 1839 | public static net.onrc.onos.core.datastore.RCProtos.LinkProperty parseDelimitedFrom(java.io.InputStream input) |
| 1840 | throws java.io.IOException { |
| 1841 | return PARSER.parseDelimitedFrom(input); |
| 1842 | } |
| 1843 | |
| 1844 | public static net.onrc.onos.core.datastore.RCProtos.LinkProperty parseDelimitedFrom( |
| 1845 | java.io.InputStream input, |
| 1846 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 1847 | throws java.io.IOException { |
| 1848 | return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| 1849 | } |
| 1850 | |
| 1851 | public static net.onrc.onos.core.datastore.RCProtos.LinkProperty parseFrom( |
| 1852 | com.google.protobuf.CodedInputStream input) |
| 1853 | throws java.io.IOException { |
| 1854 | return PARSER.parseFrom(input); |
| 1855 | } |
| 1856 | |
| 1857 | public static net.onrc.onos.core.datastore.RCProtos.LinkProperty parseFrom( |
| 1858 | com.google.protobuf.CodedInputStream input, |
| 1859 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 1860 | throws java.io.IOException { |
| 1861 | return PARSER.parseFrom(input, extensionRegistry); |
| 1862 | } |
| 1863 | |
| 1864 | public static Builder newBuilder() { |
| 1865 | return Builder.create(); |
| 1866 | } |
| 1867 | |
| 1868 | public Builder newBuilderForType() { |
| 1869 | return newBuilder(); |
| 1870 | } |
| 1871 | |
| 1872 | public static Builder newBuilder(net.onrc.onos.core.datastore.RCProtos.LinkProperty prototype) { |
| 1873 | return newBuilder().mergeFrom(prototype); |
| 1874 | } |
| 1875 | |
| 1876 | public Builder toBuilder() { |
| 1877 | return newBuilder(this); |
| 1878 | } |
| 1879 | |
| 1880 | @java.lang.Override |
| 1881 | protected Builder newBuilderForType( |
| 1882 | com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| 1883 | Builder builder = new Builder(parent); |
| 1884 | return builder; |
| 1885 | } |
| 1886 | |
| 1887 | /** |
| 1888 | * Protobuf type {@code RCProtos.LinkProperty} |
| 1889 | */ |
| 1890 | public static final class Builder extends |
| 1891 | com.google.protobuf.GeneratedMessage.Builder<Builder> |
| 1892 | implements net.onrc.onos.core.datastore.RCProtos.LinkPropertyOrBuilder { |
| 1893 | public static final com.google.protobuf.Descriptors.Descriptor |
| 1894 | getDescriptor() { |
| 1895 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_LinkProperty_descriptor; |
| 1896 | } |
| 1897 | |
| 1898 | protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| 1899 | internalGetFieldAccessorTable() { |
| 1900 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_LinkProperty_fieldAccessorTable |
| 1901 | .ensureFieldAccessorsInitialized( |
| 1902 | net.onrc.onos.core.datastore.RCProtos.LinkProperty.class, net.onrc.onos.core.datastore.RCProtos.LinkProperty.Builder.class); |
| 1903 | } |
| 1904 | |
| 1905 | // Construct using net.onrc.onos.core.datastore.RCProtos.LinkProperty.newBuilder() |
| 1906 | private Builder() { |
| 1907 | maybeForceBuilderInitialization(); |
| 1908 | } |
| 1909 | |
| 1910 | private Builder( |
| 1911 | com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| 1912 | super(parent); |
| 1913 | maybeForceBuilderInitialization(); |
| 1914 | } |
| 1915 | |
| 1916 | private void maybeForceBuilderInitialization() { |
| 1917 | if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| 1918 | } |
| 1919 | } |
| 1920 | |
| 1921 | private static Builder create() { |
| 1922 | return new Builder(); |
| 1923 | } |
| 1924 | |
| 1925 | public Builder clear() { |
| 1926 | super.clear(); |
| 1927 | srcSwId_ = com.google.protobuf.ByteString.EMPTY; |
| 1928 | bitField0_ = (bitField0_ & ~0x00000001); |
| 1929 | srcPortId_ = com.google.protobuf.ByteString.EMPTY; |
| 1930 | bitField0_ = (bitField0_ & ~0x00000002); |
| 1931 | dstSwId_ = com.google.protobuf.ByteString.EMPTY; |
| 1932 | bitField0_ = (bitField0_ & ~0x00000004); |
| 1933 | dstPortId_ = com.google.protobuf.ByteString.EMPTY; |
| 1934 | bitField0_ = (bitField0_ & ~0x00000008); |
| 1935 | status_ = 0; |
| 1936 | bitField0_ = (bitField0_ & ~0x00000010); |
| 1937 | value_ = com.google.protobuf.ByteString.EMPTY; |
| 1938 | bitField0_ = (bitField0_ & ~0x00000020); |
| 1939 | return this; |
| 1940 | } |
| 1941 | |
| 1942 | public Builder clone() { |
| 1943 | return create().mergeFrom(buildPartial()); |
| 1944 | } |
| 1945 | |
| 1946 | public com.google.protobuf.Descriptors.Descriptor |
| 1947 | getDescriptorForType() { |
| 1948 | return net.onrc.onos.core.datastore.RCProtos.internal_static_ProtoBuffer_LinkProperty_descriptor; |
| 1949 | } |
| 1950 | |
| 1951 | public net.onrc.onos.core.datastore.RCProtos.LinkProperty getDefaultInstanceForType() { |
| 1952 | return net.onrc.onos.core.datastore.RCProtos.LinkProperty.getDefaultInstance(); |
| 1953 | } |
| 1954 | |
| 1955 | public net.onrc.onos.core.datastore.RCProtos.LinkProperty build() { |
| 1956 | net.onrc.onos.core.datastore.RCProtos.LinkProperty result = buildPartial(); |
| 1957 | if (!result.isInitialized()) { |
| 1958 | throw newUninitializedMessageException(result); |
| 1959 | } |
| 1960 | return result; |
| 1961 | } |
| 1962 | |
| 1963 | public net.onrc.onos.core.datastore.RCProtos.LinkProperty buildPartial() { |
| 1964 | net.onrc.onos.core.datastore.RCProtos.LinkProperty result = new net.onrc.onos.core.datastore.RCProtos.LinkProperty(this); |
| 1965 | int from_bitField0_ = bitField0_; |
| 1966 | int to_bitField0_ = 0; |
| 1967 | if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| 1968 | to_bitField0_ |= 0x00000001; |
| 1969 | } |
| 1970 | result.srcSwId_ = srcSwId_; |
| 1971 | if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| 1972 | to_bitField0_ |= 0x00000002; |
| 1973 | } |
| 1974 | result.srcPortId_ = srcPortId_; |
| 1975 | if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| 1976 | to_bitField0_ |= 0x00000004; |
| 1977 | } |
| 1978 | result.dstSwId_ = dstSwId_; |
| 1979 | if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| 1980 | to_bitField0_ |= 0x00000008; |
| 1981 | } |
| 1982 | result.dstPortId_ = dstPortId_; |
| 1983 | if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| 1984 | to_bitField0_ |= 0x00000010; |
| 1985 | } |
| 1986 | result.status_ = status_; |
| 1987 | if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| 1988 | to_bitField0_ |= 0x00000020; |
| 1989 | } |
| 1990 | result.value_ = value_; |
| 1991 | result.bitField0_ = to_bitField0_; |
| 1992 | onBuilt(); |
| 1993 | return result; |
| 1994 | } |
| 1995 | |
| 1996 | public Builder mergeFrom(com.google.protobuf.Message other) { |
| 1997 | if (other instanceof net.onrc.onos.core.datastore.RCProtos.LinkProperty) { |
| 1998 | return mergeFrom((net.onrc.onos.core.datastore.RCProtos.LinkProperty) other); |
| 1999 | } else { |
| 2000 | super.mergeFrom(other); |
| 2001 | return this; |
| 2002 | } |
| 2003 | } |
| 2004 | |
| 2005 | public Builder mergeFrom(net.onrc.onos.core.datastore.RCProtos.LinkProperty other) { |
| 2006 | if (other == net.onrc.onos.core.datastore.RCProtos.LinkProperty.getDefaultInstance()) |
| 2007 | return this; |
| 2008 | if (other.hasSrcSwId()) { |
| 2009 | setSrcSwId(other.getSrcSwId()); |
| 2010 | } |
| 2011 | if (other.hasSrcPortId()) { |
| 2012 | setSrcPortId(other.getSrcPortId()); |
| 2013 | } |
| 2014 | if (other.hasDstSwId()) { |
| 2015 | setDstSwId(other.getDstSwId()); |
| 2016 | } |
| 2017 | if (other.hasDstPortId()) { |
| 2018 | setDstPortId(other.getDstPortId()); |
| 2019 | } |
| 2020 | if (other.hasStatus()) { |
| 2021 | setStatus(other.getStatus()); |
| 2022 | } |
| 2023 | if (other.hasValue()) { |
| 2024 | setValue(other.getValue()); |
| 2025 | } |
| 2026 | this.mergeUnknownFields(other.getUnknownFields()); |
| 2027 | return this; |
| 2028 | } |
| 2029 | |
| 2030 | public final boolean isInitialized() { |
| 2031 | if (!hasSrcSwId()) { |
| 2032 | |
| 2033 | return false; |
| 2034 | } |
| 2035 | if (!hasSrcPortId()) { |
| 2036 | |
| 2037 | return false; |
| 2038 | } |
| 2039 | if (!hasDstSwId()) { |
| 2040 | |
| 2041 | return false; |
| 2042 | } |
| 2043 | if (!hasDstPortId()) { |
| 2044 | |
| 2045 | return false; |
| 2046 | } |
| 2047 | if (!hasStatus()) { |
| 2048 | |
| 2049 | return false; |
| 2050 | } |
| 2051 | return true; |
| 2052 | } |
| 2053 | |
| 2054 | public Builder mergeFrom( |
| 2055 | com.google.protobuf.CodedInputStream input, |
| 2056 | com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| 2057 | throws java.io.IOException { |
| 2058 | net.onrc.onos.core.datastore.RCProtos.LinkProperty parsedMessage = null; |
| 2059 | try { |
| 2060 | parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| 2061 | } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| 2062 | parsedMessage = (net.onrc.onos.core.datastore.RCProtos.LinkProperty) e.getUnfinishedMessage(); |
| 2063 | throw e; |
| 2064 | } finally { |
| 2065 | if (parsedMessage != null) { |
| 2066 | mergeFrom(parsedMessage); |
| 2067 | } |
| 2068 | } |
| 2069 | return this; |
| 2070 | } |
| 2071 | |
| 2072 | private int bitField0_; |
| 2073 | |
| 2074 | // required bytes srcSwId = 1; |
| 2075 | private com.google.protobuf.ByteString srcSwId_ = com.google.protobuf.ByteString.EMPTY; |
| 2076 | |
| 2077 | /** |
| 2078 | * <code>required bytes srcSwId = 1;</code> |
| 2079 | */ |
| 2080 | public boolean hasSrcSwId() { |
| 2081 | return ((bitField0_ & 0x00000001) == 0x00000001); |
| 2082 | } |
| 2083 | |
| 2084 | /** |
| 2085 | * <code>required bytes srcSwId = 1;</code> |
| 2086 | */ |
| 2087 | public com.google.protobuf.ByteString getSrcSwId() { |
| 2088 | return srcSwId_; |
| 2089 | } |
| 2090 | |
| 2091 | /** |
| 2092 | * <code>required bytes srcSwId = 1;</code> |
| 2093 | */ |
| 2094 | public Builder setSrcSwId(com.google.protobuf.ByteString value) { |
| 2095 | if (value == null) { |
| 2096 | throw new NullPointerException(); |
| 2097 | } |
| 2098 | bitField0_ |= 0x00000001; |
| 2099 | srcSwId_ = value; |
| 2100 | onChanged(); |
| 2101 | return this; |
| 2102 | } |
| 2103 | |
| 2104 | /** |
| 2105 | * <code>required bytes srcSwId = 1;</code> |
| 2106 | */ |
| 2107 | public Builder clearSrcSwId() { |
| 2108 | bitField0_ = (bitField0_ & ~0x00000001); |
| 2109 | srcSwId_ = getDefaultInstance().getSrcSwId(); |
| 2110 | onChanged(); |
| 2111 | return this; |
| 2112 | } |
| 2113 | |
| 2114 | // required bytes srcPortId = 2; |
| 2115 | private com.google.protobuf.ByteString srcPortId_ = com.google.protobuf.ByteString.EMPTY; |
| 2116 | |
| 2117 | /** |
| 2118 | * <code>required bytes srcPortId = 2;</code> |
| 2119 | */ |
| 2120 | public boolean hasSrcPortId() { |
| 2121 | return ((bitField0_ & 0x00000002) == 0x00000002); |
| 2122 | } |
| 2123 | |
| 2124 | /** |
| 2125 | * <code>required bytes srcPortId = 2;</code> |
| 2126 | */ |
| 2127 | public com.google.protobuf.ByteString getSrcPortId() { |
| 2128 | return srcPortId_; |
| 2129 | } |
| 2130 | |
| 2131 | /** |
| 2132 | * <code>required bytes srcPortId = 2;</code> |
| 2133 | */ |
| 2134 | public Builder setSrcPortId(com.google.protobuf.ByteString value) { |
| 2135 | if (value == null) { |
| 2136 | throw new NullPointerException(); |
| 2137 | } |
| 2138 | bitField0_ |= 0x00000002; |
| 2139 | srcPortId_ = value; |
| 2140 | onChanged(); |
| 2141 | return this; |
| 2142 | } |
| 2143 | |
| 2144 | /** |
| 2145 | * <code>required bytes srcPortId = 2;</code> |
| 2146 | */ |
| 2147 | public Builder clearSrcPortId() { |
| 2148 | bitField0_ = (bitField0_ & ~0x00000002); |
| 2149 | srcPortId_ = getDefaultInstance().getSrcPortId(); |
| 2150 | onChanged(); |
| 2151 | return this; |
| 2152 | } |
| 2153 | |
| 2154 | // required bytes dstSwId = 3; |
| 2155 | private com.google.protobuf.ByteString dstSwId_ = com.google.protobuf.ByteString.EMPTY; |
| 2156 | |
| 2157 | /** |
| 2158 | * <code>required bytes dstSwId = 3;</code> |
| 2159 | */ |
| 2160 | public boolean hasDstSwId() { |
| 2161 | return ((bitField0_ & 0x00000004) == 0x00000004); |
| 2162 | } |
| 2163 | |
| 2164 | /** |
| 2165 | * <code>required bytes dstSwId = 3;</code> |
| 2166 | */ |
| 2167 | public com.google.protobuf.ByteString getDstSwId() { |
| 2168 | return dstSwId_; |
| 2169 | } |
| 2170 | |
| 2171 | /** |
| 2172 | * <code>required bytes dstSwId = 3;</code> |
| 2173 | */ |
| 2174 | public Builder setDstSwId(com.google.protobuf.ByteString value) { |
| 2175 | if (value == null) { |
| 2176 | throw new NullPointerException(); |
| 2177 | } |
| 2178 | bitField0_ |= 0x00000004; |
| 2179 | dstSwId_ = value; |
| 2180 | onChanged(); |
| 2181 | return this; |
| 2182 | } |
| 2183 | |
| 2184 | /** |
| 2185 | * <code>required bytes dstSwId = 3;</code> |
| 2186 | */ |
| 2187 | public Builder clearDstSwId() { |
| 2188 | bitField0_ = (bitField0_ & ~0x00000004); |
| 2189 | dstSwId_ = getDefaultInstance().getDstSwId(); |
| 2190 | onChanged(); |
| 2191 | return this; |
| 2192 | } |
| 2193 | |
| 2194 | // required bytes dstPortId = 4; |
| 2195 | private com.google.protobuf.ByteString dstPortId_ = com.google.protobuf.ByteString.EMPTY; |
| 2196 | |
| 2197 | /** |
| 2198 | * <code>required bytes dstPortId = 4;</code> |
| 2199 | */ |
| 2200 | public boolean hasDstPortId() { |
| 2201 | return ((bitField0_ & 0x00000008) == 0x00000008); |
| 2202 | } |
| 2203 | |
| 2204 | /** |
| 2205 | * <code>required bytes dstPortId = 4;</code> |
| 2206 | */ |
| 2207 | public com.google.protobuf.ByteString getDstPortId() { |
| 2208 | return dstPortId_; |
| 2209 | } |
| 2210 | |
| 2211 | /** |
| 2212 | * <code>required bytes dstPortId = 4;</code> |
| 2213 | */ |
| 2214 | public Builder setDstPortId(com.google.protobuf.ByteString value) { |
| 2215 | if (value == null) { |
| 2216 | throw new NullPointerException(); |
| 2217 | } |
| 2218 | bitField0_ |= 0x00000008; |
| 2219 | dstPortId_ = value; |
| 2220 | onChanged(); |
| 2221 | return this; |
| 2222 | } |
| 2223 | |
| 2224 | /** |
| 2225 | * <code>required bytes dstPortId = 4;</code> |
| 2226 | */ |
| 2227 | public Builder clearDstPortId() { |
| 2228 | bitField0_ = (bitField0_ & ~0x00000008); |
| 2229 | dstPortId_ = getDefaultInstance().getDstPortId(); |
| 2230 | onChanged(); |
| 2231 | return this; |
| 2232 | } |
| 2233 | |
| 2234 | // required int32 status = 5; |
| 2235 | private int status_; |
| 2236 | |
| 2237 | /** |
| 2238 | * <code>required int32 status = 5;</code> |
| 2239 | */ |
| 2240 | public boolean hasStatus() { |
| 2241 | return ((bitField0_ & 0x00000010) == 0x00000010); |
| 2242 | } |
| 2243 | |
| 2244 | /** |
| 2245 | * <code>required int32 status = 5;</code> |
| 2246 | */ |
| 2247 | public int getStatus() { |
| 2248 | return status_; |
| 2249 | } |
| 2250 | |
| 2251 | /** |
| 2252 | * <code>required int32 status = 5;</code> |
| 2253 | */ |
| 2254 | public Builder setStatus(int value) { |
| 2255 | bitField0_ |= 0x00000010; |
| 2256 | status_ = value; |
| 2257 | onChanged(); |
| 2258 | return this; |
| 2259 | } |
| 2260 | |
| 2261 | /** |
| 2262 | * <code>required int32 status = 5;</code> |
| 2263 | */ |
| 2264 | public Builder clearStatus() { |
| 2265 | bitField0_ = (bitField0_ & ~0x00000010); |
| 2266 | status_ = 0; |
| 2267 | onChanged(); |
| 2268 | return this; |
| 2269 | } |
| 2270 | |
| 2271 | // optional bytes value = 6; |
| 2272 | private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; |
| 2273 | |
| 2274 | /** |
| 2275 | * <code>optional bytes value = 6;</code> |
| 2276 | */ |
| 2277 | public boolean hasValue() { |
| 2278 | return ((bitField0_ & 0x00000020) == 0x00000020); |
| 2279 | } |
| 2280 | |
| 2281 | /** |
| 2282 | * <code>optional bytes value = 6;</code> |
| 2283 | */ |
| 2284 | public com.google.protobuf.ByteString getValue() { |
| 2285 | return value_; |
| 2286 | } |
| 2287 | |
| 2288 | /** |
| 2289 | * <code>optional bytes value = 6;</code> |
| 2290 | */ |
| 2291 | public Builder setValue(com.google.protobuf.ByteString value) { |
| 2292 | if (value == null) { |
| 2293 | throw new NullPointerException(); |
| 2294 | } |
| 2295 | bitField0_ |= 0x00000020; |
| 2296 | value_ = value; |
| 2297 | onChanged(); |
| 2298 | return this; |
| 2299 | } |
| 2300 | |
| 2301 | /** |
| 2302 | * <code>optional bytes value = 6;</code> |
| 2303 | */ |
| 2304 | public Builder clearValue() { |
| 2305 | bitField0_ = (bitField0_ & ~0x00000020); |
| 2306 | value_ = getDefaultInstance().getValue(); |
| 2307 | onChanged(); |
| 2308 | return this; |
| 2309 | } |
| 2310 | |
| 2311 | // @@protoc_insertion_point(builder_scope:RCProtos.LinkProperty) |
| 2312 | } |
| 2313 | |
| 2314 | static { |
| 2315 | defaultInstance = new LinkProperty(true); |
| 2316 | defaultInstance.initFields(); |
| 2317 | } |
| 2318 | |
| 2319 | // @@protoc_insertion_point(class_scope:RCProtos.LinkProperty) |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 2320 | } |
| 2321 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 2322 | private static com.google.protobuf.Descriptors.Descriptor |
| 2323 | internal_static_ProtoBuffer_SwitchProperty_descriptor; |
| 2324 | private static |
| 2325 | com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| 2326 | internal_static_ProtoBuffer_SwitchProperty_fieldAccessorTable; |
| 2327 | private static com.google.protobuf.Descriptors.Descriptor |
| 2328 | internal_static_ProtoBuffer_PortProperty_descriptor; |
| 2329 | private static |
| 2330 | com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| 2331 | internal_static_ProtoBuffer_PortProperty_fieldAccessorTable; |
| 2332 | private static com.google.protobuf.Descriptors.Descriptor |
| 2333 | internal_static_ProtoBuffer_LinkProperty_descriptor; |
| 2334 | private static |
| 2335 | com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| 2336 | internal_static_ProtoBuffer_LinkProperty_fieldAccessorTable; |
| 2337 | |
| 2338 | public static com.google.protobuf.Descriptors.FileDescriptor |
| 2339 | getDescriptor() { |
| 2340 | return descriptor; |
| 2341 | } |
| 2342 | |
| 2343 | private static com.google.protobuf.Descriptors.FileDescriptor |
| 2344 | descriptor; |
| 2345 | |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 2346 | static { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 2347 | java.lang.String[] descriptorData = { |
| 2348 | "\n\027protobuf/ramcloud.proto\022\013ProtoBuffer\"=" + |
| 2349 | "\n\016SwitchProperty\022\014\n\004dpid\030\001 \002(\003\022\016\n\006status" + |
| 2350 | "\030\002 \002(\005\022\r\n\005value\030\003 \001(\014\"K\n\014PortProperty\022\014\n" + |
| 2351 | "\004dpid\030\001 \002(\003\022\016\n\006number\030\002 \002(\003\022\016\n\006status\030\003 " + |
| 2352 | "\002(\005\022\r\n\005value\030\004 \001(\014\"u\n\014LinkProperty\022\017\n\007sr" + |
| 2353 | "cSwId\030\001 \002(\014\022\021\n\tsrcPortId\030\002 \002(\014\022\017\n\007dstSwI" + |
| 2354 | "d\030\003 \002(\014\022\021\n\tdstPortId\030\004 \002(\014\022\016\n\006status\030\005 \002" + |
| 2355 | "(\005\022\r\n\005value\030\006 \001(\014B&\n\027net.onrc.onos.datas" + |
| 2356 | "toreB\013ProtoBuffer" |
| 2357 | }; |
| 2358 | com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = |
| 2359 | new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { |
| 2360 | public com.google.protobuf.ExtensionRegistry assignDescriptors( |
| 2361 | com.google.protobuf.Descriptors.FileDescriptor root) { |
| 2362 | descriptor = root; |
| 2363 | internal_static_ProtoBuffer_SwitchProperty_descriptor = |
| 2364 | getDescriptor().getMessageTypes().get(0); |
| 2365 | internal_static_ProtoBuffer_SwitchProperty_fieldAccessorTable = new |
| 2366 | com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| 2367 | internal_static_ProtoBuffer_SwitchProperty_descriptor, |
| 2368 | new java.lang.String[]{"Dpid", "Status", "Value",}); |
| 2369 | internal_static_ProtoBuffer_PortProperty_descriptor = |
| 2370 | getDescriptor().getMessageTypes().get(1); |
| 2371 | internal_static_ProtoBuffer_PortProperty_fieldAccessorTable = new |
| 2372 | com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| 2373 | internal_static_ProtoBuffer_PortProperty_descriptor, |
| 2374 | new java.lang.String[]{"Dpid", "Number", "Status", "Value",}); |
| 2375 | internal_static_ProtoBuffer_LinkProperty_descriptor = |
| 2376 | getDescriptor().getMessageTypes().get(2); |
| 2377 | internal_static_ProtoBuffer_LinkProperty_fieldAccessorTable = new |
| 2378 | com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| 2379 | internal_static_ProtoBuffer_LinkProperty_descriptor, |
| 2380 | new java.lang.String[]{"SrcSwId", "SrcPortId", "DstSwId", "DstPortId", "Status", "Value",}); |
| 2381 | return null; |
| 2382 | } |
| 2383 | }; |
| 2384 | com.google.protobuf.Descriptors.FileDescriptor |
| 2385 | .internalBuildGeneratedFileFrom(descriptorData, |
| 2386 | new com.google.protobuf.Descriptors.FileDescriptor[]{ |
| 2387 | }, assigner); |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 2388 | } |
| 2389 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame^] | 2390 | // @@protoc_insertion_point(outer_class_scope) |
Yoshi Muroi | 212e5ca | 2014-02-20 22:42:37 -0800 | [diff] [blame] | 2391 | } |