3 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
11 // Generated by the protocol buffer compiler. DO NOT EDIT!
12 // source: SimpleNormalizedNode.proto
14 package org.opendaylight.controller.protobuff.messages.common;
16 public final class SimpleNormalizedNodeMessage {
17 private SimpleNormalizedNodeMessage() {}
18 public static void registerAllExtensions(
19 com.google.protobuf.ExtensionRegistry registry) {
21 public interface NormalizedNodeXmlOrBuilder
22 extends com.google.protobuf.MessageOrBuilder {
24 // required string nodeIdentifier = 1;
26 * <code>required string nodeIdentifier = 1;</code>
28 boolean hasNodeIdentifier();
30 * <code>required string nodeIdentifier = 1;</code>
32 java.lang.String getNodeIdentifier();
34 * <code>required string nodeIdentifier = 1;</code>
36 com.google.protobuf.ByteString
37 getNodeIdentifierBytes();
39 // required string xmlString = 2;
41 * <code>required string xmlString = 2;</code>
43 boolean hasXmlString();
45 * <code>required string xmlString = 2;</code>
47 java.lang.String getXmlString();
49 * <code>required string xmlString = 2;</code>
51 com.google.protobuf.ByteString
55 * Protobuf type {@code org.opendaylight.controller.mdsal.NormalizedNodeXml}
57 public static final class NormalizedNodeXml extends
58 com.google.protobuf.GeneratedMessage
59 implements NormalizedNodeXmlOrBuilder {
60 // Use NormalizedNodeXml.newBuilder() to construct.
61 private NormalizedNodeXml(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
63 this.unknownFields = builder.getUnknownFields();
65 private NormalizedNodeXml(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
67 private static final NormalizedNodeXml defaultInstance;
68 public static NormalizedNodeXml getDefaultInstance() {
69 return defaultInstance;
72 public NormalizedNodeXml getDefaultInstanceForType() {
73 return defaultInstance;
76 private final com.google.protobuf.UnknownFieldSet unknownFields;
78 public final com.google.protobuf.UnknownFieldSet
80 return this.unknownFields;
82 private NormalizedNodeXml(
83 com.google.protobuf.CodedInputStream input,
84 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
85 throws com.google.protobuf.InvalidProtocolBufferException {
87 int mutable_bitField0_ = 0;
88 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
89 com.google.protobuf.UnknownFieldSet.newBuilder();
93 int tag = input.readTag();
99 if (!parseUnknownField(input, unknownFields,
100 extensionRegistry, tag)) {
106 bitField0_ |= 0x00000001;
107 nodeIdentifier_ = input.readBytes();
111 bitField0_ |= 0x00000002;
112 xmlString_ = input.readBytes();
117 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
118 throw e.setUnfinishedMessage(this);
119 } catch (java.io.IOException e) {
120 throw new com.google.protobuf.InvalidProtocolBufferException(
121 e.getMessage()).setUnfinishedMessage(this);
123 this.unknownFields = unknownFields.build();
124 makeExtensionsImmutable();
127 public static final com.google.protobuf.Descriptors.Descriptor
129 return org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_descriptor;
132 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
133 internalGetFieldAccessorTable() {
134 return org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_fieldAccessorTable
135 .ensureFieldAccessorsInitialized(
136 org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.class, org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.Builder.class);
139 public static com.google.protobuf.Parser<NormalizedNodeXml> PARSER =
140 new com.google.protobuf.AbstractParser<NormalizedNodeXml>() {
141 public NormalizedNodeXml parsePartialFrom(
142 com.google.protobuf.CodedInputStream input,
143 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
144 throws com.google.protobuf.InvalidProtocolBufferException {
145 return new NormalizedNodeXml(input, extensionRegistry);
150 public com.google.protobuf.Parser<NormalizedNodeXml> getParserForType() {
154 private int bitField0_;
155 // required string nodeIdentifier = 1;
156 public static final int NODEIDENTIFIER_FIELD_NUMBER = 1;
157 private java.lang.Object nodeIdentifier_;
159 * <code>required string nodeIdentifier = 1;</code>
161 public boolean hasNodeIdentifier() {
162 return ((bitField0_ & 0x00000001) == 0x00000001);
165 * <code>required string nodeIdentifier = 1;</code>
167 public java.lang.String getNodeIdentifier() {
168 java.lang.Object ref = nodeIdentifier_;
169 if (ref instanceof java.lang.String) {
170 return (java.lang.String) ref;
172 com.google.protobuf.ByteString bs =
173 (com.google.protobuf.ByteString) ref;
174 java.lang.String s = bs.toStringUtf8();
175 if (bs.isValidUtf8()) {
182 * <code>required string nodeIdentifier = 1;</code>
184 public com.google.protobuf.ByteString
185 getNodeIdentifierBytes() {
186 java.lang.Object ref = nodeIdentifier_;
187 if (ref instanceof java.lang.String) {
188 com.google.protobuf.ByteString b =
189 com.google.protobuf.ByteString.copyFromUtf8(
190 (java.lang.String) ref);
194 return (com.google.protobuf.ByteString) ref;
198 // required string xmlString = 2;
199 public static final int XMLSTRING_FIELD_NUMBER = 2;
200 private java.lang.Object xmlString_;
202 * <code>required string xmlString = 2;</code>
204 public boolean hasXmlString() {
205 return ((bitField0_ & 0x00000002) == 0x00000002);
208 * <code>required string xmlString = 2;</code>
210 public java.lang.String getXmlString() {
211 java.lang.Object ref = xmlString_;
212 if (ref instanceof java.lang.String) {
213 return (java.lang.String) ref;
215 com.google.protobuf.ByteString bs =
216 (com.google.protobuf.ByteString) ref;
217 java.lang.String s = bs.toStringUtf8();
218 if (bs.isValidUtf8()) {
225 * <code>required string xmlString = 2;</code>
227 public com.google.protobuf.ByteString
228 getXmlStringBytes() {
229 java.lang.Object ref = xmlString_;
230 if (ref instanceof java.lang.String) {
231 com.google.protobuf.ByteString b =
232 com.google.protobuf.ByteString.copyFromUtf8(
233 (java.lang.String) ref);
237 return (com.google.protobuf.ByteString) ref;
241 private void initFields() {
242 nodeIdentifier_ = "";
245 private byte memoizedIsInitialized = -1;
246 public final boolean isInitialized() {
247 byte isInitialized = memoizedIsInitialized;
248 if (isInitialized != -1) return isInitialized == 1;
250 if (!hasNodeIdentifier()) {
251 memoizedIsInitialized = 0;
254 if (!hasXmlString()) {
255 memoizedIsInitialized = 0;
258 memoizedIsInitialized = 1;
262 public void writeTo(com.google.protobuf.CodedOutputStream output)
263 throws java.io.IOException {
265 if (((bitField0_ & 0x00000001) == 0x00000001)) {
266 output.writeBytes(1, getNodeIdentifierBytes());
268 if (((bitField0_ & 0x00000002) == 0x00000002)) {
269 output.writeBytes(2, getXmlStringBytes());
271 getUnknownFields().writeTo(output);
274 private int memoizedSerializedSize = -1;
275 public int getSerializedSize() {
276 int size = memoizedSerializedSize;
277 if (size != -1) return size;
280 if (((bitField0_ & 0x00000001) == 0x00000001)) {
281 size += com.google.protobuf.CodedOutputStream
282 .computeBytesSize(1, getNodeIdentifierBytes());
284 if (((bitField0_ & 0x00000002) == 0x00000002)) {
285 size += com.google.protobuf.CodedOutputStream
286 .computeBytesSize(2, getXmlStringBytes());
288 size += getUnknownFields().getSerializedSize();
289 memoizedSerializedSize = size;
293 private static final long serialVersionUID = 0L;
295 protected java.lang.Object writeReplace()
296 throws java.io.ObjectStreamException {
297 return super.writeReplace();
300 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(
301 com.google.protobuf.ByteString data)
302 throws com.google.protobuf.InvalidProtocolBufferException {
303 return PARSER.parseFrom(data);
305 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(
306 com.google.protobuf.ByteString data,
307 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
308 throws com.google.protobuf.InvalidProtocolBufferException {
309 return PARSER.parseFrom(data, extensionRegistry);
311 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(byte[] data)
312 throws com.google.protobuf.InvalidProtocolBufferException {
313 return PARSER.parseFrom(data);
315 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(
317 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
318 throws com.google.protobuf.InvalidProtocolBufferException {
319 return PARSER.parseFrom(data, extensionRegistry);
321 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(java.io.InputStream input)
322 throws java.io.IOException {
323 return PARSER.parseFrom(input);
325 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(
326 java.io.InputStream input,
327 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
328 throws java.io.IOException {
329 return PARSER.parseFrom(input, extensionRegistry);
331 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseDelimitedFrom(java.io.InputStream input)
332 throws java.io.IOException {
333 return PARSER.parseDelimitedFrom(input);
335 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseDelimitedFrom(
336 java.io.InputStream input,
337 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
338 throws java.io.IOException {
339 return PARSER.parseDelimitedFrom(input, extensionRegistry);
341 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(
342 com.google.protobuf.CodedInputStream input)
343 throws java.io.IOException {
344 return PARSER.parseFrom(input);
346 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(
347 com.google.protobuf.CodedInputStream input,
348 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
349 throws java.io.IOException {
350 return PARSER.parseFrom(input, extensionRegistry);
353 public static Builder newBuilder() { return Builder.create(); }
354 public Builder newBuilderForType() { return newBuilder(); }
355 public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml prototype) {
356 return newBuilder().mergeFrom(prototype);
358 public Builder toBuilder() { return newBuilder(this); }
361 protected Builder newBuilderForType(
362 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
363 Builder builder = new Builder(parent);
367 * Protobuf type {@code org.opendaylight.controller.mdsal.NormalizedNodeXml}
369 public static final class Builder extends
370 com.google.protobuf.GeneratedMessage.Builder<Builder>
371 implements org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXmlOrBuilder {
372 public static final com.google.protobuf.Descriptors.Descriptor
374 return org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_descriptor;
377 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
378 internalGetFieldAccessorTable() {
379 return org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_fieldAccessorTable
380 .ensureFieldAccessorsInitialized(
381 org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.class, org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.Builder.class);
384 // Construct using org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.newBuilder()
386 maybeForceBuilderInitialization();
390 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
392 maybeForceBuilderInitialization();
394 private void maybeForceBuilderInitialization() {
395 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
398 private static Builder create() {
399 return new Builder();
402 public Builder clear() {
404 nodeIdentifier_ = "";
405 bitField0_ = (bitField0_ & ~0x00000001);
407 bitField0_ = (bitField0_ & ~0x00000002);
411 public Builder clone() {
412 return create().mergeFrom(buildPartial());
415 public com.google.protobuf.Descriptors.Descriptor
416 getDescriptorForType() {
417 return org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_descriptor;
420 public org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml getDefaultInstanceForType() {
421 return org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.getDefaultInstance();
424 public org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml build() {
425 org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml result = buildPartial();
426 if (!result.isInitialized()) {
427 throw newUninitializedMessageException(result);
432 public org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml buildPartial() {
433 org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml result = new org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml(this);
434 int from_bitField0_ = bitField0_;
435 int to_bitField0_ = 0;
436 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
437 to_bitField0_ |= 0x00000001;
439 result.nodeIdentifier_ = nodeIdentifier_;
440 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
441 to_bitField0_ |= 0x00000002;
443 result.xmlString_ = xmlString_;
444 result.bitField0_ = to_bitField0_;
449 public Builder mergeFrom(com.google.protobuf.Message other) {
450 if (other instanceof org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml) {
451 return mergeFrom((org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml)other);
453 super.mergeFrom(other);
458 public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml other) {
459 if (other == org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.getDefaultInstance()) return this;
460 if (other.hasNodeIdentifier()) {
461 bitField0_ |= 0x00000001;
462 nodeIdentifier_ = other.nodeIdentifier_;
465 if (other.hasXmlString()) {
466 bitField0_ |= 0x00000002;
467 xmlString_ = other.xmlString_;
470 this.mergeUnknownFields(other.getUnknownFields());
474 public final boolean isInitialized() {
475 if (!hasNodeIdentifier()) {
479 if (!hasXmlString()) {
486 public Builder mergeFrom(
487 com.google.protobuf.CodedInputStream input,
488 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
489 throws java.io.IOException {
490 org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parsedMessage = null;
492 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
493 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
494 parsedMessage = (org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml) e.getUnfinishedMessage();
497 if (parsedMessage != null) {
498 mergeFrom(parsedMessage);
503 private int bitField0_;
505 // required string nodeIdentifier = 1;
506 private java.lang.Object nodeIdentifier_ = "";
508 * <code>required string nodeIdentifier = 1;</code>
510 public boolean hasNodeIdentifier() {
511 return ((bitField0_ & 0x00000001) == 0x00000001);
514 * <code>required string nodeIdentifier = 1;</code>
516 public java.lang.String getNodeIdentifier() {
517 java.lang.Object ref = nodeIdentifier_;
518 if (!(ref instanceof java.lang.String)) {
519 java.lang.String s = ((com.google.protobuf.ByteString) ref)
524 return (java.lang.String) ref;
528 * <code>required string nodeIdentifier = 1;</code>
530 public com.google.protobuf.ByteString
531 getNodeIdentifierBytes() {
532 java.lang.Object ref = nodeIdentifier_;
533 if (ref instanceof String) {
534 com.google.protobuf.ByteString b =
535 com.google.protobuf.ByteString.copyFromUtf8(
536 (java.lang.String) ref);
540 return (com.google.protobuf.ByteString) ref;
544 * <code>required string nodeIdentifier = 1;</code>
546 public Builder setNodeIdentifier(
547 java.lang.String value) {
549 throw new NullPointerException();
551 bitField0_ |= 0x00000001;
552 nodeIdentifier_ = value;
557 * <code>required string nodeIdentifier = 1;</code>
559 public Builder clearNodeIdentifier() {
560 bitField0_ = (bitField0_ & ~0x00000001);
561 nodeIdentifier_ = getDefaultInstance().getNodeIdentifier();
566 * <code>required string nodeIdentifier = 1;</code>
568 public Builder setNodeIdentifierBytes(
569 com.google.protobuf.ByteString value) {
571 throw new NullPointerException();
573 bitField0_ |= 0x00000001;
574 nodeIdentifier_ = value;
579 // required string xmlString = 2;
580 private java.lang.Object xmlString_ = "";
582 * <code>required string xmlString = 2;</code>
584 public boolean hasXmlString() {
585 return ((bitField0_ & 0x00000002) == 0x00000002);
588 * <code>required string xmlString = 2;</code>
590 public java.lang.String getXmlString() {
591 java.lang.Object ref = xmlString_;
592 if (!(ref instanceof java.lang.String)) {
593 java.lang.String s = ((com.google.protobuf.ByteString) ref)
598 return (java.lang.String) ref;
602 * <code>required string xmlString = 2;</code>
604 public com.google.protobuf.ByteString
605 getXmlStringBytes() {
606 java.lang.Object ref = xmlString_;
607 if (ref instanceof String) {
608 com.google.protobuf.ByteString b =
609 com.google.protobuf.ByteString.copyFromUtf8(
610 (java.lang.String) ref);
614 return (com.google.protobuf.ByteString) ref;
618 * <code>required string xmlString = 2;</code>
620 public Builder setXmlString(
621 java.lang.String value) {
623 throw new NullPointerException();
625 bitField0_ |= 0x00000002;
631 * <code>required string xmlString = 2;</code>
633 public Builder clearXmlString() {
634 bitField0_ = (bitField0_ & ~0x00000002);
635 xmlString_ = getDefaultInstance().getXmlString();
640 * <code>required string xmlString = 2;</code>
642 public Builder setXmlStringBytes(
643 com.google.protobuf.ByteString value) {
645 throw new NullPointerException();
647 bitField0_ |= 0x00000002;
653 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.NormalizedNodeXml)
657 defaultInstance = new NormalizedNodeXml(true);
658 defaultInstance.initFields();
661 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.NormalizedNodeXml)
664 private static com.google.protobuf.Descriptors.Descriptor
665 internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_descriptor;
667 com.google.protobuf.GeneratedMessage.FieldAccessorTable
668 internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_fieldAccessorTable;
670 public static com.google.protobuf.Descriptors.FileDescriptor
674 private static com.google.protobuf.Descriptors.FileDescriptor
677 java.lang.String[] descriptorData = {
678 "\n\032SimpleNormalizedNode.proto\022!org.openda" +
679 "ylight.controller.mdsal\">\n\021NormalizedNod" +
680 "eXml\022\026\n\016nodeIdentifier\030\001 \002(\t\022\021\n\txmlStrin" +
681 "g\030\002 \002(\tBT\n5org.opendaylight.controller.p" +
682 "rotobuff.messages.commonB\033SimpleNormaliz" +
685 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
686 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
687 public com.google.protobuf.ExtensionRegistry assignDescriptors(
688 com.google.protobuf.Descriptors.FileDescriptor root) {
690 internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_descriptor =
691 getDescriptor().getMessageTypes().get(0);
692 internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_fieldAccessorTable = new
693 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
694 internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_descriptor,
695 new java.lang.String[] { "NodeIdentifier", "XmlString", });
699 com.google.protobuf.Descriptors.FileDescriptor
700 .internalBuildGeneratedFileFrom(descriptorData,
701 new com.google.protobuf.Descriptors.FileDescriptor[] {
705 // @@protoc_insertion_point(outer_class_scope)