1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: SimpleNormalizedNode.proto
4 package org.opendaylight.controller.protobuff.messages.common;
6 public final class SimpleNormalizedNodeMessage {
7 private SimpleNormalizedNodeMessage() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
11 public interface NormalizedNodeXmlOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
14 // required string nodeIdentifier = 1;
16 * <code>required string nodeIdentifier = 1;</code>
18 boolean hasNodeIdentifier();
20 * <code>required string nodeIdentifier = 1;</code>
22 java.lang.String getNodeIdentifier();
24 * <code>required string nodeIdentifier = 1;</code>
26 com.google.protobuf.ByteString
27 getNodeIdentifierBytes();
29 // required string xmlString = 2;
31 * <code>required string xmlString = 2;</code>
33 boolean hasXmlString();
35 * <code>required string xmlString = 2;</code>
37 java.lang.String getXmlString();
39 * <code>required string xmlString = 2;</code>
41 com.google.protobuf.ByteString
45 * Protobuf type {@code org.opendaylight.controller.mdsal.NormalizedNodeXml}
47 public static final class NormalizedNodeXml extends
48 com.google.protobuf.GeneratedMessage
49 implements NormalizedNodeXmlOrBuilder {
50 // Use NormalizedNodeXml.newBuilder() to construct.
51 private NormalizedNodeXml(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
53 this.unknownFields = builder.getUnknownFields();
55 private NormalizedNodeXml(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
57 private static final NormalizedNodeXml defaultInstance;
58 public static NormalizedNodeXml getDefaultInstance() {
59 return defaultInstance;
62 public NormalizedNodeXml getDefaultInstanceForType() {
63 return defaultInstance;
66 private final com.google.protobuf.UnknownFieldSet unknownFields;
68 public final com.google.protobuf.UnknownFieldSet
70 return this.unknownFields;
72 private NormalizedNodeXml(
73 com.google.protobuf.CodedInputStream input,
74 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
75 throws com.google.protobuf.InvalidProtocolBufferException {
77 int mutable_bitField0_ = 0;
78 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
79 com.google.protobuf.UnknownFieldSet.newBuilder();
83 int tag = input.readTag();
89 if (!parseUnknownField(input, unknownFields,
90 extensionRegistry, tag)) {
96 bitField0_ |= 0x00000001;
97 nodeIdentifier_ = input.readBytes();
101 bitField0_ |= 0x00000002;
102 xmlString_ = input.readBytes();
107 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
108 throw e.setUnfinishedMessage(this);
109 } catch (java.io.IOException e) {
110 throw new com.google.protobuf.InvalidProtocolBufferException(
111 e.getMessage()).setUnfinishedMessage(this);
113 this.unknownFields = unknownFields.build();
114 makeExtensionsImmutable();
117 public static final com.google.protobuf.Descriptors.Descriptor
119 return org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_descriptor;
122 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
123 internalGetFieldAccessorTable() {
124 return org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_fieldAccessorTable
125 .ensureFieldAccessorsInitialized(
126 org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.class, org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.Builder.class);
129 public static com.google.protobuf.Parser<NormalizedNodeXml> PARSER =
130 new com.google.protobuf.AbstractParser<NormalizedNodeXml>() {
131 public NormalizedNodeXml parsePartialFrom(
132 com.google.protobuf.CodedInputStream input,
133 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
134 throws com.google.protobuf.InvalidProtocolBufferException {
135 return new NormalizedNodeXml(input, extensionRegistry);
140 public com.google.protobuf.Parser<NormalizedNodeXml> getParserForType() {
144 private int bitField0_;
145 // required string nodeIdentifier = 1;
146 public static final int NODEIDENTIFIER_FIELD_NUMBER = 1;
147 private java.lang.Object nodeIdentifier_;
149 * <code>required string nodeIdentifier = 1;</code>
151 public boolean hasNodeIdentifier() {
152 return ((bitField0_ & 0x00000001) == 0x00000001);
155 * <code>required string nodeIdentifier = 1;</code>
157 public java.lang.String getNodeIdentifier() {
158 java.lang.Object ref = nodeIdentifier_;
159 if (ref instanceof java.lang.String) {
160 return (java.lang.String) ref;
162 com.google.protobuf.ByteString bs =
163 (com.google.protobuf.ByteString) ref;
164 java.lang.String s = bs.toStringUtf8();
165 if (bs.isValidUtf8()) {
172 * <code>required string nodeIdentifier = 1;</code>
174 public com.google.protobuf.ByteString
175 getNodeIdentifierBytes() {
176 java.lang.Object ref = nodeIdentifier_;
177 if (ref instanceof java.lang.String) {
178 com.google.protobuf.ByteString b =
179 com.google.protobuf.ByteString.copyFromUtf8(
180 (java.lang.String) ref);
184 return (com.google.protobuf.ByteString) ref;
188 // required string xmlString = 2;
189 public static final int XMLSTRING_FIELD_NUMBER = 2;
190 private java.lang.Object xmlString_;
192 * <code>required string xmlString = 2;</code>
194 public boolean hasXmlString() {
195 return ((bitField0_ & 0x00000002) == 0x00000002);
198 * <code>required string xmlString = 2;</code>
200 public java.lang.String getXmlString() {
201 java.lang.Object ref = xmlString_;
202 if (ref instanceof java.lang.String) {
203 return (java.lang.String) ref;
205 com.google.protobuf.ByteString bs =
206 (com.google.protobuf.ByteString) ref;
207 java.lang.String s = bs.toStringUtf8();
208 if (bs.isValidUtf8()) {
215 * <code>required string xmlString = 2;</code>
217 public com.google.protobuf.ByteString
218 getXmlStringBytes() {
219 java.lang.Object ref = xmlString_;
220 if (ref instanceof java.lang.String) {
221 com.google.protobuf.ByteString b =
222 com.google.protobuf.ByteString.copyFromUtf8(
223 (java.lang.String) ref);
227 return (com.google.protobuf.ByteString) ref;
231 private void initFields() {
232 nodeIdentifier_ = "";
235 private byte memoizedIsInitialized = -1;
236 public final boolean isInitialized() {
237 byte isInitialized = memoizedIsInitialized;
238 if (isInitialized != -1) return isInitialized == 1;
240 if (!hasNodeIdentifier()) {
241 memoizedIsInitialized = 0;
244 if (!hasXmlString()) {
245 memoizedIsInitialized = 0;
248 memoizedIsInitialized = 1;
252 public void writeTo(com.google.protobuf.CodedOutputStream output)
253 throws java.io.IOException {
255 if (((bitField0_ & 0x00000001) == 0x00000001)) {
256 output.writeBytes(1, getNodeIdentifierBytes());
258 if (((bitField0_ & 0x00000002) == 0x00000002)) {
259 output.writeBytes(2, getXmlStringBytes());
261 getUnknownFields().writeTo(output);
264 private int memoizedSerializedSize = -1;
265 public int getSerializedSize() {
266 int size = memoizedSerializedSize;
267 if (size != -1) return size;
270 if (((bitField0_ & 0x00000001) == 0x00000001)) {
271 size += com.google.protobuf.CodedOutputStream
272 .computeBytesSize(1, getNodeIdentifierBytes());
274 if (((bitField0_ & 0x00000002) == 0x00000002)) {
275 size += com.google.protobuf.CodedOutputStream
276 .computeBytesSize(2, getXmlStringBytes());
278 size += getUnknownFields().getSerializedSize();
279 memoizedSerializedSize = size;
283 private static final long serialVersionUID = 0L;
285 protected java.lang.Object writeReplace()
286 throws java.io.ObjectStreamException {
287 return super.writeReplace();
290 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(
291 com.google.protobuf.ByteString data)
292 throws com.google.protobuf.InvalidProtocolBufferException {
293 return PARSER.parseFrom(data);
295 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(
296 com.google.protobuf.ByteString data,
297 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
298 throws com.google.protobuf.InvalidProtocolBufferException {
299 return PARSER.parseFrom(data, extensionRegistry);
301 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(byte[] data)
302 throws com.google.protobuf.InvalidProtocolBufferException {
303 return PARSER.parseFrom(data);
305 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(
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(java.io.InputStream input)
312 throws java.io.IOException {
313 return PARSER.parseFrom(input);
315 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(
316 java.io.InputStream input,
317 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
318 throws java.io.IOException {
319 return PARSER.parseFrom(input, extensionRegistry);
321 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseDelimitedFrom(java.io.InputStream input)
322 throws java.io.IOException {
323 return PARSER.parseDelimitedFrom(input);
325 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseDelimitedFrom(
326 java.io.InputStream input,
327 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
328 throws java.io.IOException {
329 return PARSER.parseDelimitedFrom(input, extensionRegistry);
331 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(
332 com.google.protobuf.CodedInputStream input)
333 throws java.io.IOException {
334 return PARSER.parseFrom(input);
336 public static org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parseFrom(
337 com.google.protobuf.CodedInputStream input,
338 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
339 throws java.io.IOException {
340 return PARSER.parseFrom(input, extensionRegistry);
343 public static Builder newBuilder() { return Builder.create(); }
344 public Builder newBuilderForType() { return newBuilder(); }
345 public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml prototype) {
346 return newBuilder().mergeFrom(prototype);
348 public Builder toBuilder() { return newBuilder(this); }
351 protected Builder newBuilderForType(
352 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
353 Builder builder = new Builder(parent);
357 * Protobuf type {@code org.opendaylight.controller.mdsal.NormalizedNodeXml}
359 public static final class Builder extends
360 com.google.protobuf.GeneratedMessage.Builder<Builder>
361 implements org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXmlOrBuilder {
362 public static final com.google.protobuf.Descriptors.Descriptor
364 return org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_descriptor;
367 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
368 internalGetFieldAccessorTable() {
369 return org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_fieldAccessorTable
370 .ensureFieldAccessorsInitialized(
371 org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.class, org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.Builder.class);
374 // Construct using org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.newBuilder()
376 maybeForceBuilderInitialization();
380 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
382 maybeForceBuilderInitialization();
384 private void maybeForceBuilderInitialization() {
385 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
388 private static Builder create() {
389 return new Builder();
392 public Builder clear() {
394 nodeIdentifier_ = "";
395 bitField0_ = (bitField0_ & ~0x00000001);
397 bitField0_ = (bitField0_ & ~0x00000002);
401 public Builder clone() {
402 return create().mergeFrom(buildPartial());
405 public com.google.protobuf.Descriptors.Descriptor
406 getDescriptorForType() {
407 return org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_descriptor;
410 public org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml getDefaultInstanceForType() {
411 return org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.getDefaultInstance();
414 public org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml build() {
415 org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml result = buildPartial();
416 if (!result.isInitialized()) {
417 throw newUninitializedMessageException(result);
422 public org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml buildPartial() {
423 org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml result = new org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml(this);
424 int from_bitField0_ = bitField0_;
425 int to_bitField0_ = 0;
426 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
427 to_bitField0_ |= 0x00000001;
429 result.nodeIdentifier_ = nodeIdentifier_;
430 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
431 to_bitField0_ |= 0x00000002;
433 result.xmlString_ = xmlString_;
434 result.bitField0_ = to_bitField0_;
439 public Builder mergeFrom(com.google.protobuf.Message other) {
440 if (other instanceof org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml) {
441 return mergeFrom((org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml)other);
443 super.mergeFrom(other);
448 public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml other) {
449 if (other == org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml.getDefaultInstance()) return this;
450 if (other.hasNodeIdentifier()) {
451 bitField0_ |= 0x00000001;
452 nodeIdentifier_ = other.nodeIdentifier_;
455 if (other.hasXmlString()) {
456 bitField0_ |= 0x00000002;
457 xmlString_ = other.xmlString_;
460 this.mergeUnknownFields(other.getUnknownFields());
464 public final boolean isInitialized() {
465 if (!hasNodeIdentifier()) {
469 if (!hasXmlString()) {
476 public Builder mergeFrom(
477 com.google.protobuf.CodedInputStream input,
478 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
479 throws java.io.IOException {
480 org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml parsedMessage = null;
482 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
483 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
484 parsedMessage = (org.opendaylight.controller.protobuff.messages.common.SimpleNormalizedNodeMessage.NormalizedNodeXml) e.getUnfinishedMessage();
487 if (parsedMessage != null) {
488 mergeFrom(parsedMessage);
493 private int bitField0_;
495 // required string nodeIdentifier = 1;
496 private java.lang.Object nodeIdentifier_ = "";
498 * <code>required string nodeIdentifier = 1;</code>
500 public boolean hasNodeIdentifier() {
501 return ((bitField0_ & 0x00000001) == 0x00000001);
504 * <code>required string nodeIdentifier = 1;</code>
506 public java.lang.String getNodeIdentifier() {
507 java.lang.Object ref = nodeIdentifier_;
508 if (!(ref instanceof java.lang.String)) {
509 java.lang.String s = ((com.google.protobuf.ByteString) ref)
514 return (java.lang.String) ref;
518 * <code>required string nodeIdentifier = 1;</code>
520 public com.google.protobuf.ByteString
521 getNodeIdentifierBytes() {
522 java.lang.Object ref = nodeIdentifier_;
523 if (ref instanceof String) {
524 com.google.protobuf.ByteString b =
525 com.google.protobuf.ByteString.copyFromUtf8(
526 (java.lang.String) ref);
530 return (com.google.protobuf.ByteString) ref;
534 * <code>required string nodeIdentifier = 1;</code>
536 public Builder setNodeIdentifier(
537 java.lang.String value) {
539 throw new NullPointerException();
541 bitField0_ |= 0x00000001;
542 nodeIdentifier_ = value;
547 * <code>required string nodeIdentifier = 1;</code>
549 public Builder clearNodeIdentifier() {
550 bitField0_ = (bitField0_ & ~0x00000001);
551 nodeIdentifier_ = getDefaultInstance().getNodeIdentifier();
556 * <code>required string nodeIdentifier = 1;</code>
558 public Builder setNodeIdentifierBytes(
559 com.google.protobuf.ByteString value) {
561 throw new NullPointerException();
563 bitField0_ |= 0x00000001;
564 nodeIdentifier_ = value;
569 // required string xmlString = 2;
570 private java.lang.Object xmlString_ = "";
572 * <code>required string xmlString = 2;</code>
574 public boolean hasXmlString() {
575 return ((bitField0_ & 0x00000002) == 0x00000002);
578 * <code>required string xmlString = 2;</code>
580 public java.lang.String getXmlString() {
581 java.lang.Object ref = xmlString_;
582 if (!(ref instanceof java.lang.String)) {
583 java.lang.String s = ((com.google.protobuf.ByteString) ref)
588 return (java.lang.String) ref;
592 * <code>required string xmlString = 2;</code>
594 public com.google.protobuf.ByteString
595 getXmlStringBytes() {
596 java.lang.Object ref = xmlString_;
597 if (ref instanceof String) {
598 com.google.protobuf.ByteString b =
599 com.google.protobuf.ByteString.copyFromUtf8(
600 (java.lang.String) ref);
604 return (com.google.protobuf.ByteString) ref;
608 * <code>required string xmlString = 2;</code>
610 public Builder setXmlString(
611 java.lang.String value) {
613 throw new NullPointerException();
615 bitField0_ |= 0x00000002;
621 * <code>required string xmlString = 2;</code>
623 public Builder clearXmlString() {
624 bitField0_ = (bitField0_ & ~0x00000002);
625 xmlString_ = getDefaultInstance().getXmlString();
630 * <code>required string xmlString = 2;</code>
632 public Builder setXmlStringBytes(
633 com.google.protobuf.ByteString value) {
635 throw new NullPointerException();
637 bitField0_ |= 0x00000002;
643 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.NormalizedNodeXml)
647 defaultInstance = new NormalizedNodeXml(true);
648 defaultInstance.initFields();
651 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.NormalizedNodeXml)
654 private static com.google.protobuf.Descriptors.Descriptor
655 internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_descriptor;
657 com.google.protobuf.GeneratedMessage.FieldAccessorTable
658 internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_fieldAccessorTable;
660 public static com.google.protobuf.Descriptors.FileDescriptor
664 private static com.google.protobuf.Descriptors.FileDescriptor
667 java.lang.String[] descriptorData = {
668 "\n\032SimpleNormalizedNode.proto\022!org.openda" +
669 "ylight.controller.mdsal\">\n\021NormalizedNod" +
670 "eXml\022\026\n\016nodeIdentifier\030\001 \002(\t\022\021\n\txmlStrin" +
671 "g\030\002 \002(\tBT\n5org.opendaylight.controller.p" +
672 "rotobuff.messages.commonB\033SimpleNormaliz" +
675 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
676 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
677 public com.google.protobuf.ExtensionRegistry assignDescriptors(
678 com.google.protobuf.Descriptors.FileDescriptor root) {
680 internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_descriptor =
681 getDescriptor().getMessageTypes().get(0);
682 internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_fieldAccessorTable = new
683 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
684 internal_static_org_opendaylight_controller_mdsal_NormalizedNodeXml_descriptor,
685 new java.lang.String[] { "NodeIdentifier", "XmlString", });
689 com.google.protobuf.Descriptors.FileDescriptor
690 .internalBuildGeneratedFileFrom(descriptorData,
691 new com.google.protobuf.Descriptors.FileDescriptor[] {
695 // @@protoc_insertion_point(outer_class_scope)