1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ShardTransaction.proto
4 package org.opendaylight.controller.protobuff.messages.transaction;
6 public final class ShardTransactionMessages {
7 private ShardTransactionMessages() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
11 public interface CloseTransactionOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
15 * Protobuf type {@code org.opendaylight.controller.mdsal.CloseTransaction}
17 public static final class CloseTransaction extends
18 com.google.protobuf.GeneratedMessage
19 implements CloseTransactionOrBuilder {
20 // Use CloseTransaction.newBuilder() to construct.
21 private CloseTransaction(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
23 this.unknownFields = builder.getUnknownFields();
25 private CloseTransaction(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
27 private static final CloseTransaction defaultInstance;
28 public static CloseTransaction getDefaultInstance() {
29 return defaultInstance;
32 public CloseTransaction getDefaultInstanceForType() {
33 return defaultInstance;
36 private final com.google.protobuf.UnknownFieldSet unknownFields;
38 public final com.google.protobuf.UnknownFieldSet
40 return this.unknownFields;
42 private CloseTransaction(
43 com.google.protobuf.CodedInputStream input,
44 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
45 throws com.google.protobuf.InvalidProtocolBufferException {
47 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
48 com.google.protobuf.UnknownFieldSet.newBuilder();
52 int tag = input.readTag();
58 if (!parseUnknownField(input, unknownFields,
59 extensionRegistry, tag)) {
66 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
67 throw e.setUnfinishedMessage(this);
68 } catch (java.io.IOException e) {
69 throw new com.google.protobuf.InvalidProtocolBufferException(
70 e.getMessage()).setUnfinishedMessage(this);
72 this.unknownFields = unknownFields.build();
73 makeExtensionsImmutable();
76 public static final com.google.protobuf.Descriptors.Descriptor
78 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CloseTransaction_descriptor;
81 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
82 internalGetFieldAccessorTable() {
83 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CloseTransaction_fieldAccessorTable
84 .ensureFieldAccessorsInitialized(
85 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction.class, org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction.Builder.class);
88 public static com.google.protobuf.Parser<CloseTransaction> PARSER =
89 new com.google.protobuf.AbstractParser<CloseTransaction>() {
90 public CloseTransaction parsePartialFrom(
91 com.google.protobuf.CodedInputStream input,
92 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
93 throws com.google.protobuf.InvalidProtocolBufferException {
94 return new CloseTransaction(input, extensionRegistry);
99 public com.google.protobuf.Parser<CloseTransaction> getParserForType() {
103 private void initFields() {
105 private byte memoizedIsInitialized = -1;
106 public final boolean isInitialized() {
107 byte isInitialized = memoizedIsInitialized;
108 if (isInitialized != -1) return isInitialized == 1;
110 memoizedIsInitialized = 1;
114 public void writeTo(com.google.protobuf.CodedOutputStream output)
115 throws java.io.IOException {
117 getUnknownFields().writeTo(output);
120 private int memoizedSerializedSize = -1;
121 public int getSerializedSize() {
122 int size = memoizedSerializedSize;
123 if (size != -1) return size;
126 size += getUnknownFields().getSerializedSize();
127 memoizedSerializedSize = size;
131 private static final long serialVersionUID = 0L;
133 protected java.lang.Object writeReplace()
134 throws java.io.ObjectStreamException {
135 return super.writeReplace();
138 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction parseFrom(
139 com.google.protobuf.ByteString data)
140 throws com.google.protobuf.InvalidProtocolBufferException {
141 return PARSER.parseFrom(data);
143 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction parseFrom(
144 com.google.protobuf.ByteString data,
145 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
146 throws com.google.protobuf.InvalidProtocolBufferException {
147 return PARSER.parseFrom(data, extensionRegistry);
149 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction parseFrom(byte[] data)
150 throws com.google.protobuf.InvalidProtocolBufferException {
151 return PARSER.parseFrom(data);
153 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction parseFrom(
155 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
156 throws com.google.protobuf.InvalidProtocolBufferException {
157 return PARSER.parseFrom(data, extensionRegistry);
159 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction parseFrom(java.io.InputStream input)
160 throws java.io.IOException {
161 return PARSER.parseFrom(input);
163 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction parseFrom(
164 java.io.InputStream input,
165 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
166 throws java.io.IOException {
167 return PARSER.parseFrom(input, extensionRegistry);
169 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction parseDelimitedFrom(java.io.InputStream input)
170 throws java.io.IOException {
171 return PARSER.parseDelimitedFrom(input);
173 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction parseDelimitedFrom(
174 java.io.InputStream input,
175 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
176 throws java.io.IOException {
177 return PARSER.parseDelimitedFrom(input, extensionRegistry);
179 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction parseFrom(
180 com.google.protobuf.CodedInputStream input)
181 throws java.io.IOException {
182 return PARSER.parseFrom(input);
184 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction parseFrom(
185 com.google.protobuf.CodedInputStream input,
186 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
187 throws java.io.IOException {
188 return PARSER.parseFrom(input, extensionRegistry);
191 public static Builder newBuilder() { return Builder.create(); }
192 public Builder newBuilderForType() { return newBuilder(); }
193 public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction prototype) {
194 return newBuilder().mergeFrom(prototype);
196 public Builder toBuilder() { return newBuilder(this); }
199 protected Builder newBuilderForType(
200 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
201 Builder builder = new Builder(parent);
205 * Protobuf type {@code org.opendaylight.controller.mdsal.CloseTransaction}
207 public static final class Builder extends
208 com.google.protobuf.GeneratedMessage.Builder<Builder>
209 implements org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionOrBuilder {
210 public static final com.google.protobuf.Descriptors.Descriptor
212 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CloseTransaction_descriptor;
215 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
216 internalGetFieldAccessorTable() {
217 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CloseTransaction_fieldAccessorTable
218 .ensureFieldAccessorsInitialized(
219 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction.class, org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction.Builder.class);
222 // Construct using org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction.newBuilder()
224 maybeForceBuilderInitialization();
228 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
230 maybeForceBuilderInitialization();
232 private void maybeForceBuilderInitialization() {
233 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
236 private static Builder create() {
237 return new Builder();
240 public Builder clear() {
245 public Builder clone() {
246 return create().mergeFrom(buildPartial());
249 public com.google.protobuf.Descriptors.Descriptor
250 getDescriptorForType() {
251 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CloseTransaction_descriptor;
254 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction getDefaultInstanceForType() {
255 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction.getDefaultInstance();
258 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction build() {
259 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction result = buildPartial();
260 if (!result.isInitialized()) {
261 throw newUninitializedMessageException(result);
266 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction buildPartial() {
267 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction result = new org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction(this);
272 public Builder mergeFrom(com.google.protobuf.Message other) {
273 if (other instanceof org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction) {
274 return mergeFrom((org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction)other);
276 super.mergeFrom(other);
281 public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction other) {
282 if (other == org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction.getDefaultInstance()) return this;
283 this.mergeUnknownFields(other.getUnknownFields());
287 public final boolean isInitialized() {
291 public Builder mergeFrom(
292 com.google.protobuf.CodedInputStream input,
293 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
294 throws java.io.IOException {
295 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction parsedMessage = null;
297 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
298 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
299 parsedMessage = (org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransaction) e.getUnfinishedMessage();
302 if (parsedMessage != null) {
303 mergeFrom(parsedMessage);
309 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.CloseTransaction)
313 defaultInstance = new CloseTransaction(true);
314 defaultInstance.initFields();
317 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.CloseTransaction)
320 public interface CloseTransactionReplyOrBuilder
321 extends com.google.protobuf.MessageOrBuilder {
324 * Protobuf type {@code org.opendaylight.controller.mdsal.CloseTransactionReply}
326 public static final class CloseTransactionReply extends
327 com.google.protobuf.GeneratedMessage
328 implements CloseTransactionReplyOrBuilder {
329 // Use CloseTransactionReply.newBuilder() to construct.
330 private CloseTransactionReply(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
332 this.unknownFields = builder.getUnknownFields();
334 private CloseTransactionReply(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
336 private static final CloseTransactionReply defaultInstance;
337 public static CloseTransactionReply getDefaultInstance() {
338 return defaultInstance;
341 public CloseTransactionReply getDefaultInstanceForType() {
342 return defaultInstance;
345 private final com.google.protobuf.UnknownFieldSet unknownFields;
347 public final com.google.protobuf.UnknownFieldSet
349 return this.unknownFields;
351 private CloseTransactionReply(
352 com.google.protobuf.CodedInputStream input,
353 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
354 throws com.google.protobuf.InvalidProtocolBufferException {
356 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
357 com.google.protobuf.UnknownFieldSet.newBuilder();
359 boolean done = false;
361 int tag = input.readTag();
367 if (!parseUnknownField(input, unknownFields,
368 extensionRegistry, tag)) {
375 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
376 throw e.setUnfinishedMessage(this);
377 } catch (java.io.IOException e) {
378 throw new com.google.protobuf.InvalidProtocolBufferException(
379 e.getMessage()).setUnfinishedMessage(this);
381 this.unknownFields = unknownFields.build();
382 makeExtensionsImmutable();
385 public static final com.google.protobuf.Descriptors.Descriptor
387 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CloseTransactionReply_descriptor;
390 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
391 internalGetFieldAccessorTable() {
392 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CloseTransactionReply_fieldAccessorTable
393 .ensureFieldAccessorsInitialized(
394 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply.class, org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply.Builder.class);
397 public static com.google.protobuf.Parser<CloseTransactionReply> PARSER =
398 new com.google.protobuf.AbstractParser<CloseTransactionReply>() {
399 public CloseTransactionReply parsePartialFrom(
400 com.google.protobuf.CodedInputStream input,
401 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
402 throws com.google.protobuf.InvalidProtocolBufferException {
403 return new CloseTransactionReply(input, extensionRegistry);
408 public com.google.protobuf.Parser<CloseTransactionReply> getParserForType() {
412 private void initFields() {
414 private byte memoizedIsInitialized = -1;
415 public final boolean isInitialized() {
416 byte isInitialized = memoizedIsInitialized;
417 if (isInitialized != -1) return isInitialized == 1;
419 memoizedIsInitialized = 1;
423 public void writeTo(com.google.protobuf.CodedOutputStream output)
424 throws java.io.IOException {
426 getUnknownFields().writeTo(output);
429 private int memoizedSerializedSize = -1;
430 public int getSerializedSize() {
431 int size = memoizedSerializedSize;
432 if (size != -1) return size;
435 size += getUnknownFields().getSerializedSize();
436 memoizedSerializedSize = size;
440 private static final long serialVersionUID = 0L;
442 protected java.lang.Object writeReplace()
443 throws java.io.ObjectStreamException {
444 return super.writeReplace();
447 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply parseFrom(
448 com.google.protobuf.ByteString data)
449 throws com.google.protobuf.InvalidProtocolBufferException {
450 return PARSER.parseFrom(data);
452 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply parseFrom(
453 com.google.protobuf.ByteString data,
454 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
455 throws com.google.protobuf.InvalidProtocolBufferException {
456 return PARSER.parseFrom(data, extensionRegistry);
458 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply parseFrom(byte[] data)
459 throws com.google.protobuf.InvalidProtocolBufferException {
460 return PARSER.parseFrom(data);
462 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply parseFrom(
464 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
465 throws com.google.protobuf.InvalidProtocolBufferException {
466 return PARSER.parseFrom(data, extensionRegistry);
468 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply parseFrom(java.io.InputStream input)
469 throws java.io.IOException {
470 return PARSER.parseFrom(input);
472 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply parseFrom(
473 java.io.InputStream input,
474 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
475 throws java.io.IOException {
476 return PARSER.parseFrom(input, extensionRegistry);
478 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply parseDelimitedFrom(java.io.InputStream input)
479 throws java.io.IOException {
480 return PARSER.parseDelimitedFrom(input);
482 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply parseDelimitedFrom(
483 java.io.InputStream input,
484 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
485 throws java.io.IOException {
486 return PARSER.parseDelimitedFrom(input, extensionRegistry);
488 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply parseFrom(
489 com.google.protobuf.CodedInputStream input)
490 throws java.io.IOException {
491 return PARSER.parseFrom(input);
493 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply parseFrom(
494 com.google.protobuf.CodedInputStream input,
495 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
496 throws java.io.IOException {
497 return PARSER.parseFrom(input, extensionRegistry);
500 public static Builder newBuilder() { return Builder.create(); }
501 public Builder newBuilderForType() { return newBuilder(); }
502 public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply prototype) {
503 return newBuilder().mergeFrom(prototype);
505 public Builder toBuilder() { return newBuilder(this); }
508 protected Builder newBuilderForType(
509 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
510 Builder builder = new Builder(parent);
514 * Protobuf type {@code org.opendaylight.controller.mdsal.CloseTransactionReply}
516 public static final class Builder extends
517 com.google.protobuf.GeneratedMessage.Builder<Builder>
518 implements org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReplyOrBuilder {
519 public static final com.google.protobuf.Descriptors.Descriptor
521 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CloseTransactionReply_descriptor;
524 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
525 internalGetFieldAccessorTable() {
526 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CloseTransactionReply_fieldAccessorTable
527 .ensureFieldAccessorsInitialized(
528 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply.class, org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply.Builder.class);
531 // Construct using org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply.newBuilder()
533 maybeForceBuilderInitialization();
537 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
539 maybeForceBuilderInitialization();
541 private void maybeForceBuilderInitialization() {
542 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
545 private static Builder create() {
546 return new Builder();
549 public Builder clear() {
554 public Builder clone() {
555 return create().mergeFrom(buildPartial());
558 public com.google.protobuf.Descriptors.Descriptor
559 getDescriptorForType() {
560 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CloseTransactionReply_descriptor;
563 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply getDefaultInstanceForType() {
564 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply.getDefaultInstance();
567 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply build() {
568 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply result = buildPartial();
569 if (!result.isInitialized()) {
570 throw newUninitializedMessageException(result);
575 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply buildPartial() {
576 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply result = new org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply(this);
581 public Builder mergeFrom(com.google.protobuf.Message other) {
582 if (other instanceof org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply) {
583 return mergeFrom((org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply)other);
585 super.mergeFrom(other);
590 public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply other) {
591 if (other == org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply.getDefaultInstance()) return this;
592 this.mergeUnknownFields(other.getUnknownFields());
596 public final boolean isInitialized() {
600 public Builder mergeFrom(
601 com.google.protobuf.CodedInputStream input,
602 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
603 throws java.io.IOException {
604 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply parsedMessage = null;
606 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
607 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
608 parsedMessage = (org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CloseTransactionReply) e.getUnfinishedMessage();
611 if (parsedMessage != null) {
612 mergeFrom(parsedMessage);
618 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.CloseTransactionReply)
622 defaultInstance = new CloseTransactionReply(true);
623 defaultInstance.initFields();
626 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.CloseTransactionReply)
629 public interface CreateTransactionOrBuilder
630 extends com.google.protobuf.MessageOrBuilder {
632 // required string transactionId = 1;
634 * <code>required string transactionId = 1;</code>
636 boolean hasTransactionId();
638 * <code>required string transactionId = 1;</code>
640 java.lang.String getTransactionId();
642 * <code>required string transactionId = 1;</code>
644 com.google.protobuf.ByteString
645 getTransactionIdBytes();
647 // required int32 transactionType = 2;
649 * <code>required int32 transactionType = 2;</code>
651 boolean hasTransactionType();
653 * <code>required int32 transactionType = 2;</code>
655 int getTransactionType();
657 // optional string transactionChainId = 3;
659 * <code>optional string transactionChainId = 3;</code>
661 boolean hasTransactionChainId();
663 * <code>optional string transactionChainId = 3;</code>
665 java.lang.String getTransactionChainId();
667 * <code>optional string transactionChainId = 3;</code>
669 com.google.protobuf.ByteString
670 getTransactionChainIdBytes();
672 // optional int32 messageVersion = 4;
674 * <code>optional int32 messageVersion = 4;</code>
676 boolean hasMessageVersion();
678 * <code>optional int32 messageVersion = 4;</code>
680 int getMessageVersion();
683 * Protobuf type {@code org.opendaylight.controller.mdsal.CreateTransaction}
685 public static final class CreateTransaction extends
686 com.google.protobuf.GeneratedMessage
687 implements CreateTransactionOrBuilder {
688 // Use CreateTransaction.newBuilder() to construct.
689 private CreateTransaction(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
691 this.unknownFields = builder.getUnknownFields();
693 private CreateTransaction(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
695 private static final CreateTransaction defaultInstance;
696 public static CreateTransaction getDefaultInstance() {
697 return defaultInstance;
700 public CreateTransaction getDefaultInstanceForType() {
701 return defaultInstance;
704 private final com.google.protobuf.UnknownFieldSet unknownFields;
706 public final com.google.protobuf.UnknownFieldSet
708 return this.unknownFields;
710 private CreateTransaction(
711 com.google.protobuf.CodedInputStream input,
712 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
713 throws com.google.protobuf.InvalidProtocolBufferException {
715 int mutable_bitField0_ = 0;
716 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
717 com.google.protobuf.UnknownFieldSet.newBuilder();
719 boolean done = false;
721 int tag = input.readTag();
727 if (!parseUnknownField(input, unknownFields,
728 extensionRegistry, tag)) {
734 bitField0_ |= 0x00000001;
735 transactionId_ = input.readBytes();
739 bitField0_ |= 0x00000002;
740 transactionType_ = input.readInt32();
744 bitField0_ |= 0x00000004;
745 transactionChainId_ = input.readBytes();
749 bitField0_ |= 0x00000008;
750 messageVersion_ = input.readInt32();
755 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
756 throw e.setUnfinishedMessage(this);
757 } catch (java.io.IOException e) {
758 throw new com.google.protobuf.InvalidProtocolBufferException(
759 e.getMessage()).setUnfinishedMessage(this);
761 this.unknownFields = unknownFields.build();
762 makeExtensionsImmutable();
765 public static final com.google.protobuf.Descriptors.Descriptor
767 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CreateTransaction_descriptor;
770 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
771 internalGetFieldAccessorTable() {
772 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CreateTransaction_fieldAccessorTable
773 .ensureFieldAccessorsInitialized(
774 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction.class, org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction.Builder.class);
777 public static com.google.protobuf.Parser<CreateTransaction> PARSER =
778 new com.google.protobuf.AbstractParser<CreateTransaction>() {
779 public CreateTransaction parsePartialFrom(
780 com.google.protobuf.CodedInputStream input,
781 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
782 throws com.google.protobuf.InvalidProtocolBufferException {
783 return new CreateTransaction(input, extensionRegistry);
788 public com.google.protobuf.Parser<CreateTransaction> getParserForType() {
792 private int bitField0_;
793 // required string transactionId = 1;
794 public static final int TRANSACTIONID_FIELD_NUMBER = 1;
795 private java.lang.Object transactionId_;
797 * <code>required string transactionId = 1;</code>
799 public boolean hasTransactionId() {
800 return ((bitField0_ & 0x00000001) == 0x00000001);
803 * <code>required string transactionId = 1;</code>
805 public java.lang.String getTransactionId() {
806 java.lang.Object ref = transactionId_;
807 if (ref instanceof java.lang.String) {
808 return (java.lang.String) ref;
810 com.google.protobuf.ByteString bs =
811 (com.google.protobuf.ByteString) ref;
812 java.lang.String s = bs.toStringUtf8();
813 if (bs.isValidUtf8()) {
820 * <code>required string transactionId = 1;</code>
822 public com.google.protobuf.ByteString
823 getTransactionIdBytes() {
824 java.lang.Object ref = transactionId_;
825 if (ref instanceof java.lang.String) {
826 com.google.protobuf.ByteString b =
827 com.google.protobuf.ByteString.copyFromUtf8(
828 (java.lang.String) ref);
832 return (com.google.protobuf.ByteString) ref;
836 // required int32 transactionType = 2;
837 public static final int TRANSACTIONTYPE_FIELD_NUMBER = 2;
838 private int transactionType_;
840 * <code>required int32 transactionType = 2;</code>
842 public boolean hasTransactionType() {
843 return ((bitField0_ & 0x00000002) == 0x00000002);
846 * <code>required int32 transactionType = 2;</code>
848 public int getTransactionType() {
849 return transactionType_;
852 // optional string transactionChainId = 3;
853 public static final int TRANSACTIONCHAINID_FIELD_NUMBER = 3;
854 private java.lang.Object transactionChainId_;
856 * <code>optional string transactionChainId = 3;</code>
858 public boolean hasTransactionChainId() {
859 return ((bitField0_ & 0x00000004) == 0x00000004);
862 * <code>optional string transactionChainId = 3;</code>
864 public java.lang.String getTransactionChainId() {
865 java.lang.Object ref = transactionChainId_;
866 if (ref instanceof java.lang.String) {
867 return (java.lang.String) ref;
869 com.google.protobuf.ByteString bs =
870 (com.google.protobuf.ByteString) ref;
871 java.lang.String s = bs.toStringUtf8();
872 if (bs.isValidUtf8()) {
873 transactionChainId_ = s;
879 * <code>optional string transactionChainId = 3;</code>
881 public com.google.protobuf.ByteString
882 getTransactionChainIdBytes() {
883 java.lang.Object ref = transactionChainId_;
884 if (ref instanceof java.lang.String) {
885 com.google.protobuf.ByteString b =
886 com.google.protobuf.ByteString.copyFromUtf8(
887 (java.lang.String) ref);
888 transactionChainId_ = b;
891 return (com.google.protobuf.ByteString) ref;
895 // optional int32 messageVersion = 4;
896 public static final int MESSAGEVERSION_FIELD_NUMBER = 4;
897 private int messageVersion_;
899 * <code>optional int32 messageVersion = 4;</code>
901 public boolean hasMessageVersion() {
902 return ((bitField0_ & 0x00000008) == 0x00000008);
905 * <code>optional int32 messageVersion = 4;</code>
907 public int getMessageVersion() {
908 return messageVersion_;
911 private void initFields() {
913 transactionType_ = 0;
914 transactionChainId_ = "";
917 private byte memoizedIsInitialized = -1;
918 public final boolean isInitialized() {
919 byte isInitialized = memoizedIsInitialized;
920 if (isInitialized != -1) return isInitialized == 1;
922 if (!hasTransactionId()) {
923 memoizedIsInitialized = 0;
926 if (!hasTransactionType()) {
927 memoizedIsInitialized = 0;
930 memoizedIsInitialized = 1;
934 public void writeTo(com.google.protobuf.CodedOutputStream output)
935 throws java.io.IOException {
937 if (((bitField0_ & 0x00000001) == 0x00000001)) {
938 output.writeBytes(1, getTransactionIdBytes());
940 if (((bitField0_ & 0x00000002) == 0x00000002)) {
941 output.writeInt32(2, transactionType_);
943 if (((bitField0_ & 0x00000004) == 0x00000004)) {
944 output.writeBytes(3, getTransactionChainIdBytes());
946 if (((bitField0_ & 0x00000008) == 0x00000008)) {
947 output.writeInt32(4, messageVersion_);
949 getUnknownFields().writeTo(output);
952 private int memoizedSerializedSize = -1;
953 public int getSerializedSize() {
954 int size = memoizedSerializedSize;
955 if (size != -1) return size;
958 if (((bitField0_ & 0x00000001) == 0x00000001)) {
959 size += com.google.protobuf.CodedOutputStream
960 .computeBytesSize(1, getTransactionIdBytes());
962 if (((bitField0_ & 0x00000002) == 0x00000002)) {
963 size += com.google.protobuf.CodedOutputStream
964 .computeInt32Size(2, transactionType_);
966 if (((bitField0_ & 0x00000004) == 0x00000004)) {
967 size += com.google.protobuf.CodedOutputStream
968 .computeBytesSize(3, getTransactionChainIdBytes());
970 if (((bitField0_ & 0x00000008) == 0x00000008)) {
971 size += com.google.protobuf.CodedOutputStream
972 .computeInt32Size(4, messageVersion_);
974 size += getUnknownFields().getSerializedSize();
975 memoizedSerializedSize = size;
979 private static final long serialVersionUID = 0L;
981 protected java.lang.Object writeReplace()
982 throws java.io.ObjectStreamException {
983 return super.writeReplace();
986 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction parseFrom(
987 com.google.protobuf.ByteString data)
988 throws com.google.protobuf.InvalidProtocolBufferException {
989 return PARSER.parseFrom(data);
991 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction parseFrom(
992 com.google.protobuf.ByteString data,
993 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
994 throws com.google.protobuf.InvalidProtocolBufferException {
995 return PARSER.parseFrom(data, extensionRegistry);
997 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction parseFrom(byte[] data)
998 throws com.google.protobuf.InvalidProtocolBufferException {
999 return PARSER.parseFrom(data);
1001 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction parseFrom(
1003 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1004 throws com.google.protobuf.InvalidProtocolBufferException {
1005 return PARSER.parseFrom(data, extensionRegistry);
1007 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction parseFrom(java.io.InputStream input)
1008 throws java.io.IOException {
1009 return PARSER.parseFrom(input);
1011 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction parseFrom(
1012 java.io.InputStream input,
1013 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1014 throws java.io.IOException {
1015 return PARSER.parseFrom(input, extensionRegistry);
1017 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction parseDelimitedFrom(java.io.InputStream input)
1018 throws java.io.IOException {
1019 return PARSER.parseDelimitedFrom(input);
1021 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction parseDelimitedFrom(
1022 java.io.InputStream input,
1023 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1024 throws java.io.IOException {
1025 return PARSER.parseDelimitedFrom(input, extensionRegistry);
1027 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction parseFrom(
1028 com.google.protobuf.CodedInputStream input)
1029 throws java.io.IOException {
1030 return PARSER.parseFrom(input);
1032 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction parseFrom(
1033 com.google.protobuf.CodedInputStream input,
1034 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1035 throws java.io.IOException {
1036 return PARSER.parseFrom(input, extensionRegistry);
1039 public static Builder newBuilder() { return Builder.create(); }
1040 public Builder newBuilderForType() { return newBuilder(); }
1041 public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction prototype) {
1042 return newBuilder().mergeFrom(prototype);
1044 public Builder toBuilder() { return newBuilder(this); }
1047 protected Builder newBuilderForType(
1048 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1049 Builder builder = new Builder(parent);
1053 * Protobuf type {@code org.opendaylight.controller.mdsal.CreateTransaction}
1055 public static final class Builder extends
1056 com.google.protobuf.GeneratedMessage.Builder<Builder>
1057 implements org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionOrBuilder {
1058 public static final com.google.protobuf.Descriptors.Descriptor
1060 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CreateTransaction_descriptor;
1063 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1064 internalGetFieldAccessorTable() {
1065 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CreateTransaction_fieldAccessorTable
1066 .ensureFieldAccessorsInitialized(
1067 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction.class, org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction.Builder.class);
1070 // Construct using org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction.newBuilder()
1072 maybeForceBuilderInitialization();
1076 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1078 maybeForceBuilderInitialization();
1080 private void maybeForceBuilderInitialization() {
1081 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1084 private static Builder create() {
1085 return new Builder();
1088 public Builder clear() {
1090 transactionId_ = "";
1091 bitField0_ = (bitField0_ & ~0x00000001);
1092 transactionType_ = 0;
1093 bitField0_ = (bitField0_ & ~0x00000002);
1094 transactionChainId_ = "";
1095 bitField0_ = (bitField0_ & ~0x00000004);
1096 messageVersion_ = 0;
1097 bitField0_ = (bitField0_ & ~0x00000008);
1101 public Builder clone() {
1102 return create().mergeFrom(buildPartial());
1105 public com.google.protobuf.Descriptors.Descriptor
1106 getDescriptorForType() {
1107 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CreateTransaction_descriptor;
1110 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction getDefaultInstanceForType() {
1111 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction.getDefaultInstance();
1114 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction build() {
1115 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction result = buildPartial();
1116 if (!result.isInitialized()) {
1117 throw newUninitializedMessageException(result);
1122 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction buildPartial() {
1123 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction result = new org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction(this);
1124 int from_bitField0_ = bitField0_;
1125 int to_bitField0_ = 0;
1126 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1127 to_bitField0_ |= 0x00000001;
1129 result.transactionId_ = transactionId_;
1130 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1131 to_bitField0_ |= 0x00000002;
1133 result.transactionType_ = transactionType_;
1134 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1135 to_bitField0_ |= 0x00000004;
1137 result.transactionChainId_ = transactionChainId_;
1138 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
1139 to_bitField0_ |= 0x00000008;
1141 result.messageVersion_ = messageVersion_;
1142 result.bitField0_ = to_bitField0_;
1147 public Builder mergeFrom(com.google.protobuf.Message other) {
1148 if (other instanceof org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction) {
1149 return mergeFrom((org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction)other);
1151 super.mergeFrom(other);
1156 public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction other) {
1157 if (other == org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction.getDefaultInstance()) return this;
1158 if (other.hasTransactionId()) {
1159 bitField0_ |= 0x00000001;
1160 transactionId_ = other.transactionId_;
1163 if (other.hasTransactionType()) {
1164 setTransactionType(other.getTransactionType());
1166 if (other.hasTransactionChainId()) {
1167 bitField0_ |= 0x00000004;
1168 transactionChainId_ = other.transactionChainId_;
1171 if (other.hasMessageVersion()) {
1172 setMessageVersion(other.getMessageVersion());
1174 this.mergeUnknownFields(other.getUnknownFields());
1178 public final boolean isInitialized() {
1179 if (!hasTransactionId()) {
1183 if (!hasTransactionType()) {
1190 public Builder mergeFrom(
1191 com.google.protobuf.CodedInputStream input,
1192 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1193 throws java.io.IOException {
1194 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction parsedMessage = null;
1196 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1197 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1198 parsedMessage = (org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransaction) e.getUnfinishedMessage();
1201 if (parsedMessage != null) {
1202 mergeFrom(parsedMessage);
1207 private int bitField0_;
1209 // required string transactionId = 1;
1210 private java.lang.Object transactionId_ = "";
1212 * <code>required string transactionId = 1;</code>
1214 public boolean hasTransactionId() {
1215 return ((bitField0_ & 0x00000001) == 0x00000001);
1218 * <code>required string transactionId = 1;</code>
1220 public java.lang.String getTransactionId() {
1221 java.lang.Object ref = transactionId_;
1222 if (!(ref instanceof java.lang.String)) {
1223 java.lang.String s = ((com.google.protobuf.ByteString) ref)
1228 return (java.lang.String) ref;
1232 * <code>required string transactionId = 1;</code>
1234 public com.google.protobuf.ByteString
1235 getTransactionIdBytes() {
1236 java.lang.Object ref = transactionId_;
1237 if (ref instanceof String) {
1238 com.google.protobuf.ByteString b =
1239 com.google.protobuf.ByteString.copyFromUtf8(
1240 (java.lang.String) ref);
1244 return (com.google.protobuf.ByteString) ref;
1248 * <code>required string transactionId = 1;</code>
1250 public Builder setTransactionId(
1251 java.lang.String value) {
1252 if (value == null) {
1253 throw new NullPointerException();
1255 bitField0_ |= 0x00000001;
1256 transactionId_ = value;
1261 * <code>required string transactionId = 1;</code>
1263 public Builder clearTransactionId() {
1264 bitField0_ = (bitField0_ & ~0x00000001);
1265 transactionId_ = getDefaultInstance().getTransactionId();
1270 * <code>required string transactionId = 1;</code>
1272 public Builder setTransactionIdBytes(
1273 com.google.protobuf.ByteString value) {
1274 if (value == null) {
1275 throw new NullPointerException();
1277 bitField0_ |= 0x00000001;
1278 transactionId_ = value;
1283 // required int32 transactionType = 2;
1284 private int transactionType_ ;
1286 * <code>required int32 transactionType = 2;</code>
1288 public boolean hasTransactionType() {
1289 return ((bitField0_ & 0x00000002) == 0x00000002);
1292 * <code>required int32 transactionType = 2;</code>
1294 public int getTransactionType() {
1295 return transactionType_;
1298 * <code>required int32 transactionType = 2;</code>
1300 public Builder setTransactionType(int value) {
1301 bitField0_ |= 0x00000002;
1302 transactionType_ = value;
1307 * <code>required int32 transactionType = 2;</code>
1309 public Builder clearTransactionType() {
1310 bitField0_ = (bitField0_ & ~0x00000002);
1311 transactionType_ = 0;
1316 // optional string transactionChainId = 3;
1317 private java.lang.Object transactionChainId_ = "";
1319 * <code>optional string transactionChainId = 3;</code>
1321 public boolean hasTransactionChainId() {
1322 return ((bitField0_ & 0x00000004) == 0x00000004);
1325 * <code>optional string transactionChainId = 3;</code>
1327 public java.lang.String getTransactionChainId() {
1328 java.lang.Object ref = transactionChainId_;
1329 if (!(ref instanceof java.lang.String)) {
1330 java.lang.String s = ((com.google.protobuf.ByteString) ref)
1332 transactionChainId_ = s;
1335 return (java.lang.String) ref;
1339 * <code>optional string transactionChainId = 3;</code>
1341 public com.google.protobuf.ByteString
1342 getTransactionChainIdBytes() {
1343 java.lang.Object ref = transactionChainId_;
1344 if (ref instanceof String) {
1345 com.google.protobuf.ByteString b =
1346 com.google.protobuf.ByteString.copyFromUtf8(
1347 (java.lang.String) ref);
1348 transactionChainId_ = b;
1351 return (com.google.protobuf.ByteString) ref;
1355 * <code>optional string transactionChainId = 3;</code>
1357 public Builder setTransactionChainId(
1358 java.lang.String value) {
1359 if (value == null) {
1360 throw new NullPointerException();
1362 bitField0_ |= 0x00000004;
1363 transactionChainId_ = value;
1368 * <code>optional string transactionChainId = 3;</code>
1370 public Builder clearTransactionChainId() {
1371 bitField0_ = (bitField0_ & ~0x00000004);
1372 transactionChainId_ = getDefaultInstance().getTransactionChainId();
1377 * <code>optional string transactionChainId = 3;</code>
1379 public Builder setTransactionChainIdBytes(
1380 com.google.protobuf.ByteString value) {
1381 if (value == null) {
1382 throw new NullPointerException();
1384 bitField0_ |= 0x00000004;
1385 transactionChainId_ = value;
1390 // optional int32 messageVersion = 4;
1391 private int messageVersion_ ;
1393 * <code>optional int32 messageVersion = 4;</code>
1395 public boolean hasMessageVersion() {
1396 return ((bitField0_ & 0x00000008) == 0x00000008);
1399 * <code>optional int32 messageVersion = 4;</code>
1401 public int getMessageVersion() {
1402 return messageVersion_;
1405 * <code>optional int32 messageVersion = 4;</code>
1407 public Builder setMessageVersion(int value) {
1408 bitField0_ |= 0x00000008;
1409 messageVersion_ = value;
1414 * <code>optional int32 messageVersion = 4;</code>
1416 public Builder clearMessageVersion() {
1417 bitField0_ = (bitField0_ & ~0x00000008);
1418 messageVersion_ = 0;
1423 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.CreateTransaction)
1427 defaultInstance = new CreateTransaction(true);
1428 defaultInstance.initFields();
1431 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.CreateTransaction)
1434 public interface CreateTransactionReplyOrBuilder
1435 extends com.google.protobuf.MessageOrBuilder {
1437 // required string transactionActorPath = 1;
1439 * <code>required string transactionActorPath = 1;</code>
1441 boolean hasTransactionActorPath();
1443 * <code>required string transactionActorPath = 1;</code>
1445 java.lang.String getTransactionActorPath();
1447 * <code>required string transactionActorPath = 1;</code>
1449 com.google.protobuf.ByteString
1450 getTransactionActorPathBytes();
1452 // required string transactionId = 2;
1454 * <code>required string transactionId = 2;</code>
1456 boolean hasTransactionId();
1458 * <code>required string transactionId = 2;</code>
1460 java.lang.String getTransactionId();
1462 * <code>required string transactionId = 2;</code>
1464 com.google.protobuf.ByteString
1465 getTransactionIdBytes();
1467 // optional int32 messageVersion = 3;
1469 * <code>optional int32 messageVersion = 3;</code>
1471 boolean hasMessageVersion();
1473 * <code>optional int32 messageVersion = 3;</code>
1475 int getMessageVersion();
1478 * Protobuf type {@code org.opendaylight.controller.mdsal.CreateTransactionReply}
1480 public static final class CreateTransactionReply extends
1481 com.google.protobuf.GeneratedMessage
1482 implements CreateTransactionReplyOrBuilder {
1483 // Use CreateTransactionReply.newBuilder() to construct.
1484 private CreateTransactionReply(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1486 this.unknownFields = builder.getUnknownFields();
1488 private CreateTransactionReply(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1490 private static final CreateTransactionReply defaultInstance;
1491 public static CreateTransactionReply getDefaultInstance() {
1492 return defaultInstance;
1495 public CreateTransactionReply getDefaultInstanceForType() {
1496 return defaultInstance;
1499 private final com.google.protobuf.UnknownFieldSet unknownFields;
1501 public final com.google.protobuf.UnknownFieldSet
1502 getUnknownFields() {
1503 return this.unknownFields;
1505 private CreateTransactionReply(
1506 com.google.protobuf.CodedInputStream input,
1507 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1508 throws com.google.protobuf.InvalidProtocolBufferException {
1510 int mutable_bitField0_ = 0;
1511 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1512 com.google.protobuf.UnknownFieldSet.newBuilder();
1514 boolean done = false;
1516 int tag = input.readTag();
1522 if (!parseUnknownField(input, unknownFields,
1523 extensionRegistry, tag)) {
1529 bitField0_ |= 0x00000001;
1530 transactionActorPath_ = input.readBytes();
1534 bitField0_ |= 0x00000002;
1535 transactionId_ = input.readBytes();
1539 bitField0_ |= 0x00000004;
1540 messageVersion_ = input.readInt32();
1545 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1546 throw e.setUnfinishedMessage(this);
1547 } catch (java.io.IOException e) {
1548 throw new com.google.protobuf.InvalidProtocolBufferException(
1549 e.getMessage()).setUnfinishedMessage(this);
1551 this.unknownFields = unknownFields.build();
1552 makeExtensionsImmutable();
1555 public static final com.google.protobuf.Descriptors.Descriptor
1557 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CreateTransactionReply_descriptor;
1560 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1561 internalGetFieldAccessorTable() {
1562 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CreateTransactionReply_fieldAccessorTable
1563 .ensureFieldAccessorsInitialized(
1564 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply.class, org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply.Builder.class);
1567 public static com.google.protobuf.Parser<CreateTransactionReply> PARSER =
1568 new com.google.protobuf.AbstractParser<CreateTransactionReply>() {
1569 public CreateTransactionReply parsePartialFrom(
1570 com.google.protobuf.CodedInputStream input,
1571 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1572 throws com.google.protobuf.InvalidProtocolBufferException {
1573 return new CreateTransactionReply(input, extensionRegistry);
1578 public com.google.protobuf.Parser<CreateTransactionReply> getParserForType() {
1582 private int bitField0_;
1583 // required string transactionActorPath = 1;
1584 public static final int TRANSACTIONACTORPATH_FIELD_NUMBER = 1;
1585 private java.lang.Object transactionActorPath_;
1587 * <code>required string transactionActorPath = 1;</code>
1589 public boolean hasTransactionActorPath() {
1590 return ((bitField0_ & 0x00000001) == 0x00000001);
1593 * <code>required string transactionActorPath = 1;</code>
1595 public java.lang.String getTransactionActorPath() {
1596 java.lang.Object ref = transactionActorPath_;
1597 if (ref instanceof java.lang.String) {
1598 return (java.lang.String) ref;
1600 com.google.protobuf.ByteString bs =
1601 (com.google.protobuf.ByteString) ref;
1602 java.lang.String s = bs.toStringUtf8();
1603 if (bs.isValidUtf8()) {
1604 transactionActorPath_ = s;
1610 * <code>required string transactionActorPath = 1;</code>
1612 public com.google.protobuf.ByteString
1613 getTransactionActorPathBytes() {
1614 java.lang.Object ref = transactionActorPath_;
1615 if (ref instanceof java.lang.String) {
1616 com.google.protobuf.ByteString b =
1617 com.google.protobuf.ByteString.copyFromUtf8(
1618 (java.lang.String) ref);
1619 transactionActorPath_ = b;
1622 return (com.google.protobuf.ByteString) ref;
1626 // required string transactionId = 2;
1627 public static final int TRANSACTIONID_FIELD_NUMBER = 2;
1628 private java.lang.Object transactionId_;
1630 * <code>required string transactionId = 2;</code>
1632 public boolean hasTransactionId() {
1633 return ((bitField0_ & 0x00000002) == 0x00000002);
1636 * <code>required string transactionId = 2;</code>
1638 public java.lang.String getTransactionId() {
1639 java.lang.Object ref = transactionId_;
1640 if (ref instanceof java.lang.String) {
1641 return (java.lang.String) ref;
1643 com.google.protobuf.ByteString bs =
1644 (com.google.protobuf.ByteString) ref;
1645 java.lang.String s = bs.toStringUtf8();
1646 if (bs.isValidUtf8()) {
1653 * <code>required string transactionId = 2;</code>
1655 public com.google.protobuf.ByteString
1656 getTransactionIdBytes() {
1657 java.lang.Object ref = transactionId_;
1658 if (ref instanceof java.lang.String) {
1659 com.google.protobuf.ByteString b =
1660 com.google.protobuf.ByteString.copyFromUtf8(
1661 (java.lang.String) ref);
1665 return (com.google.protobuf.ByteString) ref;
1669 // optional int32 messageVersion = 3;
1670 public static final int MESSAGEVERSION_FIELD_NUMBER = 3;
1671 private int messageVersion_;
1673 * <code>optional int32 messageVersion = 3;</code>
1675 public boolean hasMessageVersion() {
1676 return ((bitField0_ & 0x00000004) == 0x00000004);
1679 * <code>optional int32 messageVersion = 3;</code>
1681 public int getMessageVersion() {
1682 return messageVersion_;
1685 private void initFields() {
1686 transactionActorPath_ = "";
1687 transactionId_ = "";
1688 messageVersion_ = 0;
1690 private byte memoizedIsInitialized = -1;
1691 public final boolean isInitialized() {
1692 byte isInitialized = memoizedIsInitialized;
1693 if (isInitialized != -1) return isInitialized == 1;
1695 if (!hasTransactionActorPath()) {
1696 memoizedIsInitialized = 0;
1699 if (!hasTransactionId()) {
1700 memoizedIsInitialized = 0;
1703 memoizedIsInitialized = 1;
1707 public void writeTo(com.google.protobuf.CodedOutputStream output)
1708 throws java.io.IOException {
1709 getSerializedSize();
1710 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1711 output.writeBytes(1, getTransactionActorPathBytes());
1713 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1714 output.writeBytes(2, getTransactionIdBytes());
1716 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1717 output.writeInt32(3, messageVersion_);
1719 getUnknownFields().writeTo(output);
1722 private int memoizedSerializedSize = -1;
1723 public int getSerializedSize() {
1724 int size = memoizedSerializedSize;
1725 if (size != -1) return size;
1728 if (((bitField0_ & 0x00000001) == 0x00000001)) {
1729 size += com.google.protobuf.CodedOutputStream
1730 .computeBytesSize(1, getTransactionActorPathBytes());
1732 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1733 size += com.google.protobuf.CodedOutputStream
1734 .computeBytesSize(2, getTransactionIdBytes());
1736 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1737 size += com.google.protobuf.CodedOutputStream
1738 .computeInt32Size(3, messageVersion_);
1740 size += getUnknownFields().getSerializedSize();
1741 memoizedSerializedSize = size;
1745 private static final long serialVersionUID = 0L;
1747 protected java.lang.Object writeReplace()
1748 throws java.io.ObjectStreamException {
1749 return super.writeReplace();
1752 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply parseFrom(
1753 com.google.protobuf.ByteString data)
1754 throws com.google.protobuf.InvalidProtocolBufferException {
1755 return PARSER.parseFrom(data);
1757 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply parseFrom(
1758 com.google.protobuf.ByteString data,
1759 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1760 throws com.google.protobuf.InvalidProtocolBufferException {
1761 return PARSER.parseFrom(data, extensionRegistry);
1763 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply parseFrom(byte[] data)
1764 throws com.google.protobuf.InvalidProtocolBufferException {
1765 return PARSER.parseFrom(data);
1767 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply parseFrom(
1769 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1770 throws com.google.protobuf.InvalidProtocolBufferException {
1771 return PARSER.parseFrom(data, extensionRegistry);
1773 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply parseFrom(java.io.InputStream input)
1774 throws java.io.IOException {
1775 return PARSER.parseFrom(input);
1777 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply parseFrom(
1778 java.io.InputStream input,
1779 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1780 throws java.io.IOException {
1781 return PARSER.parseFrom(input, extensionRegistry);
1783 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply parseDelimitedFrom(java.io.InputStream input)
1784 throws java.io.IOException {
1785 return PARSER.parseDelimitedFrom(input);
1787 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply parseDelimitedFrom(
1788 java.io.InputStream input,
1789 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1790 throws java.io.IOException {
1791 return PARSER.parseDelimitedFrom(input, extensionRegistry);
1793 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply parseFrom(
1794 com.google.protobuf.CodedInputStream input)
1795 throws java.io.IOException {
1796 return PARSER.parseFrom(input);
1798 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply parseFrom(
1799 com.google.protobuf.CodedInputStream input,
1800 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1801 throws java.io.IOException {
1802 return PARSER.parseFrom(input, extensionRegistry);
1805 public static Builder newBuilder() { return Builder.create(); }
1806 public Builder newBuilderForType() { return newBuilder(); }
1807 public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply prototype) {
1808 return newBuilder().mergeFrom(prototype);
1810 public Builder toBuilder() { return newBuilder(this); }
1813 protected Builder newBuilderForType(
1814 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1815 Builder builder = new Builder(parent);
1819 * Protobuf type {@code org.opendaylight.controller.mdsal.CreateTransactionReply}
1821 public static final class Builder extends
1822 com.google.protobuf.GeneratedMessage.Builder<Builder>
1823 implements org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReplyOrBuilder {
1824 public static final com.google.protobuf.Descriptors.Descriptor
1826 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CreateTransactionReply_descriptor;
1829 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1830 internalGetFieldAccessorTable() {
1831 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CreateTransactionReply_fieldAccessorTable
1832 .ensureFieldAccessorsInitialized(
1833 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply.class, org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply.Builder.class);
1836 // Construct using org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply.newBuilder()
1838 maybeForceBuilderInitialization();
1842 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1844 maybeForceBuilderInitialization();
1846 private void maybeForceBuilderInitialization() {
1847 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1850 private static Builder create() {
1851 return new Builder();
1854 public Builder clear() {
1856 transactionActorPath_ = "";
1857 bitField0_ = (bitField0_ & ~0x00000001);
1858 transactionId_ = "";
1859 bitField0_ = (bitField0_ & ~0x00000002);
1860 messageVersion_ = 0;
1861 bitField0_ = (bitField0_ & ~0x00000004);
1865 public Builder clone() {
1866 return create().mergeFrom(buildPartial());
1869 public com.google.protobuf.Descriptors.Descriptor
1870 getDescriptorForType() {
1871 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_CreateTransactionReply_descriptor;
1874 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply getDefaultInstanceForType() {
1875 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply.getDefaultInstance();
1878 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply build() {
1879 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply result = buildPartial();
1880 if (!result.isInitialized()) {
1881 throw newUninitializedMessageException(result);
1886 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply buildPartial() {
1887 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply result = new org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply(this);
1888 int from_bitField0_ = bitField0_;
1889 int to_bitField0_ = 0;
1890 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1891 to_bitField0_ |= 0x00000001;
1893 result.transactionActorPath_ = transactionActorPath_;
1894 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1895 to_bitField0_ |= 0x00000002;
1897 result.transactionId_ = transactionId_;
1898 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1899 to_bitField0_ |= 0x00000004;
1901 result.messageVersion_ = messageVersion_;
1902 result.bitField0_ = to_bitField0_;
1907 public Builder mergeFrom(com.google.protobuf.Message other) {
1908 if (other instanceof org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply) {
1909 return mergeFrom((org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply)other);
1911 super.mergeFrom(other);
1916 public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply other) {
1917 if (other == org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply.getDefaultInstance()) return this;
1918 if (other.hasTransactionActorPath()) {
1919 bitField0_ |= 0x00000001;
1920 transactionActorPath_ = other.transactionActorPath_;
1923 if (other.hasTransactionId()) {
1924 bitField0_ |= 0x00000002;
1925 transactionId_ = other.transactionId_;
1928 if (other.hasMessageVersion()) {
1929 setMessageVersion(other.getMessageVersion());
1931 this.mergeUnknownFields(other.getUnknownFields());
1935 public final boolean isInitialized() {
1936 if (!hasTransactionActorPath()) {
1940 if (!hasTransactionId()) {
1947 public Builder mergeFrom(
1948 com.google.protobuf.CodedInputStream input,
1949 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1950 throws java.io.IOException {
1951 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply parsedMessage = null;
1953 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1954 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1955 parsedMessage = (org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.CreateTransactionReply) e.getUnfinishedMessage();
1958 if (parsedMessage != null) {
1959 mergeFrom(parsedMessage);
1964 private int bitField0_;
1966 // required string transactionActorPath = 1;
1967 private java.lang.Object transactionActorPath_ = "";
1969 * <code>required string transactionActorPath = 1;</code>
1971 public boolean hasTransactionActorPath() {
1972 return ((bitField0_ & 0x00000001) == 0x00000001);
1975 * <code>required string transactionActorPath = 1;</code>
1977 public java.lang.String getTransactionActorPath() {
1978 java.lang.Object ref = transactionActorPath_;
1979 if (!(ref instanceof java.lang.String)) {
1980 java.lang.String s = ((com.google.protobuf.ByteString) ref)
1982 transactionActorPath_ = s;
1985 return (java.lang.String) ref;
1989 * <code>required string transactionActorPath = 1;</code>
1991 public com.google.protobuf.ByteString
1992 getTransactionActorPathBytes() {
1993 java.lang.Object ref = transactionActorPath_;
1994 if (ref instanceof String) {
1995 com.google.protobuf.ByteString b =
1996 com.google.protobuf.ByteString.copyFromUtf8(
1997 (java.lang.String) ref);
1998 transactionActorPath_ = b;
2001 return (com.google.protobuf.ByteString) ref;
2005 * <code>required string transactionActorPath = 1;</code>
2007 public Builder setTransactionActorPath(
2008 java.lang.String value) {
2009 if (value == null) {
2010 throw new NullPointerException();
2012 bitField0_ |= 0x00000001;
2013 transactionActorPath_ = value;
2018 * <code>required string transactionActorPath = 1;</code>
2020 public Builder clearTransactionActorPath() {
2021 bitField0_ = (bitField0_ & ~0x00000001);
2022 transactionActorPath_ = getDefaultInstance().getTransactionActorPath();
2027 * <code>required string transactionActorPath = 1;</code>
2029 public Builder setTransactionActorPathBytes(
2030 com.google.protobuf.ByteString value) {
2031 if (value == null) {
2032 throw new NullPointerException();
2034 bitField0_ |= 0x00000001;
2035 transactionActorPath_ = value;
2040 // required string transactionId = 2;
2041 private java.lang.Object transactionId_ = "";
2043 * <code>required string transactionId = 2;</code>
2045 public boolean hasTransactionId() {
2046 return ((bitField0_ & 0x00000002) == 0x00000002);
2049 * <code>required string transactionId = 2;</code>
2051 public java.lang.String getTransactionId() {
2052 java.lang.Object ref = transactionId_;
2053 if (!(ref instanceof java.lang.String)) {
2054 java.lang.String s = ((com.google.protobuf.ByteString) ref)
2059 return (java.lang.String) ref;
2063 * <code>required string transactionId = 2;</code>
2065 public com.google.protobuf.ByteString
2066 getTransactionIdBytes() {
2067 java.lang.Object ref = transactionId_;
2068 if (ref instanceof String) {
2069 com.google.protobuf.ByteString b =
2070 com.google.protobuf.ByteString.copyFromUtf8(
2071 (java.lang.String) ref);
2075 return (com.google.protobuf.ByteString) ref;
2079 * <code>required string transactionId = 2;</code>
2081 public Builder setTransactionId(
2082 java.lang.String value) {
2083 if (value == null) {
2084 throw new NullPointerException();
2086 bitField0_ |= 0x00000002;
2087 transactionId_ = value;
2092 * <code>required string transactionId = 2;</code>
2094 public Builder clearTransactionId() {
2095 bitField0_ = (bitField0_ & ~0x00000002);
2096 transactionId_ = getDefaultInstance().getTransactionId();
2101 * <code>required string transactionId = 2;</code>
2103 public Builder setTransactionIdBytes(
2104 com.google.protobuf.ByteString value) {
2105 if (value == null) {
2106 throw new NullPointerException();
2108 bitField0_ |= 0x00000002;
2109 transactionId_ = value;
2114 // optional int32 messageVersion = 3;
2115 private int messageVersion_ ;
2117 * <code>optional int32 messageVersion = 3;</code>
2119 public boolean hasMessageVersion() {
2120 return ((bitField0_ & 0x00000004) == 0x00000004);
2123 * <code>optional int32 messageVersion = 3;</code>
2125 public int getMessageVersion() {
2126 return messageVersion_;
2129 * <code>optional int32 messageVersion = 3;</code>
2131 public Builder setMessageVersion(int value) {
2132 bitField0_ |= 0x00000004;
2133 messageVersion_ = value;
2138 * <code>optional int32 messageVersion = 3;</code>
2140 public Builder clearMessageVersion() {
2141 bitField0_ = (bitField0_ & ~0x00000004);
2142 messageVersion_ = 0;
2147 // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.CreateTransactionReply)
2151 defaultInstance = new CreateTransactionReply(true);
2152 defaultInstance.initFields();
2155 // @@protoc_insertion_point(class_scope:org.opendaylight.controller.mdsal.CreateTransactionReply)
2158 public interface ReadyTransactionOrBuilder
2159 extends com.google.protobuf.MessageOrBuilder {
2162 * Protobuf type {@code org.opendaylight.controller.mdsal.ReadyTransaction}
2164 public static final class ReadyTransaction extends
2165 com.google.protobuf.GeneratedMessage
2166 implements ReadyTransactionOrBuilder {
2167 // Use ReadyTransaction.newBuilder() to construct.
2168 private ReadyTransaction(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
2170 this.unknownFields = builder.getUnknownFields();
2172 private ReadyTransaction(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
2174 private static final ReadyTransaction defaultInstance;
2175 public static ReadyTransaction getDefaultInstance() {
2176 return defaultInstance;
2179 public ReadyTransaction getDefaultInstanceForType() {
2180 return defaultInstance;
2183 private final com.google.protobuf.UnknownFieldSet unknownFields;
2185 public final com.google.protobuf.UnknownFieldSet
2186 getUnknownFields() {
2187 return this.unknownFields;
2189 private ReadyTransaction(
2190 com.google.protobuf.CodedInputStream input,
2191 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2192 throws com.google.protobuf.InvalidProtocolBufferException {
2194 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2195 com.google.protobuf.UnknownFieldSet.newBuilder();
2197 boolean done = false;
2199 int tag = input.readTag();
2205 if (!parseUnknownField(input, unknownFields,
2206 extensionRegistry, tag)) {
2213 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2214 throw e.setUnfinishedMessage(this);
2215 } catch (java.io.IOException e) {
2216 throw new com.google.protobuf.InvalidProtocolBufferException(
2217 e.getMessage()).setUnfinishedMessage(this);
2219 this.unknownFields = unknownFields.build();
2220 makeExtensionsImmutable();
2223 public static final com.google.protobuf.Descriptors.Descriptor
2225 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_ReadyTransaction_descriptor;
2228 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2229 internalGetFieldAccessorTable() {
2230 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_ReadyTransaction_fieldAccessorTable
2231 .ensureFieldAccessorsInitialized(
2232 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction.class, org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction.Builder.class);
2235 public static com.google.protobuf.Parser<ReadyTransaction> PARSER =
2236 new com.google.protobuf.AbstractParser<ReadyTransaction>() {
2237 public ReadyTransaction parsePartialFrom(
2238 com.google.protobuf.CodedInputStream input,
2239 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2240 throws com.google.protobuf.InvalidProtocolBufferException {
2241 return new ReadyTransaction(input, extensionRegistry);
2246 public com.google.protobuf.Parser<ReadyTransaction> getParserForType() {
2250 private void initFields() {
2252 private byte memoizedIsInitialized = -1;
2253 public final boolean isInitialized() {
2254 byte isInitialized = memoizedIsInitialized;
2255 if (isInitialized != -1) return isInitialized == 1;
2257 memoizedIsInitialized = 1;
2261 public void writeTo(com.google.protobuf.CodedOutputStream output)
2262 throws java.io.IOException {
2263 getSerializedSize();
2264 getUnknownFields().writeTo(output);
2267 private int memoizedSerializedSize = -1;
2268 public int getSerializedSize() {
2269 int size = memoizedSerializedSize;
2270 if (size != -1) return size;
2273 size += getUnknownFields().getSerializedSize();
2274 memoizedSerializedSize = size;
2278 private static final long serialVersionUID = 0L;
2280 protected java.lang.Object writeReplace()
2281 throws java.io.ObjectStreamException {
2282 return super.writeReplace();
2285 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction parseFrom(
2286 com.google.protobuf.ByteString data)
2287 throws com.google.protobuf.InvalidProtocolBufferException {
2288 return PARSER.parseFrom(data);
2290 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction parseFrom(
2291 com.google.protobuf.ByteString data,
2292 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2293 throws com.google.protobuf.InvalidProtocolBufferException {
2294 return PARSER.parseFrom(data, extensionRegistry);
2296 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction parseFrom(byte[] data)
2297 throws com.google.protobuf.InvalidProtocolBufferException {
2298 return PARSER.parseFrom(data);
2300 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction parseFrom(
2302 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2303 throws com.google.protobuf.InvalidProtocolBufferException {
2304 return PARSER.parseFrom(data, extensionRegistry);
2306 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction parseFrom(java.io.InputStream input)
2307 throws java.io.IOException {
2308 return PARSER.parseFrom(input);
2310 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction parseFrom(
2311 java.io.InputStream input,
2312 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2313 throws java.io.IOException {
2314 return PARSER.parseFrom(input, extensionRegistry);
2316 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction parseDelimitedFrom(java.io.InputStream input)
2317 throws java.io.IOException {
2318 return PARSER.parseDelimitedFrom(input);
2320 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction parseDelimitedFrom(
2321 java.io.InputStream input,
2322 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2323 throws java.io.IOException {
2324 return PARSER.parseDelimitedFrom(input, extensionRegistry);
2326 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction parseFrom(
2327 com.google.protobuf.CodedInputStream input)
2328 throws java.io.IOException {
2329 return PARSER.parseFrom(input);
2331 public static org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction parseFrom(
2332 com.google.protobuf.CodedInputStream input,
2333 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2334 throws java.io.IOException {
2335 return PARSER.parseFrom(input, extensionRegistry);
2338 public static Builder newBuilder() { return Builder.create(); }
2339 public Builder newBuilderForType() { return newBuilder(); }
2340 public static Builder newBuilder(org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction prototype) {
2341 return newBuilder().mergeFrom(prototype);
2343 public Builder toBuilder() { return newBuilder(this); }
2346 protected Builder newBuilderForType(
2347 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2348 Builder builder = new Builder(parent);
2352 * Protobuf type {@code org.opendaylight.controller.mdsal.ReadyTransaction}
2354 public static final class Builder extends
2355 com.google.protobuf.GeneratedMessage.Builder<Builder>
2356 implements org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransactionOrBuilder {
2357 public static final com.google.protobuf.Descriptors.Descriptor
2359 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_ReadyTransaction_descriptor;
2362 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2363 internalGetFieldAccessorTable() {
2364 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_ReadyTransaction_fieldAccessorTable
2365 .ensureFieldAccessorsInitialized(
2366 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction.class, org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction.Builder.class);
2369 // Construct using org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction.newBuilder()
2371 maybeForceBuilderInitialization();
2375 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2377 maybeForceBuilderInitialization();
2379 private void maybeForceBuilderInitialization() {
2380 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2383 private static Builder create() {
2384 return new Builder();
2387 public Builder clear() {
2392 public Builder clone() {
2393 return create().mergeFrom(buildPartial());
2396 public com.google.protobuf.Descriptors.Descriptor
2397 getDescriptorForType() {
2398 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.internal_static_org_opendaylight_controller_mdsal_ReadyTransaction_descriptor;
2401 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction getDefaultInstanceForType() {
2402 return org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction.getDefaultInstance();
2405 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction build() {
2406 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction result = buildPartial();
2407 if (!result.isInitialized()) {
2408 throw newUninitializedMessageException(result);
2413 public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction buildPartial() {
2414 org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction result = new org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction(this);
2419 public Builder mergeFrom(com.google.protobuf.Message other) {
2420 if (other instanceof org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction) {
2421 return mergeFrom((org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction)other);
2423 super.mergeFrom(other);
2428 public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction other) {
2429 if (other == org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages.ReadyTransaction.getDefaultInstance()) return this;
2430 this.mergeUnknownFields(other.getUnknownFields());