blob: 02a27341b74c10b5c962732a47ac3599be2b1520 [file] [log] [blame]
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: topology.proto
3
4package net.onrc.onos.core.datastore.serializers;
5
6public final class Topology {
7 private Topology() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
10 }
11 public interface SwitchPropertyOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
13
14 // required int64 dpid = 1;
15 /**
16 * <code>required int64 dpid = 1;</code>
17 */
18 boolean hasDpid();
19 /**
20 * <code>required int64 dpid = 1;</code>
21 */
22 long getDpid();
23
24 // required int32 status = 2;
25 /**
26 * <code>required int32 status = 2;</code>
27 */
28 boolean hasStatus();
29 /**
30 * <code>required int32 status = 2;</code>
31 */
32 int getStatus();
33
34 // optional bytes value = 3;
35 /**
36 * <code>optional bytes value = 3;</code>
37 */
38 boolean hasValue();
39 /**
40 * <code>optional bytes value = 3;</code>
41 */
42 com.google.protobuf.ByteString getValue();
43 }
44 /**
45 * Protobuf type {@code topology.SwitchProperty}
46 */
47 public static final class SwitchProperty extends
48 com.google.protobuf.GeneratedMessage
49 implements SwitchPropertyOrBuilder {
50 // Use SwitchProperty.newBuilder() to construct.
51 private SwitchProperty(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
52 super(builder);
53 this.unknownFields = builder.getUnknownFields();
54 }
55 private SwitchProperty(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
56
57 private static final SwitchProperty defaultInstance;
58 public static SwitchProperty getDefaultInstance() {
59 return defaultInstance;
60 }
61
62 public SwitchProperty getDefaultInstanceForType() {
63 return defaultInstance;
64 }
65
66 private final com.google.protobuf.UnknownFieldSet unknownFields;
67 @java.lang.Override
68 public final com.google.protobuf.UnknownFieldSet
69 getUnknownFields() {
70 return this.unknownFields;
71 }
72 private SwitchProperty(
73 com.google.protobuf.CodedInputStream input,
74 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
75 throws com.google.protobuf.InvalidProtocolBufferException {
76 initFields();
Ray Milkey2476cac2014-04-08 11:03:21 -070077 int mutableBitField0 = 0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -070078 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
79 com.google.protobuf.UnknownFieldSet.newBuilder();
80 try {
81 boolean done = false;
82 while (!done) {
83 int tag = input.readTag();
84 switch (tag) {
85 case 0:
86 done = true;
87 break;
88 default: {
89 if (!parseUnknownField(input, unknownFields,
90 extensionRegistry, tag)) {
91 done = true;
92 }
93 break;
94 }
95 case 8: {
Ray Milkey2476cac2014-04-08 11:03:21 -070096 bitField0 |= 0x00000001;
97 dpid = input.readInt64();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -070098 break;
99 }
100 case 16: {
Ray Milkey2476cac2014-04-08 11:03:21 -0700101 bitField0 |= 0x00000002;
102 status = input.readInt32();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700103 break;
104 }
105 case 26: {
Ray Milkey2476cac2014-04-08 11:03:21 -0700106 bitField0 |= 0x00000004;
107 value = input.readBytes();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700108 break;
109 }
110 }
111 }
112 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
113 throw e.setUnfinishedMessage(this);
114 } catch (java.io.IOException e) {
115 throw new com.google.protobuf.InvalidProtocolBufferException(
116 e.getMessage()).setUnfinishedMessage(this);
117 } finally {
118 this.unknownFields = unknownFields.build();
119 makeExtensionsImmutable();
120 }
121 }
122 public static final com.google.protobuf.Descriptors.Descriptor
123 getDescriptor() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700124 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologySwitchPropertyDescriptor;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700125 }
126
127 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
128 internalGetFieldAccessorTable() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700129 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologySwitchPropertyFieldAccessorTable
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700130 .ensureFieldAccessorsInitialized(
131 net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty.class, net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty.Builder.class);
132 }
133
134 public static com.google.protobuf.Parser<SwitchProperty> PARSER =
135 new com.google.protobuf.AbstractParser<SwitchProperty>() {
136 public SwitchProperty parsePartialFrom(
137 com.google.protobuf.CodedInputStream input,
138 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
139 throws com.google.protobuf.InvalidProtocolBufferException {
140 return new SwitchProperty(input, extensionRegistry);
141 }
142 };
143
144 @java.lang.Override
145 public com.google.protobuf.Parser<SwitchProperty> getParserForType() {
146 return PARSER;
147 }
148
Ray Milkey2476cac2014-04-08 11:03:21 -0700149 private int bitField0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700150 // required int64 dpid = 1;
151 public static final int DPID_FIELD_NUMBER = 1;
Ray Milkey2476cac2014-04-08 11:03:21 -0700152 private long dpid;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700153 /**
154 * <code>required int64 dpid = 1;</code>
155 */
156 public boolean hasDpid() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700157 return ((bitField0 & 0x00000001) == 0x00000001);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700158 }
159 /**
160 * <code>required int64 dpid = 1;</code>
161 */
162 public long getDpid() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700163 return dpid;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700164 }
165
166 // required int32 status = 2;
167 public static final int STATUS_FIELD_NUMBER = 2;
Ray Milkey2476cac2014-04-08 11:03:21 -0700168 private int status;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700169 /**
170 * <code>required int32 status = 2;</code>
171 */
172 public boolean hasStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700173 return ((bitField0 & 0x00000002) == 0x00000002);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700174 }
175 /**
176 * <code>required int32 status = 2;</code>
177 */
178 public int getStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700179 return status;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700180 }
181
182 // optional bytes value = 3;
183 public static final int VALUE_FIELD_NUMBER = 3;
Ray Milkey2476cac2014-04-08 11:03:21 -0700184 private com.google.protobuf.ByteString value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700185 /**
186 * <code>optional bytes value = 3;</code>
187 */
188 public boolean hasValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700189 return ((bitField0 & 0x00000004) == 0x00000004);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700190 }
191 /**
192 * <code>optional bytes value = 3;</code>
193 */
194 public com.google.protobuf.ByteString getValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700195 return value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700196 }
197
198 private void initFields() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700199 dpid = 0L;
200 status = 0;
201 value = com.google.protobuf.ByteString.EMPTY;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700202 }
203 private byte memoizedIsInitialized = -1;
204 public final boolean isInitialized() {
205 byte isInitialized = memoizedIsInitialized;
206 if (isInitialized != -1) return isInitialized == 1;
207
208 if (!hasDpid()) {
209 memoizedIsInitialized = 0;
210 return false;
211 }
212 if (!hasStatus()) {
213 memoizedIsInitialized = 0;
214 return false;
215 }
216 memoizedIsInitialized = 1;
217 return true;
218 }
219
220 public void writeTo(com.google.protobuf.CodedOutputStream output)
221 throws java.io.IOException {
222 getSerializedSize();
Ray Milkey2476cac2014-04-08 11:03:21 -0700223 if (((bitField0 & 0x00000001) == 0x00000001)) {
224 output.writeInt64(1, dpid);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700225 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700226 if (((bitField0 & 0x00000002) == 0x00000002)) {
227 output.writeInt32(2, status);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700228 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700229 if (((bitField0 & 0x00000004) == 0x00000004)) {
230 output.writeBytes(3, value);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700231 }
232 getUnknownFields().writeTo(output);
233 }
234
235 private int memoizedSerializedSize = -1;
236 public int getSerializedSize() {
237 int size = memoizedSerializedSize;
238 if (size != -1) return size;
239
240 size = 0;
Ray Milkey2476cac2014-04-08 11:03:21 -0700241 if (((bitField0 & 0x00000001) == 0x00000001)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700242 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -0700243 .computeInt64Size(1, dpid);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700244 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700245 if (((bitField0 & 0x00000002) == 0x00000002)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700246 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -0700247 .computeInt32Size(2, status);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700248 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700249 if (((bitField0 & 0x00000004) == 0x00000004)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700250 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -0700251 .computeBytesSize(3, value);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700252 }
253 size += getUnknownFields().getSerializedSize();
254 memoizedSerializedSize = size;
255 return size;
256 }
257
258 private static final long serialVersionUID = 0L;
259 @java.lang.Override
260 protected java.lang.Object writeReplace()
261 throws java.io.ObjectStreamException {
262 return super.writeReplace();
263 }
264
265 public static net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty parseFrom(
266 com.google.protobuf.ByteString data)
267 throws com.google.protobuf.InvalidProtocolBufferException {
268 return PARSER.parseFrom(data);
269 }
270 public static net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty parseFrom(
271 com.google.protobuf.ByteString data,
272 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
273 throws com.google.protobuf.InvalidProtocolBufferException {
274 return PARSER.parseFrom(data, extensionRegistry);
275 }
276 public static net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty parseFrom(byte[] data)
277 throws com.google.protobuf.InvalidProtocolBufferException {
278 return PARSER.parseFrom(data);
279 }
280 public static net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty parseFrom(
281 byte[] data,
282 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
283 throws com.google.protobuf.InvalidProtocolBufferException {
284 return PARSER.parseFrom(data, extensionRegistry);
285 }
286 public static net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty parseFrom(java.io.InputStream input)
287 throws java.io.IOException {
288 return PARSER.parseFrom(input);
289 }
290 public static net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty parseFrom(
291 java.io.InputStream input,
292 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
293 throws java.io.IOException {
294 return PARSER.parseFrom(input, extensionRegistry);
295 }
296 public static net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty parseDelimitedFrom(java.io.InputStream input)
297 throws java.io.IOException {
298 return PARSER.parseDelimitedFrom(input);
299 }
300 public static net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty parseDelimitedFrom(
301 java.io.InputStream input,
302 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
303 throws java.io.IOException {
304 return PARSER.parseDelimitedFrom(input, extensionRegistry);
305 }
306 public static net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty parseFrom(
307 com.google.protobuf.CodedInputStream input)
308 throws java.io.IOException {
309 return PARSER.parseFrom(input);
310 }
311 public static net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty parseFrom(
312 com.google.protobuf.CodedInputStream input,
313 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
314 throws java.io.IOException {
315 return PARSER.parseFrom(input, extensionRegistry);
316 }
317
318 public static Builder newBuilder() { return Builder.create(); }
319 public Builder newBuilderForType() { return newBuilder(); }
320 public static Builder newBuilder(net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty prototype) {
321 return newBuilder().mergeFrom(prototype);
322 }
323 public Builder toBuilder() { return newBuilder(this); }
324
325 @java.lang.Override
326 protected Builder newBuilderForType(
327 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
328 Builder builder = new Builder(parent);
329 return builder;
330 }
331 /**
332 * Protobuf type {@code topology.SwitchProperty}
333 */
334 public static final class Builder extends
335 com.google.protobuf.GeneratedMessage.Builder<Builder>
336 implements net.onrc.onos.core.datastore.serializers.Topology.SwitchPropertyOrBuilder {
337 public static final com.google.protobuf.Descriptors.Descriptor
338 getDescriptor() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700339 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologySwitchPropertyDescriptor;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700340 }
341
342 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
343 internalGetFieldAccessorTable() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700344 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologySwitchPropertyFieldAccessorTable
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700345 .ensureFieldAccessorsInitialized(
346 net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty.class, net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty.Builder.class);
347 }
348
349 // Construct using net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty.newBuilder()
350 private Builder() {
351 maybeForceBuilderInitialization();
352 }
353
354 private Builder(
355 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
356 super(parent);
357 maybeForceBuilderInitialization();
358 }
359 private void maybeForceBuilderInitialization() {
360 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
361 }
362 }
363 private static Builder create() {
364 return new Builder();
365 }
366
367 public Builder clear() {
368 super.clear();
Ray Milkey2476cac2014-04-08 11:03:21 -0700369 dpid = 0L;
370 bitField0 = (bitField0 & ~0x00000001);
371 status = 0;
372 bitField0 = (bitField0 & ~0x00000002);
373 value = com.google.protobuf.ByteString.EMPTY;
374 bitField0 = (bitField0 & ~0x00000004);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700375 return this;
376 }
377
378 public Builder clone() {
379 return create().mergeFrom(buildPartial());
380 }
381
382 public com.google.protobuf.Descriptors.Descriptor
383 getDescriptorForType() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700384 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologySwitchPropertyDescriptor;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700385 }
386
387 public net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty getDefaultInstanceForType() {
388 return net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty.getDefaultInstance();
389 }
390
391 public net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty build() {
392 net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty result = buildPartial();
393 if (!result.isInitialized()) {
394 throw newUninitializedMessageException(result);
395 }
396 return result;
397 }
398
399 public net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty buildPartial() {
400 net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty result = new net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty(this);
Ray Milkey2476cac2014-04-08 11:03:21 -0700401 int fromBitField0 = bitField0;
402 int toBitField0 = 0;
403 if (((fromBitField0 & 0x00000001) == 0x00000001)) {
404 toBitField0 |= 0x00000001;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700405 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700406 result.dpid = dpid;
407 if (((fromBitField0 & 0x00000002) == 0x00000002)) {
408 toBitField0 |= 0x00000002;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700409 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700410 result.status = status;
411 if (((fromBitField0 & 0x00000004) == 0x00000004)) {
412 toBitField0 |= 0x00000004;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700413 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700414 result.value = value;
415 result.bitField0 = toBitField0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700416 onBuilt();
417 return result;
418 }
419
420 public Builder mergeFrom(com.google.protobuf.Message other) {
421 if (other instanceof net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty) {
422 return mergeFrom((net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty)other);
423 } else {
424 super.mergeFrom(other);
425 return this;
426 }
427 }
428
429 public Builder mergeFrom(net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty other) {
430 if (other == net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty.getDefaultInstance()) return this;
431 if (other.hasDpid()) {
432 setDpid(other.getDpid());
433 }
434 if (other.hasStatus()) {
435 setStatus(other.getStatus());
436 }
437 if (other.hasValue()) {
438 setValue(other.getValue());
439 }
440 this.mergeUnknownFields(other.getUnknownFields());
441 return this;
442 }
443
444 public final boolean isInitialized() {
445 if (!hasDpid()) {
446
447 return false;
448 }
449 if (!hasStatus()) {
450
451 return false;
452 }
453 return true;
454 }
455
456 public Builder mergeFrom(
457 com.google.protobuf.CodedInputStream input,
458 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
459 throws java.io.IOException {
460 net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty parsedMessage = null;
461 try {
462 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
463 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
464 parsedMessage = (net.onrc.onos.core.datastore.serializers.Topology.SwitchProperty) e.getUnfinishedMessage();
465 throw e;
466 } finally {
467 if (parsedMessage != null) {
468 mergeFrom(parsedMessage);
469 }
470 }
471 return this;
472 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700473 private int bitField0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700474
475 // required int64 dpid = 1;
Ray Milkey2476cac2014-04-08 11:03:21 -0700476 private long dpid;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700477 /**
478 * <code>required int64 dpid = 1;</code>
479 */
480 public boolean hasDpid() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700481 return ((bitField0 & 0x00000001) == 0x00000001);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700482 }
483 /**
484 * <code>required int64 dpid = 1;</code>
485 */
486 public long getDpid() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700487 return dpid;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700488 }
489 /**
490 * <code>required int64 dpid = 1;</code>
491 */
492 public Builder setDpid(long value) {
Ray Milkey2476cac2014-04-08 11:03:21 -0700493 bitField0 |= 0x00000001;
494 dpid = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700495 onChanged();
496 return this;
497 }
498 /**
499 * <code>required int64 dpid = 1;</code>
500 */
501 public Builder clearDpid() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700502 bitField0 = (bitField0 & ~0x00000001);
503 dpid = 0L;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700504 onChanged();
505 return this;
506 }
507
508 // required int32 status = 2;
Ray Milkey2476cac2014-04-08 11:03:21 -0700509 private int status;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700510 /**
511 * <code>required int32 status = 2;</code>
512 */
513 public boolean hasStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700514 return ((bitField0 & 0x00000002) == 0x00000002);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700515 }
516 /**
517 * <code>required int32 status = 2;</code>
518 */
519 public int getStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700520 return status;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700521 }
522 /**
523 * <code>required int32 status = 2;</code>
524 */
525 public Builder setStatus(int value) {
Ray Milkey2476cac2014-04-08 11:03:21 -0700526 bitField0 |= 0x00000002;
527 status = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700528 onChanged();
529 return this;
530 }
531 /**
532 * <code>required int32 status = 2;</code>
533 */
534 public Builder clearStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700535 bitField0 = (bitField0 & ~0x00000002);
536 status = 0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700537 onChanged();
538 return this;
539 }
540
541 // optional bytes value = 3;
Ray Milkey2476cac2014-04-08 11:03:21 -0700542 private com.google.protobuf.ByteString value = com.google.protobuf.ByteString.EMPTY;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700543 /**
544 * <code>optional bytes value = 3;</code>
545 */
546 public boolean hasValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700547 return ((bitField0 & 0x00000004) == 0x00000004);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700548 }
549 /**
550 * <code>optional bytes value = 3;</code>
551 */
552 public com.google.protobuf.ByteString getValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700553 return value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700554 }
555 /**
556 * <code>optional bytes value = 3;</code>
557 */
558 public Builder setValue(com.google.protobuf.ByteString value) {
559 if (value == null) {
560 throw new NullPointerException();
561 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700562 bitField0 |= 0x00000004;
563 this.value = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700564 onChanged();
565 return this;
566 }
567 /**
568 * <code>optional bytes value = 3;</code>
569 */
570 public Builder clearValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700571 bitField0 = (bitField0 & ~0x00000004);
572 value = getDefaultInstance().getValue();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700573 onChanged();
574 return this;
575 }
576
577 // @@protoc_insertion_point(builder_scope:topology.SwitchProperty)
578 }
579
580 static {
581 defaultInstance = new SwitchProperty(true);
582 defaultInstance.initFields();
583 }
584
585 // @@protoc_insertion_point(class_scope:topology.SwitchProperty)
586 }
587
588 public interface PortPropertyOrBuilder
589 extends com.google.protobuf.MessageOrBuilder {
590
591 // required int64 dpid = 1;
592 /**
593 * <code>required int64 dpid = 1;</code>
594 */
595 boolean hasDpid();
596 /**
597 * <code>required int64 dpid = 1;</code>
598 */
599 long getDpid();
600
601 // required int64 number = 2;
602 /**
603 * <code>required int64 number = 2;</code>
604 */
605 boolean hasNumber();
606 /**
607 * <code>required int64 number = 2;</code>
608 */
609 long getNumber();
610
611 // required int32 status = 3;
612 /**
613 * <code>required int32 status = 3;</code>
614 */
615 boolean hasStatus();
616 /**
617 * <code>required int32 status = 3;</code>
618 */
619 int getStatus();
620
621 // optional bytes value = 4;
622 /**
623 * <code>optional bytes value = 4;</code>
624 */
625 boolean hasValue();
626 /**
627 * <code>optional bytes value = 4;</code>
628 */
629 com.google.protobuf.ByteString getValue();
630 }
631 /**
632 * Protobuf type {@code topology.PortProperty}
633 */
634 public static final class PortProperty extends
635 com.google.protobuf.GeneratedMessage
636 implements PortPropertyOrBuilder {
637 // Use PortProperty.newBuilder() to construct.
638 private PortProperty(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
639 super(builder);
640 this.unknownFields = builder.getUnknownFields();
641 }
642 private PortProperty(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
643
644 private static final PortProperty defaultInstance;
645 public static PortProperty getDefaultInstance() {
646 return defaultInstance;
647 }
648
649 public PortProperty getDefaultInstanceForType() {
650 return defaultInstance;
651 }
652
653 private final com.google.protobuf.UnknownFieldSet unknownFields;
654 @java.lang.Override
655 public final com.google.protobuf.UnknownFieldSet
656 getUnknownFields() {
657 return this.unknownFields;
658 }
659 private PortProperty(
660 com.google.protobuf.CodedInputStream input,
661 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
662 throws com.google.protobuf.InvalidProtocolBufferException {
663 initFields();
Ray Milkey2476cac2014-04-08 11:03:21 -0700664 int mutableBitField0 = 0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700665 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
666 com.google.protobuf.UnknownFieldSet.newBuilder();
667 try {
668 boolean done = false;
669 while (!done) {
670 int tag = input.readTag();
671 switch (tag) {
672 case 0:
673 done = true;
674 break;
675 default: {
676 if (!parseUnknownField(input, unknownFields,
677 extensionRegistry, tag)) {
678 done = true;
679 }
680 break;
681 }
682 case 8: {
Ray Milkey2476cac2014-04-08 11:03:21 -0700683 bitField0 |= 0x00000001;
684 dpid = input.readInt64();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700685 break;
686 }
687 case 16: {
Ray Milkey2476cac2014-04-08 11:03:21 -0700688 bitField0 |= 0x00000002;
689 number = input.readInt64();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700690 break;
691 }
692 case 24: {
Ray Milkey2476cac2014-04-08 11:03:21 -0700693 bitField0 |= 0x00000004;
694 status = input.readInt32();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700695 break;
696 }
697 case 34: {
Ray Milkey2476cac2014-04-08 11:03:21 -0700698 bitField0 |= 0x00000008;
699 value = input.readBytes();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700700 break;
701 }
702 }
703 }
704 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
705 throw e.setUnfinishedMessage(this);
706 } catch (java.io.IOException e) {
707 throw new com.google.protobuf.InvalidProtocolBufferException(
708 e.getMessage()).setUnfinishedMessage(this);
709 } finally {
710 this.unknownFields = unknownFields.build();
711 makeExtensionsImmutable();
712 }
713 }
714 public static final com.google.protobuf.Descriptors.Descriptor
715 getDescriptor() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700716 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologyPortPropertyDescriptor;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700717 }
718
719 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
720 internalGetFieldAccessorTable() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700721 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologyPortPropertyFieldAccessorTable
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700722 .ensureFieldAccessorsInitialized(
723 net.onrc.onos.core.datastore.serializers.Topology.PortProperty.class, net.onrc.onos.core.datastore.serializers.Topology.PortProperty.Builder.class);
724 }
725
726 public static com.google.protobuf.Parser<PortProperty> PARSER =
727 new com.google.protobuf.AbstractParser<PortProperty>() {
728 public PortProperty parsePartialFrom(
729 com.google.protobuf.CodedInputStream input,
730 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
731 throws com.google.protobuf.InvalidProtocolBufferException {
732 return new PortProperty(input, extensionRegistry);
733 }
734 };
735
736 @java.lang.Override
737 public com.google.protobuf.Parser<PortProperty> getParserForType() {
738 return PARSER;
739 }
740
Ray Milkey2476cac2014-04-08 11:03:21 -0700741 private int bitField0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700742 // required int64 dpid = 1;
743 public static final int DPID_FIELD_NUMBER = 1;
Ray Milkey2476cac2014-04-08 11:03:21 -0700744 private long dpid;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700745 /**
746 * <code>required int64 dpid = 1;</code>
747 */
748 public boolean hasDpid() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700749 return ((bitField0 & 0x00000001) == 0x00000001);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700750 }
751 /**
752 * <code>required int64 dpid = 1;</code>
753 */
754 public long getDpid() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700755 return dpid;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700756 }
757
758 // required int64 number = 2;
759 public static final int NUMBER_FIELD_NUMBER = 2;
Ray Milkey2476cac2014-04-08 11:03:21 -0700760 private long number;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700761 /**
762 * <code>required int64 number = 2;</code>
763 */
764 public boolean hasNumber() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700765 return ((bitField0 & 0x00000002) == 0x00000002);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700766 }
767 /**
768 * <code>required int64 number = 2;</code>
769 */
770 public long getNumber() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700771 return number;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700772 }
773
774 // required int32 status = 3;
775 public static final int STATUS_FIELD_NUMBER = 3;
Ray Milkey2476cac2014-04-08 11:03:21 -0700776 private int status;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700777 /**
778 * <code>required int32 status = 3;</code>
779 */
780 public boolean hasStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700781 return ((bitField0 & 0x00000004) == 0x00000004);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700782 }
783 /**
784 * <code>required int32 status = 3;</code>
785 */
786 public int getStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700787 return status;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700788 }
789
790 // optional bytes value = 4;
791 public static final int VALUE_FIELD_NUMBER = 4;
Ray Milkey2476cac2014-04-08 11:03:21 -0700792 private com.google.protobuf.ByteString value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700793 /**
794 * <code>optional bytes value = 4;</code>
795 */
796 public boolean hasValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700797 return ((bitField0 & 0x00000008) == 0x00000008);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700798 }
799 /**
800 * <code>optional bytes value = 4;</code>
801 */
802 public com.google.protobuf.ByteString getValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700803 return value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700804 }
805
806 private void initFields() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700807 dpid = 0L;
808 number = 0L;
809 status = 0;
810 value = com.google.protobuf.ByteString.EMPTY;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700811 }
812 private byte memoizedIsInitialized = -1;
813 public final boolean isInitialized() {
814 byte isInitialized = memoizedIsInitialized;
815 if (isInitialized != -1) return isInitialized == 1;
816
817 if (!hasDpid()) {
818 memoizedIsInitialized = 0;
819 return false;
820 }
821 if (!hasNumber()) {
822 memoizedIsInitialized = 0;
823 return false;
824 }
825 if (!hasStatus()) {
826 memoizedIsInitialized = 0;
827 return false;
828 }
829 memoizedIsInitialized = 1;
830 return true;
831 }
832
833 public void writeTo(com.google.protobuf.CodedOutputStream output)
834 throws java.io.IOException {
835 getSerializedSize();
Ray Milkey2476cac2014-04-08 11:03:21 -0700836 if (((bitField0 & 0x00000001) == 0x00000001)) {
837 output.writeInt64(1, dpid);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700838 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700839 if (((bitField0 & 0x00000002) == 0x00000002)) {
840 output.writeInt64(2, number);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700841 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700842 if (((bitField0 & 0x00000004) == 0x00000004)) {
843 output.writeInt32(3, status);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700844 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700845 if (((bitField0 & 0x00000008) == 0x00000008)) {
846 output.writeBytes(4, value);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700847 }
848 getUnknownFields().writeTo(output);
849 }
850
851 private int memoizedSerializedSize = -1;
852 public int getSerializedSize() {
853 int size = memoizedSerializedSize;
854 if (size != -1) return size;
855
856 size = 0;
Ray Milkey2476cac2014-04-08 11:03:21 -0700857 if (((bitField0 & 0x00000001) == 0x00000001)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700858 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -0700859 .computeInt64Size(1, dpid);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700860 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700861 if (((bitField0 & 0x00000002) == 0x00000002)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700862 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -0700863 .computeInt64Size(2, number);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700864 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700865 if (((bitField0 & 0x00000004) == 0x00000004)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700866 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -0700867 .computeInt32Size(3, status);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700868 }
Ray Milkey2476cac2014-04-08 11:03:21 -0700869 if (((bitField0 & 0x00000008) == 0x00000008)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700870 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -0700871 .computeBytesSize(4, value);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700872 }
873 size += getUnknownFields().getSerializedSize();
874 memoizedSerializedSize = size;
875 return size;
876 }
877
878 private static final long serialVersionUID = 0L;
879 @java.lang.Override
880 protected java.lang.Object writeReplace()
881 throws java.io.ObjectStreamException {
882 return super.writeReplace();
883 }
884
885 public static net.onrc.onos.core.datastore.serializers.Topology.PortProperty parseFrom(
886 com.google.protobuf.ByteString data)
887 throws com.google.protobuf.InvalidProtocolBufferException {
888 return PARSER.parseFrom(data);
889 }
890 public static net.onrc.onos.core.datastore.serializers.Topology.PortProperty parseFrom(
891 com.google.protobuf.ByteString data,
892 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
893 throws com.google.protobuf.InvalidProtocolBufferException {
894 return PARSER.parseFrom(data, extensionRegistry);
895 }
896 public static net.onrc.onos.core.datastore.serializers.Topology.PortProperty parseFrom(byte[] data)
897 throws com.google.protobuf.InvalidProtocolBufferException {
898 return PARSER.parseFrom(data);
899 }
900 public static net.onrc.onos.core.datastore.serializers.Topology.PortProperty parseFrom(
901 byte[] data,
902 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
903 throws com.google.protobuf.InvalidProtocolBufferException {
904 return PARSER.parseFrom(data, extensionRegistry);
905 }
906 public static net.onrc.onos.core.datastore.serializers.Topology.PortProperty parseFrom(java.io.InputStream input)
907 throws java.io.IOException {
908 return PARSER.parseFrom(input);
909 }
910 public static net.onrc.onos.core.datastore.serializers.Topology.PortProperty parseFrom(
911 java.io.InputStream input,
912 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
913 throws java.io.IOException {
914 return PARSER.parseFrom(input, extensionRegistry);
915 }
916 public static net.onrc.onos.core.datastore.serializers.Topology.PortProperty parseDelimitedFrom(java.io.InputStream input)
917 throws java.io.IOException {
918 return PARSER.parseDelimitedFrom(input);
919 }
920 public static net.onrc.onos.core.datastore.serializers.Topology.PortProperty parseDelimitedFrom(
921 java.io.InputStream input,
922 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
923 throws java.io.IOException {
924 return PARSER.parseDelimitedFrom(input, extensionRegistry);
925 }
926 public static net.onrc.onos.core.datastore.serializers.Topology.PortProperty parseFrom(
927 com.google.protobuf.CodedInputStream input)
928 throws java.io.IOException {
929 return PARSER.parseFrom(input);
930 }
931 public static net.onrc.onos.core.datastore.serializers.Topology.PortProperty parseFrom(
932 com.google.protobuf.CodedInputStream input,
933 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
934 throws java.io.IOException {
935 return PARSER.parseFrom(input, extensionRegistry);
936 }
937
938 public static Builder newBuilder() { return Builder.create(); }
939 public Builder newBuilderForType() { return newBuilder(); }
940 public static Builder newBuilder(net.onrc.onos.core.datastore.serializers.Topology.PortProperty prototype) {
941 return newBuilder().mergeFrom(prototype);
942 }
943 public Builder toBuilder() { return newBuilder(this); }
944
945 @java.lang.Override
946 protected Builder newBuilderForType(
947 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
948 Builder builder = new Builder(parent);
949 return builder;
950 }
951 /**
952 * Protobuf type {@code topology.PortProperty}
953 */
954 public static final class Builder extends
955 com.google.protobuf.GeneratedMessage.Builder<Builder>
956 implements net.onrc.onos.core.datastore.serializers.Topology.PortPropertyOrBuilder {
957 public static final com.google.protobuf.Descriptors.Descriptor
958 getDescriptor() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700959 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologyPortPropertyDescriptor;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700960 }
961
962 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
963 internalGetFieldAccessorTable() {
Ray Milkey2476cac2014-04-08 11:03:21 -0700964 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologyPortPropertyFieldAccessorTable
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700965 .ensureFieldAccessorsInitialized(
966 net.onrc.onos.core.datastore.serializers.Topology.PortProperty.class, net.onrc.onos.core.datastore.serializers.Topology.PortProperty.Builder.class);
967 }
968
969 // Construct using net.onrc.onos.core.datastore.serializers.Topology.PortProperty.newBuilder()
970 private Builder() {
971 maybeForceBuilderInitialization();
972 }
973
974 private Builder(
975 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
976 super(parent);
977 maybeForceBuilderInitialization();
978 }
979 private void maybeForceBuilderInitialization() {
980 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
981 }
982 }
983 private static Builder create() {
984 return new Builder();
985 }
986
987 public Builder clear() {
988 super.clear();
Ray Milkey2476cac2014-04-08 11:03:21 -0700989 dpid = 0L;
990 bitField0 = (bitField0 & ~0x00000001);
991 number = 0L;
992 bitField0 = (bitField0 & ~0x00000002);
993 status = 0;
994 bitField0 = (bitField0 & ~0x00000004);
995 value = com.google.protobuf.ByteString.EMPTY;
996 bitField0 = (bitField0 & ~0x00000008);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -0700997 return this;
998 }
999
1000 public Builder clone() {
1001 return create().mergeFrom(buildPartial());
1002 }
1003
1004 public com.google.protobuf.Descriptors.Descriptor
1005 getDescriptorForType() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001006 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologyPortPropertyDescriptor;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001007 }
1008
1009 public net.onrc.onos.core.datastore.serializers.Topology.PortProperty getDefaultInstanceForType() {
1010 return net.onrc.onos.core.datastore.serializers.Topology.PortProperty.getDefaultInstance();
1011 }
1012
1013 public net.onrc.onos.core.datastore.serializers.Topology.PortProperty build() {
1014 net.onrc.onos.core.datastore.serializers.Topology.PortProperty result = buildPartial();
1015 if (!result.isInitialized()) {
1016 throw newUninitializedMessageException(result);
1017 }
1018 return result;
1019 }
1020
1021 public net.onrc.onos.core.datastore.serializers.Topology.PortProperty buildPartial() {
1022 net.onrc.onos.core.datastore.serializers.Topology.PortProperty result = new net.onrc.onos.core.datastore.serializers.Topology.PortProperty(this);
Ray Milkey2476cac2014-04-08 11:03:21 -07001023 int bitField0 = this.bitField0;
1024 int toBitField0 = 0;
1025 if (((bitField0 & 0x00000001) == 0x00000001)) {
1026 toBitField0 |= 0x00000001;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001027 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001028 result.dpid = dpid;
1029 if (((bitField0 & 0x00000002) == 0x00000002)) {
1030 toBitField0 |= 0x00000002;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001031 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001032 result.number = number;
1033 if (((bitField0 & 0x00000004) == 0x00000004)) {
1034 toBitField0 |= 0x00000004;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001035 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001036 result.status = status;
1037 if (((bitField0 & 0x00000008) == 0x00000008)) {
1038 toBitField0 |= 0x00000008;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001039 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001040 result.value = value;
1041 result.bitField0 = toBitField0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001042 onBuilt();
1043 return result;
1044 }
1045
1046 public Builder mergeFrom(com.google.protobuf.Message other) {
1047 if (other instanceof net.onrc.onos.core.datastore.serializers.Topology.PortProperty) {
1048 return mergeFrom((net.onrc.onos.core.datastore.serializers.Topology.PortProperty)other);
1049 } else {
1050 super.mergeFrom(other);
1051 return this;
1052 }
1053 }
1054
1055 public Builder mergeFrom(net.onrc.onos.core.datastore.serializers.Topology.PortProperty other) {
1056 if (other == net.onrc.onos.core.datastore.serializers.Topology.PortProperty.getDefaultInstance()) return this;
1057 if (other.hasDpid()) {
1058 setDpid(other.getDpid());
1059 }
1060 if (other.hasNumber()) {
1061 setNumber(other.getNumber());
1062 }
1063 if (other.hasStatus()) {
1064 setStatus(other.getStatus());
1065 }
1066 if (other.hasValue()) {
1067 setValue(other.getValue());
1068 }
1069 this.mergeUnknownFields(other.getUnknownFields());
1070 return this;
1071 }
1072
1073 public final boolean isInitialized() {
1074 if (!hasDpid()) {
1075
1076 return false;
1077 }
1078 if (!hasNumber()) {
1079
1080 return false;
1081 }
1082 if (!hasStatus()) {
1083
1084 return false;
1085 }
1086 return true;
1087 }
1088
1089 public Builder mergeFrom(
1090 com.google.protobuf.CodedInputStream input,
1091 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1092 throws java.io.IOException {
1093 net.onrc.onos.core.datastore.serializers.Topology.PortProperty parsedMessage = null;
1094 try {
1095 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1096 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1097 parsedMessage = (net.onrc.onos.core.datastore.serializers.Topology.PortProperty) e.getUnfinishedMessage();
1098 throw e;
1099 } finally {
1100 if (parsedMessage != null) {
1101 mergeFrom(parsedMessage);
1102 }
1103 }
1104 return this;
1105 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001106 private int bitField0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001107
1108 // required int64 dpid = 1;
Ray Milkey2476cac2014-04-08 11:03:21 -07001109 private long dpid;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001110 /**
1111 * <code>required int64 dpid = 1;</code>
1112 */
1113 public boolean hasDpid() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001114 return ((bitField0 & 0x00000001) == 0x00000001);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001115 }
1116 /**
1117 * <code>required int64 dpid = 1;</code>
1118 */
1119 public long getDpid() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001120 return dpid;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001121 }
1122 /**
1123 * <code>required int64 dpid = 1;</code>
1124 */
1125 public Builder setDpid(long value) {
Ray Milkey2476cac2014-04-08 11:03:21 -07001126 bitField0 |= 0x00000001;
1127 dpid = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001128 onChanged();
1129 return this;
1130 }
1131 /**
1132 * <code>required int64 dpid = 1;</code>
1133 */
1134 public Builder clearDpid() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001135 bitField0 = (bitField0 & ~0x00000001);
1136 dpid = 0L;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001137 onChanged();
1138 return this;
1139 }
1140
1141 // required int64 number = 2;
Ray Milkey2476cac2014-04-08 11:03:21 -07001142 private long number;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001143 /**
1144 * <code>required int64 number = 2;</code>
1145 */
1146 public boolean hasNumber() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001147 return ((bitField0 & 0x00000002) == 0x00000002);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001148 }
1149 /**
1150 * <code>required int64 number = 2;</code>
1151 */
1152 public long getNumber() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001153 return number;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001154 }
1155 /**
1156 * <code>required int64 number = 2;</code>
1157 */
1158 public Builder setNumber(long value) {
Ray Milkey2476cac2014-04-08 11:03:21 -07001159 bitField0 |= 0x00000002;
1160 number = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001161 onChanged();
1162 return this;
1163 }
1164 /**
1165 * <code>required int64 number = 2;</code>
1166 */
1167 public Builder clearNumber() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001168 bitField0 = (bitField0 & ~0x00000002);
1169 number = 0L;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001170 onChanged();
1171 return this;
1172 }
1173
1174 // required int32 status = 3;
Ray Milkey2476cac2014-04-08 11:03:21 -07001175 private int status;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001176 /**
1177 * <code>required int32 status = 3;</code>
1178 */
1179 public boolean hasStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001180 return ((bitField0 & 0x00000004) == 0x00000004);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001181 }
1182 /**
1183 * <code>required int32 status = 3;</code>
1184 */
1185 public int getStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001186 return status;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001187 }
1188 /**
1189 * <code>required int32 status = 3;</code>
1190 */
1191 public Builder setStatus(int value) {
Ray Milkey2476cac2014-04-08 11:03:21 -07001192 bitField0 |= 0x00000004;
1193 status = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001194 onChanged();
1195 return this;
1196 }
1197 /**
1198 * <code>required int32 status = 3;</code>
1199 */
1200 public Builder clearStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001201 bitField0 = (bitField0 & ~0x00000004);
1202 status = 0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001203 onChanged();
1204 return this;
1205 }
1206
1207 // optional bytes value = 4;
Ray Milkey2476cac2014-04-08 11:03:21 -07001208 private com.google.protobuf.ByteString value = com.google.protobuf.ByteString.EMPTY;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001209 /**
1210 * <code>optional bytes value = 4;</code>
1211 */
1212 public boolean hasValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001213 return ((bitField0 & 0x00000008) == 0x00000008);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001214 }
1215 /**
1216 * <code>optional bytes value = 4;</code>
1217 */
1218 public com.google.protobuf.ByteString getValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001219 return value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001220 }
1221 /**
1222 * <code>optional bytes value = 4;</code>
1223 */
1224 public Builder setValue(com.google.protobuf.ByteString value) {
1225 if (value == null) {
1226 throw new NullPointerException();
1227 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001228 bitField0 |= 0x00000008;
1229 this.value = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001230 onChanged();
1231 return this;
1232 }
1233 /**
1234 * <code>optional bytes value = 4;</code>
1235 */
1236 public Builder clearValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001237 bitField0 = (bitField0 & ~0x00000008);
1238 value = getDefaultInstance().getValue();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001239 onChanged();
1240 return this;
1241 }
1242
1243 // @@protoc_insertion_point(builder_scope:topology.PortProperty)
1244 }
1245
1246 static {
1247 defaultInstance = new PortProperty(true);
1248 defaultInstance.initFields();
1249 }
1250
1251 // @@protoc_insertion_point(class_scope:topology.PortProperty)
1252 }
1253
1254 public interface LinkPropertyOrBuilder
1255 extends com.google.protobuf.MessageOrBuilder {
1256
1257 // required bytes srcSwId = 1;
1258 /**
1259 * <code>required bytes srcSwId = 1;</code>
1260 */
1261 boolean hasSrcSwId();
1262 /**
1263 * <code>required bytes srcSwId = 1;</code>
1264 */
1265 com.google.protobuf.ByteString getSrcSwId();
1266
1267 // required bytes srcPortId = 2;
1268 /**
1269 * <code>required bytes srcPortId = 2;</code>
1270 */
1271 boolean hasSrcPortId();
1272 /**
1273 * <code>required bytes srcPortId = 2;</code>
1274 */
1275 com.google.protobuf.ByteString getSrcPortId();
1276
1277 // required bytes dstSwId = 3;
1278 /**
1279 * <code>required bytes dstSwId = 3;</code>
1280 */
1281 boolean hasDstSwId();
1282 /**
1283 * <code>required bytes dstSwId = 3;</code>
1284 */
1285 com.google.protobuf.ByteString getDstSwId();
1286
1287 // required bytes dstPortId = 4;
1288 /**
1289 * <code>required bytes dstPortId = 4;</code>
1290 */
1291 boolean hasDstPortId();
1292 /**
1293 * <code>required bytes dstPortId = 4;</code>
1294 */
1295 com.google.protobuf.ByteString getDstPortId();
1296
1297 // required int32 status = 5;
1298 /**
1299 * <code>required int32 status = 5;</code>
1300 */
1301 boolean hasStatus();
1302 /**
1303 * <code>required int32 status = 5;</code>
1304 */
1305 int getStatus();
1306
1307 // optional bytes value = 6;
1308 /**
1309 * <code>optional bytes value = 6;</code>
1310 */
1311 boolean hasValue();
1312 /**
1313 * <code>optional bytes value = 6;</code>
1314 */
1315 com.google.protobuf.ByteString getValue();
1316 }
1317 /**
1318 * Protobuf type {@code topology.LinkProperty}
1319 */
1320 public static final class LinkProperty extends
1321 com.google.protobuf.GeneratedMessage
1322 implements LinkPropertyOrBuilder {
1323 // Use LinkProperty.newBuilder() to construct.
1324 private LinkProperty(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1325 super(builder);
1326 this.unknownFields = builder.getUnknownFields();
1327 }
1328 private LinkProperty(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1329
1330 private static final LinkProperty defaultInstance;
1331 public static LinkProperty getDefaultInstance() {
1332 return defaultInstance;
1333 }
1334
1335 public LinkProperty getDefaultInstanceForType() {
1336 return defaultInstance;
1337 }
1338
1339 private final com.google.protobuf.UnknownFieldSet unknownFields;
1340 @java.lang.Override
1341 public final com.google.protobuf.UnknownFieldSet
1342 getUnknownFields() {
1343 return this.unknownFields;
1344 }
1345 private LinkProperty(
1346 com.google.protobuf.CodedInputStream input,
1347 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1348 throws com.google.protobuf.InvalidProtocolBufferException {
1349 initFields();
Ray Milkey2476cac2014-04-08 11:03:21 -07001350 int mutableBitField0 = 0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001351 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1352 com.google.protobuf.UnknownFieldSet.newBuilder();
1353 try {
1354 boolean done = false;
1355 while (!done) {
1356 int tag = input.readTag();
1357 switch (tag) {
1358 case 0:
1359 done = true;
1360 break;
1361 default: {
1362 if (!parseUnknownField(input, unknownFields,
1363 extensionRegistry, tag)) {
1364 done = true;
1365 }
1366 break;
1367 }
1368 case 10: {
Ray Milkey2476cac2014-04-08 11:03:21 -07001369 bitField0 |= 0x00000001;
1370 srcSwId = input.readBytes();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001371 break;
1372 }
1373 case 18: {
Ray Milkey2476cac2014-04-08 11:03:21 -07001374 bitField0 |= 0x00000002;
1375 srcPortId = input.readBytes();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001376 break;
1377 }
1378 case 26: {
Ray Milkey2476cac2014-04-08 11:03:21 -07001379 bitField0 |= 0x00000004;
1380 dstSwId = input.readBytes();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001381 break;
1382 }
1383 case 34: {
Ray Milkey2476cac2014-04-08 11:03:21 -07001384 bitField0 |= 0x00000008;
1385 dstPortId = input.readBytes();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001386 break;
1387 }
1388 case 40: {
Ray Milkey2476cac2014-04-08 11:03:21 -07001389 bitField0 |= 0x00000010;
1390 status = input.readInt32();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001391 break;
1392 }
1393 case 50: {
Ray Milkey2476cac2014-04-08 11:03:21 -07001394 bitField0 |= 0x00000020;
1395 value = input.readBytes();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001396 break;
1397 }
1398 }
1399 }
1400 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1401 throw e.setUnfinishedMessage(this);
1402 } catch (java.io.IOException e) {
1403 throw new com.google.protobuf.InvalidProtocolBufferException(
1404 e.getMessage()).setUnfinishedMessage(this);
1405 } finally {
1406 this.unknownFields = unknownFields.build();
1407 makeExtensionsImmutable();
1408 }
1409 }
1410 public static final com.google.protobuf.Descriptors.Descriptor
1411 getDescriptor() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001412 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologyLinkPropertyDescriptor;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001413 }
1414
1415 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1416 internalGetFieldAccessorTable() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001417 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologyLinkPropertyFieldAccessorTable
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001418 .ensureFieldAccessorsInitialized(
1419 net.onrc.onos.core.datastore.serializers.Topology.LinkProperty.class, net.onrc.onos.core.datastore.serializers.Topology.LinkProperty.Builder.class);
1420 }
1421
Ray Milkey2476cac2014-04-08 11:03:21 -07001422 public static final com.google.protobuf.Parser<LinkProperty> PARSER =
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001423 new com.google.protobuf.AbstractParser<LinkProperty>() {
1424 public LinkProperty parsePartialFrom(
1425 com.google.protobuf.CodedInputStream input,
1426 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1427 throws com.google.protobuf.InvalidProtocolBufferException {
1428 return new LinkProperty(input, extensionRegistry);
1429 }
1430 };
1431
1432 @java.lang.Override
1433 public com.google.protobuf.Parser<LinkProperty> getParserForType() {
1434 return PARSER;
1435 }
1436
Ray Milkey2476cac2014-04-08 11:03:21 -07001437 private int bitField0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001438 // required bytes srcSwId = 1;
1439 public static final int SRCSWID_FIELD_NUMBER = 1;
Ray Milkey2476cac2014-04-08 11:03:21 -07001440 private com.google.protobuf.ByteString srcSwId;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001441 /**
1442 * <code>required bytes srcSwId = 1;</code>
1443 */
1444 public boolean hasSrcSwId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001445 return ((bitField0 & 0x00000001) == 0x00000001);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001446 }
1447 /**
1448 * <code>required bytes srcSwId = 1;</code>
1449 */
1450 public com.google.protobuf.ByteString getSrcSwId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001451 return srcSwId;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001452 }
1453
1454 // required bytes srcPortId = 2;
1455 public static final int SRCPORTID_FIELD_NUMBER = 2;
Ray Milkey2476cac2014-04-08 11:03:21 -07001456 private com.google.protobuf.ByteString srcPortId;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001457 /**
1458 * <code>required bytes srcPortId = 2;</code>
1459 */
1460 public boolean hasSrcPortId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001461 return ((bitField0 & 0x00000002) == 0x00000002);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001462 }
1463 /**
1464 * <code>required bytes srcPortId = 2;</code>
1465 */
1466 public com.google.protobuf.ByteString getSrcPortId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001467 return srcPortId;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001468 }
1469
1470 // required bytes dstSwId = 3;
1471 public static final int DSTSWID_FIELD_NUMBER = 3;
Ray Milkey2476cac2014-04-08 11:03:21 -07001472 private com.google.protobuf.ByteString dstSwId;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001473 /**
1474 * <code>required bytes dstSwId = 3;</code>
1475 */
1476 public boolean hasDstSwId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001477 return ((bitField0 & 0x00000004) == 0x00000004);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001478 }
1479 /**
1480 * <code>required bytes dstSwId = 3;</code>
1481 */
1482 public com.google.protobuf.ByteString getDstSwId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001483 return dstSwId;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001484 }
1485
1486 // required bytes dstPortId = 4;
1487 public static final int DSTPORTID_FIELD_NUMBER = 4;
Ray Milkey2476cac2014-04-08 11:03:21 -07001488 private com.google.protobuf.ByteString dstPortId;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001489 /**
1490 * <code>required bytes dstPortId = 4;</code>
1491 */
1492 public boolean hasDstPortId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001493 return ((bitField0 & 0x00000008) == 0x00000008);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001494 }
1495 /**
1496 * <code>required bytes dstPortId = 4;</code>
1497 */
1498 public com.google.protobuf.ByteString getDstPortId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001499 return dstPortId;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001500 }
1501
1502 // required int32 status = 5;
1503 public static final int STATUS_FIELD_NUMBER = 5;
Ray Milkey2476cac2014-04-08 11:03:21 -07001504 private int status;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001505 /**
1506 * <code>required int32 status = 5;</code>
1507 */
1508 public boolean hasStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001509 return ((bitField0 & 0x00000010) == 0x00000010);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001510 }
1511 /**
1512 * <code>required int32 status = 5;</code>
1513 */
1514 public int getStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001515 return status;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001516 }
1517
1518 // optional bytes value = 6;
1519 public static final int VALUE_FIELD_NUMBER = 6;
Ray Milkey2476cac2014-04-08 11:03:21 -07001520 private com.google.protobuf.ByteString value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001521 /**
1522 * <code>optional bytes value = 6;</code>
1523 */
1524 public boolean hasValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001525 return ((bitField0 & 0x00000020) == 0x00000020);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001526 }
1527 /**
1528 * <code>optional bytes value = 6;</code>
1529 */
1530 public com.google.protobuf.ByteString getValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001531 return value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001532 }
1533
1534 private void initFields() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001535 srcSwId = com.google.protobuf.ByteString.EMPTY;
1536 srcPortId = com.google.protobuf.ByteString.EMPTY;
1537 dstSwId = com.google.protobuf.ByteString.EMPTY;
1538 dstPortId = com.google.protobuf.ByteString.EMPTY;
1539 status = 0;
1540 value = com.google.protobuf.ByteString.EMPTY;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001541 }
1542 private byte memoizedIsInitialized = -1;
1543 public final boolean isInitialized() {
1544 byte isInitialized = memoizedIsInitialized;
1545 if (isInitialized != -1) return isInitialized == 1;
1546
1547 if (!hasSrcSwId()) {
1548 memoizedIsInitialized = 0;
1549 return false;
1550 }
1551 if (!hasSrcPortId()) {
1552 memoizedIsInitialized = 0;
1553 return false;
1554 }
1555 if (!hasDstSwId()) {
1556 memoizedIsInitialized = 0;
1557 return false;
1558 }
1559 if (!hasDstPortId()) {
1560 memoizedIsInitialized = 0;
1561 return false;
1562 }
1563 if (!hasStatus()) {
1564 memoizedIsInitialized = 0;
1565 return false;
1566 }
1567 memoizedIsInitialized = 1;
1568 return true;
1569 }
1570
1571 public void writeTo(com.google.protobuf.CodedOutputStream output)
1572 throws java.io.IOException {
1573 getSerializedSize();
Ray Milkey2476cac2014-04-08 11:03:21 -07001574 if (((bitField0 & 0x00000001) == 0x00000001)) {
1575 output.writeBytes(1, srcSwId);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001576 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001577 if (((bitField0 & 0x00000002) == 0x00000002)) {
1578 output.writeBytes(2, srcPortId);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001579 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001580 if (((bitField0 & 0x00000004) == 0x00000004)) {
1581 output.writeBytes(3, dstSwId);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001582 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001583 if (((bitField0 & 0x00000008) == 0x00000008)) {
1584 output.writeBytes(4, dstPortId);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001585 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001586 if (((bitField0 & 0x00000010) == 0x00000010)) {
1587 output.writeInt32(5, status);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001588 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001589 if (((bitField0 & 0x00000020) == 0x00000020)) {
1590 output.writeBytes(6, value);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001591 }
1592 getUnknownFields().writeTo(output);
1593 }
1594
1595 private int memoizedSerializedSize = -1;
1596 public int getSerializedSize() {
1597 int size = memoizedSerializedSize;
1598 if (size != -1) return size;
1599
1600 size = 0;
Ray Milkey2476cac2014-04-08 11:03:21 -07001601 if (((bitField0 & 0x00000001) == 0x00000001)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001602 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -07001603 .computeBytesSize(1, srcSwId);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001604 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001605 if (((bitField0 & 0x00000002) == 0x00000002)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001606 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -07001607 .computeBytesSize(2, srcPortId);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001608 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001609 if (((bitField0 & 0x00000004) == 0x00000004)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001610 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -07001611 .computeBytesSize(3, dstSwId);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001612 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001613 if (((bitField0 & 0x00000008) == 0x00000008)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001614 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -07001615 .computeBytesSize(4, dstPortId);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001616 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001617 if (((bitField0 & 0x00000010) == 0x00000010)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001618 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -07001619 .computeInt32Size(5, status);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001620 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001621 if (((bitField0 & 0x00000020) == 0x00000020)) {
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001622 size += com.google.protobuf.CodedOutputStream
Ray Milkey2476cac2014-04-08 11:03:21 -07001623 .computeBytesSize(6, value);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001624 }
1625 size += getUnknownFields().getSerializedSize();
1626 memoizedSerializedSize = size;
1627 return size;
1628 }
1629
1630 private static final long serialVersionUID = 0L;
1631 @java.lang.Override
1632 protected java.lang.Object writeReplace()
1633 throws java.io.ObjectStreamException {
1634 return super.writeReplace();
1635 }
1636
1637 public static net.onrc.onos.core.datastore.serializers.Topology.LinkProperty parseFrom(
1638 com.google.protobuf.ByteString data)
1639 throws com.google.protobuf.InvalidProtocolBufferException {
1640 return PARSER.parseFrom(data);
1641 }
1642 public static net.onrc.onos.core.datastore.serializers.Topology.LinkProperty parseFrom(
1643 com.google.protobuf.ByteString data,
1644 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1645 throws com.google.protobuf.InvalidProtocolBufferException {
1646 return PARSER.parseFrom(data, extensionRegistry);
1647 }
1648 public static net.onrc.onos.core.datastore.serializers.Topology.LinkProperty parseFrom(byte[] data)
1649 throws com.google.protobuf.InvalidProtocolBufferException {
1650 return PARSER.parseFrom(data);
1651 }
1652 public static net.onrc.onos.core.datastore.serializers.Topology.LinkProperty parseFrom(
1653 byte[] data,
1654 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1655 throws com.google.protobuf.InvalidProtocolBufferException {
1656 return PARSER.parseFrom(data, extensionRegistry);
1657 }
1658 public static net.onrc.onos.core.datastore.serializers.Topology.LinkProperty parseFrom(java.io.InputStream input)
1659 throws java.io.IOException {
1660 return PARSER.parseFrom(input);
1661 }
1662 public static net.onrc.onos.core.datastore.serializers.Topology.LinkProperty parseFrom(
1663 java.io.InputStream input,
1664 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1665 throws java.io.IOException {
1666 return PARSER.parseFrom(input, extensionRegistry);
1667 }
1668 public static net.onrc.onos.core.datastore.serializers.Topology.LinkProperty parseDelimitedFrom(java.io.InputStream input)
1669 throws java.io.IOException {
1670 return PARSER.parseDelimitedFrom(input);
1671 }
1672 public static net.onrc.onos.core.datastore.serializers.Topology.LinkProperty parseDelimitedFrom(
1673 java.io.InputStream input,
1674 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1675 throws java.io.IOException {
1676 return PARSER.parseDelimitedFrom(input, extensionRegistry);
1677 }
1678 public static net.onrc.onos.core.datastore.serializers.Topology.LinkProperty parseFrom(
1679 com.google.protobuf.CodedInputStream input)
1680 throws java.io.IOException {
1681 return PARSER.parseFrom(input);
1682 }
1683 public static net.onrc.onos.core.datastore.serializers.Topology.LinkProperty parseFrom(
1684 com.google.protobuf.CodedInputStream input,
1685 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1686 throws java.io.IOException {
1687 return PARSER.parseFrom(input, extensionRegistry);
1688 }
1689
1690 public static Builder newBuilder() { return Builder.create(); }
1691 public Builder newBuilderForType() { return newBuilder(); }
1692 public static Builder newBuilder(net.onrc.onos.core.datastore.serializers.Topology.LinkProperty prototype) {
1693 return newBuilder().mergeFrom(prototype);
1694 }
1695 public Builder toBuilder() { return newBuilder(this); }
1696
1697 @java.lang.Override
1698 protected Builder newBuilderForType(
1699 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1700 Builder builder = new Builder(parent);
1701 return builder;
1702 }
1703 /**
1704 * Protobuf type {@code topology.LinkProperty}
1705 */
1706 public static final class Builder extends
1707 com.google.protobuf.GeneratedMessage.Builder<Builder>
1708 implements net.onrc.onos.core.datastore.serializers.Topology.LinkPropertyOrBuilder {
1709 public static final com.google.protobuf.Descriptors.Descriptor
1710 getDescriptor() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001711 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologyLinkPropertyDescriptor;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001712 }
1713
1714 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1715 internalGetFieldAccessorTable() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001716 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologyLinkPropertyFieldAccessorTable
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001717 .ensureFieldAccessorsInitialized(
1718 net.onrc.onos.core.datastore.serializers.Topology.LinkProperty.class, net.onrc.onos.core.datastore.serializers.Topology.LinkProperty.Builder.class);
1719 }
1720
1721 // Construct using net.onrc.onos.core.datastore.serializers.Topology.LinkProperty.newBuilder()
1722 private Builder() {
1723 maybeForceBuilderInitialization();
1724 }
1725
1726 private Builder(
1727 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1728 super(parent);
1729 maybeForceBuilderInitialization();
1730 }
1731 private void maybeForceBuilderInitialization() {
1732 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1733 }
1734 }
1735 private static Builder create() {
1736 return new Builder();
1737 }
1738
1739 public Builder clear() {
1740 super.clear();
Ray Milkey2476cac2014-04-08 11:03:21 -07001741 srcSwId = com.google.protobuf.ByteString.EMPTY;
1742 bitField0 = (bitField0 & ~0x00000001);
1743 srcPortId = com.google.protobuf.ByteString.EMPTY;
1744 bitField0 = (bitField0 & ~0x00000002);
1745 dstSwId = com.google.protobuf.ByteString.EMPTY;
1746 bitField0 = (bitField0 & ~0x00000004);
1747 dstPortId = com.google.protobuf.ByteString.EMPTY;
1748 bitField0 = (bitField0 & ~0x00000008);
1749 status = 0;
1750 bitField0 = (bitField0 & ~0x00000010);
1751 value = com.google.protobuf.ByteString.EMPTY;
1752 bitField0 = (bitField0 & ~0x00000020);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001753 return this;
1754 }
1755
1756 public Builder clone() {
1757 return create().mergeFrom(buildPartial());
1758 }
1759
1760 public com.google.protobuf.Descriptors.Descriptor
1761 getDescriptorForType() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001762 return net.onrc.onos.core.datastore.serializers.Topology.internalStaticTopologyLinkPropertyDescriptor;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001763 }
1764
1765 public net.onrc.onos.core.datastore.serializers.Topology.LinkProperty getDefaultInstanceForType() {
1766 return net.onrc.onos.core.datastore.serializers.Topology.LinkProperty.getDefaultInstance();
1767 }
1768
1769 public net.onrc.onos.core.datastore.serializers.Topology.LinkProperty build() {
1770 net.onrc.onos.core.datastore.serializers.Topology.LinkProperty result = buildPartial();
1771 if (!result.isInitialized()) {
1772 throw newUninitializedMessageException(result);
1773 }
1774 return result;
1775 }
1776
1777 public net.onrc.onos.core.datastore.serializers.Topology.LinkProperty buildPartial() {
1778 net.onrc.onos.core.datastore.serializers.Topology.LinkProperty result = new net.onrc.onos.core.datastore.serializers.Topology.LinkProperty(this);
Ray Milkey2476cac2014-04-08 11:03:21 -07001779 int fromBitField0 = bitField0;
1780 int toBitField0 = 0;
1781 if (((fromBitField0 & 0x00000001) == 0x00000001)) {
1782 toBitField0 |= 0x00000001;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001783 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001784 result.srcSwId = srcSwId;
1785 if (((fromBitField0 & 0x00000002) == 0x00000002)) {
1786 toBitField0 |= 0x00000002;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001787 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001788 result.srcPortId = srcPortId;
1789 if (((fromBitField0 & 0x00000004) == 0x00000004)) {
1790 toBitField0 |= 0x00000004;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001791 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001792 result.dstSwId = dstSwId;
1793 if (((fromBitField0 & 0x00000008) == 0x00000008)) {
1794 toBitField0 |= 0x00000008;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001795 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001796 result.dstPortId = dstPortId;
1797 if (((fromBitField0 & 0x00000010) == 0x00000010)) {
1798 toBitField0 |= 0x00000010;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001799 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001800 result.status = status;
1801 if (((fromBitField0 & 0x00000020) == 0x00000020)) {
1802 toBitField0 |= 0x00000020;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001803 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001804 result.value = value;
1805 result.bitField0 = toBitField0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001806 onBuilt();
1807 return result;
1808 }
1809
1810 public Builder mergeFrom(com.google.protobuf.Message other) {
1811 if (other instanceof net.onrc.onos.core.datastore.serializers.Topology.LinkProperty) {
1812 return mergeFrom((net.onrc.onos.core.datastore.serializers.Topology.LinkProperty)other);
1813 } else {
1814 super.mergeFrom(other);
1815 return this;
1816 }
1817 }
1818
1819 public Builder mergeFrom(net.onrc.onos.core.datastore.serializers.Topology.LinkProperty other) {
1820 if (other == net.onrc.onos.core.datastore.serializers.Topology.LinkProperty.getDefaultInstance()) return this;
1821 if (other.hasSrcSwId()) {
1822 setSrcSwId(other.getSrcSwId());
1823 }
1824 if (other.hasSrcPortId()) {
1825 setSrcPortId(other.getSrcPortId());
1826 }
1827 if (other.hasDstSwId()) {
1828 setDstSwId(other.getDstSwId());
1829 }
1830 if (other.hasDstPortId()) {
1831 setDstPortId(other.getDstPortId());
1832 }
1833 if (other.hasStatus()) {
1834 setStatus(other.getStatus());
1835 }
1836 if (other.hasValue()) {
1837 setValue(other.getValue());
1838 }
1839 this.mergeUnknownFields(other.getUnknownFields());
1840 return this;
1841 }
1842
1843 public final boolean isInitialized() {
1844 if (!hasSrcSwId()) {
1845
1846 return false;
1847 }
1848 if (!hasSrcPortId()) {
1849
1850 return false;
1851 }
1852 if (!hasDstSwId()) {
1853
1854 return false;
1855 }
1856 if (!hasDstPortId()) {
1857
1858 return false;
1859 }
1860 if (!hasStatus()) {
1861
1862 return false;
1863 }
1864 return true;
1865 }
1866
1867 public Builder mergeFrom(
1868 com.google.protobuf.CodedInputStream input,
1869 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1870 throws java.io.IOException {
1871 net.onrc.onos.core.datastore.serializers.Topology.LinkProperty parsedMessage = null;
1872 try {
1873 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1874 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1875 parsedMessage = (net.onrc.onos.core.datastore.serializers.Topology.LinkProperty) e.getUnfinishedMessage();
1876 throw e;
1877 } finally {
1878 if (parsedMessage != null) {
1879 mergeFrom(parsedMessage);
1880 }
1881 }
1882 return this;
1883 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001884 private int bitField0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001885
1886 // required bytes srcSwId = 1;
Ray Milkey2476cac2014-04-08 11:03:21 -07001887 private com.google.protobuf.ByteString srcSwId = com.google.protobuf.ByteString.EMPTY;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001888 /**
1889 * <code>required bytes srcSwId = 1;</code>
1890 */
1891 public boolean hasSrcSwId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001892 return ((bitField0 & 0x00000001) == 0x00000001);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001893 }
1894 /**
1895 * <code>required bytes srcSwId = 1;</code>
1896 */
1897 public com.google.protobuf.ByteString getSrcSwId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001898 return srcSwId;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001899 }
1900 /**
1901 * <code>required bytes srcSwId = 1;</code>
1902 */
1903 public Builder setSrcSwId(com.google.protobuf.ByteString value) {
1904 if (value == null) {
1905 throw new NullPointerException();
1906 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001907 bitField0 |= 0x00000001;
1908 srcSwId = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001909 onChanged();
1910 return this;
1911 }
1912 /**
1913 * <code>required bytes srcSwId = 1;</code>
1914 */
1915 public Builder clearSrcSwId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001916 bitField0 = (bitField0 & ~0x00000001);
1917 srcSwId = getDefaultInstance().getSrcSwId();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001918 onChanged();
1919 return this;
1920 }
1921
1922 // required bytes srcPortId = 2;
Ray Milkey2476cac2014-04-08 11:03:21 -07001923 private com.google.protobuf.ByteString srcPortId = com.google.protobuf.ByteString.EMPTY;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001924 /**
1925 * <code>required bytes srcPortId = 2;</code>
1926 */
1927 public boolean hasSrcPortId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001928 return ((bitField0 & 0x00000002) == 0x00000002);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001929 }
1930 /**
1931 * <code>required bytes srcPortId = 2;</code>
1932 */
1933 public com.google.protobuf.ByteString getSrcPortId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001934 return srcPortId;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001935 }
1936 /**
1937 * <code>required bytes srcPortId = 2;</code>
1938 */
1939 public Builder setSrcPortId(com.google.protobuf.ByteString value) {
1940 if (value == null) {
1941 throw new NullPointerException();
1942 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001943 bitField0 |= 0x00000002;
1944 srcPortId = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001945 onChanged();
1946 return this;
1947 }
1948 /**
1949 * <code>required bytes srcPortId = 2;</code>
1950 */
1951 public Builder clearSrcPortId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001952 bitField0 = (bitField0 & ~0x00000002);
1953 srcPortId = getDefaultInstance().getSrcPortId();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001954 onChanged();
1955 return this;
1956 }
1957
1958 // required bytes dstSwId = 3;
Ray Milkey2476cac2014-04-08 11:03:21 -07001959 private com.google.protobuf.ByteString dstSwId = com.google.protobuf.ByteString.EMPTY;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001960 /**
1961 * <code>required bytes dstSwId = 3;</code>
1962 */
1963 public boolean hasDstSwId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001964 return ((bitField0 & 0x00000004) == 0x00000004);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001965 }
1966 /**
1967 * <code>required bytes dstSwId = 3;</code>
1968 */
1969 public com.google.protobuf.ByteString getDstSwId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001970 return dstSwId;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001971 }
1972 /**
1973 * <code>required bytes dstSwId = 3;</code>
1974 */
1975 public Builder setDstSwId(com.google.protobuf.ByteString value) {
1976 if (value == null) {
1977 throw new NullPointerException();
1978 }
Ray Milkey2476cac2014-04-08 11:03:21 -07001979 bitField0 |= 0x00000004;
1980 dstSwId = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001981 onChanged();
1982 return this;
1983 }
1984 /**
1985 * <code>required bytes dstSwId = 3;</code>
1986 */
1987 public Builder clearDstSwId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07001988 bitField0 = (bitField0 & ~0x00000004);
1989 dstSwId = getDefaultInstance().getDstSwId();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001990 onChanged();
1991 return this;
1992 }
1993
1994 // required bytes dstPortId = 4;
Ray Milkey2476cac2014-04-08 11:03:21 -07001995 private com.google.protobuf.ByteString dstPortId = com.google.protobuf.ByteString.EMPTY;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07001996 /**
1997 * <code>required bytes dstPortId = 4;</code>
1998 */
1999 public boolean hasDstPortId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07002000 return ((bitField0 & 0x00000008) == 0x00000008);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002001 }
2002 /**
2003 * <code>required bytes dstPortId = 4;</code>
2004 */
2005 public com.google.protobuf.ByteString getDstPortId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07002006 return dstPortId;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002007 }
2008 /**
2009 * <code>required bytes dstPortId = 4;</code>
2010 */
2011 public Builder setDstPortId(com.google.protobuf.ByteString value) {
2012 if (value == null) {
2013 throw new NullPointerException();
2014 }
Ray Milkey2476cac2014-04-08 11:03:21 -07002015 bitField0 |= 0x00000008;
2016 dstPortId = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002017 onChanged();
2018 return this;
2019 }
2020 /**
2021 * <code>required bytes dstPortId = 4;</code>
2022 */
2023 public Builder clearDstPortId() {
Ray Milkey2476cac2014-04-08 11:03:21 -07002024 bitField0 = (bitField0 & ~0x00000008);
2025 dstPortId = getDefaultInstance().getDstPortId();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002026 onChanged();
2027 return this;
2028 }
2029
2030 // required int32 status = 5;
Ray Milkey2476cac2014-04-08 11:03:21 -07002031 private int status;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002032 /**
2033 * <code>required int32 status = 5;</code>
2034 */
2035 public boolean hasStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -07002036 return ((bitField0 & 0x00000010) == 0x00000010);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002037 }
2038 /**
2039 * <code>required int32 status = 5;</code>
2040 */
2041 public int getStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -07002042 return status;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002043 }
2044 /**
2045 * <code>required int32 status = 5;</code>
2046 */
2047 public Builder setStatus(int value) {
Ray Milkey2476cac2014-04-08 11:03:21 -07002048 bitField0 |= 0x00000010;
2049 status = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002050 onChanged();
2051 return this;
2052 }
2053 /**
2054 * <code>required int32 status = 5;</code>
2055 */
2056 public Builder clearStatus() {
Ray Milkey2476cac2014-04-08 11:03:21 -07002057 bitField0 = (bitField0 & ~0x00000010);
2058 status = 0;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002059 onChanged();
2060 return this;
2061 }
2062
2063 // optional bytes value = 6;
Ray Milkey2476cac2014-04-08 11:03:21 -07002064 private com.google.protobuf.ByteString value = com.google.protobuf.ByteString.EMPTY;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002065 /**
2066 * <code>optional bytes value = 6;</code>
2067 */
2068 public boolean hasValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -07002069 return ((bitField0 & 0x00000020) == 0x00000020);
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002070 }
2071 /**
2072 * <code>optional bytes value = 6;</code>
2073 */
2074 public com.google.protobuf.ByteString getValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -07002075 return value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002076 }
2077 /**
2078 * <code>optional bytes value = 6;</code>
2079 */
2080 public Builder setValue(com.google.protobuf.ByteString value) {
2081 if (value == null) {
2082 throw new NullPointerException();
2083 }
Ray Milkey2476cac2014-04-08 11:03:21 -07002084 bitField0 |= 0x00000020;
2085 this.value = value;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002086 onChanged();
2087 return this;
2088 }
2089 /**
2090 * <code>optional bytes value = 6;</code>
2091 */
2092 public Builder clearValue() {
Ray Milkey2476cac2014-04-08 11:03:21 -07002093 bitField0 = (bitField0 & ~0x00000020);
2094 value = getDefaultInstance().getValue();
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002095 onChanged();
2096 return this;
2097 }
2098
2099 // @@protoc_insertion_point(builder_scope:topology.LinkProperty)
2100 }
2101
2102 static {
2103 defaultInstance = new LinkProperty(true);
2104 defaultInstance.initFields();
2105 }
2106
2107 // @@protoc_insertion_point(class_scope:topology.LinkProperty)
2108 }
2109
2110 private static com.google.protobuf.Descriptors.Descriptor
Ray Milkey2476cac2014-04-08 11:03:21 -07002111 internalStaticTopologySwitchPropertyDescriptor;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002112 private static
2113 com.google.protobuf.GeneratedMessage.FieldAccessorTable
Ray Milkey2476cac2014-04-08 11:03:21 -07002114 internalStaticTopologySwitchPropertyFieldAccessorTable;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002115 private static com.google.protobuf.Descriptors.Descriptor
Ray Milkey2476cac2014-04-08 11:03:21 -07002116 internalStaticTopologyPortPropertyDescriptor;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002117 private static
2118 com.google.protobuf.GeneratedMessage.FieldAccessorTable
Ray Milkey2476cac2014-04-08 11:03:21 -07002119 internalStaticTopologyPortPropertyFieldAccessorTable;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002120 private static com.google.protobuf.Descriptors.Descriptor
Ray Milkey2476cac2014-04-08 11:03:21 -07002121 internalStaticTopologyLinkPropertyDescriptor;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002122 private static
2123 com.google.protobuf.GeneratedMessage.FieldAccessorTable
Ray Milkey2476cac2014-04-08 11:03:21 -07002124 internalStaticTopologyLinkPropertyFieldAccessorTable;
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002125
2126 public static com.google.protobuf.Descriptors.FileDescriptor
2127 getDescriptor() {
2128 return descriptor;
2129 }
2130 private static com.google.protobuf.Descriptors.FileDescriptor
2131 descriptor;
2132 static {
2133 java.lang.String[] descriptorData = {
2134 "\n\016topology.proto\022\010topology\"=\n\016SwitchProp" +
2135 "erty\022\014\n\004dpid\030\001 \002(\003\022\016\n\006status\030\002 \002(\005\022\r\n\005va" +
2136 "lue\030\003 \001(\014\"K\n\014PortProperty\022\014\n\004dpid\030\001 \002(\003\022" +
2137 "\016\n\006number\030\002 \002(\003\022\016\n\006status\030\003 \002(\005\022\r\n\005value" +
2138 "\030\004 \001(\014\"u\n\014LinkProperty\022\017\n\007srcSwId\030\001 \002(\014\022" +
2139 "\021\n\tsrcPortId\030\002 \002(\014\022\017\n\007dstSwId\030\003 \002(\014\022\021\n\td" +
2140 "stPortId\030\004 \002(\014\022\016\n\006status\030\005 \002(\005\022\r\n\005value\030" +
2141 "\006 \001(\014B4\n(net.onrc.onos.core.datastore.se" +
2142 "rializersB\010Topology"
2143 };
2144 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
2145 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
2146 public com.google.protobuf.ExtensionRegistry assignDescriptors(
2147 com.google.protobuf.Descriptors.FileDescriptor root) {
2148 descriptor = root;
Ray Milkey2476cac2014-04-08 11:03:21 -07002149 internalStaticTopologySwitchPropertyDescriptor =
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002150 getDescriptor().getMessageTypes().get(0);
Ray Milkey2476cac2014-04-08 11:03:21 -07002151 internalStaticTopologySwitchPropertyFieldAccessorTable = new
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002152 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
Ray Milkey2476cac2014-04-08 11:03:21 -07002153 internalStaticTopologySwitchPropertyDescriptor,
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002154 new java.lang.String[] { "Dpid", "Status", "Value", });
Ray Milkey2476cac2014-04-08 11:03:21 -07002155 internalStaticTopologyPortPropertyDescriptor =
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002156 getDescriptor().getMessageTypes().get(1);
Ray Milkey2476cac2014-04-08 11:03:21 -07002157 internalStaticTopologyPortPropertyFieldAccessorTable = new
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002158 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
Ray Milkey2476cac2014-04-08 11:03:21 -07002159 internalStaticTopologyPortPropertyDescriptor,
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002160 new java.lang.String[] { "Dpid", "Number", "Status", "Value", });
Ray Milkey2476cac2014-04-08 11:03:21 -07002161 internalStaticTopologyLinkPropertyDescriptor =
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002162 getDescriptor().getMessageTypes().get(2);
Ray Milkey2476cac2014-04-08 11:03:21 -07002163 internalStaticTopologyLinkPropertyFieldAccessorTable = new
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002164 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
Ray Milkey2476cac2014-04-08 11:03:21 -07002165 internalStaticTopologyLinkPropertyDescriptor,
Yuta HIGUCHI1cd90292014-04-03 14:31:10 -07002166 new java.lang.String[] { "SrcSwId", "SrcPortId", "DstSwId", "DstPortId", "Status", "Value", });
2167 return null;
2168 }
2169 };
2170 com.google.protobuf.Descriptors.FileDescriptor
2171 .internalBuildGeneratedFileFrom(descriptorData,
2172 new com.google.protobuf.Descriptors.FileDescriptor[] {
2173 }, assigner);
2174 }
2175
2176 // @@protoc_insertion_point(outer_class_scope)
2177}