X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotobuff%2Fmessages%2Ftransaction%2FShardTransactionChainMessages.java;h=d956bb174be4e159bc3fe0b415126ea39a4ba140;hp=63dd5e7081603aed89168980a5f6ad6bb27de28e;hb=47a2c420e5f271cb78ce10ea96883c17cc4b2cc9;hpb=8e42b08cb626a60919c145b2a46d94114c3905d6 diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/protobuff/messages/transaction/ShardTransactionChainMessages.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/protobuff/messages/transaction/ShardTransactionChainMessages.java index 63dd5e7081..d956bb174b 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/protobuff/messages/transaction/ShardTransactionChainMessages.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/protobuff/messages/transaction/ShardTransactionChainMessages.java @@ -10,6 +10,21 @@ public final class ShardTransactionChainMessages { } public interface CloseTransactionChainOrBuilder extends com.google.protobuf.MessageOrBuilder { + + // optional string transactionChainId = 1; + /** + * optional string transactionChainId = 1; + */ + boolean hasTransactionChainId(); + /** + * optional string transactionChainId = 1; + */ + java.lang.String getTransactionChainId(); + /** + * optional string transactionChainId = 1; + */ + com.google.protobuf.ByteString + getTransactionChainIdBytes(); } /** * Protobuf type {@code org.opendaylight.controller.mdsal.CloseTransactionChain} @@ -44,6 +59,7 @@ public final class ShardTransactionChainMessages { com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -61,6 +77,11 @@ public final class ShardTransactionChainMessages { } break; } + case 10: { + bitField0_ |= 0x00000001; + transactionChainId_ = input.readBytes(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,7 +121,52 @@ public final class ShardTransactionChainMessages { return PARSER; } + private int bitField0_; + // optional string transactionChainId = 1; + public static final int TRANSACTIONCHAINID_FIELD_NUMBER = 1; + private java.lang.Object transactionChainId_; + /** + * optional string transactionChainId = 1; + */ + public boolean hasTransactionChainId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string transactionChainId = 1; + */ + public java.lang.String getTransactionChainId() { + java.lang.Object ref = transactionChainId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + transactionChainId_ = s; + } + return s; + } + } + /** + * optional string transactionChainId = 1; + */ + public com.google.protobuf.ByteString + getTransactionChainIdBytes() { + java.lang.Object ref = transactionChainId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + transactionChainId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private void initFields() { + transactionChainId_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -114,6 +180,9 @@ public final class ShardTransactionChainMessages { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getTransactionChainIdBytes()); + } getUnknownFields().writeTo(output); } @@ -123,6 +192,10 @@ public final class ShardTransactionChainMessages { if (size != -1) return size; size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getTransactionChainIdBytes()); + } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; @@ -239,6 +312,8 @@ public final class ShardTransactionChainMessages { public Builder clear() { super.clear(); + transactionChainId_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -265,6 +340,13 @@ public final class ShardTransactionChainMessages { public org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionChainMessages.CloseTransactionChain buildPartial() { org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionChainMessages.CloseTransactionChain result = new org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionChainMessages.CloseTransactionChain(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.transactionChainId_ = transactionChainId_; + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -280,6 +362,11 @@ public final class ShardTransactionChainMessages { public Builder mergeFrom(org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionChainMessages.CloseTransactionChain other) { if (other == org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionChainMessages.CloseTransactionChain.getDefaultInstance()) return this; + if (other.hasTransactionChainId()) { + bitField0_ |= 0x00000001; + transactionChainId_ = other.transactionChainId_; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); return this; } @@ -305,6 +392,81 @@ public final class ShardTransactionChainMessages { } return this; } + private int bitField0_; + + // optional string transactionChainId = 1; + private java.lang.Object transactionChainId_ = ""; + /** + * optional string transactionChainId = 1; + */ + public boolean hasTransactionChainId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string transactionChainId = 1; + */ + public java.lang.String getTransactionChainId() { + java.lang.Object ref = transactionChainId_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + transactionChainId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string transactionChainId = 1; + */ + public com.google.protobuf.ByteString + getTransactionChainIdBytes() { + java.lang.Object ref = transactionChainId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + transactionChainId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string transactionChainId = 1; + */ + public Builder setTransactionChainId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + transactionChainId_ = value; + onChanged(); + return this; + } + /** + * optional string transactionChainId = 1; + */ + public Builder clearTransactionChainId() { + bitField0_ = (bitField0_ & ~0x00000001); + transactionChainId_ = getDefaultInstance().getTransactionChainId(); + onChanged(); + return this; + } + /** + * optional string transactionChainId = 1; + */ + public Builder setTransactionChainIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + transactionChainId_ = value; + onChanged(); + return this; + } // @@protoc_insertion_point(builder_scope:org.opendaylight.controller.mdsal.CloseTransactionChain) } @@ -1444,13 +1606,14 @@ public final class ShardTransactionChainMessages { static { java.lang.String[] descriptorData = { "\n\033ShardTransactionChain.proto\022!org.opend" + - "aylight.controller.mdsal\"\027\n\025CloseTransac" + - "tionChain\"\034\n\032CloseTransactionChainReply\"" + - "\030\n\026CreateTransactionChain\";\n\033CreateTrans" + - "actionChainReply\022\034\n\024transactionChainPath" + - "\030\001 \002(\tB[\n:org.opendaylight.controller.pr" + - "otobuff.messages.transactionB\035ShardTrans" + - "actionChainMessages" + "aylight.controller.mdsal\"3\n\025CloseTransac" + + "tionChain\022\032\n\022transactionChainId\030\001 \001(\t\"\034\n" + + "\032CloseTransactionChainReply\"\030\n\026CreateTra" + + "nsactionChain\";\n\033CreateTransactionChainR" + + "eply\022\034\n\024transactionChainPath\030\001 \002(\tB[\n:or" + + "g.opendaylight.controller.protobuff.mess" + + "ages.transactionB\035ShardTransactionChainM" + + "essages" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -1462,7 +1625,7 @@ public final class ShardTransactionChainMessages { internal_static_org_opendaylight_controller_mdsal_CloseTransactionChain_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_opendaylight_controller_mdsal_CloseTransactionChain_descriptor, - new java.lang.String[] { }); + new java.lang.String[] { "TransactionChainId", }); internal_static_org_opendaylight_controller_mdsal_CloseTransactionChainReply_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_org_opendaylight_controller_mdsal_CloseTransactionChainReply_fieldAccessorTable = new