- * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractBranchEndRequestProto} - */ -public final class AbstractBranchEndRequestProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.AbstractBranchEndRequestProto) - AbstractBranchEndRequestProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use AbstractBranchEndRequestProto.newBuilder() to construct. - private AbstractBranchEndRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private AbstractBranchEndRequestProto() { - xid_ = ""; - branchType_ = 0; - resourceId_ = ""; - applicationData_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbstractBranchEndRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder subBuilder = null; - if (abstractTransactionRequest_ != null) { - subBuilder = abstractTransactionRequest_.toBuilder(); - } - abstractTransactionRequest_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractTransactionRequest_); - abstractTransactionRequest_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - xid_ = s; - break; - } - case 24: { - - branchId_ = input.readInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - branchType_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - resourceId_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - applicationData_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.AbstractBranchEndRequest.internal_static_io_seata_protocol_protobuf_AbstractBranchEndRequestProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.AbstractBranchEndRequest.internal_static_io_seata_protocol_protobuf_AbstractBranchEndRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.class, io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.Builder.class); - } - - public static final int ABSTRACTTRANSACTIONREQUEST_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractTransactionRequestProto abstractTransactionRequest_; - /** - *
.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public boolean hasAbstractTransactionRequest() {
- return abstractTransactionRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest() {
- return abstractTransactionRequest_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder() {
- return getAbstractTransactionRequest();
- }
-
- public static final int XID_FIELD_NUMBER = 2;
- private volatile java.lang.Object xid_;
- /**
- * string xid = 2;
- */
- public java.lang.String getXid() {
- java.lang.Object ref = xid_;
- 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();
- xid_ = s;
- return s;
- }
- }
- /**
- * string xid = 2;
- */
- public com.google.protobuf.ByteString
- getXidBytes() {
- java.lang.Object ref = xid_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- xid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int BRANCHID_FIELD_NUMBER = 3;
- private long branchId_;
- /**
- * - ** - * The Branch id. - *- * - *
int64 branchId = 3;
- */
- public long getBranchId() {
- return branchId_;
- }
-
- public static final int BRANCHTYPE_FIELD_NUMBER = 4;
- private int branchType_;
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public int getBranchTypeValue() {
- return branchType_;
- }
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public io.seata.codec.protobuf.generated.BranchTypeProto getBranchType() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.BranchTypeProto result = io.seata.codec.protobuf.generated.BranchTypeProto.valueOf(branchType_);
- return result == null ? io.seata.codec.protobuf.generated.BranchTypeProto.UNRECOGNIZED : result;
- }
-
- public static final int RESOURCEID_FIELD_NUMBER = 5;
- private volatile java.lang.Object resourceId_;
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 5;
- */
- public java.lang.String getResourceId() {
- java.lang.Object ref = resourceId_;
- 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();
- resourceId_ = s;
- return s;
- }
- }
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 5;
- */
- public com.google.protobuf.ByteString
- getResourceIdBytes() {
- java.lang.Object ref = resourceId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- resourceId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int APPLICATIONDATA_FIELD_NUMBER = 6;
- private volatile java.lang.Object applicationData_;
- /**
- * - ** - * The Application data. - *- * - *
string applicationData = 6;
- */
- public java.lang.String getApplicationData() {
- java.lang.Object ref = applicationData_;
- 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();
- applicationData_ = s;
- return s;
- }
- }
- /**
- * - ** - * The Application data. - *- * - *
string applicationData = 6;
- */
- public com.google.protobuf.ByteString
- getApplicationDataBytes() {
- java.lang.Object ref = applicationData_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- applicationData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractTransactionRequest_ != null) {
- output.writeMessage(1, getAbstractTransactionRequest());
- }
- if (!getXidBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, xid_);
- }
- if (branchId_ != 0L) {
- output.writeInt64(3, branchId_);
- }
- if (branchType_ != io.seata.codec.protobuf.generated.BranchTypeProto.AT.getNumber()) {
- output.writeEnum(4, branchType_);
- }
- if (!getResourceIdBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, resourceId_);
- }
- if (!getApplicationDataBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, applicationData_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractTransactionRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractTransactionRequest());
- }
- if (!getXidBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, xid_);
- }
- if (branchId_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(3, branchId_);
- }
- if (branchType_ != io.seata.codec.protobuf.generated.BranchTypeProto.AT.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(4, branchType_);
- }
- if (!getResourceIdBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, resourceId_);
- }
- if (!getApplicationDataBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, applicationData_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto other = (io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto) obj;
-
- if (hasAbstractTransactionRequest() != other.hasAbstractTransactionRequest()) return false;
- if (hasAbstractTransactionRequest()) {
- if (!getAbstractTransactionRequest()
- .equals(other.getAbstractTransactionRequest())) return false;
- }
- if (!getXid()
- .equals(other.getXid())) return false;
- if (getBranchId()
- != other.getBranchId()) return false;
- if (branchType_ != other.branchType_) return false;
- if (!getResourceId()
- .equals(other.getResourceId())) return false;
- if (!getApplicationData()
- .equals(other.getApplicationData())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractTransactionRequest()) {
- hash = (37 * hash) + ABSTRACTTRANSACTIONREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractTransactionRequest().hashCode();
- }
- hash = (37 * hash) + XID_FIELD_NUMBER;
- hash = (53 * hash) + getXid().hashCode();
- hash = (37 * hash) + BRANCHID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getBranchId());
- hash = (37 * hash) + BRANCHTYPE_FIELD_NUMBER;
- hash = (53 * hash) + branchType_;
- hash = (37 * hash) + RESOURCEID_FIELD_NUMBER;
- hash = (53 * hash) + getResourceId().hashCode();
- hash = (37 * hash) + APPLICATIONDATA_FIELD_NUMBER;
- hash = (53 * hash) + getApplicationData().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractBranchEndRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public boolean hasAbstractTransactionRequest() {
- return abstractTransactionRequestBuilder_ != null || abstractTransactionRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest() {
- if (abstractTransactionRequestBuilder_ == null) {
- return abstractTransactionRequest_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- } else {
- return abstractTransactionRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder setAbstractTransactionRequest(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto value) {
- if (abstractTransactionRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractTransactionRequest_ = value;
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder setAbstractTransactionRequest(
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder builderForValue) {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder mergeAbstractTransactionRequest(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto value) {
- if (abstractTransactionRequestBuilder_ == null) {
- if (abstractTransactionRequest_ != null) {
- abstractTransactionRequest_ =
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.newBuilder(abstractTransactionRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractTransactionRequest_ = value;
- }
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder clearAbstractTransactionRequest() {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequest_ = null;
- onChanged();
- } else {
- abstractTransactionRequest_ = null;
- abstractTransactionRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder getAbstractTransactionRequestBuilder() {
-
- onChanged();
- return getAbstractTransactionRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder() {
- if (abstractTransactionRequestBuilder_ != null) {
- return abstractTransactionRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractTransactionRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder>
- getAbstractTransactionRequestFieldBuilder() {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder>(
- getAbstractTransactionRequest(),
- getParentForChildren(),
- isClean());
- abstractTransactionRequest_ = null;
- }
- return abstractTransactionRequestBuilder_;
- }
-
- private java.lang.Object xid_ = "";
- /**
- * string xid = 2;
- */
- public java.lang.String getXid() {
- java.lang.Object ref = xid_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- xid_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string xid = 2;
- */
- public com.google.protobuf.ByteString
- getXidBytes() {
- java.lang.Object ref = xid_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- xid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string xid = 2;
- */
- public Builder setXid(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- xid_ = value;
- onChanged();
- return this;
- }
- /**
- * string xid = 2;
- */
- public Builder clearXid() {
-
- xid_ = getDefaultInstance().getXid();
- onChanged();
- return this;
- }
- /**
- * string xid = 2;
- */
- public Builder setXidBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- xid_ = value;
- onChanged();
- return this;
- }
-
- private long branchId_ ;
- /**
- * - ** - * The Branch id. - *- * - *
int64 branchId = 3;
- */
- public long getBranchId() {
- return branchId_;
- }
- /**
- * - ** - * The Branch id. - *- * - *
int64 branchId = 3;
- */
- public Builder setBranchId(long value) {
-
- branchId_ = value;
- onChanged();
- return this;
- }
- /**
- * - ** - * The Branch id. - *- * - *
int64 branchId = 3;
- */
- public Builder clearBranchId() {
-
- branchId_ = 0L;
- onChanged();
- return this;
- }
-
- private int branchType_ = 0;
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public int getBranchTypeValue() {
- return branchType_;
- }
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public Builder setBranchTypeValue(int value) {
- branchType_ = value;
- onChanged();
- return this;
- }
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public io.seata.codec.protobuf.generated.BranchTypeProto getBranchType() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.BranchTypeProto result = io.seata.codec.protobuf.generated.BranchTypeProto.valueOf(branchType_);
- return result == null ? io.seata.codec.protobuf.generated.BranchTypeProto.UNRECOGNIZED : result;
- }
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public Builder setBranchType(io.seata.codec.protobuf.generated.BranchTypeProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- branchType_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public Builder clearBranchType() {
-
- branchType_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object resourceId_ = "";
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 5;
- */
- public java.lang.String getResourceId() {
- java.lang.Object ref = resourceId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- resourceId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 5;
- */
- public com.google.protobuf.ByteString
- getResourceIdBytes() {
- java.lang.Object ref = resourceId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- resourceId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 5;
- */
- public Builder setResourceId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- resourceId_ = value;
- onChanged();
- return this;
- }
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 5;
- */
- public Builder clearResourceId() {
-
- resourceId_ = getDefaultInstance().getResourceId();
- onChanged();
- return this;
- }
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 5;
- */
- public Builder setResourceIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- resourceId_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object applicationData_ = "";
- /**
- * - ** - * The Application data. - *- * - *
string applicationData = 6;
- */
- public java.lang.String getApplicationData() {
- java.lang.Object ref = applicationData_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- applicationData_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - ** - * The Application data. - *- * - *
string applicationData = 6;
- */
- public com.google.protobuf.ByteString
- getApplicationDataBytes() {
- java.lang.Object ref = applicationData_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- applicationData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - ** - * The Application data. - *- * - *
string applicationData = 6;
- */
- public Builder setApplicationData(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- applicationData_ = value;
- onChanged();
- return this;
- }
- /**
- * - ** - * The Application data. - *- * - *
string applicationData = 6;
- */
- public Builder clearApplicationData() {
-
- applicationData_ = getDefaultInstance().getApplicationData();
- onChanged();
- return this;
- }
- /**
- * - ** - * The Application data. - *- * - *
string applicationData = 6;
- */
- public Builder setApplicationDataBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- applicationData_ = value;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.AbstractBranchEndRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.AbstractBranchEndRequestProto)
- private static final io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- boolean hasAbstractTransactionRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder();
-
- /**
- * string xid = 2;
- */
- java.lang.String getXid();
- /**
- * string xid = 2;
- */
- com.google.protobuf.ByteString
- getXidBytes();
-
- /**
- * - ** - * The Branch id. - *- * - *
int64 branchId = 3;
- */
- long getBranchId();
-
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- int getBranchTypeValue();
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- io.seata.codec.protobuf.generated.BranchTypeProto getBranchType();
-
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 5;
- */
- java.lang.String getResourceId();
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 5;
- */
- com.google.protobuf.ByteString
- getResourceIdBytes();
-
- /**
- * - ** - * The Application data. - *- * - *
string applicationData = 6;
- */
- java.lang.String getApplicationData();
- /**
- * - ** - * The Application data. - *- * - *
string applicationData = 6;
- */
- com.google.protobuf.ByteString
- getApplicationDataBytes();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractBranchEndResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractBranchEndResponse.java
deleted file mode 100644
index 6af4ef672d3..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractBranchEndResponse.java
+++ /dev/null
@@ -1,68 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractBranchEndResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class AbstractBranchEndResponse {
- private AbstractBranchEndResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_AbstractBranchEndResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_AbstractBranchEndResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\037abstractBranchEndResponse.proto\022\032io.se" +
- "ata.protocol.protobuf\032!abstractTransacti" +
- "onResponse.proto\032\022branchStatus.proto\"\347\001\n" +
- "\036AbstractBranchEndResponseProto\022a\n\033abstr" +
- "actTransactionResponse\030\001 \001(\0132<.io.seata." +
- "protocol.protobuf.AbstractTransactionRes" +
- "ponseProto\022\013\n\003xid\030\002 \001(\t\022\020\n\010branchId\030\003 \001(" +
- "\003\022C\n\014branchStatus\030\004 \001(\0162-.io.seata.proto" +
- "col.protobuf.BranchStatusProtoB@\n!io.sea" +
- "ta.codec.protobuf.generatedB\031AbstractBra" +
- "nchEndResponseP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractTransactionResponse.getDescriptor(),
- io.seata.codec.protobuf.generated.BranchStatus.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_AbstractBranchEndResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_AbstractBranchEndResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_AbstractBranchEndResponseProto_descriptor,
- new java.lang.String[] { "AbstractTransactionResponse", "Xid", "BranchId", "BranchStatus", });
- io.seata.codec.protobuf.generated.AbstractTransactionResponse.getDescriptor();
- io.seata.codec.protobuf.generated.BranchStatus.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractBranchEndResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractBranchEndResponseProto.java
deleted file mode 100644
index b206980cac6..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractBranchEndResponseProto.java
+++ /dev/null
@@ -1,872 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractBranchEndResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractBranchEndResponseProto} - */ -public final class AbstractBranchEndResponseProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.AbstractBranchEndResponseProto) - AbstractBranchEndResponseProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use AbstractBranchEndResponseProto.newBuilder() to construct. - private AbstractBranchEndResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private AbstractBranchEndResponseProto() { - xid_ = ""; - branchStatus_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbstractBranchEndResponseProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder subBuilder = null; - if (abstractTransactionResponse_ != null) { - subBuilder = abstractTransactionResponse_.toBuilder(); - } - abstractTransactionResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractTransactionResponse_); - abstractTransactionResponse_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - xid_ = s; - break; - } - case 24: { - - branchId_ = input.readInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - branchStatus_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.AbstractBranchEndResponse.internal_static_io_seata_protocol_protobuf_AbstractBranchEndResponseProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.AbstractBranchEndResponse.internal_static_io_seata_protocol_protobuf_AbstractBranchEndResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.class, io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.Builder.class); - } - - public static final int ABSTRACTTRANSACTIONRESPONSE_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractTransactionResponseProto abstractTransactionResponse_; - /** - *
.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public boolean hasAbstractTransactionResponse() {
- return abstractTransactionResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse() {
- return abstractTransactionResponse_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder() {
- return getAbstractTransactionResponse();
- }
-
- public static final int XID_FIELD_NUMBER = 2;
- private volatile java.lang.Object xid_;
- /**
- * string xid = 2;
- */
- public java.lang.String getXid() {
- java.lang.Object ref = xid_;
- 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();
- xid_ = s;
- return s;
- }
- }
- /**
- * string xid = 2;
- */
- public com.google.protobuf.ByteString
- getXidBytes() {
- java.lang.Object ref = xid_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- xid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int BRANCHID_FIELD_NUMBER = 3;
- private long branchId_;
- /**
- * int64 branchId = 3;
- */
- public long getBranchId() {
- return branchId_;
- }
-
- public static final int BRANCHSTATUS_FIELD_NUMBER = 4;
- private int branchStatus_;
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto branchStatus = 4;
- */
- public int getBranchStatusValue() {
- return branchStatus_;
- }
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto branchStatus = 4;
- */
- public io.seata.codec.protobuf.generated.BranchStatusProto getBranchStatus() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.BranchStatusProto result = io.seata.codec.protobuf.generated.BranchStatusProto.valueOf(branchStatus_);
- return result == null ? io.seata.codec.protobuf.generated.BranchStatusProto.UNRECOGNIZED : result;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractTransactionResponse_ != null) {
- output.writeMessage(1, getAbstractTransactionResponse());
- }
- if (!getXidBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, xid_);
- }
- if (branchId_ != 0L) {
- output.writeInt64(3, branchId_);
- }
- if (branchStatus_ != io.seata.codec.protobuf.generated.BranchStatusProto.BUnknown.getNumber()) {
- output.writeEnum(4, branchStatus_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractTransactionResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractTransactionResponse());
- }
- if (!getXidBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, xid_);
- }
- if (branchId_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(3, branchId_);
- }
- if (branchStatus_ != io.seata.codec.protobuf.generated.BranchStatusProto.BUnknown.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(4, branchStatus_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto other = (io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto) obj;
-
- if (hasAbstractTransactionResponse() != other.hasAbstractTransactionResponse()) return false;
- if (hasAbstractTransactionResponse()) {
- if (!getAbstractTransactionResponse()
- .equals(other.getAbstractTransactionResponse())) return false;
- }
- if (!getXid()
- .equals(other.getXid())) return false;
- if (getBranchId()
- != other.getBranchId()) return false;
- if (branchStatus_ != other.branchStatus_) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractTransactionResponse()) {
- hash = (37 * hash) + ABSTRACTTRANSACTIONRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractTransactionResponse().hashCode();
- }
- hash = (37 * hash) + XID_FIELD_NUMBER;
- hash = (53 * hash) + getXid().hashCode();
- hash = (37 * hash) + BRANCHID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getBranchId());
- hash = (37 * hash) + BRANCHSTATUS_FIELD_NUMBER;
- hash = (53 * hash) + branchStatus_;
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractBranchEndResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public boolean hasAbstractTransactionResponse() {
- return abstractTransactionResponseBuilder_ != null || abstractTransactionResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse() {
- if (abstractTransactionResponseBuilder_ == null) {
- return abstractTransactionResponse_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- } else {
- return abstractTransactionResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder setAbstractTransactionResponse(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto value) {
- if (abstractTransactionResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractTransactionResponse_ = value;
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder setAbstractTransactionResponse(
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder builderForValue) {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder mergeAbstractTransactionResponse(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto value) {
- if (abstractTransactionResponseBuilder_ == null) {
- if (abstractTransactionResponse_ != null) {
- abstractTransactionResponse_ =
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.newBuilder(abstractTransactionResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractTransactionResponse_ = value;
- }
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder clearAbstractTransactionResponse() {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponse_ = null;
- onChanged();
- } else {
- abstractTransactionResponse_ = null;
- abstractTransactionResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder getAbstractTransactionResponseBuilder() {
-
- onChanged();
- return getAbstractTransactionResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder() {
- if (abstractTransactionResponseBuilder_ != null) {
- return abstractTransactionResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractTransactionResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder>
- getAbstractTransactionResponseFieldBuilder() {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder>(
- getAbstractTransactionResponse(),
- getParentForChildren(),
- isClean());
- abstractTransactionResponse_ = null;
- }
- return abstractTransactionResponseBuilder_;
- }
-
- private java.lang.Object xid_ = "";
- /**
- * string xid = 2;
- */
- public java.lang.String getXid() {
- java.lang.Object ref = xid_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- xid_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string xid = 2;
- */
- public com.google.protobuf.ByteString
- getXidBytes() {
- java.lang.Object ref = xid_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- xid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string xid = 2;
- */
- public Builder setXid(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- xid_ = value;
- onChanged();
- return this;
- }
- /**
- * string xid = 2;
- */
- public Builder clearXid() {
-
- xid_ = getDefaultInstance().getXid();
- onChanged();
- return this;
- }
- /**
- * string xid = 2;
- */
- public Builder setXidBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- xid_ = value;
- onChanged();
- return this;
- }
-
- private long branchId_ ;
- /**
- * int64 branchId = 3;
- */
- public long getBranchId() {
- return branchId_;
- }
- /**
- * int64 branchId = 3;
- */
- public Builder setBranchId(long value) {
-
- branchId_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 branchId = 3;
- */
- public Builder clearBranchId() {
-
- branchId_ = 0L;
- onChanged();
- return this;
- }
-
- private int branchStatus_ = 0;
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto branchStatus = 4;
- */
- public int getBranchStatusValue() {
- return branchStatus_;
- }
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto branchStatus = 4;
- */
- public Builder setBranchStatusValue(int value) {
- branchStatus_ = value;
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto branchStatus = 4;
- */
- public io.seata.codec.protobuf.generated.BranchStatusProto getBranchStatus() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.BranchStatusProto result = io.seata.codec.protobuf.generated.BranchStatusProto.valueOf(branchStatus_);
- return result == null ? io.seata.codec.protobuf.generated.BranchStatusProto.UNRECOGNIZED : result;
- }
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto branchStatus = 4;
- */
- public Builder setBranchStatus(io.seata.codec.protobuf.generated.BranchStatusProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- branchStatus_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto branchStatus = 4;
- */
- public Builder clearBranchStatus() {
-
- branchStatus_ = 0;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.AbstractBranchEndResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.AbstractBranchEndResponseProto)
- private static final io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- boolean hasAbstractTransactionResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder();
-
- /**
- * string xid = 2;
- */
- java.lang.String getXid();
- /**
- * string xid = 2;
- */
- com.google.protobuf.ByteString
- getXidBytes();
-
- /**
- * int64 branchId = 3;
- */
- long getBranchId();
-
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto branchStatus = 4;
- */
- int getBranchStatusValue();
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto branchStatus = 4;
- */
- io.seata.codec.protobuf.generated.BranchStatusProto getBranchStatus();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractGlobalEndRequest.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractGlobalEndRequest.java
deleted file mode 100644
index 7925b0ec6eb..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractGlobalEndRequest.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractGlobalEndRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class AbstractGlobalEndRequest {
- private AbstractGlobalEndRequest() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_AbstractGlobalEndRequestProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_AbstractGlobalEndRequestProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\036abstractGlobalEndRequest.proto\022\032io.sea" +
- "ta.protocol.protobuf\032 abstractTransactio" +
- "nRequest.proto\"\240\001\n\035AbstractGlobalEndRequ" +
- "estProto\022_\n\032abstractTransactionRequest\030\001" +
- " \001(\0132;.io.seata.protocol.protobuf.Abstra" +
- "ctTransactionRequestProto\022\013\n\003xid\030\002 \001(\t\022\021" +
- "\n\textraData\030\003 \001(\tB?\n!io.seata.codec.prot" +
- "obuf.generatedB\030AbstractGlobalEndRequest" +
- "P\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractTransactionRequest.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_AbstractGlobalEndRequestProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_AbstractGlobalEndRequestProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_AbstractGlobalEndRequestProto_descriptor,
- new java.lang.String[] { "AbstractTransactionRequest", "Xid", "ExtraData", });
- io.seata.codec.protobuf.generated.AbstractTransactionRequest.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractGlobalEndRequestProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractGlobalEndRequestProto.java
deleted file mode 100644
index c005bc52227..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractGlobalEndRequestProto.java
+++ /dev/null
@@ -1,856 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractGlobalEndRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractGlobalEndRequestProto} - */ -public final class AbstractGlobalEndRequestProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.AbstractGlobalEndRequestProto) - AbstractGlobalEndRequestProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use AbstractGlobalEndRequestProto.newBuilder() to construct. - private AbstractGlobalEndRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private AbstractGlobalEndRequestProto() { - xid_ = ""; - extraData_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbstractGlobalEndRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder subBuilder = null; - if (abstractTransactionRequest_ != null) { - subBuilder = abstractTransactionRequest_.toBuilder(); - } - abstractTransactionRequest_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractTransactionRequest_); - abstractTransactionRequest_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - xid_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - extraData_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.AbstractGlobalEndRequest.internal_static_io_seata_protocol_protobuf_AbstractGlobalEndRequestProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.AbstractGlobalEndRequest.internal_static_io_seata_protocol_protobuf_AbstractGlobalEndRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.class, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder.class); - } - - public static final int ABSTRACTTRANSACTIONREQUEST_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractTransactionRequestProto abstractTransactionRequest_; - /** - *
.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public boolean hasAbstractTransactionRequest() {
- return abstractTransactionRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest() {
- return abstractTransactionRequest_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder() {
- return getAbstractTransactionRequest();
- }
-
- public static final int XID_FIELD_NUMBER = 2;
- private volatile java.lang.Object xid_;
- /**
- * string xid = 2;
- */
- public java.lang.String getXid() {
- java.lang.Object ref = xid_;
- 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();
- xid_ = s;
- return s;
- }
- }
- /**
- * string xid = 2;
- */
- public com.google.protobuf.ByteString
- getXidBytes() {
- java.lang.Object ref = xid_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- xid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int EXTRADATA_FIELD_NUMBER = 3;
- private volatile java.lang.Object extraData_;
- /**
- * string extraData = 3;
- */
- public java.lang.String getExtraData() {
- java.lang.Object ref = extraData_;
- 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();
- extraData_ = s;
- return s;
- }
- }
- /**
- * string extraData = 3;
- */
- public com.google.protobuf.ByteString
- getExtraDataBytes() {
- java.lang.Object ref = extraData_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- extraData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractTransactionRequest_ != null) {
- output.writeMessage(1, getAbstractTransactionRequest());
- }
- if (!getXidBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, xid_);
- }
- if (!getExtraDataBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, extraData_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractTransactionRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractTransactionRequest());
- }
- if (!getXidBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, xid_);
- }
- if (!getExtraDataBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, extraData_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto other = (io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto) obj;
-
- if (hasAbstractTransactionRequest() != other.hasAbstractTransactionRequest()) return false;
- if (hasAbstractTransactionRequest()) {
- if (!getAbstractTransactionRequest()
- .equals(other.getAbstractTransactionRequest())) return false;
- }
- if (!getXid()
- .equals(other.getXid())) return false;
- if (!getExtraData()
- .equals(other.getExtraData())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractTransactionRequest()) {
- hash = (37 * hash) + ABSTRACTTRANSACTIONREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractTransactionRequest().hashCode();
- }
- hash = (37 * hash) + XID_FIELD_NUMBER;
- hash = (53 * hash) + getXid().hashCode();
- hash = (37 * hash) + EXTRADATA_FIELD_NUMBER;
- hash = (53 * hash) + getExtraData().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractGlobalEndRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public boolean hasAbstractTransactionRequest() {
- return abstractTransactionRequestBuilder_ != null || abstractTransactionRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest() {
- if (abstractTransactionRequestBuilder_ == null) {
- return abstractTransactionRequest_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- } else {
- return abstractTransactionRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder setAbstractTransactionRequest(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto value) {
- if (abstractTransactionRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractTransactionRequest_ = value;
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder setAbstractTransactionRequest(
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder builderForValue) {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder mergeAbstractTransactionRequest(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto value) {
- if (abstractTransactionRequestBuilder_ == null) {
- if (abstractTransactionRequest_ != null) {
- abstractTransactionRequest_ =
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.newBuilder(abstractTransactionRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractTransactionRequest_ = value;
- }
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder clearAbstractTransactionRequest() {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequest_ = null;
- onChanged();
- } else {
- abstractTransactionRequest_ = null;
- abstractTransactionRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder getAbstractTransactionRequestBuilder() {
-
- onChanged();
- return getAbstractTransactionRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder() {
- if (abstractTransactionRequestBuilder_ != null) {
- return abstractTransactionRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractTransactionRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder>
- getAbstractTransactionRequestFieldBuilder() {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder>(
- getAbstractTransactionRequest(),
- getParentForChildren(),
- isClean());
- abstractTransactionRequest_ = null;
- }
- return abstractTransactionRequestBuilder_;
- }
-
- private java.lang.Object xid_ = "";
- /**
- * string xid = 2;
- */
- public java.lang.String getXid() {
- java.lang.Object ref = xid_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- xid_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string xid = 2;
- */
- public com.google.protobuf.ByteString
- getXidBytes() {
- java.lang.Object ref = xid_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- xid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string xid = 2;
- */
- public Builder setXid(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- xid_ = value;
- onChanged();
- return this;
- }
- /**
- * string xid = 2;
- */
- public Builder clearXid() {
-
- xid_ = getDefaultInstance().getXid();
- onChanged();
- return this;
- }
- /**
- * string xid = 2;
- */
- public Builder setXidBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- xid_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object extraData_ = "";
- /**
- * string extraData = 3;
- */
- public java.lang.String getExtraData() {
- java.lang.Object ref = extraData_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- extraData_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string extraData = 3;
- */
- public com.google.protobuf.ByteString
- getExtraDataBytes() {
- java.lang.Object ref = extraData_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- extraData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string extraData = 3;
- */
- public Builder setExtraData(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- extraData_ = value;
- onChanged();
- return this;
- }
- /**
- * string extraData = 3;
- */
- public Builder clearExtraData() {
-
- extraData_ = getDefaultInstance().getExtraData();
- onChanged();
- return this;
- }
- /**
- * string extraData = 3;
- */
- public Builder setExtraDataBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- extraData_ = value;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.AbstractGlobalEndRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.AbstractGlobalEndRequestProto)
- private static final io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- boolean hasAbstractTransactionRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder();
-
- /**
- * string xid = 2;
- */
- java.lang.String getXid();
- /**
- * string xid = 2;
- */
- com.google.protobuf.ByteString
- getXidBytes();
-
- /**
- * string extraData = 3;
- */
- java.lang.String getExtraData();
- /**
- * string extraData = 3;
- */
- com.google.protobuf.ByteString
- getExtraDataBytes();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractGlobalEndResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractGlobalEndResponse.java
deleted file mode 100644
index eb183b7a64b..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractGlobalEndResponse.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractGlobalEndResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class AbstractGlobalEndResponse {
- private AbstractGlobalEndResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_AbstractGlobalEndResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_AbstractGlobalEndResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\037abstractGlobalEndResponse.proto\022\032io.se" +
- "ata.protocol.protobuf\032!abstractTransacti" +
- "onResponse.proto\032\022globalStatus.proto\"\310\001\n" +
- "\036AbstractGlobalEndResponseProto\022a\n\033abstr" +
- "actTransactionResponse\030\001 \001(\0132<.io.seata." +
- "protocol.protobuf.AbstractTransactionRes" +
- "ponseProto\022C\n\014globalStatus\030\002 \001(\0162-.io.se" +
- "ata.protocol.protobuf.GlobalStatusProtoB" +
- "@\n!io.seata.codec.protobuf.generatedB\031Ab" +
- "stractGlobalEndResponseP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractTransactionResponse.getDescriptor(),
- io.seata.codec.protobuf.generated.GlobalStatus.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_AbstractGlobalEndResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_AbstractGlobalEndResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_AbstractGlobalEndResponseProto_descriptor,
- new java.lang.String[] { "AbstractTransactionResponse", "GlobalStatus", });
- io.seata.codec.protobuf.generated.AbstractTransactionResponse.getDescriptor();
- io.seata.codec.protobuf.generated.GlobalStatus.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractGlobalEndResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractGlobalEndResponseProto.java
deleted file mode 100644
index 86a100786a5..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractGlobalEndResponseProto.java
+++ /dev/null
@@ -1,687 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractGlobalEndResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractGlobalEndResponseProto} - */ -public final class AbstractGlobalEndResponseProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.AbstractGlobalEndResponseProto) - AbstractGlobalEndResponseProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use AbstractGlobalEndResponseProto.newBuilder() to construct. - private AbstractGlobalEndResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private AbstractGlobalEndResponseProto() { - globalStatus_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbstractGlobalEndResponseProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder subBuilder = null; - if (abstractTransactionResponse_ != null) { - subBuilder = abstractTransactionResponse_.toBuilder(); - } - abstractTransactionResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractTransactionResponse_); - abstractTransactionResponse_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - globalStatus_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.AbstractGlobalEndResponse.internal_static_io_seata_protocol_protobuf_AbstractGlobalEndResponseProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.AbstractGlobalEndResponse.internal_static_io_seata_protocol_protobuf_AbstractGlobalEndResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.class, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder.class); - } - - public static final int ABSTRACTTRANSACTIONRESPONSE_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractTransactionResponseProto abstractTransactionResponse_; - /** - *
.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public boolean hasAbstractTransactionResponse() {
- return abstractTransactionResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse() {
- return abstractTransactionResponse_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder() {
- return getAbstractTransactionResponse();
- }
-
- public static final int GLOBALSTATUS_FIELD_NUMBER = 2;
- private int globalStatus_;
- /**
- * .io.seata.protocol.protobuf.GlobalStatusProto globalStatus = 2;
- */
- public int getGlobalStatusValue() {
- return globalStatus_;
- }
- /**
- * .io.seata.protocol.protobuf.GlobalStatusProto globalStatus = 2;
- */
- public io.seata.codec.protobuf.generated.GlobalStatusProto getGlobalStatus() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.GlobalStatusProto result = io.seata.codec.protobuf.generated.GlobalStatusProto.valueOf(globalStatus_);
- return result == null ? io.seata.codec.protobuf.generated.GlobalStatusProto.UNRECOGNIZED : result;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractTransactionResponse_ != null) {
- output.writeMessage(1, getAbstractTransactionResponse());
- }
- if (globalStatus_ != io.seata.codec.protobuf.generated.GlobalStatusProto.UnKnown.getNumber()) {
- output.writeEnum(2, globalStatus_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractTransactionResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractTransactionResponse());
- }
- if (globalStatus_ != io.seata.codec.protobuf.generated.GlobalStatusProto.UnKnown.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, globalStatus_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto other = (io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto) obj;
-
- if (hasAbstractTransactionResponse() != other.hasAbstractTransactionResponse()) return false;
- if (hasAbstractTransactionResponse()) {
- if (!getAbstractTransactionResponse()
- .equals(other.getAbstractTransactionResponse())) return false;
- }
- if (globalStatus_ != other.globalStatus_) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractTransactionResponse()) {
- hash = (37 * hash) + ABSTRACTTRANSACTIONRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractTransactionResponse().hashCode();
- }
- hash = (37 * hash) + GLOBALSTATUS_FIELD_NUMBER;
- hash = (53 * hash) + globalStatus_;
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractGlobalEndResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public boolean hasAbstractTransactionResponse() {
- return abstractTransactionResponseBuilder_ != null || abstractTransactionResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse() {
- if (abstractTransactionResponseBuilder_ == null) {
- return abstractTransactionResponse_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- } else {
- return abstractTransactionResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder setAbstractTransactionResponse(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto value) {
- if (abstractTransactionResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractTransactionResponse_ = value;
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder setAbstractTransactionResponse(
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder builderForValue) {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder mergeAbstractTransactionResponse(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto value) {
- if (abstractTransactionResponseBuilder_ == null) {
- if (abstractTransactionResponse_ != null) {
- abstractTransactionResponse_ =
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.newBuilder(abstractTransactionResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractTransactionResponse_ = value;
- }
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder clearAbstractTransactionResponse() {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponse_ = null;
- onChanged();
- } else {
- abstractTransactionResponse_ = null;
- abstractTransactionResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder getAbstractTransactionResponseBuilder() {
-
- onChanged();
- return getAbstractTransactionResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder() {
- if (abstractTransactionResponseBuilder_ != null) {
- return abstractTransactionResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractTransactionResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder>
- getAbstractTransactionResponseFieldBuilder() {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder>(
- getAbstractTransactionResponse(),
- getParentForChildren(),
- isClean());
- abstractTransactionResponse_ = null;
- }
- return abstractTransactionResponseBuilder_;
- }
-
- private int globalStatus_ = 0;
- /**
- * .io.seata.protocol.protobuf.GlobalStatusProto globalStatus = 2;
- */
- public int getGlobalStatusValue() {
- return globalStatus_;
- }
- /**
- * .io.seata.protocol.protobuf.GlobalStatusProto globalStatus = 2;
- */
- public Builder setGlobalStatusValue(int value) {
- globalStatus_ = value;
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.GlobalStatusProto globalStatus = 2;
- */
- public io.seata.codec.protobuf.generated.GlobalStatusProto getGlobalStatus() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.GlobalStatusProto result = io.seata.codec.protobuf.generated.GlobalStatusProto.valueOf(globalStatus_);
- return result == null ? io.seata.codec.protobuf.generated.GlobalStatusProto.UNRECOGNIZED : result;
- }
- /**
- * .io.seata.protocol.protobuf.GlobalStatusProto globalStatus = 2;
- */
- public Builder setGlobalStatus(io.seata.codec.protobuf.generated.GlobalStatusProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- globalStatus_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.GlobalStatusProto globalStatus = 2;
- */
- public Builder clearGlobalStatus() {
-
- globalStatus_ = 0;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.AbstractGlobalEndResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.AbstractGlobalEndResponseProto)
- private static final io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- boolean hasAbstractTransactionResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder();
-
- /**
- * .io.seata.protocol.protobuf.GlobalStatusProto globalStatus = 2;
- */
- int getGlobalStatusValue();
- /**
- * .io.seata.protocol.protobuf.GlobalStatusProto globalStatus = 2;
- */
- io.seata.codec.protobuf.generated.GlobalStatusProto getGlobalStatus();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractIdentifyRequest.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractIdentifyRequest.java
deleted file mode 100644
index 723c92d908a..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractIdentifyRequest.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractIdentifyRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class AbstractIdentifyRequest {
- private AbstractIdentifyRequest() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_AbstractIdentifyRequestProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_AbstractIdentifyRequestProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\035abstractIdentifyRequest.proto\022\032io.seat" +
- "a.protocol.protobuf\032\025abstractMessage.pro" +
- "to\"\305\001\n\034AbstractIdentifyRequestProto\022I\n\017a" +
- "bstractMessage\030\001 \001(\01320.io.seata.protocol" +
- ".protobuf.AbstractMessageProto\022\017\n\007versio" +
- "n\030\002 \001(\t\022\025\n\rapplicationId\030\003 \001(\t\022\037\n\027transa" +
- "ctionServiceGroup\030\004 \001(\t\022\021\n\textraData\030\005 \001" +
- "(\tB>\n!io.seata.codec.protobuf.generatedB" +
- "\027AbstractIdentifyRequestP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractMessage.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_AbstractIdentifyRequestProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_AbstractIdentifyRequestProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_AbstractIdentifyRequestProto_descriptor,
- new java.lang.String[] { "AbstractMessage", "Version", "ApplicationId", "TransactionServiceGroup", "ExtraData", });
- io.seata.codec.protobuf.generated.AbstractMessage.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractIdentifyRequestProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractIdentifyRequestProto.java
deleted file mode 100644
index e48f96410a8..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractIdentifyRequestProto.java
+++ /dev/null
@@ -1,1110 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractIdentifyRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractIdentifyRequestProto} - */ -public final class AbstractIdentifyRequestProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.AbstractIdentifyRequestProto) - AbstractIdentifyRequestProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use AbstractIdentifyRequestProto.newBuilder() to construct. - private AbstractIdentifyRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private AbstractIdentifyRequestProto() { - version_ = ""; - applicationId_ = ""; - transactionServiceGroup_ = ""; - extraData_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbstractIdentifyRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractMessageProto.Builder subBuilder = null; - if (abstractMessage_ != null) { - subBuilder = abstractMessage_.toBuilder(); - } - abstractMessage_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractMessageProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractMessage_); - abstractMessage_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - applicationId_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - transactionServiceGroup_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - extraData_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.AbstractIdentifyRequest.internal_static_io_seata_protocol_protobuf_AbstractIdentifyRequestProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.AbstractIdentifyRequest.internal_static_io_seata_protocol_protobuf_AbstractIdentifyRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.class, io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.Builder.class); - } - - public static final int ABSTRACTMESSAGE_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractMessageProto abstractMessage_; - /** - *
.io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public boolean hasAbstractMessage() {
- return abstractMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage() {
- return abstractMessage_ == null ? io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder() {
- return getAbstractMessage();
- }
-
- public static final int VERSION_FIELD_NUMBER = 2;
- private volatile java.lang.Object version_;
- /**
- * string version = 2;
- */
- public java.lang.String getVersion() {
- java.lang.Object ref = version_;
- 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();
- version_ = s;
- return s;
- }
- }
- /**
- * string version = 2;
- */
- public com.google.protobuf.ByteString
- getVersionBytes() {
- java.lang.Object ref = version_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- version_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int APPLICATIONID_FIELD_NUMBER = 3;
- private volatile java.lang.Object applicationId_;
- /**
- * string applicationId = 3;
- */
- public java.lang.String getApplicationId() {
- java.lang.Object ref = applicationId_;
- 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();
- applicationId_ = s;
- return s;
- }
- }
- /**
- * string applicationId = 3;
- */
- public com.google.protobuf.ByteString
- getApplicationIdBytes() {
- java.lang.Object ref = applicationId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- applicationId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int TRANSACTIONSERVICEGROUP_FIELD_NUMBER = 4;
- private volatile java.lang.Object transactionServiceGroup_;
- /**
- * string transactionServiceGroup = 4;
- */
- public java.lang.String getTransactionServiceGroup() {
- java.lang.Object ref = transactionServiceGroup_;
- 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();
- transactionServiceGroup_ = s;
- return s;
- }
- }
- /**
- * string transactionServiceGroup = 4;
- */
- public com.google.protobuf.ByteString
- getTransactionServiceGroupBytes() {
- java.lang.Object ref = transactionServiceGroup_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- transactionServiceGroup_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int EXTRADATA_FIELD_NUMBER = 5;
- private volatile java.lang.Object extraData_;
- /**
- * string extraData = 5;
- */
- public java.lang.String getExtraData() {
- java.lang.Object ref = extraData_;
- 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();
- extraData_ = s;
- return s;
- }
- }
- /**
- * string extraData = 5;
- */
- public com.google.protobuf.ByteString
- getExtraDataBytes() {
- java.lang.Object ref = extraData_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- extraData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractMessage_ != null) {
- output.writeMessage(1, getAbstractMessage());
- }
- if (!getVersionBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
- }
- if (!getApplicationIdBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, applicationId_);
- }
- if (!getTransactionServiceGroupBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, transactionServiceGroup_);
- }
- if (!getExtraDataBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, extraData_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractMessage_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractMessage());
- }
- if (!getVersionBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
- }
- if (!getApplicationIdBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, applicationId_);
- }
- if (!getTransactionServiceGroupBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, transactionServiceGroup_);
- }
- if (!getExtraDataBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, extraData_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto other = (io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto) obj;
-
- if (hasAbstractMessage() != other.hasAbstractMessage()) return false;
- if (hasAbstractMessage()) {
- if (!getAbstractMessage()
- .equals(other.getAbstractMessage())) return false;
- }
- if (!getVersion()
- .equals(other.getVersion())) return false;
- if (!getApplicationId()
- .equals(other.getApplicationId())) return false;
- if (!getTransactionServiceGroup()
- .equals(other.getTransactionServiceGroup())) return false;
- if (!getExtraData()
- .equals(other.getExtraData())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractMessage()) {
- hash = (37 * hash) + ABSTRACTMESSAGE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractMessage().hashCode();
- }
- hash = (37 * hash) + VERSION_FIELD_NUMBER;
- hash = (53 * hash) + getVersion().hashCode();
- hash = (37 * hash) + APPLICATIONID_FIELD_NUMBER;
- hash = (53 * hash) + getApplicationId().hashCode();
- hash = (37 * hash) + TRANSACTIONSERVICEGROUP_FIELD_NUMBER;
- hash = (53 * hash) + getTransactionServiceGroup().hashCode();
- hash = (37 * hash) + EXTRADATA_FIELD_NUMBER;
- hash = (53 * hash) + getExtraData().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractIdentifyRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public boolean hasAbstractMessage() {
- return abstractMessageBuilder_ != null || abstractMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage() {
- if (abstractMessageBuilder_ == null) {
- return abstractMessage_ == null ? io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- } else {
- return abstractMessageBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder setAbstractMessage(io.seata.codec.protobuf.generated.AbstractMessageProto value) {
- if (abstractMessageBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractMessage_ = value;
- onChanged();
- } else {
- abstractMessageBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder setAbstractMessage(
- io.seata.codec.protobuf.generated.AbstractMessageProto.Builder builderForValue) {
- if (abstractMessageBuilder_ == null) {
- abstractMessage_ = builderForValue.build();
- onChanged();
- } else {
- abstractMessageBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder mergeAbstractMessage(io.seata.codec.protobuf.generated.AbstractMessageProto value) {
- if (abstractMessageBuilder_ == null) {
- if (abstractMessage_ != null) {
- abstractMessage_ =
- io.seata.codec.protobuf.generated.AbstractMessageProto.newBuilder(abstractMessage_).mergeFrom(value).buildPartial();
- } else {
- abstractMessage_ = value;
- }
- onChanged();
- } else {
- abstractMessageBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder clearAbstractMessage() {
- if (abstractMessageBuilder_ == null) {
- abstractMessage_ = null;
- onChanged();
- } else {
- abstractMessage_ = null;
- abstractMessageBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto.Builder getAbstractMessageBuilder() {
-
- onChanged();
- return getAbstractMessageFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder() {
- if (abstractMessageBuilder_ != null) {
- return abstractMessageBuilder_.getMessageOrBuilder();
- } else {
- return abstractMessage_ == null ?
- io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractMessageProto, io.seata.codec.protobuf.generated.AbstractMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder>
- getAbstractMessageFieldBuilder() {
- if (abstractMessageBuilder_ == null) {
- abstractMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractMessageProto, io.seata.codec.protobuf.generated.AbstractMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder>(
- getAbstractMessage(),
- getParentForChildren(),
- isClean());
- abstractMessage_ = null;
- }
- return abstractMessageBuilder_;
- }
-
- private java.lang.Object version_ = "";
- /**
- * string version = 2;
- */
- public java.lang.String getVersion() {
- java.lang.Object ref = version_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- version_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string version = 2;
- */
- public com.google.protobuf.ByteString
- getVersionBytes() {
- java.lang.Object ref = version_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- version_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string version = 2;
- */
- public Builder setVersion(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- version_ = value;
- onChanged();
- return this;
- }
- /**
- * string version = 2;
- */
- public Builder clearVersion() {
-
- version_ = getDefaultInstance().getVersion();
- onChanged();
- return this;
- }
- /**
- * string version = 2;
- */
- public Builder setVersionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- version_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object applicationId_ = "";
- /**
- * string applicationId = 3;
- */
- public java.lang.String getApplicationId() {
- java.lang.Object ref = applicationId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- applicationId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string applicationId = 3;
- */
- public com.google.protobuf.ByteString
- getApplicationIdBytes() {
- java.lang.Object ref = applicationId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- applicationId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string applicationId = 3;
- */
- public Builder setApplicationId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- applicationId_ = value;
- onChanged();
- return this;
- }
- /**
- * string applicationId = 3;
- */
- public Builder clearApplicationId() {
-
- applicationId_ = getDefaultInstance().getApplicationId();
- onChanged();
- return this;
- }
- /**
- * string applicationId = 3;
- */
- public Builder setApplicationIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- applicationId_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object transactionServiceGroup_ = "";
- /**
- * string transactionServiceGroup = 4;
- */
- public java.lang.String getTransactionServiceGroup() {
- java.lang.Object ref = transactionServiceGroup_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- transactionServiceGroup_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string transactionServiceGroup = 4;
- */
- public com.google.protobuf.ByteString
- getTransactionServiceGroupBytes() {
- java.lang.Object ref = transactionServiceGroup_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- transactionServiceGroup_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string transactionServiceGroup = 4;
- */
- public Builder setTransactionServiceGroup(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- transactionServiceGroup_ = value;
- onChanged();
- return this;
- }
- /**
- * string transactionServiceGroup = 4;
- */
- public Builder clearTransactionServiceGroup() {
-
- transactionServiceGroup_ = getDefaultInstance().getTransactionServiceGroup();
- onChanged();
- return this;
- }
- /**
- * string transactionServiceGroup = 4;
- */
- public Builder setTransactionServiceGroupBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- transactionServiceGroup_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object extraData_ = "";
- /**
- * string extraData = 5;
- */
- public java.lang.String getExtraData() {
- java.lang.Object ref = extraData_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- extraData_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string extraData = 5;
- */
- public com.google.protobuf.ByteString
- getExtraDataBytes() {
- java.lang.Object ref = extraData_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- extraData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string extraData = 5;
- */
- public Builder setExtraData(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- extraData_ = value;
- onChanged();
- return this;
- }
- /**
- * string extraData = 5;
- */
- public Builder clearExtraData() {
-
- extraData_ = getDefaultInstance().getExtraData();
- onChanged();
- return this;
- }
- /**
- * string extraData = 5;
- */
- public Builder setExtraDataBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- extraData_ = value;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.AbstractIdentifyRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.AbstractIdentifyRequestProto)
- private static final io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- boolean hasAbstractMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder();
-
- /**
- * string version = 2;
- */
- java.lang.String getVersion();
- /**
- * string version = 2;
- */
- com.google.protobuf.ByteString
- getVersionBytes();
-
- /**
- * string applicationId = 3;
- */
- java.lang.String getApplicationId();
- /**
- * string applicationId = 3;
- */
- com.google.protobuf.ByteString
- getApplicationIdBytes();
-
- /**
- * string transactionServiceGroup = 4;
- */
- java.lang.String getTransactionServiceGroup();
- /**
- * string transactionServiceGroup = 4;
- */
- com.google.protobuf.ByteString
- getTransactionServiceGroupBytes();
-
- /**
- * string extraData = 5;
- */
- java.lang.String getExtraData();
- /**
- * string extraData = 5;
- */
- com.google.protobuf.ByteString
- getExtraDataBytes();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractIdentifyResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractIdentifyResponse.java
deleted file mode 100644
index c1a43ca7b43..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractIdentifyResponse.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractIdentifyResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class AbstractIdentifyResponse {
- private AbstractIdentifyResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_AbstractIdentifyResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_AbstractIdentifyResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\036abstractIdentifyResponse.proto\022\032io.sea" +
- "ta.protocol.protobuf\032\033abstractResultMess" +
- "age.proto\"\256\001\n\035AbstractIdentifyResponsePr" +
- "oto\022U\n\025abstractResultMessage\030\001 \001(\01326.io." +
- "seata.protocol.protobuf.AbstractResultMe" +
- "ssageProto\022\017\n\007version\030\002 \001(\t\022\021\n\textraData" +
- "\030\003 \001(\t\022\022\n\nidentified\030\004 \001(\010B?\n!io.seata.c" +
- "odec.protobuf.generatedB\030AbstractIdentif" +
- "yResponseP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractResultMessage.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_AbstractIdentifyResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_AbstractIdentifyResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_AbstractIdentifyResponseProto_descriptor,
- new java.lang.String[] { "AbstractResultMessage", "Version", "ExtraData", "Identified", });
- io.seata.codec.protobuf.generated.AbstractResultMessage.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractIdentifyResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractIdentifyResponseProto.java
deleted file mode 100644
index 95f4c31fe79..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractIdentifyResponseProto.java
+++ /dev/null
@@ -1,914 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractIdentifyResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractIdentifyResponseProto} - */ -public final class AbstractIdentifyResponseProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.AbstractIdentifyResponseProto) - AbstractIdentifyResponseProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use AbstractIdentifyResponseProto.newBuilder() to construct. - private AbstractIdentifyResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private AbstractIdentifyResponseProto() { - version_ = ""; - extraData_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbstractIdentifyResponseProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractResultMessageProto.Builder subBuilder = null; - if (abstractResultMessage_ != null) { - subBuilder = abstractResultMessage_.toBuilder(); - } - abstractResultMessage_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractResultMessageProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractResultMessage_); - abstractResultMessage_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - extraData_ = s; - break; - } - case 32: { - - identified_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.AbstractIdentifyResponse.internal_static_io_seata_protocol_protobuf_AbstractIdentifyResponseProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.AbstractIdentifyResponse.internal_static_io_seata_protocol_protobuf_AbstractIdentifyResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.class, io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.Builder.class); - } - - public static final int ABSTRACTRESULTMESSAGE_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractResultMessageProto abstractResultMessage_; - /** - *
.io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public boolean hasAbstractResultMessage() {
- return abstractResultMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractResultMessageProto getAbstractResultMessage() {
- return abstractResultMessage_ == null ? io.seata.codec.protobuf.generated.AbstractResultMessageProto.getDefaultInstance() : abstractResultMessage_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractResultMessageProtoOrBuilder getAbstractResultMessageOrBuilder() {
- return getAbstractResultMessage();
- }
-
- public static final int VERSION_FIELD_NUMBER = 2;
- private volatile java.lang.Object version_;
- /**
- * string version = 2;
- */
- public java.lang.String getVersion() {
- java.lang.Object ref = version_;
- 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();
- version_ = s;
- return s;
- }
- }
- /**
- * string version = 2;
- */
- public com.google.protobuf.ByteString
- getVersionBytes() {
- java.lang.Object ref = version_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- version_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int EXTRADATA_FIELD_NUMBER = 3;
- private volatile java.lang.Object extraData_;
- /**
- * string extraData = 3;
- */
- public java.lang.String getExtraData() {
- java.lang.Object ref = extraData_;
- 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();
- extraData_ = s;
- return s;
- }
- }
- /**
- * string extraData = 3;
- */
- public com.google.protobuf.ByteString
- getExtraDataBytes() {
- java.lang.Object ref = extraData_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- extraData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int IDENTIFIED_FIELD_NUMBER = 4;
- private boolean identified_;
- /**
- * bool identified = 4;
- */
- public boolean getIdentified() {
- return identified_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractResultMessage_ != null) {
- output.writeMessage(1, getAbstractResultMessage());
- }
- if (!getVersionBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
- }
- if (!getExtraDataBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, extraData_);
- }
- if (identified_ != false) {
- output.writeBool(4, identified_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractResultMessage_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractResultMessage());
- }
- if (!getVersionBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
- }
- if (!getExtraDataBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, extraData_);
- }
- if (identified_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(4, identified_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto other = (io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto) obj;
-
- if (hasAbstractResultMessage() != other.hasAbstractResultMessage()) return false;
- if (hasAbstractResultMessage()) {
- if (!getAbstractResultMessage()
- .equals(other.getAbstractResultMessage())) return false;
- }
- if (!getVersion()
- .equals(other.getVersion())) return false;
- if (!getExtraData()
- .equals(other.getExtraData())) return false;
- if (getIdentified()
- != other.getIdentified()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractResultMessage()) {
- hash = (37 * hash) + ABSTRACTRESULTMESSAGE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractResultMessage().hashCode();
- }
- hash = (37 * hash) + VERSION_FIELD_NUMBER;
- hash = (53 * hash) + getVersion().hashCode();
- hash = (37 * hash) + EXTRADATA_FIELD_NUMBER;
- hash = (53 * hash) + getExtraData().hashCode();
- hash = (37 * hash) + IDENTIFIED_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getIdentified());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractIdentifyResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public boolean hasAbstractResultMessage() {
- return abstractResultMessageBuilder_ != null || abstractResultMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractResultMessageProto getAbstractResultMessage() {
- if (abstractResultMessageBuilder_ == null) {
- return abstractResultMessage_ == null ? io.seata.codec.protobuf.generated.AbstractResultMessageProto.getDefaultInstance() : abstractResultMessage_;
- } else {
- return abstractResultMessageBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public Builder setAbstractResultMessage(io.seata.codec.protobuf.generated.AbstractResultMessageProto value) {
- if (abstractResultMessageBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractResultMessage_ = value;
- onChanged();
- } else {
- abstractResultMessageBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public Builder setAbstractResultMessage(
- io.seata.codec.protobuf.generated.AbstractResultMessageProto.Builder builderForValue) {
- if (abstractResultMessageBuilder_ == null) {
- abstractResultMessage_ = builderForValue.build();
- onChanged();
- } else {
- abstractResultMessageBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public Builder mergeAbstractResultMessage(io.seata.codec.protobuf.generated.AbstractResultMessageProto value) {
- if (abstractResultMessageBuilder_ == null) {
- if (abstractResultMessage_ != null) {
- abstractResultMessage_ =
- io.seata.codec.protobuf.generated.AbstractResultMessageProto.newBuilder(abstractResultMessage_).mergeFrom(value).buildPartial();
- } else {
- abstractResultMessage_ = value;
- }
- onChanged();
- } else {
- abstractResultMessageBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public Builder clearAbstractResultMessage() {
- if (abstractResultMessageBuilder_ == null) {
- abstractResultMessage_ = null;
- onChanged();
- } else {
- abstractResultMessage_ = null;
- abstractResultMessageBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractResultMessageProto.Builder getAbstractResultMessageBuilder() {
-
- onChanged();
- return getAbstractResultMessageFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractResultMessageProtoOrBuilder getAbstractResultMessageOrBuilder() {
- if (abstractResultMessageBuilder_ != null) {
- return abstractResultMessageBuilder_.getMessageOrBuilder();
- } else {
- return abstractResultMessage_ == null ?
- io.seata.codec.protobuf.generated.AbstractResultMessageProto.getDefaultInstance() : abstractResultMessage_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractResultMessageProto, io.seata.codec.protobuf.generated.AbstractResultMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractResultMessageProtoOrBuilder>
- getAbstractResultMessageFieldBuilder() {
- if (abstractResultMessageBuilder_ == null) {
- abstractResultMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractResultMessageProto, io.seata.codec.protobuf.generated.AbstractResultMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractResultMessageProtoOrBuilder>(
- getAbstractResultMessage(),
- getParentForChildren(),
- isClean());
- abstractResultMessage_ = null;
- }
- return abstractResultMessageBuilder_;
- }
-
- private java.lang.Object version_ = "";
- /**
- * string version = 2;
- */
- public java.lang.String getVersion() {
- java.lang.Object ref = version_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- version_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string version = 2;
- */
- public com.google.protobuf.ByteString
- getVersionBytes() {
- java.lang.Object ref = version_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- version_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string version = 2;
- */
- public Builder setVersion(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- version_ = value;
- onChanged();
- return this;
- }
- /**
- * string version = 2;
- */
- public Builder clearVersion() {
-
- version_ = getDefaultInstance().getVersion();
- onChanged();
- return this;
- }
- /**
- * string version = 2;
- */
- public Builder setVersionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- version_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object extraData_ = "";
- /**
- * string extraData = 3;
- */
- public java.lang.String getExtraData() {
- java.lang.Object ref = extraData_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- extraData_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string extraData = 3;
- */
- public com.google.protobuf.ByteString
- getExtraDataBytes() {
- java.lang.Object ref = extraData_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- extraData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string extraData = 3;
- */
- public Builder setExtraData(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- extraData_ = value;
- onChanged();
- return this;
- }
- /**
- * string extraData = 3;
- */
- public Builder clearExtraData() {
-
- extraData_ = getDefaultInstance().getExtraData();
- onChanged();
- return this;
- }
- /**
- * string extraData = 3;
- */
- public Builder setExtraDataBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- extraData_ = value;
- onChanged();
- return this;
- }
-
- private boolean identified_ ;
- /**
- * bool identified = 4;
- */
- public boolean getIdentified() {
- return identified_;
- }
- /**
- * bool identified = 4;
- */
- public Builder setIdentified(boolean value) {
-
- identified_ = value;
- onChanged();
- return this;
- }
- /**
- * bool identified = 4;
- */
- public Builder clearIdentified() {
-
- identified_ = false;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.AbstractIdentifyResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.AbstractIdentifyResponseProto)
- private static final io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- boolean hasAbstractResultMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractResultMessageProto getAbstractResultMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractResultMessageProtoOrBuilder getAbstractResultMessageOrBuilder();
-
- /**
- * string version = 2;
- */
- java.lang.String getVersion();
- /**
- * string version = 2;
- */
- com.google.protobuf.ByteString
- getVersionBytes();
-
- /**
- * string extraData = 3;
- */
- java.lang.String getExtraData();
- /**
- * string extraData = 3;
- */
- com.google.protobuf.ByteString
- getExtraDataBytes();
-
- /**
- * bool identified = 4;
- */
- boolean getIdentified();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractMessage.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractMessage.java
deleted file mode 100644
index b2cb60e3d96..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractMessage.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractMessage.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class AbstractMessage {
- private AbstractMessage() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_AbstractMessageProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_AbstractMessageProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\025abstractMessage.proto\022\032io.seata.protoc" +
- "ol.protobuf\032\021messageType.proto\"Y\n\024Abstra" +
- "ctMessageProto\022A\n\013messageType\030\001 \001(\0162,.io" +
- ".seata.protocol.protobuf.MessageTypeProt" +
- "oB6\n!io.seata.codec.protobuf.generatedB\017" +
- "AbstractMessageP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.MessageType.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_AbstractMessageProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_AbstractMessageProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_AbstractMessageProto_descriptor,
- new java.lang.String[] { "MessageType", });
- io.seata.codec.protobuf.generated.MessageType.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractMessageProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractMessageProto.java
deleted file mode 100644
index 0dfa59da225..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractMessageProto.java
+++ /dev/null
@@ -1,506 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractMessage.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractMessageProto} - */ -public final class AbstractMessageProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.AbstractMessageProto) - AbstractMessageProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use AbstractMessageProto.newBuilder() to construct. - private AbstractMessageProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private AbstractMessageProto() { - messageType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbstractMessageProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - messageType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.AbstractMessage.internal_static_io_seata_protocol_protobuf_AbstractMessageProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.AbstractMessage.internal_static_io_seata_protocol_protobuf_AbstractMessageProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.AbstractMessageProto.class, io.seata.codec.protobuf.generated.AbstractMessageProto.Builder.class); - } - - public static final int MESSAGETYPE_FIELD_NUMBER = 1; - private int messageType_; - /** - *
.io.seata.protocol.protobuf.MessageTypeProto messageType = 1;
- */
- public int getMessageTypeValue() {
- return messageType_;
- }
- /**
- * .io.seata.protocol.protobuf.MessageTypeProto messageType = 1;
- */
- public io.seata.codec.protobuf.generated.MessageTypeProto getMessageType() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.MessageTypeProto result = io.seata.codec.protobuf.generated.MessageTypeProto.valueOf(messageType_);
- return result == null ? io.seata.codec.protobuf.generated.MessageTypeProto.UNRECOGNIZED : result;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (messageType_ != io.seata.codec.protobuf.generated.MessageTypeProto.TYPE_GLOBAL_PRESERVED.getNumber()) {
- output.writeEnum(1, messageType_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (messageType_ != io.seata.codec.protobuf.generated.MessageTypeProto.TYPE_GLOBAL_PRESERVED.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, messageType_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.AbstractMessageProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.AbstractMessageProto other = (io.seata.codec.protobuf.generated.AbstractMessageProto) obj;
-
- if (messageType_ != other.messageType_) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + MESSAGETYPE_FIELD_NUMBER;
- hash = (53 * hash) + messageType_;
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.AbstractMessageProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractMessageProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractMessageProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractMessageProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractMessageProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractMessageProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractMessageProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractMessageProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractMessageProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractMessageProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractMessageProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractMessageProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.AbstractMessageProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractMessageProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.MessageTypeProto messageType = 1;
- */
- public int getMessageTypeValue() {
- return messageType_;
- }
- /**
- * .io.seata.protocol.protobuf.MessageTypeProto messageType = 1;
- */
- public Builder setMessageTypeValue(int value) {
- messageType_ = value;
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.MessageTypeProto messageType = 1;
- */
- public io.seata.codec.protobuf.generated.MessageTypeProto getMessageType() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.MessageTypeProto result = io.seata.codec.protobuf.generated.MessageTypeProto.valueOf(messageType_);
- return result == null ? io.seata.codec.protobuf.generated.MessageTypeProto.UNRECOGNIZED : result;
- }
- /**
- * .io.seata.protocol.protobuf.MessageTypeProto messageType = 1;
- */
- public Builder setMessageType(io.seata.codec.protobuf.generated.MessageTypeProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- messageType_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.MessageTypeProto messageType = 1;
- */
- public Builder clearMessageType() {
-
- messageType_ = 0;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.AbstractMessageProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.AbstractMessageProto)
- private static final io.seata.codec.protobuf.generated.AbstractMessageProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.AbstractMessageProto();
- }
-
- public static io.seata.codec.protobuf.generated.AbstractMessageProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.MessageTypeProto messageType = 1;
- */
- int getMessageTypeValue();
- /**
- * .io.seata.protocol.protobuf.MessageTypeProto messageType = 1;
- */
- io.seata.codec.protobuf.generated.MessageTypeProto getMessageType();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractResultMessage.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractResultMessage.java
deleted file mode 100644
index 8ea19002612..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractResultMessage.java
+++ /dev/null
@@ -1,66 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractResultMessage.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class AbstractResultMessage {
- private AbstractResultMessage() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_AbstractResultMessageProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_AbstractResultMessageProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\033abstractResultMessage.proto\022\032io.seata." +
- "protocol.protobuf\032\020resultCode.proto\032\025abs" +
- "tractMessage.proto\"\265\001\n\032AbstractResultMes" +
- "sageProto\022I\n\017AbstractMessage\030\001 \001(\01320.io." +
- "seata.protocol.protobuf.AbstractMessageP" +
- "roto\022?\n\nresultCode\030\002 \001(\0162+.io.seata.prot" +
- "ocol.protobuf.ResultCodeProto\022\013\n\003msg\030\003 \001" +
- "(\tB<\n!io.seata.codec.protobuf.generatedB" +
- "\025AbstractResultMessageP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.ResultCode.getDescriptor(),
- io.seata.codec.protobuf.generated.AbstractMessage.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_AbstractResultMessageProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_AbstractResultMessageProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_AbstractResultMessageProto_descriptor,
- new java.lang.String[] { "AbstractMessage", "ResultCode", "Msg", });
- io.seata.codec.protobuf.generated.ResultCode.getDescriptor();
- io.seata.codec.protobuf.generated.AbstractMessage.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractResultMessageProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractResultMessageProto.java
deleted file mode 100644
index 226a373bc47..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractResultMessageProto.java
+++ /dev/null
@@ -1,814 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractResultMessage.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractResultMessageProto} - */ -public final class AbstractResultMessageProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.AbstractResultMessageProto) - AbstractResultMessageProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use AbstractResultMessageProto.newBuilder() to construct. - private AbstractResultMessageProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private AbstractResultMessageProto() { - resultCode_ = 0; - msg_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbstractResultMessageProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractMessageProto.Builder subBuilder = null; - if (abstractMessage_ != null) { - subBuilder = abstractMessage_.toBuilder(); - } - abstractMessage_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractMessageProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractMessage_); - abstractMessage_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - resultCode_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - msg_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.AbstractResultMessage.internal_static_io_seata_protocol_protobuf_AbstractResultMessageProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.AbstractResultMessage.internal_static_io_seata_protocol_protobuf_AbstractResultMessageProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.AbstractResultMessageProto.class, io.seata.codec.protobuf.generated.AbstractResultMessageProto.Builder.class); - } - - public static final int ABSTRACTMESSAGE_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractMessageProto abstractMessage_; - /** - *
.io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- public boolean hasAbstractMessage() {
- return abstractMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage() {
- return abstractMessage_ == null ? io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder() {
- return getAbstractMessage();
- }
-
- public static final int RESULTCODE_FIELD_NUMBER = 2;
- private int resultCode_;
- /**
- * .io.seata.protocol.protobuf.ResultCodeProto resultCode = 2;
- */
- public int getResultCodeValue() {
- return resultCode_;
- }
- /**
- * .io.seata.protocol.protobuf.ResultCodeProto resultCode = 2;
- */
- public io.seata.codec.protobuf.generated.ResultCodeProto getResultCode() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.ResultCodeProto result = io.seata.codec.protobuf.generated.ResultCodeProto.valueOf(resultCode_);
- return result == null ? io.seata.codec.protobuf.generated.ResultCodeProto.UNRECOGNIZED : result;
- }
-
- public static final int MSG_FIELD_NUMBER = 3;
- private volatile java.lang.Object msg_;
- /**
- * string msg = 3;
- */
- public java.lang.String getMsg() {
- java.lang.Object ref = msg_;
- 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();
- msg_ = s;
- return s;
- }
- }
- /**
- * string msg = 3;
- */
- public com.google.protobuf.ByteString
- getMsgBytes() {
- java.lang.Object ref = msg_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- msg_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractMessage_ != null) {
- output.writeMessage(1, getAbstractMessage());
- }
- if (resultCode_ != io.seata.codec.protobuf.generated.ResultCodeProto.Failed.getNumber()) {
- output.writeEnum(2, resultCode_);
- }
- if (!getMsgBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, msg_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractMessage_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractMessage());
- }
- if (resultCode_ != io.seata.codec.protobuf.generated.ResultCodeProto.Failed.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, resultCode_);
- }
- if (!getMsgBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, msg_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.AbstractResultMessageProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.AbstractResultMessageProto other = (io.seata.codec.protobuf.generated.AbstractResultMessageProto) obj;
-
- if (hasAbstractMessage() != other.hasAbstractMessage()) return false;
- if (hasAbstractMessage()) {
- if (!getAbstractMessage()
- .equals(other.getAbstractMessage())) return false;
- }
- if (resultCode_ != other.resultCode_) return false;
- if (!getMsg()
- .equals(other.getMsg())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractMessage()) {
- hash = (37 * hash) + ABSTRACTMESSAGE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractMessage().hashCode();
- }
- hash = (37 * hash) + RESULTCODE_FIELD_NUMBER;
- hash = (53 * hash) + resultCode_;
- hash = (37 * hash) + MSG_FIELD_NUMBER;
- hash = (53 * hash) + getMsg().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.AbstractResultMessageProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractResultMessageProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- public boolean hasAbstractMessage() {
- return abstractMessageBuilder_ != null || abstractMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage() {
- if (abstractMessageBuilder_ == null) {
- return abstractMessage_ == null ? io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- } else {
- return abstractMessageBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- public Builder setAbstractMessage(io.seata.codec.protobuf.generated.AbstractMessageProto value) {
- if (abstractMessageBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractMessage_ = value;
- onChanged();
- } else {
- abstractMessageBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- public Builder setAbstractMessage(
- io.seata.codec.protobuf.generated.AbstractMessageProto.Builder builderForValue) {
- if (abstractMessageBuilder_ == null) {
- abstractMessage_ = builderForValue.build();
- onChanged();
- } else {
- abstractMessageBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- public Builder mergeAbstractMessage(io.seata.codec.protobuf.generated.AbstractMessageProto value) {
- if (abstractMessageBuilder_ == null) {
- if (abstractMessage_ != null) {
- abstractMessage_ =
- io.seata.codec.protobuf.generated.AbstractMessageProto.newBuilder(abstractMessage_).mergeFrom(value).buildPartial();
- } else {
- abstractMessage_ = value;
- }
- onChanged();
- } else {
- abstractMessageBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- public Builder clearAbstractMessage() {
- if (abstractMessageBuilder_ == null) {
- abstractMessage_ = null;
- onChanged();
- } else {
- abstractMessage_ = null;
- abstractMessageBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto.Builder getAbstractMessageBuilder() {
-
- onChanged();
- return getAbstractMessageFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder() {
- if (abstractMessageBuilder_ != null) {
- return abstractMessageBuilder_.getMessageOrBuilder();
- } else {
- return abstractMessage_ == null ?
- io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractMessageProto, io.seata.codec.protobuf.generated.AbstractMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder>
- getAbstractMessageFieldBuilder() {
- if (abstractMessageBuilder_ == null) {
- abstractMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractMessageProto, io.seata.codec.protobuf.generated.AbstractMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder>(
- getAbstractMessage(),
- getParentForChildren(),
- isClean());
- abstractMessage_ = null;
- }
- return abstractMessageBuilder_;
- }
-
- private int resultCode_ = 0;
- /**
- * .io.seata.protocol.protobuf.ResultCodeProto resultCode = 2;
- */
- public int getResultCodeValue() {
- return resultCode_;
- }
- /**
- * .io.seata.protocol.protobuf.ResultCodeProto resultCode = 2;
- */
- public Builder setResultCodeValue(int value) {
- resultCode_ = value;
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.ResultCodeProto resultCode = 2;
- */
- public io.seata.codec.protobuf.generated.ResultCodeProto getResultCode() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.ResultCodeProto result = io.seata.codec.protobuf.generated.ResultCodeProto.valueOf(resultCode_);
- return result == null ? io.seata.codec.protobuf.generated.ResultCodeProto.UNRECOGNIZED : result;
- }
- /**
- * .io.seata.protocol.protobuf.ResultCodeProto resultCode = 2;
- */
- public Builder setResultCode(io.seata.codec.protobuf.generated.ResultCodeProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- resultCode_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.ResultCodeProto resultCode = 2;
- */
- public Builder clearResultCode() {
-
- resultCode_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object msg_ = "";
- /**
- * string msg = 3;
- */
- public java.lang.String getMsg() {
- java.lang.Object ref = msg_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- msg_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string msg = 3;
- */
- public com.google.protobuf.ByteString
- getMsgBytes() {
- java.lang.Object ref = msg_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- msg_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string msg = 3;
- */
- public Builder setMsg(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- msg_ = value;
- onChanged();
- return this;
- }
- /**
- * string msg = 3;
- */
- public Builder clearMsg() {
-
- msg_ = getDefaultInstance().getMsg();
- onChanged();
- return this;
- }
- /**
- * string msg = 3;
- */
- public Builder setMsgBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- msg_ = value;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.AbstractResultMessageProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.AbstractResultMessageProto)
- private static final io.seata.codec.protobuf.generated.AbstractResultMessageProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.AbstractResultMessageProto();
- }
-
- public static io.seata.codec.protobuf.generated.AbstractResultMessageProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- boolean hasAbstractMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto AbstractMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder();
-
- /**
- * .io.seata.protocol.protobuf.ResultCodeProto resultCode = 2;
- */
- int getResultCodeValue();
- /**
- * .io.seata.protocol.protobuf.ResultCodeProto resultCode = 2;
- */
- io.seata.codec.protobuf.generated.ResultCodeProto getResultCode();
-
- /**
- * string msg = 3;
- */
- java.lang.String getMsg();
- /**
- * string msg = 3;
- */
- com.google.protobuf.ByteString
- getMsgBytes();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractTransactionRequest.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractTransactionRequest.java
deleted file mode 100644
index 932a204db6a..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractTransactionRequest.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractTransactionRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class AbstractTransactionRequest {
- private AbstractTransactionRequest() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_AbstractTransactionRequestProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_AbstractTransactionRequestProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n abstractTransactionRequest.proto\022\032io.s" +
- "eata.protocol.protobuf\032\025abstractMessage." +
- "proto\"l\n\037AbstractTransactionRequestProto" +
- "\022I\n\017abstractMessage\030\001 \001(\01320.io.seata.pro" +
- "tocol.protobuf.AbstractMessageProtoBA\n!i" +
- "o.seata.codec.protobuf.generatedB\032Abstra" +
- "ctTransactionRequestP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractMessage.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_AbstractTransactionRequestProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_AbstractTransactionRequestProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_AbstractTransactionRequestProto_descriptor,
- new java.lang.String[] { "AbstractMessage", });
- io.seata.codec.protobuf.generated.AbstractMessage.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractTransactionRequestProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractTransactionRequestProto.java
deleted file mode 100644
index d66418757a3..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractTransactionRequestProto.java
+++ /dev/null
@@ -1,602 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractTransactionRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractTransactionRequestProto} - */ -public final class AbstractTransactionRequestProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.AbstractTransactionRequestProto) - AbstractTransactionRequestProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use AbstractTransactionRequestProto.newBuilder() to construct. - private AbstractTransactionRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private AbstractTransactionRequestProto() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbstractTransactionRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractMessageProto.Builder subBuilder = null; - if (abstractMessage_ != null) { - subBuilder = abstractMessage_.toBuilder(); - } - abstractMessage_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractMessageProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractMessage_); - abstractMessage_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.AbstractTransactionRequest.internal_static_io_seata_protocol_protobuf_AbstractTransactionRequestProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.AbstractTransactionRequest.internal_static_io_seata_protocol_protobuf_AbstractTransactionRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.class, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder.class); - } - - public static final int ABSTRACTMESSAGE_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractMessageProto abstractMessage_; - /** - *
.io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public boolean hasAbstractMessage() {
- return abstractMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage() {
- return abstractMessage_ == null ? io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder() {
- return getAbstractMessage();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractMessage_ != null) {
- output.writeMessage(1, getAbstractMessage());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractMessage_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractMessage());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.AbstractTransactionRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto other = (io.seata.codec.protobuf.generated.AbstractTransactionRequestProto) obj;
-
- if (hasAbstractMessage() != other.hasAbstractMessage()) return false;
- if (hasAbstractMessage()) {
- if (!getAbstractMessage()
- .equals(other.getAbstractMessage())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractMessage()) {
- hash = (37 * hash) + ABSTRACTMESSAGE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractMessage().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractTransactionRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public boolean hasAbstractMessage() {
- return abstractMessageBuilder_ != null || abstractMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage() {
- if (abstractMessageBuilder_ == null) {
- return abstractMessage_ == null ? io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- } else {
- return abstractMessageBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder setAbstractMessage(io.seata.codec.protobuf.generated.AbstractMessageProto value) {
- if (abstractMessageBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractMessage_ = value;
- onChanged();
- } else {
- abstractMessageBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder setAbstractMessage(
- io.seata.codec.protobuf.generated.AbstractMessageProto.Builder builderForValue) {
- if (abstractMessageBuilder_ == null) {
- abstractMessage_ = builderForValue.build();
- onChanged();
- } else {
- abstractMessageBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder mergeAbstractMessage(io.seata.codec.protobuf.generated.AbstractMessageProto value) {
- if (abstractMessageBuilder_ == null) {
- if (abstractMessage_ != null) {
- abstractMessage_ =
- io.seata.codec.protobuf.generated.AbstractMessageProto.newBuilder(abstractMessage_).mergeFrom(value).buildPartial();
- } else {
- abstractMessage_ = value;
- }
- onChanged();
- } else {
- abstractMessageBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder clearAbstractMessage() {
- if (abstractMessageBuilder_ == null) {
- abstractMessage_ = null;
- onChanged();
- } else {
- abstractMessage_ = null;
- abstractMessageBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto.Builder getAbstractMessageBuilder() {
-
- onChanged();
- return getAbstractMessageFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder() {
- if (abstractMessageBuilder_ != null) {
- return abstractMessageBuilder_.getMessageOrBuilder();
- } else {
- return abstractMessage_ == null ?
- io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractMessageProto, io.seata.codec.protobuf.generated.AbstractMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder>
- getAbstractMessageFieldBuilder() {
- if (abstractMessageBuilder_ == null) {
- abstractMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractMessageProto, io.seata.codec.protobuf.generated.AbstractMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder>(
- getAbstractMessage(),
- getParentForChildren(),
- isClean());
- abstractMessage_ = null;
- }
- return abstractMessageBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.AbstractTransactionRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.AbstractTransactionRequestProto)
- private static final io.seata.codec.protobuf.generated.AbstractTransactionRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.AbstractTransactionRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- boolean hasAbstractMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractTransactionResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractTransactionResponse.java
deleted file mode 100644
index c57e5ebba1d..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractTransactionResponse.java
+++ /dev/null
@@ -1,68 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractTransactionResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class AbstractTransactionResponse {
- private AbstractTransactionResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_AbstractTransactionResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_AbstractTransactionResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n!abstractTransactionResponse.proto\022\032io." +
- "seata.protocol.protobuf\032\033abstractResultM" +
- "essage.proto\032\036transactionExceptionCode.p" +
- "roto\"\326\001\n AbstractTransactionResponseProt" +
- "o\022U\n\025abstractResultMessage\030\001 \001(\01326.io.se" +
- "ata.protocol.protobuf.AbstractResultMess" +
- "ageProto\022[\n\030transactionExceptionCode\030\002 \001" +
- "(\01629.io.seata.protocol.protobuf.Transact" +
- "ionExceptionCodeProtoBB\n!io.seata.codec." +
- "protobuf.generatedB\033AbstractTransactionR" +
- "esponseP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractResultMessage.getDescriptor(),
- io.seata.codec.protobuf.generated.TransactionExceptionCode.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_AbstractTransactionResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_AbstractTransactionResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_AbstractTransactionResponseProto_descriptor,
- new java.lang.String[] { "AbstractResultMessage", "TransactionExceptionCode", });
- io.seata.codec.protobuf.generated.AbstractResultMessage.getDescriptor();
- io.seata.codec.protobuf.generated.TransactionExceptionCode.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractTransactionResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractTransactionResponseProto.java
deleted file mode 100644
index 808ea002c3e..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/AbstractTransactionResponseProto.java
+++ /dev/null
@@ -1,687 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: abstractTransactionResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractTransactionResponseProto} - */ -public final class AbstractTransactionResponseProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.AbstractTransactionResponseProto) - AbstractTransactionResponseProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use AbstractTransactionResponseProto.newBuilder() to construct. - private AbstractTransactionResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private AbstractTransactionResponseProto() { - transactionExceptionCode_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbstractTransactionResponseProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractResultMessageProto.Builder subBuilder = null; - if (abstractResultMessage_ != null) { - subBuilder = abstractResultMessage_.toBuilder(); - } - abstractResultMessage_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractResultMessageProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractResultMessage_); - abstractResultMessage_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - transactionExceptionCode_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.AbstractTransactionResponse.internal_static_io_seata_protocol_protobuf_AbstractTransactionResponseProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.AbstractTransactionResponse.internal_static_io_seata_protocol_protobuf_AbstractTransactionResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.class, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder.class); - } - - public static final int ABSTRACTRESULTMESSAGE_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractResultMessageProto abstractResultMessage_; - /** - *
.io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public boolean hasAbstractResultMessage() {
- return abstractResultMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractResultMessageProto getAbstractResultMessage() {
- return abstractResultMessage_ == null ? io.seata.codec.protobuf.generated.AbstractResultMessageProto.getDefaultInstance() : abstractResultMessage_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractResultMessageProtoOrBuilder getAbstractResultMessageOrBuilder() {
- return getAbstractResultMessage();
- }
-
- public static final int TRANSACTIONEXCEPTIONCODE_FIELD_NUMBER = 2;
- private int transactionExceptionCode_;
- /**
- * .io.seata.protocol.protobuf.TransactionExceptionCodeProto transactionExceptionCode = 2;
- */
- public int getTransactionExceptionCodeValue() {
- return transactionExceptionCode_;
- }
- /**
- * .io.seata.protocol.protobuf.TransactionExceptionCodeProto transactionExceptionCode = 2;
- */
- public io.seata.codec.protobuf.generated.TransactionExceptionCodeProto getTransactionExceptionCode() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.TransactionExceptionCodeProto result = io.seata.codec.protobuf.generated.TransactionExceptionCodeProto.valueOf(transactionExceptionCode_);
- return result == null ? io.seata.codec.protobuf.generated.TransactionExceptionCodeProto.UNRECOGNIZED : result;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractResultMessage_ != null) {
- output.writeMessage(1, getAbstractResultMessage());
- }
- if (transactionExceptionCode_ != io.seata.codec.protobuf.generated.TransactionExceptionCodeProto.Unknown.getNumber()) {
- output.writeEnum(2, transactionExceptionCode_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractResultMessage_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractResultMessage());
- }
- if (transactionExceptionCode_ != io.seata.codec.protobuf.generated.TransactionExceptionCodeProto.Unknown.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, transactionExceptionCode_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.AbstractTransactionResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto other = (io.seata.codec.protobuf.generated.AbstractTransactionResponseProto) obj;
-
- if (hasAbstractResultMessage() != other.hasAbstractResultMessage()) return false;
- if (hasAbstractResultMessage()) {
- if (!getAbstractResultMessage()
- .equals(other.getAbstractResultMessage())) return false;
- }
- if (transactionExceptionCode_ != other.transactionExceptionCode_) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractResultMessage()) {
- hash = (37 * hash) + ABSTRACTRESULTMESSAGE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractResultMessage().hashCode();
- }
- hash = (37 * hash) + TRANSACTIONEXCEPTIONCODE_FIELD_NUMBER;
- hash = (53 * hash) + transactionExceptionCode_;
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.AbstractTransactionResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public boolean hasAbstractResultMessage() {
- return abstractResultMessageBuilder_ != null || abstractResultMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractResultMessageProto getAbstractResultMessage() {
- if (abstractResultMessageBuilder_ == null) {
- return abstractResultMessage_ == null ? io.seata.codec.protobuf.generated.AbstractResultMessageProto.getDefaultInstance() : abstractResultMessage_;
- } else {
- return abstractResultMessageBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public Builder setAbstractResultMessage(io.seata.codec.protobuf.generated.AbstractResultMessageProto value) {
- if (abstractResultMessageBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractResultMessage_ = value;
- onChanged();
- } else {
- abstractResultMessageBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public Builder setAbstractResultMessage(
- io.seata.codec.protobuf.generated.AbstractResultMessageProto.Builder builderForValue) {
- if (abstractResultMessageBuilder_ == null) {
- abstractResultMessage_ = builderForValue.build();
- onChanged();
- } else {
- abstractResultMessageBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public Builder mergeAbstractResultMessage(io.seata.codec.protobuf.generated.AbstractResultMessageProto value) {
- if (abstractResultMessageBuilder_ == null) {
- if (abstractResultMessage_ != null) {
- abstractResultMessage_ =
- io.seata.codec.protobuf.generated.AbstractResultMessageProto.newBuilder(abstractResultMessage_).mergeFrom(value).buildPartial();
- } else {
- abstractResultMessage_ = value;
- }
- onChanged();
- } else {
- abstractResultMessageBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public Builder clearAbstractResultMessage() {
- if (abstractResultMessageBuilder_ == null) {
- abstractResultMessage_ = null;
- onChanged();
- } else {
- abstractResultMessage_ = null;
- abstractResultMessageBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractResultMessageProto.Builder getAbstractResultMessageBuilder() {
-
- onChanged();
- return getAbstractResultMessageFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractResultMessageProtoOrBuilder getAbstractResultMessageOrBuilder() {
- if (abstractResultMessageBuilder_ != null) {
- return abstractResultMessageBuilder_.getMessageOrBuilder();
- } else {
- return abstractResultMessage_ == null ?
- io.seata.codec.protobuf.generated.AbstractResultMessageProto.getDefaultInstance() : abstractResultMessage_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractResultMessageProto, io.seata.codec.protobuf.generated.AbstractResultMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractResultMessageProtoOrBuilder>
- getAbstractResultMessageFieldBuilder() {
- if (abstractResultMessageBuilder_ == null) {
- abstractResultMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractResultMessageProto, io.seata.codec.protobuf.generated.AbstractResultMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractResultMessageProtoOrBuilder>(
- getAbstractResultMessage(),
- getParentForChildren(),
- isClean());
- abstractResultMessage_ = null;
- }
- return abstractResultMessageBuilder_;
- }
-
- private int transactionExceptionCode_ = 0;
- /**
- * .io.seata.protocol.protobuf.TransactionExceptionCodeProto transactionExceptionCode = 2;
- */
- public int getTransactionExceptionCodeValue() {
- return transactionExceptionCode_;
- }
- /**
- * .io.seata.protocol.protobuf.TransactionExceptionCodeProto transactionExceptionCode = 2;
- */
- public Builder setTransactionExceptionCodeValue(int value) {
- transactionExceptionCode_ = value;
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.TransactionExceptionCodeProto transactionExceptionCode = 2;
- */
- public io.seata.codec.protobuf.generated.TransactionExceptionCodeProto getTransactionExceptionCode() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.TransactionExceptionCodeProto result = io.seata.codec.protobuf.generated.TransactionExceptionCodeProto.valueOf(transactionExceptionCode_);
- return result == null ? io.seata.codec.protobuf.generated.TransactionExceptionCodeProto.UNRECOGNIZED : result;
- }
- /**
- * .io.seata.protocol.protobuf.TransactionExceptionCodeProto transactionExceptionCode = 2;
- */
- public Builder setTransactionExceptionCode(io.seata.codec.protobuf.generated.TransactionExceptionCodeProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- transactionExceptionCode_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.TransactionExceptionCodeProto transactionExceptionCode = 2;
- */
- public Builder clearTransactionExceptionCode() {
-
- transactionExceptionCode_ = 0;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.AbstractTransactionResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.AbstractTransactionResponseProto)
- private static final io.seata.codec.protobuf.generated.AbstractTransactionResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.AbstractTransactionResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- boolean hasAbstractResultMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractResultMessageProto getAbstractResultMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractResultMessageProto abstractResultMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractResultMessageProtoOrBuilder getAbstractResultMessageOrBuilder();
-
- /**
- * .io.seata.protocol.protobuf.TransactionExceptionCodeProto transactionExceptionCode = 2;
- */
- int getTransactionExceptionCodeValue();
- /**
- * .io.seata.protocol.protobuf.TransactionExceptionCodeProto transactionExceptionCode = 2;
- */
- io.seata.codec.protobuf.generated.TransactionExceptionCodeProto getTransactionExceptionCode();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchCommitRequest.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchCommitRequest.java
deleted file mode 100644
index 9397498ede0..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchCommitRequest.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchCommitRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class BranchCommitRequest {
- private BranchCommitRequest() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_BranchCommitRequestProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_BranchCommitRequestProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\031branchCommitRequest.proto\022\032io.seata.pr" +
- "otocol.protobuf\032\036abstractBranchEndReques" +
- "t.proto\"w\n\030BranchCommitRequestProto\022[\n\030a" +
- "bstractBranchEndRequest\030\001 \001(\01329.io.seata" +
- ".protocol.protobuf.AbstractBranchEndRequ" +
- "estProtoB:\n!io.seata.codec.protobuf.gene" +
- "ratedB\023BranchCommitRequestP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractBranchEndRequest.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_BranchCommitRequestProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_BranchCommitRequestProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_BranchCommitRequestProto_descriptor,
- new java.lang.String[] { "AbstractBranchEndRequest", });
- io.seata.codec.protobuf.generated.AbstractBranchEndRequest.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchCommitRequestProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchCommitRequestProto.java
deleted file mode 100644
index 4319a2c4dd4..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchCommitRequestProto.java
+++ /dev/null
@@ -1,602 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchCommitRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.BranchCommitRequestProto} - */ -public final class BranchCommitRequestProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.BranchCommitRequestProto) - BranchCommitRequestProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use BranchCommitRequestProto.newBuilder() to construct. - private BranchCommitRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private BranchCommitRequestProto() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BranchCommitRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.Builder subBuilder = null; - if (abstractBranchEndRequest_ != null) { - subBuilder = abstractBranchEndRequest_.toBuilder(); - } - abstractBranchEndRequest_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractBranchEndRequest_); - abstractBranchEndRequest_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.BranchCommitRequest.internal_static_io_seata_protocol_protobuf_BranchCommitRequestProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.BranchCommitRequest.internal_static_io_seata_protocol_protobuf_BranchCommitRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.BranchCommitRequestProto.class, io.seata.codec.protobuf.generated.BranchCommitRequestProto.Builder.class); - } - - public static final int ABSTRACTBRANCHENDREQUEST_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto abstractBranchEndRequest_; - /** - *
.io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public boolean hasAbstractBranchEndRequest() {
- return abstractBranchEndRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto getAbstractBranchEndRequest() {
- return abstractBranchEndRequest_ == null ? io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.getDefaultInstance() : abstractBranchEndRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndRequestProtoOrBuilder getAbstractBranchEndRequestOrBuilder() {
- return getAbstractBranchEndRequest();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractBranchEndRequest_ != null) {
- output.writeMessage(1, getAbstractBranchEndRequest());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractBranchEndRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractBranchEndRequest());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.BranchCommitRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.BranchCommitRequestProto other = (io.seata.codec.protobuf.generated.BranchCommitRequestProto) obj;
-
- if (hasAbstractBranchEndRequest() != other.hasAbstractBranchEndRequest()) return false;
- if (hasAbstractBranchEndRequest()) {
- if (!getAbstractBranchEndRequest()
- .equals(other.getAbstractBranchEndRequest())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractBranchEndRequest()) {
- hash = (37 * hash) + ABSTRACTBRANCHENDREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractBranchEndRequest().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.BranchCommitRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.BranchCommitRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public boolean hasAbstractBranchEndRequest() {
- return abstractBranchEndRequestBuilder_ != null || abstractBranchEndRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto getAbstractBranchEndRequest() {
- if (abstractBranchEndRequestBuilder_ == null) {
- return abstractBranchEndRequest_ == null ? io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.getDefaultInstance() : abstractBranchEndRequest_;
- } else {
- return abstractBranchEndRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public Builder setAbstractBranchEndRequest(io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto value) {
- if (abstractBranchEndRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractBranchEndRequest_ = value;
- onChanged();
- } else {
- abstractBranchEndRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public Builder setAbstractBranchEndRequest(
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.Builder builderForValue) {
- if (abstractBranchEndRequestBuilder_ == null) {
- abstractBranchEndRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractBranchEndRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public Builder mergeAbstractBranchEndRequest(io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto value) {
- if (abstractBranchEndRequestBuilder_ == null) {
- if (abstractBranchEndRequest_ != null) {
- abstractBranchEndRequest_ =
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.newBuilder(abstractBranchEndRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractBranchEndRequest_ = value;
- }
- onChanged();
- } else {
- abstractBranchEndRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public Builder clearAbstractBranchEndRequest() {
- if (abstractBranchEndRequestBuilder_ == null) {
- abstractBranchEndRequest_ = null;
- onChanged();
- } else {
- abstractBranchEndRequest_ = null;
- abstractBranchEndRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.Builder getAbstractBranchEndRequestBuilder() {
-
- onChanged();
- return getAbstractBranchEndRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndRequestProtoOrBuilder getAbstractBranchEndRequestOrBuilder() {
- if (abstractBranchEndRequestBuilder_ != null) {
- return abstractBranchEndRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractBranchEndRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.getDefaultInstance() : abstractBranchEndRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto, io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractBranchEndRequestProtoOrBuilder>
- getAbstractBranchEndRequestFieldBuilder() {
- if (abstractBranchEndRequestBuilder_ == null) {
- abstractBranchEndRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto, io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractBranchEndRequestProtoOrBuilder>(
- getAbstractBranchEndRequest(),
- getParentForChildren(),
- isClean());
- abstractBranchEndRequest_ = null;
- }
- return abstractBranchEndRequestBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.BranchCommitRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.BranchCommitRequestProto)
- private static final io.seata.codec.protobuf.generated.BranchCommitRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.BranchCommitRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.BranchCommitRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- boolean hasAbstractBranchEndRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto getAbstractBranchEndRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProtoOrBuilder getAbstractBranchEndRequestOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchCommitResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchCommitResponse.java
deleted file mode 100644
index e928d5dd067..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchCommitResponse.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchCommitResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class BranchCommitResponse {
- private BranchCommitResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_BranchCommitResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_BranchCommitResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\032branchCommitResponse.proto\022\032io.seata.p" +
- "rotocol.protobuf\032\037abstractBranchEndRespo" +
- "nse.proto\"z\n\031BranchCommitResponseProto\022]" +
- "\n\031abstractBranchEndResponse\030\001 \001(\0132:.io.s" +
- "eata.protocol.protobuf.AbstractBranchEnd" +
- "ResponseProtoB;\n!io.seata.codec.protobuf" +
- ".generatedB\024BranchCommitResponseP\001b\006prot" +
- "o3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractBranchEndResponse.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_BranchCommitResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_BranchCommitResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_BranchCommitResponseProto_descriptor,
- new java.lang.String[] { "AbstractBranchEndResponse", });
- io.seata.codec.protobuf.generated.AbstractBranchEndResponse.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchCommitResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchCommitResponseProto.java
deleted file mode 100644
index e2846662286..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchCommitResponseProto.java
+++ /dev/null
@@ -1,602 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchCommitResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.BranchCommitResponseProto} - */ -public final class BranchCommitResponseProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.BranchCommitResponseProto) - BranchCommitResponseProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use BranchCommitResponseProto.newBuilder() to construct. - private BranchCommitResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private BranchCommitResponseProto() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BranchCommitResponseProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.Builder subBuilder = null; - if (abstractBranchEndResponse_ != null) { - subBuilder = abstractBranchEndResponse_.toBuilder(); - } - abstractBranchEndResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractBranchEndResponse_); - abstractBranchEndResponse_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.BranchCommitResponse.internal_static_io_seata_protocol_protobuf_BranchCommitResponseProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.BranchCommitResponse.internal_static_io_seata_protocol_protobuf_BranchCommitResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.BranchCommitResponseProto.class, io.seata.codec.protobuf.generated.BranchCommitResponseProto.Builder.class); - } - - public static final int ABSTRACTBRANCHENDRESPONSE_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto abstractBranchEndResponse_; - /** - *
.io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public boolean hasAbstractBranchEndResponse() {
- return abstractBranchEndResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto getAbstractBranchEndResponse() {
- return abstractBranchEndResponse_ == null ? io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.getDefaultInstance() : abstractBranchEndResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndResponseProtoOrBuilder getAbstractBranchEndResponseOrBuilder() {
- return getAbstractBranchEndResponse();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractBranchEndResponse_ != null) {
- output.writeMessage(1, getAbstractBranchEndResponse());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractBranchEndResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractBranchEndResponse());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.BranchCommitResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.BranchCommitResponseProto other = (io.seata.codec.protobuf.generated.BranchCommitResponseProto) obj;
-
- if (hasAbstractBranchEndResponse() != other.hasAbstractBranchEndResponse()) return false;
- if (hasAbstractBranchEndResponse()) {
- if (!getAbstractBranchEndResponse()
- .equals(other.getAbstractBranchEndResponse())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractBranchEndResponse()) {
- hash = (37 * hash) + ABSTRACTBRANCHENDRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractBranchEndResponse().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.BranchCommitResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.BranchCommitResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public boolean hasAbstractBranchEndResponse() {
- return abstractBranchEndResponseBuilder_ != null || abstractBranchEndResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto getAbstractBranchEndResponse() {
- if (abstractBranchEndResponseBuilder_ == null) {
- return abstractBranchEndResponse_ == null ? io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.getDefaultInstance() : abstractBranchEndResponse_;
- } else {
- return abstractBranchEndResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public Builder setAbstractBranchEndResponse(io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto value) {
- if (abstractBranchEndResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractBranchEndResponse_ = value;
- onChanged();
- } else {
- abstractBranchEndResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public Builder setAbstractBranchEndResponse(
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.Builder builderForValue) {
- if (abstractBranchEndResponseBuilder_ == null) {
- abstractBranchEndResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractBranchEndResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public Builder mergeAbstractBranchEndResponse(io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto value) {
- if (abstractBranchEndResponseBuilder_ == null) {
- if (abstractBranchEndResponse_ != null) {
- abstractBranchEndResponse_ =
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.newBuilder(abstractBranchEndResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractBranchEndResponse_ = value;
- }
- onChanged();
- } else {
- abstractBranchEndResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public Builder clearAbstractBranchEndResponse() {
- if (abstractBranchEndResponseBuilder_ == null) {
- abstractBranchEndResponse_ = null;
- onChanged();
- } else {
- abstractBranchEndResponse_ = null;
- abstractBranchEndResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.Builder getAbstractBranchEndResponseBuilder() {
-
- onChanged();
- return getAbstractBranchEndResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndResponseProtoOrBuilder getAbstractBranchEndResponseOrBuilder() {
- if (abstractBranchEndResponseBuilder_ != null) {
- return abstractBranchEndResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractBranchEndResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.getDefaultInstance() : abstractBranchEndResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto, io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractBranchEndResponseProtoOrBuilder>
- getAbstractBranchEndResponseFieldBuilder() {
- if (abstractBranchEndResponseBuilder_ == null) {
- abstractBranchEndResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto, io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractBranchEndResponseProtoOrBuilder>(
- getAbstractBranchEndResponse(),
- getParentForChildren(),
- isClean());
- abstractBranchEndResponse_ = null;
- }
- return abstractBranchEndResponseBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.BranchCommitResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.BranchCommitResponseProto)
- private static final io.seata.codec.protobuf.generated.BranchCommitResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.BranchCommitResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.BranchCommitResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- boolean hasAbstractBranchEndResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto getAbstractBranchEndResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProtoOrBuilder getAbstractBranchEndResponseOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRegisterRequest.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRegisterRequest.java
deleted file mode 100644
index 9cb4d7d81f6..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRegisterRequest.java
+++ /dev/null
@@ -1,69 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchRegisterRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class BranchRegisterRequest {
- private BranchRegisterRequest() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_BranchRegisterRequestProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_BranchRegisterRequestProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\033branchRegisterRequest.proto\022\032io.seata." +
- "protocol.protobuf\032\020branchType.proto\032 abs" +
- "tractTransactionRequest.proto\"\211\002\n\032Branch" +
- "RegisterRequestProto\022_\n\032abstractTransact" +
- "ionRequest\030\001 \001(\0132;.io.seata.protocol.pro" +
- "tobuf.AbstractTransactionRequestProto\022\013\n" +
- "\003xid\030\002 \001(\t\022?\n\nbranchType\030\003 \001(\0162+.io.seat" +
- "a.protocol.protobuf.BranchTypeProto\022\022\n\nr" +
- "esourceId\030\004 \001(\t\022\017\n\007lockKey\030\005 \001(\t\022\027\n\017appl" +
- "icationData\030\006 \001(\tB<\n!io.seata.codec.prot" +
- "obuf.generatedB\025BranchRegisterRequestP\001b" +
- "\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.BranchType.getDescriptor(),
- io.seata.codec.protobuf.generated.AbstractTransactionRequest.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_BranchRegisterRequestProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_BranchRegisterRequestProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_BranchRegisterRequestProto_descriptor,
- new java.lang.String[] { "AbstractTransactionRequest", "Xid", "BranchType", "ResourceId", "LockKey", "ApplicationData", });
- io.seata.codec.protobuf.generated.BranchType.getDescriptor();
- io.seata.codec.protobuf.generated.AbstractTransactionRequest.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRegisterRequestProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRegisterRequestProto.java
deleted file mode 100644
index c2c4eaddba1..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRegisterRequestProto.java
+++ /dev/null
@@ -1,1195 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchRegisterRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.BranchRegisterRequestProto} - */ -public final class BranchRegisterRequestProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.BranchRegisterRequestProto) - BranchRegisterRequestProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use BranchRegisterRequestProto.newBuilder() to construct. - private BranchRegisterRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private BranchRegisterRequestProto() { - xid_ = ""; - branchType_ = 0; - resourceId_ = ""; - lockKey_ = ""; - applicationData_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BranchRegisterRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder subBuilder = null; - if (abstractTransactionRequest_ != null) { - subBuilder = abstractTransactionRequest_.toBuilder(); - } - abstractTransactionRequest_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractTransactionRequest_); - abstractTransactionRequest_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - xid_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - branchType_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - resourceId_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - lockKey_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - applicationData_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.BranchRegisterRequest.internal_static_io_seata_protocol_protobuf_BranchRegisterRequestProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.BranchRegisterRequest.internal_static_io_seata_protocol_protobuf_BranchRegisterRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.BranchRegisterRequestProto.class, io.seata.codec.protobuf.generated.BranchRegisterRequestProto.Builder.class); - } - - public static final int ABSTRACTTRANSACTIONREQUEST_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractTransactionRequestProto abstractTransactionRequest_; - /** - *
.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public boolean hasAbstractTransactionRequest() {
- return abstractTransactionRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest() {
- return abstractTransactionRequest_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder() {
- return getAbstractTransactionRequest();
- }
-
- public static final int XID_FIELD_NUMBER = 2;
- private volatile java.lang.Object xid_;
- /**
- * string xid = 2;
- */
- public java.lang.String getXid() {
- java.lang.Object ref = xid_;
- 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();
- xid_ = s;
- return s;
- }
- }
- /**
- * string xid = 2;
- */
- public com.google.protobuf.ByteString
- getXidBytes() {
- java.lang.Object ref = xid_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- xid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int BRANCHTYPE_FIELD_NUMBER = 3;
- private int branchType_;
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 3;
- */
- public int getBranchTypeValue() {
- return branchType_;
- }
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 3;
- */
- public io.seata.codec.protobuf.generated.BranchTypeProto getBranchType() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.BranchTypeProto result = io.seata.codec.protobuf.generated.BranchTypeProto.valueOf(branchType_);
- return result == null ? io.seata.codec.protobuf.generated.BranchTypeProto.UNRECOGNIZED : result;
- }
-
- public static final int RESOURCEID_FIELD_NUMBER = 4;
- private volatile java.lang.Object resourceId_;
- /**
- * string resourceId = 4;
- */
- public java.lang.String getResourceId() {
- java.lang.Object ref = resourceId_;
- 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();
- resourceId_ = s;
- return s;
- }
- }
- /**
- * string resourceId = 4;
- */
- public com.google.protobuf.ByteString
- getResourceIdBytes() {
- java.lang.Object ref = resourceId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- resourceId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int LOCKKEY_FIELD_NUMBER = 5;
- private volatile java.lang.Object lockKey_;
- /**
- * string lockKey = 5;
- */
- public java.lang.String getLockKey() {
- java.lang.Object ref = lockKey_;
- 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();
- lockKey_ = s;
- return s;
- }
- }
- /**
- * string lockKey = 5;
- */
- public com.google.protobuf.ByteString
- getLockKeyBytes() {
- java.lang.Object ref = lockKey_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- lockKey_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int APPLICATIONDATA_FIELD_NUMBER = 6;
- private volatile java.lang.Object applicationData_;
- /**
- * string applicationData = 6;
- */
- public java.lang.String getApplicationData() {
- java.lang.Object ref = applicationData_;
- 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();
- applicationData_ = s;
- return s;
- }
- }
- /**
- * string applicationData = 6;
- */
- public com.google.protobuf.ByteString
- getApplicationDataBytes() {
- java.lang.Object ref = applicationData_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- applicationData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractTransactionRequest_ != null) {
- output.writeMessage(1, getAbstractTransactionRequest());
- }
- if (!getXidBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, xid_);
- }
- if (branchType_ != io.seata.codec.protobuf.generated.BranchTypeProto.AT.getNumber()) {
- output.writeEnum(3, branchType_);
- }
- if (!getResourceIdBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resourceId_);
- }
- if (!getLockKeyBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, lockKey_);
- }
- if (!getApplicationDataBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, applicationData_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractTransactionRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractTransactionRequest());
- }
- if (!getXidBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, xid_);
- }
- if (branchType_ != io.seata.codec.protobuf.generated.BranchTypeProto.AT.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, branchType_);
- }
- if (!getResourceIdBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resourceId_);
- }
- if (!getLockKeyBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, lockKey_);
- }
- if (!getApplicationDataBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, applicationData_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.BranchRegisterRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.BranchRegisterRequestProto other = (io.seata.codec.protobuf.generated.BranchRegisterRequestProto) obj;
-
- if (hasAbstractTransactionRequest() != other.hasAbstractTransactionRequest()) return false;
- if (hasAbstractTransactionRequest()) {
- if (!getAbstractTransactionRequest()
- .equals(other.getAbstractTransactionRequest())) return false;
- }
- if (!getXid()
- .equals(other.getXid())) return false;
- if (branchType_ != other.branchType_) return false;
- if (!getResourceId()
- .equals(other.getResourceId())) return false;
- if (!getLockKey()
- .equals(other.getLockKey())) return false;
- if (!getApplicationData()
- .equals(other.getApplicationData())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractTransactionRequest()) {
- hash = (37 * hash) + ABSTRACTTRANSACTIONREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractTransactionRequest().hashCode();
- }
- hash = (37 * hash) + XID_FIELD_NUMBER;
- hash = (53 * hash) + getXid().hashCode();
- hash = (37 * hash) + BRANCHTYPE_FIELD_NUMBER;
- hash = (53 * hash) + branchType_;
- hash = (37 * hash) + RESOURCEID_FIELD_NUMBER;
- hash = (53 * hash) + getResourceId().hashCode();
- hash = (37 * hash) + LOCKKEY_FIELD_NUMBER;
- hash = (53 * hash) + getLockKey().hashCode();
- hash = (37 * hash) + APPLICATIONDATA_FIELD_NUMBER;
- hash = (53 * hash) + getApplicationData().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.BranchRegisterRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.BranchRegisterRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public boolean hasAbstractTransactionRequest() {
- return abstractTransactionRequestBuilder_ != null || abstractTransactionRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest() {
- if (abstractTransactionRequestBuilder_ == null) {
- return abstractTransactionRequest_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- } else {
- return abstractTransactionRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder setAbstractTransactionRequest(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto value) {
- if (abstractTransactionRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractTransactionRequest_ = value;
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder setAbstractTransactionRequest(
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder builderForValue) {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder mergeAbstractTransactionRequest(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto value) {
- if (abstractTransactionRequestBuilder_ == null) {
- if (abstractTransactionRequest_ != null) {
- abstractTransactionRequest_ =
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.newBuilder(abstractTransactionRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractTransactionRequest_ = value;
- }
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder clearAbstractTransactionRequest() {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequest_ = null;
- onChanged();
- } else {
- abstractTransactionRequest_ = null;
- abstractTransactionRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder getAbstractTransactionRequestBuilder() {
-
- onChanged();
- return getAbstractTransactionRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder() {
- if (abstractTransactionRequestBuilder_ != null) {
- return abstractTransactionRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractTransactionRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder>
- getAbstractTransactionRequestFieldBuilder() {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder>(
- getAbstractTransactionRequest(),
- getParentForChildren(),
- isClean());
- abstractTransactionRequest_ = null;
- }
- return abstractTransactionRequestBuilder_;
- }
-
- private java.lang.Object xid_ = "";
- /**
- * string xid = 2;
- */
- public java.lang.String getXid() {
- java.lang.Object ref = xid_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- xid_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string xid = 2;
- */
- public com.google.protobuf.ByteString
- getXidBytes() {
- java.lang.Object ref = xid_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- xid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string xid = 2;
- */
- public Builder setXid(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- xid_ = value;
- onChanged();
- return this;
- }
- /**
- * string xid = 2;
- */
- public Builder clearXid() {
-
- xid_ = getDefaultInstance().getXid();
- onChanged();
- return this;
- }
- /**
- * string xid = 2;
- */
- public Builder setXidBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- xid_ = value;
- onChanged();
- return this;
- }
-
- private int branchType_ = 0;
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 3;
- */
- public int getBranchTypeValue() {
- return branchType_;
- }
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 3;
- */
- public Builder setBranchTypeValue(int value) {
- branchType_ = value;
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 3;
- */
- public io.seata.codec.protobuf.generated.BranchTypeProto getBranchType() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.BranchTypeProto result = io.seata.codec.protobuf.generated.BranchTypeProto.valueOf(branchType_);
- return result == null ? io.seata.codec.protobuf.generated.BranchTypeProto.UNRECOGNIZED : result;
- }
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 3;
- */
- public Builder setBranchType(io.seata.codec.protobuf.generated.BranchTypeProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- branchType_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 3;
- */
- public Builder clearBranchType() {
-
- branchType_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object resourceId_ = "";
- /**
- * string resourceId = 4;
- */
- public java.lang.String getResourceId() {
- java.lang.Object ref = resourceId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- resourceId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string resourceId = 4;
- */
- public com.google.protobuf.ByteString
- getResourceIdBytes() {
- java.lang.Object ref = resourceId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- resourceId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string resourceId = 4;
- */
- public Builder setResourceId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- resourceId_ = value;
- onChanged();
- return this;
- }
- /**
- * string resourceId = 4;
- */
- public Builder clearResourceId() {
-
- resourceId_ = getDefaultInstance().getResourceId();
- onChanged();
- return this;
- }
- /**
- * string resourceId = 4;
- */
- public Builder setResourceIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- resourceId_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object lockKey_ = "";
- /**
- * string lockKey = 5;
- */
- public java.lang.String getLockKey() {
- java.lang.Object ref = lockKey_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- lockKey_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string lockKey = 5;
- */
- public com.google.protobuf.ByteString
- getLockKeyBytes() {
- java.lang.Object ref = lockKey_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- lockKey_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string lockKey = 5;
- */
- public Builder setLockKey(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- lockKey_ = value;
- onChanged();
- return this;
- }
- /**
- * string lockKey = 5;
- */
- public Builder clearLockKey() {
-
- lockKey_ = getDefaultInstance().getLockKey();
- onChanged();
- return this;
- }
- /**
- * string lockKey = 5;
- */
- public Builder setLockKeyBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- lockKey_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object applicationData_ = "";
- /**
- * string applicationData = 6;
- */
- public java.lang.String getApplicationData() {
- java.lang.Object ref = applicationData_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- applicationData_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string applicationData = 6;
- */
- public com.google.protobuf.ByteString
- getApplicationDataBytes() {
- java.lang.Object ref = applicationData_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- applicationData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string applicationData = 6;
- */
- public Builder setApplicationData(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- applicationData_ = value;
- onChanged();
- return this;
- }
- /**
- * string applicationData = 6;
- */
- public Builder clearApplicationData() {
-
- applicationData_ = getDefaultInstance().getApplicationData();
- onChanged();
- return this;
- }
- /**
- * string applicationData = 6;
- */
- public Builder setApplicationDataBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- applicationData_ = value;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.BranchRegisterRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.BranchRegisterRequestProto)
- private static final io.seata.codec.protobuf.generated.BranchRegisterRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.BranchRegisterRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.BranchRegisterRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- boolean hasAbstractTransactionRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder();
-
- /**
- * string xid = 2;
- */
- java.lang.String getXid();
- /**
- * string xid = 2;
- */
- com.google.protobuf.ByteString
- getXidBytes();
-
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 3;
- */
- int getBranchTypeValue();
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 3;
- */
- io.seata.codec.protobuf.generated.BranchTypeProto getBranchType();
-
- /**
- * string resourceId = 4;
- */
- java.lang.String getResourceId();
- /**
- * string resourceId = 4;
- */
- com.google.protobuf.ByteString
- getResourceIdBytes();
-
- /**
- * string lockKey = 5;
- */
- java.lang.String getLockKey();
- /**
- * string lockKey = 5;
- */
- com.google.protobuf.ByteString
- getLockKeyBytes();
-
- /**
- * string applicationData = 6;
- */
- java.lang.String getApplicationData();
- /**
- * string applicationData = 6;
- */
- com.google.protobuf.ByteString
- getApplicationDataBytes();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRegisterResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRegisterResponse.java
deleted file mode 100644
index aceb49945c2..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRegisterResponse.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchRegisterResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class BranchRegisterResponse {
- private BranchRegisterResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_BranchRegisterResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_BranchRegisterResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\034branchRegisterResponse.proto\022\032io.seata" +
- ".protocol.protobuf\032!abstractTransactionR" +
- "esponse.proto\"\222\001\n\033BranchRegisterResponse" +
- "Proto\022a\n\033abstractTransactionResponse\030\001 \001" +
- "(\0132<.io.seata.protocol.protobuf.Abstract" +
- "TransactionResponseProto\022\020\n\010branchId\030\002 \001" +
- "(\003B=\n!io.seata.codec.protobuf.generatedB" +
- "\026BranchRegisterResponseP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractTransactionResponse.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_BranchRegisterResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_BranchRegisterResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_BranchRegisterResponseProto_descriptor,
- new java.lang.String[] { "AbstractTransactionResponse", "BranchId", });
- io.seata.codec.protobuf.generated.AbstractTransactionResponse.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRegisterResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRegisterResponseProto.java
deleted file mode 100644
index 8c3658e9fe0..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRegisterResponseProto.java
+++ /dev/null
@@ -1,660 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchRegisterResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.BranchRegisterResponseProto} - */ -public final class BranchRegisterResponseProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.BranchRegisterResponseProto) - BranchRegisterResponseProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use BranchRegisterResponseProto.newBuilder() to construct. - private BranchRegisterResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private BranchRegisterResponseProto() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BranchRegisterResponseProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder subBuilder = null; - if (abstractTransactionResponse_ != null) { - subBuilder = abstractTransactionResponse_.toBuilder(); - } - abstractTransactionResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractTransactionResponse_); - abstractTransactionResponse_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - branchId_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.BranchRegisterResponse.internal_static_io_seata_protocol_protobuf_BranchRegisterResponseProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.BranchRegisterResponse.internal_static_io_seata_protocol_protobuf_BranchRegisterResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.BranchRegisterResponseProto.class, io.seata.codec.protobuf.generated.BranchRegisterResponseProto.Builder.class); - } - - public static final int ABSTRACTTRANSACTIONRESPONSE_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractTransactionResponseProto abstractTransactionResponse_; - /** - *
.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public boolean hasAbstractTransactionResponse() {
- return abstractTransactionResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse() {
- return abstractTransactionResponse_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder() {
- return getAbstractTransactionResponse();
- }
-
- public static final int BRANCHID_FIELD_NUMBER = 2;
- private long branchId_;
- /**
- * int64 branchId = 2;
- */
- public long getBranchId() {
- return branchId_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractTransactionResponse_ != null) {
- output.writeMessage(1, getAbstractTransactionResponse());
- }
- if (branchId_ != 0L) {
- output.writeInt64(2, branchId_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractTransactionResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractTransactionResponse());
- }
- if (branchId_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(2, branchId_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.BranchRegisterResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.BranchRegisterResponseProto other = (io.seata.codec.protobuf.generated.BranchRegisterResponseProto) obj;
-
- if (hasAbstractTransactionResponse() != other.hasAbstractTransactionResponse()) return false;
- if (hasAbstractTransactionResponse()) {
- if (!getAbstractTransactionResponse()
- .equals(other.getAbstractTransactionResponse())) return false;
- }
- if (getBranchId()
- != other.getBranchId()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractTransactionResponse()) {
- hash = (37 * hash) + ABSTRACTTRANSACTIONRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractTransactionResponse().hashCode();
- }
- hash = (37 * hash) + BRANCHID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getBranchId());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.BranchRegisterResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.BranchRegisterResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public boolean hasAbstractTransactionResponse() {
- return abstractTransactionResponseBuilder_ != null || abstractTransactionResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse() {
- if (abstractTransactionResponseBuilder_ == null) {
- return abstractTransactionResponse_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- } else {
- return abstractTransactionResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder setAbstractTransactionResponse(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto value) {
- if (abstractTransactionResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractTransactionResponse_ = value;
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder setAbstractTransactionResponse(
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder builderForValue) {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder mergeAbstractTransactionResponse(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto value) {
- if (abstractTransactionResponseBuilder_ == null) {
- if (abstractTransactionResponse_ != null) {
- abstractTransactionResponse_ =
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.newBuilder(abstractTransactionResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractTransactionResponse_ = value;
- }
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder clearAbstractTransactionResponse() {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponse_ = null;
- onChanged();
- } else {
- abstractTransactionResponse_ = null;
- abstractTransactionResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder getAbstractTransactionResponseBuilder() {
-
- onChanged();
- return getAbstractTransactionResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder() {
- if (abstractTransactionResponseBuilder_ != null) {
- return abstractTransactionResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractTransactionResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder>
- getAbstractTransactionResponseFieldBuilder() {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder>(
- getAbstractTransactionResponse(),
- getParentForChildren(),
- isClean());
- abstractTransactionResponse_ = null;
- }
- return abstractTransactionResponseBuilder_;
- }
-
- private long branchId_ ;
- /**
- * int64 branchId = 2;
- */
- public long getBranchId() {
- return branchId_;
- }
- /**
- * int64 branchId = 2;
- */
- public Builder setBranchId(long value) {
-
- branchId_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 branchId = 2;
- */
- public Builder clearBranchId() {
-
- branchId_ = 0L;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.BranchRegisterResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.BranchRegisterResponseProto)
- private static final io.seata.codec.protobuf.generated.BranchRegisterResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.BranchRegisterResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.BranchRegisterResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- boolean hasAbstractTransactionResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder();
-
- /**
- * int64 branchId = 2;
- */
- long getBranchId();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchReportRequest.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchReportRequest.java
deleted file mode 100644
index 5b31fa92f9c..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchReportRequest.java
+++ /dev/null
@@ -1,73 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchReportRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class BranchReportRequest {
- private BranchReportRequest() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_BranchReportRequestProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_BranchReportRequestProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\031branchReportRequest.proto\022\032io.seata.pr" +
- "otocol.protobuf\032\022branchStatus.proto\032\020bra" +
- "nchType.proto\032 abstractTransactionReques" +
- "t.proto\"\307\002\n\030BranchReportRequestProto\022_\n\032" +
- "abstractTransactionRequest\030\001 \001(\0132;.io.se" +
- "ata.protocol.protobuf.AbstractTransactio" +
- "nRequestProto\022\013\n\003xid\030\002 \001(\t\022\020\n\010branchId\030\003" +
- " \001(\003\022\022\n\nresourceId\030\004 \001(\t\022=\n\006status\030\005 \001(\016" +
- "2-.io.seata.protocol.protobuf.BranchStat" +
- "usProto\022\027\n\017applicationData\030\006 \001(\t\022?\n\nbran" +
- "chType\030\007 \001(\0162+.io.seata.protocol.protobu" +
- "f.BranchTypeProtoB:\n!io.seata.codec.prot" +
- "obuf.generatedB\023BranchReportRequestP\001b\006p" +
- "roto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.BranchStatus.getDescriptor(),
- io.seata.codec.protobuf.generated.BranchType.getDescriptor(),
- io.seata.codec.protobuf.generated.AbstractTransactionRequest.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_BranchReportRequestProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_BranchReportRequestProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_BranchReportRequestProto_descriptor,
- new java.lang.String[] { "AbstractTransactionRequest", "Xid", "BranchId", "ResourceId", "Status", "ApplicationData", "BranchType", });
- io.seata.codec.protobuf.generated.BranchStatus.getDescriptor();
- io.seata.codec.protobuf.generated.BranchType.getDescriptor();
- io.seata.codec.protobuf.generated.AbstractTransactionRequest.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchReportRequestProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchReportRequestProto.java
deleted file mode 100644
index e7475b9630c..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchReportRequestProto.java
+++ /dev/null
@@ -1,1203 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchReportRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * Protobuf type {@code io.seata.protocol.protobuf.BranchReportRequestProto}
- */
-public final class BranchReportRequestProto extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.BranchReportRequestProto)
- BranchReportRequestProtoOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use BranchReportRequestProto.newBuilder() to construct.
- private BranchReportRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private BranchReportRequestProto() {
- xid_ = "";
- resourceId_ = "";
- status_ = 0;
- applicationData_ = "";
- branchType_ = 0;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private BranchReportRequestProto(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder subBuilder = null;
- if (abstractTransactionRequest_ != null) {
- subBuilder = abstractTransactionRequest_.toBuilder();
- }
- abstractTransactionRequest_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(abstractTransactionRequest_);
- abstractTransactionRequest_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 18: {
- java.lang.String s = input.readStringRequireUtf8();
-
- xid_ = s;
- break;
- }
- case 24: {
-
- branchId_ = input.readInt64();
- break;
- }
- case 34: {
- java.lang.String s = input.readStringRequireUtf8();
-
- resourceId_ = s;
- break;
- }
- case 40: {
- int rawValue = input.readEnum();
-
- status_ = rawValue;
- break;
- }
- case 50: {
- java.lang.String s = input.readStringRequireUtf8();
-
- applicationData_ = s;
- break;
- }
- case 56: {
- int rawValue = input.readEnum();
-
- branchType_ = rawValue;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return io.seata.codec.protobuf.generated.BranchReportRequest.internal_static_io_seata_protocol_protobuf_BranchReportRequestProto_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return io.seata.codec.protobuf.generated.BranchReportRequest.internal_static_io_seata_protocol_protobuf_BranchReportRequestProto_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- io.seata.codec.protobuf.generated.BranchReportRequestProto.class, io.seata.codec.protobuf.generated.BranchReportRequestProto.Builder.class);
- }
-
- public static final int ABSTRACTTRANSACTIONREQUEST_FIELD_NUMBER = 1;
- private io.seata.codec.protobuf.generated.AbstractTransactionRequestProto abstractTransactionRequest_;
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public boolean hasAbstractTransactionRequest() {
- return abstractTransactionRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest() {
- return abstractTransactionRequest_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder() {
- return getAbstractTransactionRequest();
- }
-
- public static final int XID_FIELD_NUMBER = 2;
- private volatile java.lang.Object xid_;
- /**
- * string xid = 2;
- */
- public java.lang.String getXid() {
- java.lang.Object ref = xid_;
- 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();
- xid_ = s;
- return s;
- }
- }
- /**
- * string xid = 2;
- */
- public com.google.protobuf.ByteString
- getXidBytes() {
- java.lang.Object ref = xid_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- xid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int BRANCHID_FIELD_NUMBER = 3;
- private long branchId_;
- /**
- * int64 branchId = 3;
- */
- public long getBranchId() {
- return branchId_;
- }
-
- public static final int RESOURCEID_FIELD_NUMBER = 4;
- private volatile java.lang.Object resourceId_;
- /**
- * string resourceId = 4;
- */
- public java.lang.String getResourceId() {
- java.lang.Object ref = resourceId_;
- 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();
- resourceId_ = s;
- return s;
- }
- }
- /**
- * string resourceId = 4;
- */
- public com.google.protobuf.ByteString
- getResourceIdBytes() {
- java.lang.Object ref = resourceId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- resourceId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int STATUS_FIELD_NUMBER = 5;
- private int status_;
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto status = 5;
- */
- public int getStatusValue() {
- return status_;
- }
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto status = 5;
- */
- public io.seata.codec.protobuf.generated.BranchStatusProto getStatus() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.BranchStatusProto result = io.seata.codec.protobuf.generated.BranchStatusProto.valueOf(status_);
- return result == null ? io.seata.codec.protobuf.generated.BranchStatusProto.UNRECOGNIZED : result;
- }
-
- public static final int APPLICATIONDATA_FIELD_NUMBER = 6;
- private volatile java.lang.Object applicationData_;
- /**
- * string applicationData = 6;
- */
- public java.lang.String getApplicationData() {
- java.lang.Object ref = applicationData_;
- 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();
- applicationData_ = s;
- return s;
- }
- }
- /**
- * string applicationData = 6;
- */
- public com.google.protobuf.ByteString
- getApplicationDataBytes() {
- java.lang.Object ref = applicationData_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- applicationData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int BRANCHTYPE_FIELD_NUMBER = 7;
- private int branchType_;
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 7;
- */
- public int getBranchTypeValue() {
- return branchType_;
- }
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 7;
- */
- public io.seata.codec.protobuf.generated.BranchTypeProto getBranchType() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.BranchTypeProto result = io.seata.codec.protobuf.generated.BranchTypeProto.valueOf(branchType_);
- return result == null ? io.seata.codec.protobuf.generated.BranchTypeProto.UNRECOGNIZED : result;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractTransactionRequest_ != null) {
- output.writeMessage(1, getAbstractTransactionRequest());
- }
- if (!getXidBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, xid_);
- }
- if (branchId_ != 0L) {
- output.writeInt64(3, branchId_);
- }
- if (!getResourceIdBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resourceId_);
- }
- if (status_ != io.seata.codec.protobuf.generated.BranchStatusProto.BUnknown.getNumber()) {
- output.writeEnum(5, status_);
- }
- if (!getApplicationDataBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 6, applicationData_);
- }
- if (branchType_ != io.seata.codec.protobuf.generated.BranchTypeProto.AT.getNumber()) {
- output.writeEnum(7, branchType_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractTransactionRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractTransactionRequest());
- }
- if (!getXidBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, xid_);
- }
- if (branchId_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(3, branchId_);
- }
- if (!getResourceIdBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resourceId_);
- }
- if (status_ != io.seata.codec.protobuf.generated.BranchStatusProto.BUnknown.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(5, status_);
- }
- if (!getApplicationDataBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, applicationData_);
- }
- if (branchType_ != io.seata.codec.protobuf.generated.BranchTypeProto.AT.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(7, branchType_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.BranchReportRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.BranchReportRequestProto other = (io.seata.codec.protobuf.generated.BranchReportRequestProto) obj;
-
- if (hasAbstractTransactionRequest() != other.hasAbstractTransactionRequest()) return false;
- if (hasAbstractTransactionRequest()) {
- if (!getAbstractTransactionRequest()
- .equals(other.getAbstractTransactionRequest())) return false;
- }
- if (!getXid()
- .equals(other.getXid())) return false;
- if (getBranchId()
- != other.getBranchId()) return false;
- if (!getResourceId()
- .equals(other.getResourceId())) return false;
- if (status_ != other.status_) return false;
- if (!getApplicationData()
- .equals(other.getApplicationData())) return false;
- if (branchType_ != other.branchType_) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractTransactionRequest()) {
- hash = (37 * hash) + ABSTRACTTRANSACTIONREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractTransactionRequest().hashCode();
- }
- hash = (37 * hash) + XID_FIELD_NUMBER;
- hash = (53 * hash) + getXid().hashCode();
- hash = (37 * hash) + BRANCHID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getBranchId());
- hash = (37 * hash) + RESOURCEID_FIELD_NUMBER;
- hash = (53 * hash) + getResourceId().hashCode();
- hash = (37 * hash) + STATUS_FIELD_NUMBER;
- hash = (53 * hash) + status_;
- hash = (37 * hash) + APPLICATIONDATA_FIELD_NUMBER;
- hash = (53 * hash) + getApplicationData().hashCode();
- hash = (37 * hash) + BRANCHTYPE_FIELD_NUMBER;
- hash = (53 * hash) + branchType_;
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.BranchReportRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code io.seata.protocol.protobuf.BranchReportRequestProto}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public boolean hasAbstractTransactionRequest() {
- return abstractTransactionRequestBuilder_ != null || abstractTransactionRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest() {
- if (abstractTransactionRequestBuilder_ == null) {
- return abstractTransactionRequest_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- } else {
- return abstractTransactionRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder setAbstractTransactionRequest(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto value) {
- if (abstractTransactionRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractTransactionRequest_ = value;
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder setAbstractTransactionRequest(
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder builderForValue) {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder mergeAbstractTransactionRequest(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto value) {
- if (abstractTransactionRequestBuilder_ == null) {
- if (abstractTransactionRequest_ != null) {
- abstractTransactionRequest_ =
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.newBuilder(abstractTransactionRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractTransactionRequest_ = value;
- }
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder clearAbstractTransactionRequest() {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequest_ = null;
- onChanged();
- } else {
- abstractTransactionRequest_ = null;
- abstractTransactionRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder getAbstractTransactionRequestBuilder() {
-
- onChanged();
- return getAbstractTransactionRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder() {
- if (abstractTransactionRequestBuilder_ != null) {
- return abstractTransactionRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractTransactionRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder>
- getAbstractTransactionRequestFieldBuilder() {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder>(
- getAbstractTransactionRequest(),
- getParentForChildren(),
- isClean());
- abstractTransactionRequest_ = null;
- }
- return abstractTransactionRequestBuilder_;
- }
-
- private java.lang.Object xid_ = "";
- /**
- * string xid = 2;
- */
- public java.lang.String getXid() {
- java.lang.Object ref = xid_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- xid_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string xid = 2;
- */
- public com.google.protobuf.ByteString
- getXidBytes() {
- java.lang.Object ref = xid_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- xid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string xid = 2;
- */
- public Builder setXid(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- xid_ = value;
- onChanged();
- return this;
- }
- /**
- * string xid = 2;
- */
- public Builder clearXid() {
-
- xid_ = getDefaultInstance().getXid();
- onChanged();
- return this;
- }
- /**
- * string xid = 2;
- */
- public Builder setXidBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- xid_ = value;
- onChanged();
- return this;
- }
-
- private long branchId_ ;
- /**
- * int64 branchId = 3;
- */
- public long getBranchId() {
- return branchId_;
- }
- /**
- * int64 branchId = 3;
- */
- public Builder setBranchId(long value) {
-
- branchId_ = value;
- onChanged();
- return this;
- }
- /**
- * int64 branchId = 3;
- */
- public Builder clearBranchId() {
-
- branchId_ = 0L;
- onChanged();
- return this;
- }
-
- private java.lang.Object resourceId_ = "";
- /**
- * string resourceId = 4;
- */
- public java.lang.String getResourceId() {
- java.lang.Object ref = resourceId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- resourceId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string resourceId = 4;
- */
- public com.google.protobuf.ByteString
- getResourceIdBytes() {
- java.lang.Object ref = resourceId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- resourceId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string resourceId = 4;
- */
- public Builder setResourceId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- resourceId_ = value;
- onChanged();
- return this;
- }
- /**
- * string resourceId = 4;
- */
- public Builder clearResourceId() {
-
- resourceId_ = getDefaultInstance().getResourceId();
- onChanged();
- return this;
- }
- /**
- * string resourceId = 4;
- */
- public Builder setResourceIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- resourceId_ = value;
- onChanged();
- return this;
- }
-
- private int status_ = 0;
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto status = 5;
- */
- public int getStatusValue() {
- return status_;
- }
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto status = 5;
- */
- public Builder setStatusValue(int value) {
- status_ = value;
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto status = 5;
- */
- public io.seata.codec.protobuf.generated.BranchStatusProto getStatus() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.BranchStatusProto result = io.seata.codec.protobuf.generated.BranchStatusProto.valueOf(status_);
- return result == null ? io.seata.codec.protobuf.generated.BranchStatusProto.UNRECOGNIZED : result;
- }
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto status = 5;
- */
- public Builder setStatus(io.seata.codec.protobuf.generated.BranchStatusProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- status_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto status = 5;
- */
- public Builder clearStatus() {
-
- status_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object applicationData_ = "";
- /**
- * string applicationData = 6;
- */
- public java.lang.String getApplicationData() {
- java.lang.Object ref = applicationData_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- applicationData_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string applicationData = 6;
- */
- public com.google.protobuf.ByteString
- getApplicationDataBytes() {
- java.lang.Object ref = applicationData_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- applicationData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string applicationData = 6;
- */
- public Builder setApplicationData(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- applicationData_ = value;
- onChanged();
- return this;
- }
- /**
- * string applicationData = 6;
- */
- public Builder clearApplicationData() {
-
- applicationData_ = getDefaultInstance().getApplicationData();
- onChanged();
- return this;
- }
- /**
- * string applicationData = 6;
- */
- public Builder setApplicationDataBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- applicationData_ = value;
- onChanged();
- return this;
- }
-
- private int branchType_ = 0;
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 7;
- */
- public int getBranchTypeValue() {
- return branchType_;
- }
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 7;
- */
- public Builder setBranchTypeValue(int value) {
- branchType_ = value;
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 7;
- */
- public io.seata.codec.protobuf.generated.BranchTypeProto getBranchType() {
- @SuppressWarnings("deprecation")
- io.seata.codec.protobuf.generated.BranchTypeProto result = io.seata.codec.protobuf.generated.BranchTypeProto.valueOf(branchType_);
- return result == null ? io.seata.codec.protobuf.generated.BranchTypeProto.UNRECOGNIZED : result;
- }
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 7;
- */
- public Builder setBranchType(io.seata.codec.protobuf.generated.BranchTypeProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- branchType_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 7;
- */
- public Builder clearBranchType() {
-
- branchType_ = 0;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.BranchReportRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.BranchReportRequestProto)
- private static final io.seata.codec.protobuf.generated.BranchReportRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.BranchReportRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.BranchReportRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- boolean hasAbstractTransactionRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder();
-
- /**
- * string xid = 2;
- */
- java.lang.String getXid();
- /**
- * string xid = 2;
- */
- com.google.protobuf.ByteString
- getXidBytes();
-
- /**
- * int64 branchId = 3;
- */
- long getBranchId();
-
- /**
- * string resourceId = 4;
- */
- java.lang.String getResourceId();
- /**
- * string resourceId = 4;
- */
- com.google.protobuf.ByteString
- getResourceIdBytes();
-
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto status = 5;
- */
- int getStatusValue();
- /**
- * .io.seata.protocol.protobuf.BranchStatusProto status = 5;
- */
- io.seata.codec.protobuf.generated.BranchStatusProto getStatus();
-
- /**
- * string applicationData = 6;
- */
- java.lang.String getApplicationData();
- /**
- * string applicationData = 6;
- */
- com.google.protobuf.ByteString
- getApplicationDataBytes();
-
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 7;
- */
- int getBranchTypeValue();
- /**
- * .io.seata.protocol.protobuf.BranchTypeProto branchType = 7;
- */
- io.seata.codec.protobuf.generated.BranchTypeProto getBranchType();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchReportResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchReportResponse.java
deleted file mode 100644
index 07562d3fe46..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchReportResponse.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchReportResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class BranchReportResponse {
- private BranchReportResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_BranchReportResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_BranchReportResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\032branchReportResponse.proto\022\032io.seata.p" +
- "rotocol.protobuf\032!abstractTransactionRes" +
- "ponse.proto\"~\n\031BranchReportResponseProto" +
- "\022a\n\033abstractTransactionResponse\030\001 \001(\0132<." +
- "io.seata.protocol.protobuf.AbstractTrans" +
- "actionResponseProtoB;\n!io.seata.codec.pr" +
- "otobuf.generatedB\024BranchReportResponseP\001" +
- "b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractTransactionResponse.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_BranchReportResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_BranchReportResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_BranchReportResponseProto_descriptor,
- new java.lang.String[] { "AbstractTransactionResponse", });
- io.seata.codec.protobuf.generated.AbstractTransactionResponse.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchReportResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchReportResponseProto.java
deleted file mode 100644
index 5a8dbb3752d..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchReportResponseProto.java
+++ /dev/null
@@ -1,594 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchReportResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * Protobuf type {@code io.seata.protocol.protobuf.BranchReportResponseProto}
- */
-public final class BranchReportResponseProto extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.BranchReportResponseProto)
- BranchReportResponseProtoOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use BranchReportResponseProto.newBuilder() to construct.
- private BranchReportResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private BranchReportResponseProto() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private BranchReportResponseProto(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder subBuilder = null;
- if (abstractTransactionResponse_ != null) {
- subBuilder = abstractTransactionResponse_.toBuilder();
- }
- abstractTransactionResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(abstractTransactionResponse_);
- abstractTransactionResponse_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return io.seata.codec.protobuf.generated.BranchReportResponse.internal_static_io_seata_protocol_protobuf_BranchReportResponseProto_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return io.seata.codec.protobuf.generated.BranchReportResponse.internal_static_io_seata_protocol_protobuf_BranchReportResponseProto_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- io.seata.codec.protobuf.generated.BranchReportResponseProto.class, io.seata.codec.protobuf.generated.BranchReportResponseProto.Builder.class);
- }
-
- public static final int ABSTRACTTRANSACTIONRESPONSE_FIELD_NUMBER = 1;
- private io.seata.codec.protobuf.generated.AbstractTransactionResponseProto abstractTransactionResponse_;
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public boolean hasAbstractTransactionResponse() {
- return abstractTransactionResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse() {
- return abstractTransactionResponse_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder() {
- return getAbstractTransactionResponse();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractTransactionResponse_ != null) {
- output.writeMessage(1, getAbstractTransactionResponse());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractTransactionResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractTransactionResponse());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.BranchReportResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.BranchReportResponseProto other = (io.seata.codec.protobuf.generated.BranchReportResponseProto) obj;
-
- if (hasAbstractTransactionResponse() != other.hasAbstractTransactionResponse()) return false;
- if (hasAbstractTransactionResponse()) {
- if (!getAbstractTransactionResponse()
- .equals(other.getAbstractTransactionResponse())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractTransactionResponse()) {
- hash = (37 * hash) + ABSTRACTTRANSACTIONRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractTransactionResponse().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.BranchReportResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code io.seata.protocol.protobuf.BranchReportResponseProto}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public boolean hasAbstractTransactionResponse() {
- return abstractTransactionResponseBuilder_ != null || abstractTransactionResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse() {
- if (abstractTransactionResponseBuilder_ == null) {
- return abstractTransactionResponse_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- } else {
- return abstractTransactionResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder setAbstractTransactionResponse(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto value) {
- if (abstractTransactionResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractTransactionResponse_ = value;
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder setAbstractTransactionResponse(
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder builderForValue) {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder mergeAbstractTransactionResponse(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto value) {
- if (abstractTransactionResponseBuilder_ == null) {
- if (abstractTransactionResponse_ != null) {
- abstractTransactionResponse_ =
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.newBuilder(abstractTransactionResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractTransactionResponse_ = value;
- }
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder clearAbstractTransactionResponse() {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponse_ = null;
- onChanged();
- } else {
- abstractTransactionResponse_ = null;
- abstractTransactionResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder getAbstractTransactionResponseBuilder() {
-
- onChanged();
- return getAbstractTransactionResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder() {
- if (abstractTransactionResponseBuilder_ != null) {
- return abstractTransactionResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractTransactionResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder>
- getAbstractTransactionResponseFieldBuilder() {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder>(
- getAbstractTransactionResponse(),
- getParentForChildren(),
- isClean());
- abstractTransactionResponse_ = null;
- }
- return abstractTransactionResponseBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.BranchReportResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.BranchReportResponseProto)
- private static final io.seata.codec.protobuf.generated.BranchReportResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.BranchReportResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.BranchReportResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- boolean hasAbstractTransactionResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRollbackRequest.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRollbackRequest.java
deleted file mode 100644
index ffc71fdd056..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRollbackRequest.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchRollbackRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class BranchRollbackRequest {
- private BranchRollbackRequest() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_BranchRollbackRequestProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_BranchRollbackRequestProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\033branchRollbackRequest.proto\022\032io.seata." +
- "protocol.protobuf\032\036abstractBranchEndRequ" +
- "est.proto\"y\n\032BranchRollbackRequestProto\022" +
- "[\n\030abstractBranchEndRequest\030\001 \001(\01329.io.s" +
- "eata.protocol.protobuf.AbstractBranchEnd" +
- "RequestProtoB<\n!io.seata.codec.protobuf." +
- "generatedB\025BranchRollbackRequestP\001b\006prot" +
- "o3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractBranchEndRequest.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_BranchRollbackRequestProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_BranchRollbackRequestProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_BranchRollbackRequestProto_descriptor,
- new java.lang.String[] { "AbstractBranchEndRequest", });
- io.seata.codec.protobuf.generated.AbstractBranchEndRequest.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRollbackRequestProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRollbackRequestProto.java
deleted file mode 100644
index 3a66d306844..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRollbackRequestProto.java
+++ /dev/null
@@ -1,602 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchRollbackRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.BranchRollbackRequestProto} - */ -public final class BranchRollbackRequestProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.BranchRollbackRequestProto) - BranchRollbackRequestProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use BranchRollbackRequestProto.newBuilder() to construct. - private BranchRollbackRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private BranchRollbackRequestProto() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BranchRollbackRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.Builder subBuilder = null; - if (abstractBranchEndRequest_ != null) { - subBuilder = abstractBranchEndRequest_.toBuilder(); - } - abstractBranchEndRequest_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractBranchEndRequest_); - abstractBranchEndRequest_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.BranchRollbackRequest.internal_static_io_seata_protocol_protobuf_BranchRollbackRequestProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.BranchRollbackRequest.internal_static_io_seata_protocol_protobuf_BranchRollbackRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.BranchRollbackRequestProto.class, io.seata.codec.protobuf.generated.BranchRollbackRequestProto.Builder.class); - } - - public static final int ABSTRACTBRANCHENDREQUEST_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto abstractBranchEndRequest_; - /** - *
.io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public boolean hasAbstractBranchEndRequest() {
- return abstractBranchEndRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto getAbstractBranchEndRequest() {
- return abstractBranchEndRequest_ == null ? io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.getDefaultInstance() : abstractBranchEndRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndRequestProtoOrBuilder getAbstractBranchEndRequestOrBuilder() {
- return getAbstractBranchEndRequest();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractBranchEndRequest_ != null) {
- output.writeMessage(1, getAbstractBranchEndRequest());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractBranchEndRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractBranchEndRequest());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.BranchRollbackRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.BranchRollbackRequestProto other = (io.seata.codec.protobuf.generated.BranchRollbackRequestProto) obj;
-
- if (hasAbstractBranchEndRequest() != other.hasAbstractBranchEndRequest()) return false;
- if (hasAbstractBranchEndRequest()) {
- if (!getAbstractBranchEndRequest()
- .equals(other.getAbstractBranchEndRequest())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractBranchEndRequest()) {
- hash = (37 * hash) + ABSTRACTBRANCHENDREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractBranchEndRequest().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.BranchRollbackRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.BranchRollbackRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public boolean hasAbstractBranchEndRequest() {
- return abstractBranchEndRequestBuilder_ != null || abstractBranchEndRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto getAbstractBranchEndRequest() {
- if (abstractBranchEndRequestBuilder_ == null) {
- return abstractBranchEndRequest_ == null ? io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.getDefaultInstance() : abstractBranchEndRequest_;
- } else {
- return abstractBranchEndRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public Builder setAbstractBranchEndRequest(io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto value) {
- if (abstractBranchEndRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractBranchEndRequest_ = value;
- onChanged();
- } else {
- abstractBranchEndRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public Builder setAbstractBranchEndRequest(
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.Builder builderForValue) {
- if (abstractBranchEndRequestBuilder_ == null) {
- abstractBranchEndRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractBranchEndRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public Builder mergeAbstractBranchEndRequest(io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto value) {
- if (abstractBranchEndRequestBuilder_ == null) {
- if (abstractBranchEndRequest_ != null) {
- abstractBranchEndRequest_ =
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.newBuilder(abstractBranchEndRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractBranchEndRequest_ = value;
- }
- onChanged();
- } else {
- abstractBranchEndRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public Builder clearAbstractBranchEndRequest() {
- if (abstractBranchEndRequestBuilder_ == null) {
- abstractBranchEndRequest_ = null;
- onChanged();
- } else {
- abstractBranchEndRequest_ = null;
- abstractBranchEndRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.Builder getAbstractBranchEndRequestBuilder() {
-
- onChanged();
- return getAbstractBranchEndRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndRequestProtoOrBuilder getAbstractBranchEndRequestOrBuilder() {
- if (abstractBranchEndRequestBuilder_ != null) {
- return abstractBranchEndRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractBranchEndRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.getDefaultInstance() : abstractBranchEndRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto, io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractBranchEndRequestProtoOrBuilder>
- getAbstractBranchEndRequestFieldBuilder() {
- if (abstractBranchEndRequestBuilder_ == null) {
- abstractBranchEndRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto, io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractBranchEndRequestProtoOrBuilder>(
- getAbstractBranchEndRequest(),
- getParentForChildren(),
- isClean());
- abstractBranchEndRequest_ = null;
- }
- return abstractBranchEndRequestBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.BranchRollbackRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.BranchRollbackRequestProto)
- private static final io.seata.codec.protobuf.generated.BranchRollbackRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.BranchRollbackRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.BranchRollbackRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- boolean hasAbstractBranchEndRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProto getAbstractBranchEndRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndRequestProto abstractBranchEndRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractBranchEndRequestProtoOrBuilder getAbstractBranchEndRequestOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRollbackResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRollbackResponse.java
deleted file mode 100644
index 66b04b0abed..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRollbackResponse.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchRollbackResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class BranchRollbackResponse {
- private BranchRollbackResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_BranchRollbackResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_BranchRollbackResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\034branchRollbackResponse.proto\022\032io.seata" +
- ".protocol.protobuf\032\037abstractBranchEndRes" +
- "ponse.proto\"|\n\033BranchRollbackResponsePro" +
- "to\022]\n\031abstractBranchEndResponse\030\001 \001(\0132:." +
- "io.seata.protocol.protobuf.AbstractBranc" +
- "hEndResponseProtoB=\n!io.seata.codec.prot" +
- "obuf.generatedB\026BranchRollbackResponseP\001" +
- "b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractBranchEndResponse.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_BranchRollbackResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_BranchRollbackResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_BranchRollbackResponseProto_descriptor,
- new java.lang.String[] { "AbstractBranchEndResponse", });
- io.seata.codec.protobuf.generated.AbstractBranchEndResponse.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRollbackResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRollbackResponseProto.java
deleted file mode 100644
index 50dd87d787c..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchRollbackResponseProto.java
+++ /dev/null
@@ -1,602 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchRollbackResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.BranchRollbackResponseProto} - */ -public final class BranchRollbackResponseProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.BranchRollbackResponseProto) - BranchRollbackResponseProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use BranchRollbackResponseProto.newBuilder() to construct. - private BranchRollbackResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private BranchRollbackResponseProto() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BranchRollbackResponseProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.Builder subBuilder = null; - if (abstractBranchEndResponse_ != null) { - subBuilder = abstractBranchEndResponse_.toBuilder(); - } - abstractBranchEndResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractBranchEndResponse_); - abstractBranchEndResponse_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.BranchRollbackResponse.internal_static_io_seata_protocol_protobuf_BranchRollbackResponseProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.BranchRollbackResponse.internal_static_io_seata_protocol_protobuf_BranchRollbackResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.BranchRollbackResponseProto.class, io.seata.codec.protobuf.generated.BranchRollbackResponseProto.Builder.class); - } - - public static final int ABSTRACTBRANCHENDRESPONSE_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto abstractBranchEndResponse_; - /** - *
.io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public boolean hasAbstractBranchEndResponse() {
- return abstractBranchEndResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto getAbstractBranchEndResponse() {
- return abstractBranchEndResponse_ == null ? io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.getDefaultInstance() : abstractBranchEndResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndResponseProtoOrBuilder getAbstractBranchEndResponseOrBuilder() {
- return getAbstractBranchEndResponse();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractBranchEndResponse_ != null) {
- output.writeMessage(1, getAbstractBranchEndResponse());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractBranchEndResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractBranchEndResponse());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.BranchRollbackResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.BranchRollbackResponseProto other = (io.seata.codec.protobuf.generated.BranchRollbackResponseProto) obj;
-
- if (hasAbstractBranchEndResponse() != other.hasAbstractBranchEndResponse()) return false;
- if (hasAbstractBranchEndResponse()) {
- if (!getAbstractBranchEndResponse()
- .equals(other.getAbstractBranchEndResponse())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractBranchEndResponse()) {
- hash = (37 * hash) + ABSTRACTBRANCHENDRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractBranchEndResponse().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.BranchRollbackResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.BranchRollbackResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public boolean hasAbstractBranchEndResponse() {
- return abstractBranchEndResponseBuilder_ != null || abstractBranchEndResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto getAbstractBranchEndResponse() {
- if (abstractBranchEndResponseBuilder_ == null) {
- return abstractBranchEndResponse_ == null ? io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.getDefaultInstance() : abstractBranchEndResponse_;
- } else {
- return abstractBranchEndResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public Builder setAbstractBranchEndResponse(io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto value) {
- if (abstractBranchEndResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractBranchEndResponse_ = value;
- onChanged();
- } else {
- abstractBranchEndResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public Builder setAbstractBranchEndResponse(
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.Builder builderForValue) {
- if (abstractBranchEndResponseBuilder_ == null) {
- abstractBranchEndResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractBranchEndResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public Builder mergeAbstractBranchEndResponse(io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto value) {
- if (abstractBranchEndResponseBuilder_ == null) {
- if (abstractBranchEndResponse_ != null) {
- abstractBranchEndResponse_ =
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.newBuilder(abstractBranchEndResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractBranchEndResponse_ = value;
- }
- onChanged();
- } else {
- abstractBranchEndResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public Builder clearAbstractBranchEndResponse() {
- if (abstractBranchEndResponseBuilder_ == null) {
- abstractBranchEndResponse_ = null;
- onChanged();
- } else {
- abstractBranchEndResponse_ = null;
- abstractBranchEndResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.Builder getAbstractBranchEndResponseBuilder() {
-
- onChanged();
- return getAbstractBranchEndResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractBranchEndResponseProtoOrBuilder getAbstractBranchEndResponseOrBuilder() {
- if (abstractBranchEndResponseBuilder_ != null) {
- return abstractBranchEndResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractBranchEndResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.getDefaultInstance() : abstractBranchEndResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto, io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractBranchEndResponseProtoOrBuilder>
- getAbstractBranchEndResponseFieldBuilder() {
- if (abstractBranchEndResponseBuilder_ == null) {
- abstractBranchEndResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto, io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractBranchEndResponseProtoOrBuilder>(
- getAbstractBranchEndResponse(),
- getParentForChildren(),
- isClean());
- abstractBranchEndResponse_ = null;
- }
- return abstractBranchEndResponseBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.BranchRollbackResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.BranchRollbackResponseProto)
- private static final io.seata.codec.protobuf.generated.BranchRollbackResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.BranchRollbackResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.BranchRollbackResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- boolean hasAbstractBranchEndResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProto getAbstractBranchEndResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractBranchEndResponseProto abstractBranchEndResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractBranchEndResponseProtoOrBuilder getAbstractBranchEndResponseOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchStatus.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchStatus.java
deleted file mode 100644
index 29d9d2b0c41..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchStatus.java
+++ /dev/null
@@ -1,53 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchStatus.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class BranchStatus {
- private BranchStatus() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\022branchStatus.proto\022\032io.seata.protocol." +
- "protobuf*\274\002\n\021BranchStatusProto\022\014\n\010BUnkno" +
- "wn\020\000\022\016\n\nRegistered\020\001\022\021\n\rPhaseOne_Done\020\002\022" +
- "\023\n\017PhaseOne_Failed\020\003\022\024\n\020PhaseOne_Timeout" +
- "\020\004\022\026\n\022PhaseTwo_Committed\020\005\022#\n\037PhaseTwo_C" +
- "ommitFailed_Retryable\020\006\022%\n!PhaseTwo_Comm" +
- "itFailed_Unretryable\020\007\022\027\n\023PhaseTwo_Rollb" +
- "acked\020\010\022%\n!PhaseTwo_RollbackFailed_Retry" +
- "able\020\t\022\'\n#PhaseTwo_RollbackFailed_Unretr" +
- "yable\020\nB3\n!io.seata.codec.protobuf.gener" +
- "atedB\014BranchStatusP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- }, assigner);
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchStatusProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchStatusProto.java
deleted file mode 100644
index ac5bd9422ac..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/BranchStatusProto.java
+++ /dev/null
@@ -1,276 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: branchStatus.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf enum {@code io.seata.protocol.protobuf.BranchStatusProto} - */ -public enum BranchStatusProto - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
- * special for Unknown - *- * - *
BUnknown = 0;
- */
- BUnknown(0),
- /**
- * - * Registered to TC. - *- * - *
Registered = 1;
- */
- Registered(1),
- /**
- * - * Branch logic is successfully done at phase one. - *- * - *
PhaseOne_Done = 2;
- */
- PhaseOne_Done(2),
- /**
- * - * Branch logic is failed at phase one. - *- * - *
PhaseOne_Failed = 3;
- */
- PhaseOne_Failed(3),
- /**
- * - * Branch logic is NOT reported for a timeout. - *- * - *
PhaseOne_Timeout = 4;
- */
- PhaseOne_Timeout(4),
- /**
- * - * Commit logic is successfully done at phase two. - *- * - *
PhaseTwo_Committed = 5;
- */
- PhaseTwo_Committed(5),
- /**
- * - * Commit logic is failed but retryable. - *- * - *
PhaseTwo_CommitFailed_Retryable = 6;
- */
- PhaseTwo_CommitFailed_Retryable(6),
- /**
- * - * Commit logic is failed and NOT retryable. - *- * - *
PhaseTwo_CommitFailed_Unretryable = 7;
- */
- PhaseTwo_CommitFailed_Unretryable(7),
- /**
- * - * Rollback logic is successfully done at phase two. - *- * - *
PhaseTwo_Rollbacked = 8;
- */
- PhaseTwo_Rollbacked(8),
- /**
- * - * Rollback logic is failed but retryable. - *- * - *
PhaseTwo_RollbackFailed_Retryable = 9;
- */
- PhaseTwo_RollbackFailed_Retryable(9),
- /**
- * - * Rollback logic is failed but NOT retryable. - *- * - *
PhaseTwo_RollbackFailed_Unretryable = 10;
- */
- PhaseTwo_RollbackFailed_Unretryable(10),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * - * special for Unknown - *- * - *
BUnknown = 0;
- */
- public static final int BUnknown_VALUE = 0;
- /**
- * - * Registered to TC. - *- * - *
Registered = 1;
- */
- public static final int Registered_VALUE = 1;
- /**
- * - * Branch logic is successfully done at phase one. - *- * - *
PhaseOne_Done = 2;
- */
- public static final int PhaseOne_Done_VALUE = 2;
- /**
- * - * Branch logic is failed at phase one. - *- * - *
PhaseOne_Failed = 3;
- */
- public static final int PhaseOne_Failed_VALUE = 3;
- /**
- * - * Branch logic is NOT reported for a timeout. - *- * - *
PhaseOne_Timeout = 4;
- */
- public static final int PhaseOne_Timeout_VALUE = 4;
- /**
- * - * Commit logic is successfully done at phase two. - *- * - *
PhaseTwo_Committed = 5;
- */
- public static final int PhaseTwo_Committed_VALUE = 5;
- /**
- * - * Commit logic is failed but retryable. - *- * - *
PhaseTwo_CommitFailed_Retryable = 6;
- */
- public static final int PhaseTwo_CommitFailed_Retryable_VALUE = 6;
- /**
- * - * Commit logic is failed and NOT retryable. - *- * - *
PhaseTwo_CommitFailed_Unretryable = 7;
- */
- public static final int PhaseTwo_CommitFailed_Unretryable_VALUE = 7;
- /**
- * - * Rollback logic is successfully done at phase two. - *- * - *
PhaseTwo_Rollbacked = 8;
- */
- public static final int PhaseTwo_Rollbacked_VALUE = 8;
- /**
- * - * Rollback logic is failed but retryable. - *- * - *
PhaseTwo_RollbackFailed_Retryable = 9;
- */
- public static final int PhaseTwo_RollbackFailed_Retryable_VALUE = 9;
- /**
- * - * Rollback logic is failed but NOT retryable. - *- * - *
PhaseTwo_RollbackFailed_Unretryable = 10;
- */
- public static final int PhaseTwo_RollbackFailed_Unretryable_VALUE = 10;
-
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static BranchStatusProto valueOf(int value) {
- return forNumber(value);
- }
-
- public static BranchStatusProto forNumber(int value) {
- switch (value) {
- case 0: return BUnknown;
- case 1: return Registered;
- case 2: return PhaseOne_Done;
- case 3: return PhaseOne_Failed;
- case 4: return PhaseOne_Timeout;
- case 5: return PhaseTwo_Committed;
- case 6: return PhaseTwo_CommitFailed_Retryable;
- case 7: return PhaseTwo_CommitFailed_Unretryable;
- case 8: return PhaseTwo_Rollbacked;
- case 9: return PhaseTwo_RollbackFailed_Retryable;
- case 10: return PhaseTwo_RollbackFailed_Unretryable;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap- * PublishRequest is a publish request. - *- * - * Protobuf enum {@code io.seata.protocol.protobuf.BranchTypeProto} - */ -public enum BranchTypeProto - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
AT = 0;
- */
- AT(0),
- /**
- * TCC = 1;
- */
- TCC(1),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * AT = 0;
- */
- public static final int AT_VALUE = 0;
- /**
- * TCC = 1;
- */
- public static final int TCC_VALUE = 1;
-
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static BranchTypeProto valueOf(int value) {
- return forNumber(value);
- }
-
- public static BranchTypeProto forNumber(int value) {
- switch (value) {
- case 0: return AT;
- case 1: return TCC;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public boolean hasAbstractTransactionRequest() {
- return abstractTransactionRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest() {
- return abstractTransactionRequest_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder() {
- return getAbstractTransactionRequest();
- }
-
- public static final int TIMEOUT_FIELD_NUMBER = 2;
- private int timeout_;
- /**
- * int32 timeout = 2;
- */
- public int getTimeout() {
- return timeout_;
- }
-
- public static final int TRANSACTIONNAME_FIELD_NUMBER = 3;
- private volatile java.lang.Object transactionName_;
- /**
- * string transactionName = 3;
- */
- public java.lang.String getTransactionName() {
- java.lang.Object ref = transactionName_;
- 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();
- transactionName_ = s;
- return s;
- }
- }
- /**
- * string transactionName = 3;
- */
- public com.google.protobuf.ByteString
- getTransactionNameBytes() {
- java.lang.Object ref = transactionName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- transactionName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractTransactionRequest_ != null) {
- output.writeMessage(1, getAbstractTransactionRequest());
- }
- if (timeout_ != 0) {
- output.writeInt32(2, timeout_);
- }
- if (!getTransactionNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, transactionName_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractTransactionRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractTransactionRequest());
- }
- if (timeout_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(2, timeout_);
- }
- if (!getTransactionNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, transactionName_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.GlobalBeginRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.GlobalBeginRequestProto other = (io.seata.codec.protobuf.generated.GlobalBeginRequestProto) obj;
-
- if (hasAbstractTransactionRequest() != other.hasAbstractTransactionRequest()) return false;
- if (hasAbstractTransactionRequest()) {
- if (!getAbstractTransactionRequest()
- .equals(other.getAbstractTransactionRequest())) return false;
- }
- if (getTimeout()
- != other.getTimeout()) return false;
- if (!getTransactionName()
- .equals(other.getTransactionName())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractTransactionRequest()) {
- hash = (37 * hash) + ABSTRACTTRANSACTIONREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractTransactionRequest().hashCode();
- }
- hash = (37 * hash) + TIMEOUT_FIELD_NUMBER;
- hash = (53 * hash) + getTimeout();
- hash = (37 * hash) + TRANSACTIONNAME_FIELD_NUMBER;
- hash = (53 * hash) + getTransactionName().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.GlobalBeginRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalBeginRequestProto}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public boolean hasAbstractTransactionRequest() {
- return abstractTransactionRequestBuilder_ != null || abstractTransactionRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest() {
- if (abstractTransactionRequestBuilder_ == null) {
- return abstractTransactionRequest_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- } else {
- return abstractTransactionRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder setAbstractTransactionRequest(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto value) {
- if (abstractTransactionRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractTransactionRequest_ = value;
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder setAbstractTransactionRequest(
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder builderForValue) {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder mergeAbstractTransactionRequest(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto value) {
- if (abstractTransactionRequestBuilder_ == null) {
- if (abstractTransactionRequest_ != null) {
- abstractTransactionRequest_ =
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.newBuilder(abstractTransactionRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractTransactionRequest_ = value;
- }
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder clearAbstractTransactionRequest() {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequest_ = null;
- onChanged();
- } else {
- abstractTransactionRequest_ = null;
- abstractTransactionRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder getAbstractTransactionRequestBuilder() {
-
- onChanged();
- return getAbstractTransactionRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder() {
- if (abstractTransactionRequestBuilder_ != null) {
- return abstractTransactionRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractTransactionRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder>
- getAbstractTransactionRequestFieldBuilder() {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder>(
- getAbstractTransactionRequest(),
- getParentForChildren(),
- isClean());
- abstractTransactionRequest_ = null;
- }
- return abstractTransactionRequestBuilder_;
- }
-
- private int timeout_ ;
- /**
- * int32 timeout = 2;
- */
- public int getTimeout() {
- return timeout_;
- }
- /**
- * int32 timeout = 2;
- */
- public Builder setTimeout(int value) {
-
- timeout_ = value;
- onChanged();
- return this;
- }
- /**
- * int32 timeout = 2;
- */
- public Builder clearTimeout() {
-
- timeout_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object transactionName_ = "";
- /**
- * string transactionName = 3;
- */
- public java.lang.String getTransactionName() {
- java.lang.Object ref = transactionName_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- transactionName_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string transactionName = 3;
- */
- public com.google.protobuf.ByteString
- getTransactionNameBytes() {
- java.lang.Object ref = transactionName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- transactionName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string transactionName = 3;
- */
- public Builder setTransactionName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- transactionName_ = value;
- onChanged();
- return this;
- }
- /**
- * string transactionName = 3;
- */
- public Builder clearTransactionName() {
-
- transactionName_ = getDefaultInstance().getTransactionName();
- onChanged();
- return this;
- }
- /**
- * string transactionName = 3;
- */
- public Builder setTransactionNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- transactionName_ = value;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.GlobalBeginRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.GlobalBeginRequestProto)
- private static final io.seata.codec.protobuf.generated.GlobalBeginRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.GlobalBeginRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.GlobalBeginRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- boolean hasAbstractTransactionRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder();
-
- /**
- * int32 timeout = 2;
- */
- int getTimeout();
-
- /**
- * string transactionName = 3;
- */
- java.lang.String getTransactionName();
- /**
- * string transactionName = 3;
- */
- com.google.protobuf.ByteString
- getTransactionNameBytes();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalBeginResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalBeginResponse.java
deleted file mode 100644
index 2b6130643c6..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalBeginResponse.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalBeginResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class GlobalBeginResponse {
- private GlobalBeginResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_GlobalBeginResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_GlobalBeginResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\031globalBeginResponse.proto\022\032io.seata.pr" +
- "otocol.protobuf\032!abstractTransactionResp" +
- "onse.proto\"\235\001\n\030GlobalBeginResponseProto\022" +
- "a\n\033abstractTransactionResponse\030\001 \001(\0132<.i" +
- "o.seata.protocol.protobuf.AbstractTransa" +
- "ctionResponseProto\022\013\n\003xid\030\002 \001(\t\022\021\n\textra" +
- "Data\030\003 \001(\tB:\n!io.seata.codec.protobuf.ge" +
- "neratedB\023GlobalBeginResponseP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractTransactionResponse.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_GlobalBeginResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_GlobalBeginResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_GlobalBeginResponseProto_descriptor,
- new java.lang.String[] { "AbstractTransactionResponse", "Xid", "ExtraData", });
- io.seata.codec.protobuf.generated.AbstractTransactionResponse.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalBeginResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalBeginResponseProto.java
deleted file mode 100644
index 7d949102a0b..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalBeginResponseProto.java
+++ /dev/null
@@ -1,848 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalBeginResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalBeginResponseProto}
- */
-public final class GlobalBeginResponseProto extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.GlobalBeginResponseProto)
- GlobalBeginResponseProtoOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use GlobalBeginResponseProto.newBuilder() to construct.
- private GlobalBeginResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private GlobalBeginResponseProto() {
- xid_ = "";
- extraData_ = "";
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private GlobalBeginResponseProto(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder subBuilder = null;
- if (abstractTransactionResponse_ != null) {
- subBuilder = abstractTransactionResponse_.toBuilder();
- }
- abstractTransactionResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(abstractTransactionResponse_);
- abstractTransactionResponse_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 18: {
- java.lang.String s = input.readStringRequireUtf8();
-
- xid_ = s;
- break;
- }
- case 26: {
- java.lang.String s = input.readStringRequireUtf8();
-
- extraData_ = s;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return io.seata.codec.protobuf.generated.GlobalBeginResponse.internal_static_io_seata_protocol_protobuf_GlobalBeginResponseProto_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return io.seata.codec.protobuf.generated.GlobalBeginResponse.internal_static_io_seata_protocol_protobuf_GlobalBeginResponseProto_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- io.seata.codec.protobuf.generated.GlobalBeginResponseProto.class, io.seata.codec.protobuf.generated.GlobalBeginResponseProto.Builder.class);
- }
-
- public static final int ABSTRACTTRANSACTIONRESPONSE_FIELD_NUMBER = 1;
- private io.seata.codec.protobuf.generated.AbstractTransactionResponseProto abstractTransactionResponse_;
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public boolean hasAbstractTransactionResponse() {
- return abstractTransactionResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse() {
- return abstractTransactionResponse_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder() {
- return getAbstractTransactionResponse();
- }
-
- public static final int XID_FIELD_NUMBER = 2;
- private volatile java.lang.Object xid_;
- /**
- * string xid = 2;
- */
- public java.lang.String getXid() {
- java.lang.Object ref = xid_;
- 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();
- xid_ = s;
- return s;
- }
- }
- /**
- * string xid = 2;
- */
- public com.google.protobuf.ByteString
- getXidBytes() {
- java.lang.Object ref = xid_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- xid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int EXTRADATA_FIELD_NUMBER = 3;
- private volatile java.lang.Object extraData_;
- /**
- * string extraData = 3;
- */
- public java.lang.String getExtraData() {
- java.lang.Object ref = extraData_;
- 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();
- extraData_ = s;
- return s;
- }
- }
- /**
- * string extraData = 3;
- */
- public com.google.protobuf.ByteString
- getExtraDataBytes() {
- java.lang.Object ref = extraData_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- extraData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractTransactionResponse_ != null) {
- output.writeMessage(1, getAbstractTransactionResponse());
- }
- if (!getXidBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, xid_);
- }
- if (!getExtraDataBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, extraData_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractTransactionResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractTransactionResponse());
- }
- if (!getXidBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, xid_);
- }
- if (!getExtraDataBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, extraData_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.GlobalBeginResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.GlobalBeginResponseProto other = (io.seata.codec.protobuf.generated.GlobalBeginResponseProto) obj;
-
- if (hasAbstractTransactionResponse() != other.hasAbstractTransactionResponse()) return false;
- if (hasAbstractTransactionResponse()) {
- if (!getAbstractTransactionResponse()
- .equals(other.getAbstractTransactionResponse())) return false;
- }
- if (!getXid()
- .equals(other.getXid())) return false;
- if (!getExtraData()
- .equals(other.getExtraData())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractTransactionResponse()) {
- hash = (37 * hash) + ABSTRACTTRANSACTIONRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractTransactionResponse().hashCode();
- }
- hash = (37 * hash) + XID_FIELD_NUMBER;
- hash = (53 * hash) + getXid().hashCode();
- hash = (37 * hash) + EXTRADATA_FIELD_NUMBER;
- hash = (53 * hash) + getExtraData().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.GlobalBeginResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalBeginResponseProto}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public boolean hasAbstractTransactionResponse() {
- return abstractTransactionResponseBuilder_ != null || abstractTransactionResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse() {
- if (abstractTransactionResponseBuilder_ == null) {
- return abstractTransactionResponse_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- } else {
- return abstractTransactionResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder setAbstractTransactionResponse(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto value) {
- if (abstractTransactionResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractTransactionResponse_ = value;
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder setAbstractTransactionResponse(
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder builderForValue) {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder mergeAbstractTransactionResponse(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto value) {
- if (abstractTransactionResponseBuilder_ == null) {
- if (abstractTransactionResponse_ != null) {
- abstractTransactionResponse_ =
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.newBuilder(abstractTransactionResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractTransactionResponse_ = value;
- }
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder clearAbstractTransactionResponse() {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponse_ = null;
- onChanged();
- } else {
- abstractTransactionResponse_ = null;
- abstractTransactionResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder getAbstractTransactionResponseBuilder() {
-
- onChanged();
- return getAbstractTransactionResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder() {
- if (abstractTransactionResponseBuilder_ != null) {
- return abstractTransactionResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractTransactionResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder>
- getAbstractTransactionResponseFieldBuilder() {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder>(
- getAbstractTransactionResponse(),
- getParentForChildren(),
- isClean());
- abstractTransactionResponse_ = null;
- }
- return abstractTransactionResponseBuilder_;
- }
-
- private java.lang.Object xid_ = "";
- /**
- * string xid = 2;
- */
- public java.lang.String getXid() {
- java.lang.Object ref = xid_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- xid_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string xid = 2;
- */
- public com.google.protobuf.ByteString
- getXidBytes() {
- java.lang.Object ref = xid_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- xid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string xid = 2;
- */
- public Builder setXid(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- xid_ = value;
- onChanged();
- return this;
- }
- /**
- * string xid = 2;
- */
- public Builder clearXid() {
-
- xid_ = getDefaultInstance().getXid();
- onChanged();
- return this;
- }
- /**
- * string xid = 2;
- */
- public Builder setXidBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- xid_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object extraData_ = "";
- /**
- * string extraData = 3;
- */
- public java.lang.String getExtraData() {
- java.lang.Object ref = extraData_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- extraData_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string extraData = 3;
- */
- public com.google.protobuf.ByteString
- getExtraDataBytes() {
- java.lang.Object ref = extraData_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- extraData_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string extraData = 3;
- */
- public Builder setExtraData(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- extraData_ = value;
- onChanged();
- return this;
- }
- /**
- * string extraData = 3;
- */
- public Builder clearExtraData() {
-
- extraData_ = getDefaultInstance().getExtraData();
- onChanged();
- return this;
- }
- /**
- * string extraData = 3;
- */
- public Builder setExtraDataBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- extraData_ = value;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.GlobalBeginResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.GlobalBeginResponseProto)
- private static final io.seata.codec.protobuf.generated.GlobalBeginResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.GlobalBeginResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.GlobalBeginResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- boolean hasAbstractTransactionResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder();
-
- /**
- * string xid = 2;
- */
- java.lang.String getXid();
- /**
- * string xid = 2;
- */
- com.google.protobuf.ByteString
- getXidBytes();
-
- /**
- * string extraData = 3;
- */
- java.lang.String getExtraData();
- /**
- * string extraData = 3;
- */
- com.google.protobuf.ByteString
- getExtraDataBytes();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalCommitRequest.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalCommitRequest.java
deleted file mode 100644
index 49a94816a92..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalCommitRequest.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalCommitRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class GlobalCommitRequest {
- private GlobalCommitRequest() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_GlobalCommitRequestProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_GlobalCommitRequestProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\031globalCommitRequest.proto\022\032io.seata.pr" +
- "otocol.protobuf\032\036abstractGlobalEndReques" +
- "t.proto\"w\n\030GlobalCommitRequestProto\022[\n\030a" +
- "bstractGlobalEndRequest\030\001 \001(\01329.io.seata" +
- ".protocol.protobuf.AbstractGlobalEndRequ" +
- "estProtoB:\n!io.seata.codec.protobuf.gene" +
- "ratedB\023GlobalCommitRequestP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequest.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_GlobalCommitRequestProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_GlobalCommitRequestProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_GlobalCommitRequestProto_descriptor,
- new java.lang.String[] { "AbstractGlobalEndRequest", });
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequest.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalCommitRequestProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalCommitRequestProto.java
deleted file mode 100644
index 804e082bf1a..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalCommitRequestProto.java
+++ /dev/null
@@ -1,594 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalCommitRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalCommitRequestProto}
- */
-public final class GlobalCommitRequestProto extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.GlobalCommitRequestProto)
- GlobalCommitRequestProtoOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use GlobalCommitRequestProto.newBuilder() to construct.
- private GlobalCommitRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private GlobalCommitRequestProto() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private GlobalCommitRequestProto(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder subBuilder = null;
- if (abstractGlobalEndRequest_ != null) {
- subBuilder = abstractGlobalEndRequest_.toBuilder();
- }
- abstractGlobalEndRequest_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(abstractGlobalEndRequest_);
- abstractGlobalEndRequest_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return io.seata.codec.protobuf.generated.GlobalCommitRequest.internal_static_io_seata_protocol_protobuf_GlobalCommitRequestProto_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return io.seata.codec.protobuf.generated.GlobalCommitRequest.internal_static_io_seata_protocol_protobuf_GlobalCommitRequestProto_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- io.seata.codec.protobuf.generated.GlobalCommitRequestProto.class, io.seata.codec.protobuf.generated.GlobalCommitRequestProto.Builder.class);
- }
-
- public static final int ABSTRACTGLOBALENDREQUEST_FIELD_NUMBER = 1;
- private io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto abstractGlobalEndRequest_;
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public boolean hasAbstractGlobalEndRequest() {
- return abstractGlobalEndRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto getAbstractGlobalEndRequest() {
- return abstractGlobalEndRequest_ == null ? io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.getDefaultInstance() : abstractGlobalEndRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder getAbstractGlobalEndRequestOrBuilder() {
- return getAbstractGlobalEndRequest();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractGlobalEndRequest_ != null) {
- output.writeMessage(1, getAbstractGlobalEndRequest());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractGlobalEndRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractGlobalEndRequest());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.GlobalCommitRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.GlobalCommitRequestProto other = (io.seata.codec.protobuf.generated.GlobalCommitRequestProto) obj;
-
- if (hasAbstractGlobalEndRequest() != other.hasAbstractGlobalEndRequest()) return false;
- if (hasAbstractGlobalEndRequest()) {
- if (!getAbstractGlobalEndRequest()
- .equals(other.getAbstractGlobalEndRequest())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractGlobalEndRequest()) {
- hash = (37 * hash) + ABSTRACTGLOBALENDREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractGlobalEndRequest().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.GlobalCommitRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalCommitRequestProto}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public boolean hasAbstractGlobalEndRequest() {
- return abstractGlobalEndRequestBuilder_ != null || abstractGlobalEndRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto getAbstractGlobalEndRequest() {
- if (abstractGlobalEndRequestBuilder_ == null) {
- return abstractGlobalEndRequest_ == null ? io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.getDefaultInstance() : abstractGlobalEndRequest_;
- } else {
- return abstractGlobalEndRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public Builder setAbstractGlobalEndRequest(io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto value) {
- if (abstractGlobalEndRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractGlobalEndRequest_ = value;
- onChanged();
- } else {
- abstractGlobalEndRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public Builder setAbstractGlobalEndRequest(
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder builderForValue) {
- if (abstractGlobalEndRequestBuilder_ == null) {
- abstractGlobalEndRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractGlobalEndRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public Builder mergeAbstractGlobalEndRequest(io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto value) {
- if (abstractGlobalEndRequestBuilder_ == null) {
- if (abstractGlobalEndRequest_ != null) {
- abstractGlobalEndRequest_ =
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.newBuilder(abstractGlobalEndRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractGlobalEndRequest_ = value;
- }
- onChanged();
- } else {
- abstractGlobalEndRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public Builder clearAbstractGlobalEndRequest() {
- if (abstractGlobalEndRequestBuilder_ == null) {
- abstractGlobalEndRequest_ = null;
- onChanged();
- } else {
- abstractGlobalEndRequest_ = null;
- abstractGlobalEndRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder getAbstractGlobalEndRequestBuilder() {
-
- onChanged();
- return getAbstractGlobalEndRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder getAbstractGlobalEndRequestOrBuilder() {
- if (abstractGlobalEndRequestBuilder_ != null) {
- return abstractGlobalEndRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractGlobalEndRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.getDefaultInstance() : abstractGlobalEndRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder>
- getAbstractGlobalEndRequestFieldBuilder() {
- if (abstractGlobalEndRequestBuilder_ == null) {
- abstractGlobalEndRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder>(
- getAbstractGlobalEndRequest(),
- getParentForChildren(),
- isClean());
- abstractGlobalEndRequest_ = null;
- }
- return abstractGlobalEndRequestBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.GlobalCommitRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.GlobalCommitRequestProto)
- private static final io.seata.codec.protobuf.generated.GlobalCommitRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.GlobalCommitRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.GlobalCommitRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- boolean hasAbstractGlobalEndRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto getAbstractGlobalEndRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder getAbstractGlobalEndRequestOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalCommitResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalCommitResponse.java
deleted file mode 100644
index 2d5b343ba95..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalCommitResponse.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalCommitResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class GlobalCommitResponse {
- private GlobalCommitResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_GlobalCommitResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_GlobalCommitResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\032globalCommitResponse.proto\022\032io.seata.p" +
- "rotocol.protobuf\032\037abstractGlobalEndRespo" +
- "nse.proto\"z\n\031GlobalCommitResponseProto\022]" +
- "\n\031abstractGlobalEndResponse\030\001 \001(\0132:.io.s" +
- "eata.protocol.protobuf.AbstractGlobalEnd" +
- "ResponseProtoB;\n!io.seata.codec.protobuf" +
- ".generatedB\024GlobalCommitResponseP\001b\006prot" +
- "o3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponse.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_GlobalCommitResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_GlobalCommitResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_GlobalCommitResponseProto_descriptor,
- new java.lang.String[] { "AbstractGlobalEndResponse", });
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponse.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalCommitResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalCommitResponseProto.java
deleted file mode 100644
index 4527aa37a27..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalCommitResponseProto.java
+++ /dev/null
@@ -1,594 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalCommitResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalCommitResponseProto}
- */
-public final class GlobalCommitResponseProto extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.GlobalCommitResponseProto)
- GlobalCommitResponseProtoOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use GlobalCommitResponseProto.newBuilder() to construct.
- private GlobalCommitResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private GlobalCommitResponseProto() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private GlobalCommitResponseProto(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder subBuilder = null;
- if (abstractGlobalEndResponse_ != null) {
- subBuilder = abstractGlobalEndResponse_.toBuilder();
- }
- abstractGlobalEndResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(abstractGlobalEndResponse_);
- abstractGlobalEndResponse_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return io.seata.codec.protobuf.generated.GlobalCommitResponse.internal_static_io_seata_protocol_protobuf_GlobalCommitResponseProto_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return io.seata.codec.protobuf.generated.GlobalCommitResponse.internal_static_io_seata_protocol_protobuf_GlobalCommitResponseProto_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- io.seata.codec.protobuf.generated.GlobalCommitResponseProto.class, io.seata.codec.protobuf.generated.GlobalCommitResponseProto.Builder.class);
- }
-
- public static final int ABSTRACTGLOBALENDRESPONSE_FIELD_NUMBER = 1;
- private io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto abstractGlobalEndResponse_;
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public boolean hasAbstractGlobalEndResponse() {
- return abstractGlobalEndResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto getAbstractGlobalEndResponse() {
- return abstractGlobalEndResponse_ == null ? io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.getDefaultInstance() : abstractGlobalEndResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder getAbstractGlobalEndResponseOrBuilder() {
- return getAbstractGlobalEndResponse();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractGlobalEndResponse_ != null) {
- output.writeMessage(1, getAbstractGlobalEndResponse());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractGlobalEndResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractGlobalEndResponse());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.GlobalCommitResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.GlobalCommitResponseProto other = (io.seata.codec.protobuf.generated.GlobalCommitResponseProto) obj;
-
- if (hasAbstractGlobalEndResponse() != other.hasAbstractGlobalEndResponse()) return false;
- if (hasAbstractGlobalEndResponse()) {
- if (!getAbstractGlobalEndResponse()
- .equals(other.getAbstractGlobalEndResponse())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractGlobalEndResponse()) {
- hash = (37 * hash) + ABSTRACTGLOBALENDRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractGlobalEndResponse().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.GlobalCommitResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalCommitResponseProto}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public boolean hasAbstractGlobalEndResponse() {
- return abstractGlobalEndResponseBuilder_ != null || abstractGlobalEndResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto getAbstractGlobalEndResponse() {
- if (abstractGlobalEndResponseBuilder_ == null) {
- return abstractGlobalEndResponse_ == null ? io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.getDefaultInstance() : abstractGlobalEndResponse_;
- } else {
- return abstractGlobalEndResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public Builder setAbstractGlobalEndResponse(io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto value) {
- if (abstractGlobalEndResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractGlobalEndResponse_ = value;
- onChanged();
- } else {
- abstractGlobalEndResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public Builder setAbstractGlobalEndResponse(
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder builderForValue) {
- if (abstractGlobalEndResponseBuilder_ == null) {
- abstractGlobalEndResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractGlobalEndResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public Builder mergeAbstractGlobalEndResponse(io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto value) {
- if (abstractGlobalEndResponseBuilder_ == null) {
- if (abstractGlobalEndResponse_ != null) {
- abstractGlobalEndResponse_ =
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.newBuilder(abstractGlobalEndResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractGlobalEndResponse_ = value;
- }
- onChanged();
- } else {
- abstractGlobalEndResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public Builder clearAbstractGlobalEndResponse() {
- if (abstractGlobalEndResponseBuilder_ == null) {
- abstractGlobalEndResponse_ = null;
- onChanged();
- } else {
- abstractGlobalEndResponse_ = null;
- abstractGlobalEndResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder getAbstractGlobalEndResponseBuilder() {
-
- onChanged();
- return getAbstractGlobalEndResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder getAbstractGlobalEndResponseOrBuilder() {
- if (abstractGlobalEndResponseBuilder_ != null) {
- return abstractGlobalEndResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractGlobalEndResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.getDefaultInstance() : abstractGlobalEndResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder>
- getAbstractGlobalEndResponseFieldBuilder() {
- if (abstractGlobalEndResponseBuilder_ == null) {
- abstractGlobalEndResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder>(
- getAbstractGlobalEndResponse(),
- getParentForChildren(),
- isClean());
- abstractGlobalEndResponse_ = null;
- }
- return abstractGlobalEndResponseBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.GlobalCommitResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.GlobalCommitResponseProto)
- private static final io.seata.codec.protobuf.generated.GlobalCommitResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.GlobalCommitResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.GlobalCommitResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- boolean hasAbstractGlobalEndResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto getAbstractGlobalEndResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder getAbstractGlobalEndResponseOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalLockQueryRequest.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalLockQueryRequest.java
deleted file mode 100644
index 42310a89e7a..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalLockQueryRequest.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalLockQueryRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class GlobalLockQueryRequest {
- private GlobalLockQueryRequest() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_GlobalLockQueryRequestProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_GlobalLockQueryRequestProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\034globalLockQueryRequest.proto\022\032io.seata" +
- ".protocol.protobuf\032\033branchRegisterReques" +
- "t.proto\"t\n\033GlobalLockQueryRequestProto\022U" +
- "\n\025branchRegisterRequest\030\001 \001(\01326.io.seata" +
- ".protocol.protobuf.BranchRegisterRequest" +
- "ProtoB=\n!io.seata.codec.protobuf.generat" +
- "edB\026GlobalLockQueryRequestP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.BranchRegisterRequest.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_GlobalLockQueryRequestProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_GlobalLockQueryRequestProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_GlobalLockQueryRequestProto_descriptor,
- new java.lang.String[] { "BranchRegisterRequest", });
- io.seata.codec.protobuf.generated.BranchRegisterRequest.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalLockQueryRequestProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalLockQueryRequestProto.java
deleted file mode 100644
index 566d0c8c85f..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalLockQueryRequestProto.java
+++ /dev/null
@@ -1,594 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalLockQueryRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalLockQueryRequestProto}
- */
-public final class GlobalLockQueryRequestProto extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.GlobalLockQueryRequestProto)
- GlobalLockQueryRequestProtoOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use GlobalLockQueryRequestProto.newBuilder() to construct.
- private GlobalLockQueryRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private GlobalLockQueryRequestProto() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private GlobalLockQueryRequestProto(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- io.seata.codec.protobuf.generated.BranchRegisterRequestProto.Builder subBuilder = null;
- if (branchRegisterRequest_ != null) {
- subBuilder = branchRegisterRequest_.toBuilder();
- }
- branchRegisterRequest_ = input.readMessage(io.seata.codec.protobuf.generated.BranchRegisterRequestProto.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(branchRegisterRequest_);
- branchRegisterRequest_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return io.seata.codec.protobuf.generated.GlobalLockQueryRequest.internal_static_io_seata_protocol_protobuf_GlobalLockQueryRequestProto_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return io.seata.codec.protobuf.generated.GlobalLockQueryRequest.internal_static_io_seata_protocol_protobuf_GlobalLockQueryRequestProto_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto.class, io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto.Builder.class);
- }
-
- public static final int BRANCHREGISTERREQUEST_FIELD_NUMBER = 1;
- private io.seata.codec.protobuf.generated.BranchRegisterRequestProto branchRegisterRequest_;
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- public boolean hasBranchRegisterRequest() {
- return branchRegisterRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- public io.seata.codec.protobuf.generated.BranchRegisterRequestProto getBranchRegisterRequest() {
- return branchRegisterRequest_ == null ? io.seata.codec.protobuf.generated.BranchRegisterRequestProto.getDefaultInstance() : branchRegisterRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- public io.seata.codec.protobuf.generated.BranchRegisterRequestProtoOrBuilder getBranchRegisterRequestOrBuilder() {
- return getBranchRegisterRequest();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (branchRegisterRequest_ != null) {
- output.writeMessage(1, getBranchRegisterRequest());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (branchRegisterRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getBranchRegisterRequest());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto other = (io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto) obj;
-
- if (hasBranchRegisterRequest() != other.hasBranchRegisterRequest()) return false;
- if (hasBranchRegisterRequest()) {
- if (!getBranchRegisterRequest()
- .equals(other.getBranchRegisterRequest())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasBranchRegisterRequest()) {
- hash = (37 * hash) + BRANCHREGISTERREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getBranchRegisterRequest().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalLockQueryRequestProto}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- public boolean hasBranchRegisterRequest() {
- return branchRegisterRequestBuilder_ != null || branchRegisterRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- public io.seata.codec.protobuf.generated.BranchRegisterRequestProto getBranchRegisterRequest() {
- if (branchRegisterRequestBuilder_ == null) {
- return branchRegisterRequest_ == null ? io.seata.codec.protobuf.generated.BranchRegisterRequestProto.getDefaultInstance() : branchRegisterRequest_;
- } else {
- return branchRegisterRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- public Builder setBranchRegisterRequest(io.seata.codec.protobuf.generated.BranchRegisterRequestProto value) {
- if (branchRegisterRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- branchRegisterRequest_ = value;
- onChanged();
- } else {
- branchRegisterRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- public Builder setBranchRegisterRequest(
- io.seata.codec.protobuf.generated.BranchRegisterRequestProto.Builder builderForValue) {
- if (branchRegisterRequestBuilder_ == null) {
- branchRegisterRequest_ = builderForValue.build();
- onChanged();
- } else {
- branchRegisterRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- public Builder mergeBranchRegisterRequest(io.seata.codec.protobuf.generated.BranchRegisterRequestProto value) {
- if (branchRegisterRequestBuilder_ == null) {
- if (branchRegisterRequest_ != null) {
- branchRegisterRequest_ =
- io.seata.codec.protobuf.generated.BranchRegisterRequestProto.newBuilder(branchRegisterRequest_).mergeFrom(value).buildPartial();
- } else {
- branchRegisterRequest_ = value;
- }
- onChanged();
- } else {
- branchRegisterRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- public Builder clearBranchRegisterRequest() {
- if (branchRegisterRequestBuilder_ == null) {
- branchRegisterRequest_ = null;
- onChanged();
- } else {
- branchRegisterRequest_ = null;
- branchRegisterRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- public io.seata.codec.protobuf.generated.BranchRegisterRequestProto.Builder getBranchRegisterRequestBuilder() {
-
- onChanged();
- return getBranchRegisterRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- public io.seata.codec.protobuf.generated.BranchRegisterRequestProtoOrBuilder getBranchRegisterRequestOrBuilder() {
- if (branchRegisterRequestBuilder_ != null) {
- return branchRegisterRequestBuilder_.getMessageOrBuilder();
- } else {
- return branchRegisterRequest_ == null ?
- io.seata.codec.protobuf.generated.BranchRegisterRequestProto.getDefaultInstance() : branchRegisterRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.BranchRegisterRequestProto, io.seata.codec.protobuf.generated.BranchRegisterRequestProto.Builder, io.seata.codec.protobuf.generated.BranchRegisterRequestProtoOrBuilder>
- getBranchRegisterRequestFieldBuilder() {
- if (branchRegisterRequestBuilder_ == null) {
- branchRegisterRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.BranchRegisterRequestProto, io.seata.codec.protobuf.generated.BranchRegisterRequestProto.Builder, io.seata.codec.protobuf.generated.BranchRegisterRequestProtoOrBuilder>(
- getBranchRegisterRequest(),
- getParentForChildren(),
- isClean());
- branchRegisterRequest_ = null;
- }
- return branchRegisterRequestBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.GlobalLockQueryRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.GlobalLockQueryRequestProto)
- private static final io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- boolean hasBranchRegisterRequest();
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- io.seata.codec.protobuf.generated.BranchRegisterRequestProto getBranchRegisterRequest();
- /**
- * .io.seata.protocol.protobuf.BranchRegisterRequestProto branchRegisterRequest = 1;
- */
- io.seata.codec.protobuf.generated.BranchRegisterRequestProtoOrBuilder getBranchRegisterRequestOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalLockQueryResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalLockQueryResponse.java
deleted file mode 100644
index 1c0727f3dc7..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalLockQueryResponse.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalLockQueryResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class GlobalLockQueryResponse {
- private GlobalLockQueryResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_GlobalLockQueryResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_GlobalLockQueryResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\035globalLockQueryResponse.proto\022\032io.seat" +
- "a.protocol.protobuf\032!abstractTransaction" +
- "Response.proto\"\223\001\n\034GlobalLockQueryRespon" +
- "seProto\022a\n\033abstractTransactionResponse\030\001" +
- " \001(\0132<.io.seata.protocol.protobuf.Abstra" +
- "ctTransactionResponseProto\022\020\n\010lockable\030\002" +
- " \001(\010B>\n!io.seata.codec.protobuf.generate" +
- "dB\027GlobalLockQueryResponseP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractTransactionResponse.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_GlobalLockQueryResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_GlobalLockQueryResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_GlobalLockQueryResponseProto_descriptor,
- new java.lang.String[] { "AbstractTransactionResponse", "Lockable", });
- io.seata.codec.protobuf.generated.AbstractTransactionResponse.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalLockQueryResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalLockQueryResponseProto.java
deleted file mode 100644
index 01302f0274b..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalLockQueryResponseProto.java
+++ /dev/null
@@ -1,652 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalLockQueryResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalLockQueryResponseProto}
- */
-public final class GlobalLockQueryResponseProto extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.GlobalLockQueryResponseProto)
- GlobalLockQueryResponseProtoOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use GlobalLockQueryResponseProto.newBuilder() to construct.
- private GlobalLockQueryResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private GlobalLockQueryResponseProto() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private GlobalLockQueryResponseProto(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder subBuilder = null;
- if (abstractTransactionResponse_ != null) {
- subBuilder = abstractTransactionResponse_.toBuilder();
- }
- abstractTransactionResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(abstractTransactionResponse_);
- abstractTransactionResponse_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 16: {
-
- lockable_ = input.readBool();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return io.seata.codec.protobuf.generated.GlobalLockQueryResponse.internal_static_io_seata_protocol_protobuf_GlobalLockQueryResponseProto_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return io.seata.codec.protobuf.generated.GlobalLockQueryResponse.internal_static_io_seata_protocol_protobuf_GlobalLockQueryResponseProto_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto.class, io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto.Builder.class);
- }
-
- public static final int ABSTRACTTRANSACTIONRESPONSE_FIELD_NUMBER = 1;
- private io.seata.codec.protobuf.generated.AbstractTransactionResponseProto abstractTransactionResponse_;
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public boolean hasAbstractTransactionResponse() {
- return abstractTransactionResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse() {
- return abstractTransactionResponse_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder() {
- return getAbstractTransactionResponse();
- }
-
- public static final int LOCKABLE_FIELD_NUMBER = 2;
- private boolean lockable_;
- /**
- * bool lockable = 2;
- */
- public boolean getLockable() {
- return lockable_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractTransactionResponse_ != null) {
- output.writeMessage(1, getAbstractTransactionResponse());
- }
- if (lockable_ != false) {
- output.writeBool(2, lockable_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractTransactionResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractTransactionResponse());
- }
- if (lockable_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(2, lockable_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto other = (io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto) obj;
-
- if (hasAbstractTransactionResponse() != other.hasAbstractTransactionResponse()) return false;
- if (hasAbstractTransactionResponse()) {
- if (!getAbstractTransactionResponse()
- .equals(other.getAbstractTransactionResponse())) return false;
- }
- if (getLockable()
- != other.getLockable()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractTransactionResponse()) {
- hash = (37 * hash) + ABSTRACTTRANSACTIONRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractTransactionResponse().hashCode();
- }
- hash = (37 * hash) + LOCKABLE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getLockable());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalLockQueryResponseProto}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public boolean hasAbstractTransactionResponse() {
- return abstractTransactionResponseBuilder_ != null || abstractTransactionResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse() {
- if (abstractTransactionResponseBuilder_ == null) {
- return abstractTransactionResponse_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- } else {
- return abstractTransactionResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder setAbstractTransactionResponse(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto value) {
- if (abstractTransactionResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractTransactionResponse_ = value;
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder setAbstractTransactionResponse(
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder builderForValue) {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder mergeAbstractTransactionResponse(io.seata.codec.protobuf.generated.AbstractTransactionResponseProto value) {
- if (abstractTransactionResponseBuilder_ == null) {
- if (abstractTransactionResponse_ != null) {
- abstractTransactionResponse_ =
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.newBuilder(abstractTransactionResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractTransactionResponse_ = value;
- }
- onChanged();
- } else {
- abstractTransactionResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public Builder clearAbstractTransactionResponse() {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponse_ = null;
- onChanged();
- } else {
- abstractTransactionResponse_ = null;
- abstractTransactionResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder getAbstractTransactionResponseBuilder() {
-
- onChanged();
- return getAbstractTransactionResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder() {
- if (abstractTransactionResponseBuilder_ != null) {
- return abstractTransactionResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractTransactionResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.getDefaultInstance() : abstractTransactionResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder>
- getAbstractTransactionResponseFieldBuilder() {
- if (abstractTransactionResponseBuilder_ == null) {
- abstractTransactionResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto, io.seata.codec.protobuf.generated.AbstractTransactionResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder>(
- getAbstractTransactionResponse(),
- getParentForChildren(),
- isClean());
- abstractTransactionResponse_ = null;
- }
- return abstractTransactionResponseBuilder_;
- }
-
- private boolean lockable_ ;
- /**
- * bool lockable = 2;
- */
- public boolean getLockable() {
- return lockable_;
- }
- /**
- * bool lockable = 2;
- */
- public Builder setLockable(boolean value) {
-
- lockable_ = value;
- onChanged();
- return this;
- }
- /**
- * bool lockable = 2;
- */
- public Builder clearLockable() {
-
- lockable_ = false;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.GlobalLockQueryResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.GlobalLockQueryResponseProto)
- private static final io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- boolean hasAbstractTransactionResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProto getAbstractTransactionResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionResponseProto abstractTransactionResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionResponseProtoOrBuilder getAbstractTransactionResponseOrBuilder();
-
- /**
- * bool lockable = 2;
- */
- boolean getLockable();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalRollbackRequest.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalRollbackRequest.java
deleted file mode 100644
index 8071ce5f933..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalRollbackRequest.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalRollbackRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class GlobalRollbackRequest {
- private GlobalRollbackRequest() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_GlobalRollbackRequestProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_GlobalRollbackRequestProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\033globalRollbackRequest.proto\022\032io.seata." +
- "protocol.protobuf\032\036abstractGlobalEndRequ" +
- "est.proto\"y\n\032GlobalRollbackRequestProto\022" +
- "[\n\030abstractGlobalEndRequest\030\001 \001(\01329.io.s" +
- "eata.protocol.protobuf.AbstractGlobalEnd" +
- "RequestProtoB<\n!io.seata.codec.protobuf." +
- "generatedB\025GlobalRollbackRequestP\001b\006prot" +
- "o3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequest.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_GlobalRollbackRequestProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_GlobalRollbackRequestProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_GlobalRollbackRequestProto_descriptor,
- new java.lang.String[] { "AbstractGlobalEndRequest", });
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequest.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalRollbackRequestProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalRollbackRequestProto.java
deleted file mode 100644
index fcf1920ea98..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalRollbackRequestProto.java
+++ /dev/null
@@ -1,594 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalRollbackRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalRollbackRequestProto}
- */
-public final class GlobalRollbackRequestProto extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.GlobalRollbackRequestProto)
- GlobalRollbackRequestProtoOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use GlobalRollbackRequestProto.newBuilder() to construct.
- private GlobalRollbackRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private GlobalRollbackRequestProto() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private GlobalRollbackRequestProto(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder subBuilder = null;
- if (abstractGlobalEndRequest_ != null) {
- subBuilder = abstractGlobalEndRequest_.toBuilder();
- }
- abstractGlobalEndRequest_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(abstractGlobalEndRequest_);
- abstractGlobalEndRequest_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return io.seata.codec.protobuf.generated.GlobalRollbackRequest.internal_static_io_seata_protocol_protobuf_GlobalRollbackRequestProto_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return io.seata.codec.protobuf.generated.GlobalRollbackRequest.internal_static_io_seata_protocol_protobuf_GlobalRollbackRequestProto_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- io.seata.codec.protobuf.generated.GlobalRollbackRequestProto.class, io.seata.codec.protobuf.generated.GlobalRollbackRequestProto.Builder.class);
- }
-
- public static final int ABSTRACTGLOBALENDREQUEST_FIELD_NUMBER = 1;
- private io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto abstractGlobalEndRequest_;
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public boolean hasAbstractGlobalEndRequest() {
- return abstractGlobalEndRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto getAbstractGlobalEndRequest() {
- return abstractGlobalEndRequest_ == null ? io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.getDefaultInstance() : abstractGlobalEndRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder getAbstractGlobalEndRequestOrBuilder() {
- return getAbstractGlobalEndRequest();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractGlobalEndRequest_ != null) {
- output.writeMessage(1, getAbstractGlobalEndRequest());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractGlobalEndRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractGlobalEndRequest());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.GlobalRollbackRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.GlobalRollbackRequestProto other = (io.seata.codec.protobuf.generated.GlobalRollbackRequestProto) obj;
-
- if (hasAbstractGlobalEndRequest() != other.hasAbstractGlobalEndRequest()) return false;
- if (hasAbstractGlobalEndRequest()) {
- if (!getAbstractGlobalEndRequest()
- .equals(other.getAbstractGlobalEndRequest())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractGlobalEndRequest()) {
- hash = (37 * hash) + ABSTRACTGLOBALENDREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractGlobalEndRequest().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.GlobalRollbackRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalRollbackRequestProto}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public boolean hasAbstractGlobalEndRequest() {
- return abstractGlobalEndRequestBuilder_ != null || abstractGlobalEndRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto getAbstractGlobalEndRequest() {
- if (abstractGlobalEndRequestBuilder_ == null) {
- return abstractGlobalEndRequest_ == null ? io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.getDefaultInstance() : abstractGlobalEndRequest_;
- } else {
- return abstractGlobalEndRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public Builder setAbstractGlobalEndRequest(io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto value) {
- if (abstractGlobalEndRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractGlobalEndRequest_ = value;
- onChanged();
- } else {
- abstractGlobalEndRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public Builder setAbstractGlobalEndRequest(
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder builderForValue) {
- if (abstractGlobalEndRequestBuilder_ == null) {
- abstractGlobalEndRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractGlobalEndRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public Builder mergeAbstractGlobalEndRequest(io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto value) {
- if (abstractGlobalEndRequestBuilder_ == null) {
- if (abstractGlobalEndRequest_ != null) {
- abstractGlobalEndRequest_ =
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.newBuilder(abstractGlobalEndRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractGlobalEndRequest_ = value;
- }
- onChanged();
- } else {
- abstractGlobalEndRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public Builder clearAbstractGlobalEndRequest() {
- if (abstractGlobalEndRequestBuilder_ == null) {
- abstractGlobalEndRequest_ = null;
- onChanged();
- } else {
- abstractGlobalEndRequest_ = null;
- abstractGlobalEndRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder getAbstractGlobalEndRequestBuilder() {
-
- onChanged();
- return getAbstractGlobalEndRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder getAbstractGlobalEndRequestOrBuilder() {
- if (abstractGlobalEndRequestBuilder_ != null) {
- return abstractGlobalEndRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractGlobalEndRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.getDefaultInstance() : abstractGlobalEndRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder>
- getAbstractGlobalEndRequestFieldBuilder() {
- if (abstractGlobalEndRequestBuilder_ == null) {
- abstractGlobalEndRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder>(
- getAbstractGlobalEndRequest(),
- getParentForChildren(),
- isClean());
- abstractGlobalEndRequest_ = null;
- }
- return abstractGlobalEndRequestBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.GlobalRollbackRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.GlobalRollbackRequestProto)
- private static final io.seata.codec.protobuf.generated.GlobalRollbackRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.GlobalRollbackRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.GlobalRollbackRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- boolean hasAbstractGlobalEndRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto getAbstractGlobalEndRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder getAbstractGlobalEndRequestOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalRollbackResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalRollbackResponse.java
deleted file mode 100644
index 6c2fa29b72b..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalRollbackResponse.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalRollbackResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class GlobalRollbackResponse {
- private GlobalRollbackResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_GlobalRollbackResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_GlobalRollbackResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\034globalRollbackResponse.proto\022\032io.seata" +
- ".protocol.protobuf\032\037abstractGlobalEndRes" +
- "ponse.proto\"|\n\033GlobalRollbackResponsePro" +
- "to\022]\n\031abstractGlobalEndResponse\030\001 \001(\0132:." +
- "io.seata.protocol.protobuf.AbstractGloba" +
- "lEndResponseProtoB=\n!io.seata.codec.prot" +
- "obuf.generatedB\026GlobalRollbackResponseP\001" +
- "b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponse.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_GlobalRollbackResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_GlobalRollbackResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_GlobalRollbackResponseProto_descriptor,
- new java.lang.String[] { "AbstractGlobalEndResponse", });
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponse.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalRollbackResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalRollbackResponseProto.java
deleted file mode 100644
index fe014a7cf3f..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalRollbackResponseProto.java
+++ /dev/null
@@ -1,594 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalRollbackResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalRollbackResponseProto}
- */
-public final class GlobalRollbackResponseProto extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.GlobalRollbackResponseProto)
- GlobalRollbackResponseProtoOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use GlobalRollbackResponseProto.newBuilder() to construct.
- private GlobalRollbackResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private GlobalRollbackResponseProto() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private GlobalRollbackResponseProto(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder subBuilder = null;
- if (abstractGlobalEndResponse_ != null) {
- subBuilder = abstractGlobalEndResponse_.toBuilder();
- }
- abstractGlobalEndResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(abstractGlobalEndResponse_);
- abstractGlobalEndResponse_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return io.seata.codec.protobuf.generated.GlobalRollbackResponse.internal_static_io_seata_protocol_protobuf_GlobalRollbackResponseProto_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return io.seata.codec.protobuf.generated.GlobalRollbackResponse.internal_static_io_seata_protocol_protobuf_GlobalRollbackResponseProto_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- io.seata.codec.protobuf.generated.GlobalRollbackResponseProto.class, io.seata.codec.protobuf.generated.GlobalRollbackResponseProto.Builder.class);
- }
-
- public static final int ABSTRACTGLOBALENDRESPONSE_FIELD_NUMBER = 1;
- private io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto abstractGlobalEndResponse_;
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public boolean hasAbstractGlobalEndResponse() {
- return abstractGlobalEndResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto getAbstractGlobalEndResponse() {
- return abstractGlobalEndResponse_ == null ? io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.getDefaultInstance() : abstractGlobalEndResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder getAbstractGlobalEndResponseOrBuilder() {
- return getAbstractGlobalEndResponse();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractGlobalEndResponse_ != null) {
- output.writeMessage(1, getAbstractGlobalEndResponse());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractGlobalEndResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractGlobalEndResponse());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.GlobalRollbackResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.GlobalRollbackResponseProto other = (io.seata.codec.protobuf.generated.GlobalRollbackResponseProto) obj;
-
- if (hasAbstractGlobalEndResponse() != other.hasAbstractGlobalEndResponse()) return false;
- if (hasAbstractGlobalEndResponse()) {
- if (!getAbstractGlobalEndResponse()
- .equals(other.getAbstractGlobalEndResponse())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractGlobalEndResponse()) {
- hash = (37 * hash) + ABSTRACTGLOBALENDRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractGlobalEndResponse().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.GlobalRollbackResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalRollbackResponseProto}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public boolean hasAbstractGlobalEndResponse() {
- return abstractGlobalEndResponseBuilder_ != null || abstractGlobalEndResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto getAbstractGlobalEndResponse() {
- if (abstractGlobalEndResponseBuilder_ == null) {
- return abstractGlobalEndResponse_ == null ? io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.getDefaultInstance() : abstractGlobalEndResponse_;
- } else {
- return abstractGlobalEndResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public Builder setAbstractGlobalEndResponse(io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto value) {
- if (abstractGlobalEndResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractGlobalEndResponse_ = value;
- onChanged();
- } else {
- abstractGlobalEndResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public Builder setAbstractGlobalEndResponse(
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder builderForValue) {
- if (abstractGlobalEndResponseBuilder_ == null) {
- abstractGlobalEndResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractGlobalEndResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public Builder mergeAbstractGlobalEndResponse(io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto value) {
- if (abstractGlobalEndResponseBuilder_ == null) {
- if (abstractGlobalEndResponse_ != null) {
- abstractGlobalEndResponse_ =
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.newBuilder(abstractGlobalEndResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractGlobalEndResponse_ = value;
- }
- onChanged();
- } else {
- abstractGlobalEndResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public Builder clearAbstractGlobalEndResponse() {
- if (abstractGlobalEndResponseBuilder_ == null) {
- abstractGlobalEndResponse_ = null;
- onChanged();
- } else {
- abstractGlobalEndResponse_ = null;
- abstractGlobalEndResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder getAbstractGlobalEndResponseBuilder() {
-
- onChanged();
- return getAbstractGlobalEndResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder getAbstractGlobalEndResponseOrBuilder() {
- if (abstractGlobalEndResponseBuilder_ != null) {
- return abstractGlobalEndResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractGlobalEndResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.getDefaultInstance() : abstractGlobalEndResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder>
- getAbstractGlobalEndResponseFieldBuilder() {
- if (abstractGlobalEndResponseBuilder_ == null) {
- abstractGlobalEndResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder>(
- getAbstractGlobalEndResponse(),
- getParentForChildren(),
- isClean());
- abstractGlobalEndResponse_ = null;
- }
- return abstractGlobalEndResponseBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.GlobalRollbackResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.GlobalRollbackResponseProto)
- private static final io.seata.codec.protobuf.generated.GlobalRollbackResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.GlobalRollbackResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.GlobalRollbackResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- boolean hasAbstractGlobalEndResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto getAbstractGlobalEndResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder getAbstractGlobalEndResponseOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalStatus.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalStatus.java
deleted file mode 100644
index 6b97208ee0a..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalStatus.java
+++ /dev/null
@@ -1,53 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalStatus.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class GlobalStatus {
- private GlobalStatus() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\022globalStatus.proto\022\032io.seata.protocol." +
- "protobuf*\305\002\n\021GlobalStatusProto\022\013\n\007UnKnow" +
- "n\020\000\022\t\n\005Begin\020\001\022\016\n\nCommitting\020\002\022\022\n\016Commit" +
- "Retrying\020\003\022\017\n\013Rollbacking\020\004\022\024\n\020RollbackR" +
- "etrying\020\005\022\026\n\022TimeoutRollbacking\020\006\022\033\n\027Tim" +
- "eoutRollbackRetrying\020\007\022\023\n\017AsyncCommittin" +
- "g\020\010\022\r\n\tCommitted\020\t\022\020\n\014CommitFailed\020\n\022\016\n\n" +
- "Rollbacked\020\013\022\022\n\016RollbackFailed\020\014\022\025\n\021Time" +
- "outRollbacked\020\r\022\031\n\025TimeoutRollbackFailed" +
- "\020\016\022\014\n\010Finished\020\017B3\n!io.seata.codec.proto" +
- "buf.generatedB\014GlobalStatusP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- }, assigner);
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalStatusProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalStatusProto.java
deleted file mode 100644
index 48eda72ada0..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalStatusProto.java
+++ /dev/null
@@ -1,365 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalStatus.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf enum {@code io.seata.protocol.protobuf.GlobalStatusProto} - */ -public enum GlobalStatusProto - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
- * Unknown - *- * - *
UnKnown = 0;
- */
- UnKnown(0),
- /**
- * - * PHASE 1: can accept new branch registering. - *- * - *
Begin = 1;
- */
- Begin(1),
- /**
- * - * Committing. - *- * - *
Committing = 2;
- */
- Committing(2),
- /**
- * - * Retrying commit after a recoverable failure. - *- * - *
CommitRetrying = 3;
- */
- CommitRetrying(3),
- /**
- * - * Rollbacking - *- * - *
Rollbacking = 4;
- */
- Rollbacking(4),
- /**
- * - * Retrying rollback after a recoverable failure. - *- * - *
RollbackRetrying = 5;
- */
- RollbackRetrying(5),
- /**
- * - * Rollbacking since timeout - *- * - *
TimeoutRollbacking = 6;
- */
- TimeoutRollbacking(6),
- /**
- * - * Retrying rollback (since timeout) after a recoverable failure. - *- * - *
TimeoutRollbackRetrying = 7;
- */
- TimeoutRollbackRetrying(7),
- /**
- * - ** - * All branches can be async committed. The committing is NOT done yet, but it can be seen as committed for TM/RM - * client. - *- * - *
AsyncCommitting = 8;
- */
- AsyncCommitting(8),
- /**
- * - * Finally: global transaction is successfully committed. - *- * - *
Committed = 9;
- */
- Committed(9),
- /**
- * - * Finally: failed to commit - *- * - *
CommitFailed = 10;
- */
- CommitFailed(10),
- /**
- * - * Finally: global transaction is successfully rollbacked. - *- * - *
Rollbacked = 11;
- */
- Rollbacked(11),
- /**
- * - * Finally: failed to rollback - *- * - *
RollbackFailed = 12;
- */
- RollbackFailed(12),
- /**
- * - * Finally: global transaction is successfully rollbacked since timeout. - *- * - *
TimeoutRollbacked = 13;
- */
- TimeoutRollbacked(13),
- /**
- * - * Finally: failed to rollback since timeout - *- * - *
TimeoutRollbackFailed = 14;
- */
- TimeoutRollbackFailed(14),
- /**
- * - * Not managed in session MAP any more - *- * - *
Finished = 15;
- */
- Finished(15),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * - * Unknown - *- * - *
UnKnown = 0;
- */
- public static final int UnKnown_VALUE = 0;
- /**
- * - * PHASE 1: can accept new branch registering. - *- * - *
Begin = 1;
- */
- public static final int Begin_VALUE = 1;
- /**
- * - * Committing. - *- * - *
Committing = 2;
- */
- public static final int Committing_VALUE = 2;
- /**
- * - * Retrying commit after a recoverable failure. - *- * - *
CommitRetrying = 3;
- */
- public static final int CommitRetrying_VALUE = 3;
- /**
- * - * Rollbacking - *- * - *
Rollbacking = 4;
- */
- public static final int Rollbacking_VALUE = 4;
- /**
- * - * Retrying rollback after a recoverable failure. - *- * - *
RollbackRetrying = 5;
- */
- public static final int RollbackRetrying_VALUE = 5;
- /**
- * - * Rollbacking since timeout - *- * - *
TimeoutRollbacking = 6;
- */
- public static final int TimeoutRollbacking_VALUE = 6;
- /**
- * - * Retrying rollback (since timeout) after a recoverable failure. - *- * - *
TimeoutRollbackRetrying = 7;
- */
- public static final int TimeoutRollbackRetrying_VALUE = 7;
- /**
- * - ** - * All branches can be async committed. The committing is NOT done yet, but it can be seen as committed for TM/RM - * client. - *- * - *
AsyncCommitting = 8;
- */
- public static final int AsyncCommitting_VALUE = 8;
- /**
- * - * Finally: global transaction is successfully committed. - *- * - *
Committed = 9;
- */
- public static final int Committed_VALUE = 9;
- /**
- * - * Finally: failed to commit - *- * - *
CommitFailed = 10;
- */
- public static final int CommitFailed_VALUE = 10;
- /**
- * - * Finally: global transaction is successfully rollbacked. - *- * - *
Rollbacked = 11;
- */
- public static final int Rollbacked_VALUE = 11;
- /**
- * - * Finally: failed to rollback - *- * - *
RollbackFailed = 12;
- */
- public static final int RollbackFailed_VALUE = 12;
- /**
- * - * Finally: global transaction is successfully rollbacked since timeout. - *- * - *
TimeoutRollbacked = 13;
- */
- public static final int TimeoutRollbacked_VALUE = 13;
- /**
- * - * Finally: failed to rollback since timeout - *- * - *
TimeoutRollbackFailed = 14;
- */
- public static final int TimeoutRollbackFailed_VALUE = 14;
- /**
- * - * Not managed in session MAP any more - *- * - *
Finished = 15;
- */
- public static final int Finished_VALUE = 15;
-
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static GlobalStatusProto valueOf(int value) {
- return forNumber(value);
- }
-
- public static GlobalStatusProto forNumber(int value) {
- switch (value) {
- case 0: return UnKnown;
- case 1: return Begin;
- case 2: return Committing;
- case 3: return CommitRetrying;
- case 4: return Rollbacking;
- case 5: return RollbackRetrying;
- case 6: return TimeoutRollbacking;
- case 7: return TimeoutRollbackRetrying;
- case 8: return AsyncCommitting;
- case 9: return Committed;
- case 10: return CommitFailed;
- case 11: return Rollbacked;
- case 12: return RollbackFailed;
- case 13: return TimeoutRollbacked;
- case 14: return TimeoutRollbackFailed;
- case 15: return Finished;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap.io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public boolean hasAbstractGlobalEndRequest() {
- return abstractGlobalEndRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto getAbstractGlobalEndRequest() {
- return abstractGlobalEndRequest_ == null ? io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.getDefaultInstance() : abstractGlobalEndRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder getAbstractGlobalEndRequestOrBuilder() {
- return getAbstractGlobalEndRequest();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractGlobalEndRequest_ != null) {
- output.writeMessage(1, getAbstractGlobalEndRequest());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractGlobalEndRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractGlobalEndRequest());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.GlobalStatusRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.GlobalStatusRequestProto other = (io.seata.codec.protobuf.generated.GlobalStatusRequestProto) obj;
-
- if (hasAbstractGlobalEndRequest() != other.hasAbstractGlobalEndRequest()) return false;
- if (hasAbstractGlobalEndRequest()) {
- if (!getAbstractGlobalEndRequest()
- .equals(other.getAbstractGlobalEndRequest())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractGlobalEndRequest()) {
- hash = (37 * hash) + ABSTRACTGLOBALENDREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractGlobalEndRequest().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.GlobalStatusRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalStatusRequestProto}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public boolean hasAbstractGlobalEndRequest() {
- return abstractGlobalEndRequestBuilder_ != null || abstractGlobalEndRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto getAbstractGlobalEndRequest() {
- if (abstractGlobalEndRequestBuilder_ == null) {
- return abstractGlobalEndRequest_ == null ? io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.getDefaultInstance() : abstractGlobalEndRequest_;
- } else {
- return abstractGlobalEndRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public Builder setAbstractGlobalEndRequest(io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto value) {
- if (abstractGlobalEndRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractGlobalEndRequest_ = value;
- onChanged();
- } else {
- abstractGlobalEndRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public Builder setAbstractGlobalEndRequest(
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder builderForValue) {
- if (abstractGlobalEndRequestBuilder_ == null) {
- abstractGlobalEndRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractGlobalEndRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public Builder mergeAbstractGlobalEndRequest(io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto value) {
- if (abstractGlobalEndRequestBuilder_ == null) {
- if (abstractGlobalEndRequest_ != null) {
- abstractGlobalEndRequest_ =
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.newBuilder(abstractGlobalEndRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractGlobalEndRequest_ = value;
- }
- onChanged();
- } else {
- abstractGlobalEndRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public Builder clearAbstractGlobalEndRequest() {
- if (abstractGlobalEndRequestBuilder_ == null) {
- abstractGlobalEndRequest_ = null;
- onChanged();
- } else {
- abstractGlobalEndRequest_ = null;
- abstractGlobalEndRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder getAbstractGlobalEndRequestBuilder() {
-
- onChanged();
- return getAbstractGlobalEndRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder getAbstractGlobalEndRequestOrBuilder() {
- if (abstractGlobalEndRequestBuilder_ != null) {
- return abstractGlobalEndRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractGlobalEndRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.getDefaultInstance() : abstractGlobalEndRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder>
- getAbstractGlobalEndRequestFieldBuilder() {
- if (abstractGlobalEndRequestBuilder_ == null) {
- abstractGlobalEndRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder>(
- getAbstractGlobalEndRequest(),
- getParentForChildren(),
- isClean());
- abstractGlobalEndRequest_ = null;
- }
- return abstractGlobalEndRequestBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.GlobalStatusRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.GlobalStatusRequestProto)
- private static final io.seata.codec.protobuf.generated.GlobalStatusRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.GlobalStatusRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.GlobalStatusRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- boolean hasAbstractGlobalEndRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProto getAbstractGlobalEndRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndRequestProto abstractGlobalEndRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractGlobalEndRequestProtoOrBuilder getAbstractGlobalEndRequestOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalStatusResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalStatusResponse.java
deleted file mode 100644
index 39c96f70359..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalStatusResponse.java
+++ /dev/null
@@ -1,63 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalStatusResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class GlobalStatusResponse {
- private GlobalStatusResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_GlobalStatusResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_GlobalStatusResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\032globalStatusResponse.proto\022\032io.seata.p" +
- "rotocol.protobuf\032\037abstractGlobalEndRespo" +
- "nse.proto\"z\n\031GlobalStatusResponseProto\022]" +
- "\n\031abstractGlobalEndResponse\030\001 \001(\0132:.io.s" +
- "eata.protocol.protobuf.AbstractGlobalEnd" +
- "ResponseProtoB;\n!io.seata.codec.protobuf" +
- ".generatedB\024GlobalStatusResponseP\001b\006prot" +
- "o3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponse.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_GlobalStatusResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_GlobalStatusResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_GlobalStatusResponseProto_descriptor,
- new java.lang.String[] { "AbstractGlobalEndResponse", });
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponse.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalStatusResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalStatusResponseProto.java
deleted file mode 100644
index d2023faa6a0..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/GlobalStatusResponseProto.java
+++ /dev/null
@@ -1,594 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: globalStatusResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalStatusResponseProto}
- */
-public final class GlobalStatusResponseProto extends
- com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.GlobalStatusResponseProto)
- GlobalStatusResponseProtoOrBuilder {
-private static final long serialVersionUID = 0L;
- // Use GlobalStatusResponseProto.newBuilder() to construct.
- private GlobalStatusResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
- }
- private GlobalStatusResponseProto() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private GlobalStatusResponseProto(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder subBuilder = null;
- if (abstractGlobalEndResponse_ != null) {
- subBuilder = abstractGlobalEndResponse_.toBuilder();
- }
- abstractGlobalEndResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(abstractGlobalEndResponse_);
- abstractGlobalEndResponse_ = subBuilder.buildPartial();
- }
-
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return io.seata.codec.protobuf.generated.GlobalStatusResponse.internal_static_io_seata_protocol_protobuf_GlobalStatusResponseProto_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return io.seata.codec.protobuf.generated.GlobalStatusResponse.internal_static_io_seata_protocol_protobuf_GlobalStatusResponseProto_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- io.seata.codec.protobuf.generated.GlobalStatusResponseProto.class, io.seata.codec.protobuf.generated.GlobalStatusResponseProto.Builder.class);
- }
-
- public static final int ABSTRACTGLOBALENDRESPONSE_FIELD_NUMBER = 1;
- private io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto abstractGlobalEndResponse_;
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public boolean hasAbstractGlobalEndResponse() {
- return abstractGlobalEndResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto getAbstractGlobalEndResponse() {
- return abstractGlobalEndResponse_ == null ? io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.getDefaultInstance() : abstractGlobalEndResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder getAbstractGlobalEndResponseOrBuilder() {
- return getAbstractGlobalEndResponse();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractGlobalEndResponse_ != null) {
- output.writeMessage(1, getAbstractGlobalEndResponse());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractGlobalEndResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractGlobalEndResponse());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.GlobalStatusResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.GlobalStatusResponseProto other = (io.seata.codec.protobuf.generated.GlobalStatusResponseProto) obj;
-
- if (hasAbstractGlobalEndResponse() != other.hasAbstractGlobalEndResponse()) return false;
- if (hasAbstractGlobalEndResponse()) {
- if (!getAbstractGlobalEndResponse()
- .equals(other.getAbstractGlobalEndResponse())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractGlobalEndResponse()) {
- hash = (37 * hash) + ABSTRACTGLOBALENDRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractGlobalEndResponse().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.GlobalStatusResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code io.seata.protocol.protobuf.GlobalStatusResponseProto}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder.io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public boolean hasAbstractGlobalEndResponse() {
- return abstractGlobalEndResponseBuilder_ != null || abstractGlobalEndResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto getAbstractGlobalEndResponse() {
- if (abstractGlobalEndResponseBuilder_ == null) {
- return abstractGlobalEndResponse_ == null ? io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.getDefaultInstance() : abstractGlobalEndResponse_;
- } else {
- return abstractGlobalEndResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public Builder setAbstractGlobalEndResponse(io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto value) {
- if (abstractGlobalEndResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractGlobalEndResponse_ = value;
- onChanged();
- } else {
- abstractGlobalEndResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public Builder setAbstractGlobalEndResponse(
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder builderForValue) {
- if (abstractGlobalEndResponseBuilder_ == null) {
- abstractGlobalEndResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractGlobalEndResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public Builder mergeAbstractGlobalEndResponse(io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto value) {
- if (abstractGlobalEndResponseBuilder_ == null) {
- if (abstractGlobalEndResponse_ != null) {
- abstractGlobalEndResponse_ =
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.newBuilder(abstractGlobalEndResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractGlobalEndResponse_ = value;
- }
- onChanged();
- } else {
- abstractGlobalEndResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public Builder clearAbstractGlobalEndResponse() {
- if (abstractGlobalEndResponseBuilder_ == null) {
- abstractGlobalEndResponse_ = null;
- onChanged();
- } else {
- abstractGlobalEndResponse_ = null;
- abstractGlobalEndResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder getAbstractGlobalEndResponseBuilder() {
-
- onChanged();
- return getAbstractGlobalEndResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder getAbstractGlobalEndResponseOrBuilder() {
- if (abstractGlobalEndResponseBuilder_ != null) {
- return abstractGlobalEndResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractGlobalEndResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.getDefaultInstance() : abstractGlobalEndResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder>
- getAbstractGlobalEndResponseFieldBuilder() {
- if (abstractGlobalEndResponseBuilder_ == null) {
- abstractGlobalEndResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder>(
- getAbstractGlobalEndResponse(),
- getParentForChildren(),
- isClean());
- abstractGlobalEndResponse_ = null;
- }
- return abstractGlobalEndResponseBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.GlobalStatusResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.GlobalStatusResponseProto)
- private static final io.seata.codec.protobuf.generated.GlobalStatusResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.GlobalStatusResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.GlobalStatusResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- boolean hasAbstractGlobalEndResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProto getAbstractGlobalEndResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractGlobalEndResponseProto abstractGlobalEndResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractGlobalEndResponseProtoOrBuilder getAbstractGlobalEndResponseOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/HeartbeatMessage.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/HeartbeatMessage.java
deleted file mode 100644
index d06ad556c74..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/HeartbeatMessage.java
+++ /dev/null
@@ -1,57 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: heartbeatMessage.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class HeartbeatMessage {
- private HeartbeatMessage() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_HeartbeatMessageProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_HeartbeatMessageProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\026heartbeatMessage.proto\022\032io.seata.proto" +
- "col.protobuf\"%\n\025HeartbeatMessageProto\022\014\n" +
- "\004ping\030\001 \001(\010B7\n!io.seata.codec.protobuf.g" +
- "eneratedB\020HeartbeatMessageP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- }, assigner);
- internal_static_io_seata_protocol_protobuf_HeartbeatMessageProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_HeartbeatMessageProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_HeartbeatMessageProto_descriptor,
- new java.lang.String[] { "Ping", });
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/HeartbeatMessageProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/HeartbeatMessageProto.java
deleted file mode 100644
index 02324093199..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/HeartbeatMessageProto.java
+++ /dev/null
@@ -1,479 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: heartbeatMessage.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.HeartbeatMessageProto} - */ -public final class HeartbeatMessageProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.HeartbeatMessageProto) - HeartbeatMessageProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use HeartbeatMessageProto.newBuilder() to construct. - private HeartbeatMessageProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private HeartbeatMessageProto() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HeartbeatMessageProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - ping_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.HeartbeatMessage.internal_static_io_seata_protocol_protobuf_HeartbeatMessageProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.HeartbeatMessage.internal_static_io_seata_protocol_protobuf_HeartbeatMessageProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.HeartbeatMessageProto.class, io.seata.codec.protobuf.generated.HeartbeatMessageProto.Builder.class); - } - - public static final int PING_FIELD_NUMBER = 1; - private boolean ping_; - /** - *
bool ping = 1;
- */
- public boolean getPing() {
- return ping_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (ping_ != false) {
- output.writeBool(1, ping_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (ping_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(1, ping_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.HeartbeatMessageProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.HeartbeatMessageProto other = (io.seata.codec.protobuf.generated.HeartbeatMessageProto) obj;
-
- if (getPing()
- != other.getPing()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + PING_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getPing());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.HeartbeatMessageProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.HeartbeatMessageProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
bool ping = 1;
- */
- public boolean getPing() {
- return ping_;
- }
- /**
- * bool ping = 1;
- */
- public Builder setPing(boolean value) {
-
- ping_ = value;
- onChanged();
- return this;
- }
- /**
- * bool ping = 1;
- */
- public Builder clearPing() {
-
- ping_ = false;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.HeartbeatMessageProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.HeartbeatMessageProto)
- private static final io.seata.codec.protobuf.generated.HeartbeatMessageProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.HeartbeatMessageProto();
- }
-
- public static io.seata.codec.protobuf.generated.HeartbeatMessageProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parserbool ping = 1;
- */
- boolean getPing();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MergedResultMessage.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MergedResultMessage.java
deleted file mode 100644
index 87e601f1991..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MergedResultMessage.java
+++ /dev/null
@@ -1,65 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: mergedResultMessage.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class MergedResultMessage {
- private MergedResultMessage() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_MergedResultMessageProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_MergedResultMessageProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\031mergedResultMessage.proto\022\032io.seata.pr" +
- "otocol.protobuf\032\025abstractMessage.proto\032\031" +
- "google/protobuf/any.proto\"\211\001\n\030MergedResu" +
- "ltMessageProto\022I\n\017abstractMessage\030\001 \001(\0132" +
- "0.io.seata.protocol.protobuf.AbstractMes" +
- "sageProto\022\"\n\004msgs\030\002 \003(\0132\024.google.protobu" +
- "f.AnyB:\n!io.seata.codec.protobuf.generat" +
- "edB\023MergedResultMessageP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractMessage.getDescriptor(),
- com.google.protobuf.AnyProto.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_MergedResultMessageProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_MergedResultMessageProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_MergedResultMessageProto_descriptor,
- new java.lang.String[] { "AbstractMessage", "Msgs", });
- io.seata.codec.protobuf.generated.AbstractMessage.getDescriptor();
- com.google.protobuf.AnyProto.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MergedResultMessageProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MergedResultMessageProto.java
deleted file mode 100644
index f934a50e428..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MergedResultMessageProto.java
+++ /dev/null
@@ -1,950 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: mergedResultMessage.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.MergedResultMessageProto} - */ -public final class MergedResultMessageProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.MergedResultMessageProto) - MergedResultMessageProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use MergedResultMessageProto.newBuilder() to construct. - private MergedResultMessageProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private MergedResultMessageProto() { - msgs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MergedResultMessageProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractMessageProto.Builder subBuilder = null; - if (abstractMessage_ != null) { - subBuilder = abstractMessage_.toBuilder(); - } - abstractMessage_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractMessageProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractMessage_); - abstractMessage_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - msgs_ = new java.util.ArrayList
.io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public boolean hasAbstractMessage() {
- return abstractMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage() {
- return abstractMessage_ == null ? io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder() {
- return getAbstractMessage();
- }
-
- public static final int MSGS_FIELD_NUMBER = 2;
- private java.util.Listrepeated .google.protobuf.Any msgs = 2;
- */
- public java.util.Listrepeated .google.protobuf.Any msgs = 2;
- */
- public java.util.List extends com.google.protobuf.AnyOrBuilder>
- getMsgsOrBuilderList() {
- return msgs_;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public int getMsgsCount() {
- return msgs_.size();
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.Any getMsgs(int index) {
- return msgs_.get(index);
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.AnyOrBuilder getMsgsOrBuilder(
- int index) {
- return msgs_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractMessage_ != null) {
- output.writeMessage(1, getAbstractMessage());
- }
- for (int i = 0; i < msgs_.size(); i++) {
- output.writeMessage(2, msgs_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractMessage_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractMessage());
- }
- for (int i = 0; i < msgs_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, msgs_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.MergedResultMessageProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.MergedResultMessageProto other = (io.seata.codec.protobuf.generated.MergedResultMessageProto) obj;
-
- if (hasAbstractMessage() != other.hasAbstractMessage()) return false;
- if (hasAbstractMessage()) {
- if (!getAbstractMessage()
- .equals(other.getAbstractMessage())) return false;
- }
- if (!getMsgsList()
- .equals(other.getMsgsList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractMessage()) {
- hash = (37 * hash) + ABSTRACTMESSAGE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractMessage().hashCode();
- }
- if (getMsgsCount() > 0) {
- hash = (37 * hash) + MSGS_FIELD_NUMBER;
- hash = (53 * hash) + getMsgsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.MergedResultMessageProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.MergedResultMessageProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.MergedResultMessageProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.MergedResultMessageProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.MergedResultMessageProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.MergedResultMessageProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.MergedResultMessageProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.MergedResultMessageProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.MergedResultMessageProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.MergedResultMessageProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.MergedResultMessageProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.MergedResultMessageProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.MergedResultMessageProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.MergedResultMessageProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public boolean hasAbstractMessage() {
- return abstractMessageBuilder_ != null || abstractMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage() {
- if (abstractMessageBuilder_ == null) {
- return abstractMessage_ == null ? io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- } else {
- return abstractMessageBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder setAbstractMessage(io.seata.codec.protobuf.generated.AbstractMessageProto value) {
- if (abstractMessageBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractMessage_ = value;
- onChanged();
- } else {
- abstractMessageBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder setAbstractMessage(
- io.seata.codec.protobuf.generated.AbstractMessageProto.Builder builderForValue) {
- if (abstractMessageBuilder_ == null) {
- abstractMessage_ = builderForValue.build();
- onChanged();
- } else {
- abstractMessageBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder mergeAbstractMessage(io.seata.codec.protobuf.generated.AbstractMessageProto value) {
- if (abstractMessageBuilder_ == null) {
- if (abstractMessage_ != null) {
- abstractMessage_ =
- io.seata.codec.protobuf.generated.AbstractMessageProto.newBuilder(abstractMessage_).mergeFrom(value).buildPartial();
- } else {
- abstractMessage_ = value;
- }
- onChanged();
- } else {
- abstractMessageBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder clearAbstractMessage() {
- if (abstractMessageBuilder_ == null) {
- abstractMessage_ = null;
- onChanged();
- } else {
- abstractMessage_ = null;
- abstractMessageBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto.Builder getAbstractMessageBuilder() {
-
- onChanged();
- return getAbstractMessageFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder() {
- if (abstractMessageBuilder_ != null) {
- return abstractMessageBuilder_.getMessageOrBuilder();
- } else {
- return abstractMessage_ == null ?
- io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractMessageProto, io.seata.codec.protobuf.generated.AbstractMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder>
- getAbstractMessageFieldBuilder() {
- if (abstractMessageBuilder_ == null) {
- abstractMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractMessageProto, io.seata.codec.protobuf.generated.AbstractMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder>(
- getAbstractMessage(),
- getParentForChildren(),
- isClean());
- abstractMessage_ = null;
- }
- return abstractMessageBuilder_;
- }
-
- private java.util.Listrepeated .google.protobuf.Any msgs = 2;
- */
- public java.util.Listrepeated .google.protobuf.Any msgs = 2;
- */
- public int getMsgsCount() {
- if (msgsBuilder_ == null) {
- return msgs_.size();
- } else {
- return msgsBuilder_.getCount();
- }
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.Any getMsgs(int index) {
- if (msgsBuilder_ == null) {
- return msgs_.get(index);
- } else {
- return msgsBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder setMsgs(
- int index, com.google.protobuf.Any value) {
- if (msgsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMsgsIsMutable();
- msgs_.set(index, value);
- onChanged();
- } else {
- msgsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder setMsgs(
- int index, com.google.protobuf.Any.Builder builderForValue) {
- if (msgsBuilder_ == null) {
- ensureMsgsIsMutable();
- msgs_.set(index, builderForValue.build());
- onChanged();
- } else {
- msgsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder addMsgs(com.google.protobuf.Any value) {
- if (msgsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMsgsIsMutable();
- msgs_.add(value);
- onChanged();
- } else {
- msgsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder addMsgs(
- int index, com.google.protobuf.Any value) {
- if (msgsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMsgsIsMutable();
- msgs_.add(index, value);
- onChanged();
- } else {
- msgsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder addMsgs(
- com.google.protobuf.Any.Builder builderForValue) {
- if (msgsBuilder_ == null) {
- ensureMsgsIsMutable();
- msgs_.add(builderForValue.build());
- onChanged();
- } else {
- msgsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder addMsgs(
- int index, com.google.protobuf.Any.Builder builderForValue) {
- if (msgsBuilder_ == null) {
- ensureMsgsIsMutable();
- msgs_.add(index, builderForValue.build());
- onChanged();
- } else {
- msgsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder addAllMsgs(
- java.lang.Iterable extends com.google.protobuf.Any> values) {
- if (msgsBuilder_ == null) {
- ensureMsgsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, msgs_);
- onChanged();
- } else {
- msgsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder clearMsgs() {
- if (msgsBuilder_ == null) {
- msgs_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- msgsBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder removeMsgs(int index) {
- if (msgsBuilder_ == null) {
- ensureMsgsIsMutable();
- msgs_.remove(index);
- onChanged();
- } else {
- msgsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.Any.Builder getMsgsBuilder(
- int index) {
- return getMsgsFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.AnyOrBuilder getMsgsOrBuilder(
- int index) {
- if (msgsBuilder_ == null) {
- return msgs_.get(index); } else {
- return msgsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public java.util.List extends com.google.protobuf.AnyOrBuilder>
- getMsgsOrBuilderList() {
- if (msgsBuilder_ != null) {
- return msgsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(msgs_);
- }
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.Any.Builder addMsgsBuilder() {
- return getMsgsFieldBuilder().addBuilder(
- com.google.protobuf.Any.getDefaultInstance());
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.Any.Builder addMsgsBuilder(
- int index) {
- return getMsgsFieldBuilder().addBuilder(
- index, com.google.protobuf.Any.getDefaultInstance());
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public java.util.List.io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- boolean hasAbstractMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder();
-
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- java.util.Listrepeated .google.protobuf.Any msgs = 2;
- */
- com.google.protobuf.Any getMsgs(int index);
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- int getMsgsCount();
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- java.util.List extends com.google.protobuf.AnyOrBuilder>
- getMsgsOrBuilderList();
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- com.google.protobuf.AnyOrBuilder getMsgsOrBuilder(
- int index);
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MergedWarpMessage.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MergedWarpMessage.java
deleted file mode 100644
index 01921fb18b2..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MergedWarpMessage.java
+++ /dev/null
@@ -1,66 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: mergedWarpMessage.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class MergedWarpMessage {
- private MergedWarpMessage() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_MergedWarpMessageProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_MergedWarpMessageProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\027mergedWarpMessage.proto\022\032io.seata.prot" +
- "ocol.protobuf\032\025abstractMessage.proto\032\031go" +
- "ogle/protobuf/any.proto\"\227\001\n\026MergedWarpMe" +
- "ssageProto\022I\n\017abstractMessage\030\001 \001(\01320.io" +
- ".seata.protocol.protobuf.AbstractMessage" +
- "Proto\022\"\n\004msgs\030\002 \003(\0132\024.google.protobuf.An" +
- "y\022\016\n\006msgIds\030\003 \003(\005B8\n!io.seata.codec.prot" +
- "obuf.generatedB\021MergedWarpMessageP\001b\006pro" +
- "to3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractMessage.getDescriptor(),
- com.google.protobuf.AnyProto.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_MergedWarpMessageProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_MergedWarpMessageProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_MergedWarpMessageProto_descriptor,
- new java.lang.String[] { "AbstractMessage", "Msgs", "MsgIds", });
- io.seata.codec.protobuf.generated.AbstractMessage.getDescriptor();
- com.google.protobuf.AnyProto.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MergedWarpMessageProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MergedWarpMessageProto.java
deleted file mode 100644
index 8c74e4d72b7..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MergedWarpMessageProto.java
+++ /dev/null
@@ -1,1110 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: mergedWarpMessage.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.MergedWarpMessageProto} - */ -public final class MergedWarpMessageProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.MergedWarpMessageProto) - MergedWarpMessageProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use MergedWarpMessageProto.newBuilder() to construct. - private MergedWarpMessageProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private MergedWarpMessageProto() { - msgs_ = java.util.Collections.emptyList(); - msgIds_ = emptyIntList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MergedWarpMessageProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractMessageProto.Builder subBuilder = null; - if (abstractMessage_ != null) { - subBuilder = abstractMessage_.toBuilder(); - } - abstractMessage_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractMessageProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractMessage_); - abstractMessage_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - msgs_ = new java.util.ArrayList
.io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public boolean hasAbstractMessage() {
- return abstractMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage() {
- return abstractMessage_ == null ? io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder() {
- return getAbstractMessage();
- }
-
- public static final int MSGS_FIELD_NUMBER = 2;
- private java.util.Listrepeated .google.protobuf.Any msgs = 2;
- */
- public java.util.Listrepeated .google.protobuf.Any msgs = 2;
- */
- public java.util.List extends com.google.protobuf.AnyOrBuilder>
- getMsgsOrBuilderList() {
- return msgs_;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public int getMsgsCount() {
- return msgs_.size();
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.Any getMsgs(int index) {
- return msgs_.get(index);
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.AnyOrBuilder getMsgsOrBuilder(
- int index) {
- return msgs_.get(index);
- }
-
- public static final int MSGIDS_FIELD_NUMBER = 3;
- private com.google.protobuf.Internal.IntList msgIds_;
- /**
- * repeated int32 msgIds = 3;
- */
- public java.util.Listrepeated int32 msgIds = 3;
- */
- public int getMsgIdsCount() {
- return msgIds_.size();
- }
- /**
- * repeated int32 msgIds = 3;
- */
- public int getMsgIds(int index) {
- return msgIds_.getInt(index);
- }
- private int msgIdsMemoizedSerializedSize = -1;
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (abstractMessage_ != null) {
- output.writeMessage(1, getAbstractMessage());
- }
- for (int i = 0; i < msgs_.size(); i++) {
- output.writeMessage(2, msgs_.get(i));
- }
- if (getMsgIdsList().size() > 0) {
- output.writeUInt32NoTag(26);
- output.writeUInt32NoTag(msgIdsMemoizedSerializedSize);
- }
- for (int i = 0; i < msgIds_.size(); i++) {
- output.writeInt32NoTag(msgIds_.getInt(i));
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractMessage_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractMessage());
- }
- for (int i = 0; i < msgs_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, msgs_.get(i));
- }
- {
- int dataSize = 0;
- for (int i = 0; i < msgIds_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(msgIds_.getInt(i));
- }
- size += dataSize;
- if (!getMsgIdsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream
- .computeInt32SizeNoTag(dataSize);
- }
- msgIdsMemoizedSerializedSize = dataSize;
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.MergedWarpMessageProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.MergedWarpMessageProto other = (io.seata.codec.protobuf.generated.MergedWarpMessageProto) obj;
-
- if (hasAbstractMessage() != other.hasAbstractMessage()) return false;
- if (hasAbstractMessage()) {
- if (!getAbstractMessage()
- .equals(other.getAbstractMessage())) return false;
- }
- if (!getMsgsList()
- .equals(other.getMsgsList())) return false;
- if (!getMsgIdsList()
- .equals(other.getMsgIdsList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractMessage()) {
- hash = (37 * hash) + ABSTRACTMESSAGE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractMessage().hashCode();
- }
- if (getMsgsCount() > 0) {
- hash = (37 * hash) + MSGS_FIELD_NUMBER;
- hash = (53 * hash) + getMsgsList().hashCode();
- }
- if (getMsgIdsCount() > 0) {
- hash = (37 * hash) + MSGIDS_FIELD_NUMBER;
- hash = (53 * hash) + getMsgIdsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.MergedWarpMessageProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.MergedWarpMessageProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public boolean hasAbstractMessage() {
- return abstractMessageBuilder_ != null || abstractMessage_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage() {
- if (abstractMessageBuilder_ == null) {
- return abstractMessage_ == null ? io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- } else {
- return abstractMessageBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder setAbstractMessage(io.seata.codec.protobuf.generated.AbstractMessageProto value) {
- if (abstractMessageBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractMessage_ = value;
- onChanged();
- } else {
- abstractMessageBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder setAbstractMessage(
- io.seata.codec.protobuf.generated.AbstractMessageProto.Builder builderForValue) {
- if (abstractMessageBuilder_ == null) {
- abstractMessage_ = builderForValue.build();
- onChanged();
- } else {
- abstractMessageBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder mergeAbstractMessage(io.seata.codec.protobuf.generated.AbstractMessageProto value) {
- if (abstractMessageBuilder_ == null) {
- if (abstractMessage_ != null) {
- abstractMessage_ =
- io.seata.codec.protobuf.generated.AbstractMessageProto.newBuilder(abstractMessage_).mergeFrom(value).buildPartial();
- } else {
- abstractMessage_ = value;
- }
- onChanged();
- } else {
- abstractMessageBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public Builder clearAbstractMessage() {
- if (abstractMessageBuilder_ == null) {
- abstractMessage_ = null;
- onChanged();
- } else {
- abstractMessage_ = null;
- abstractMessageBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProto.Builder getAbstractMessageBuilder() {
-
- onChanged();
- return getAbstractMessageFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder() {
- if (abstractMessageBuilder_ != null) {
- return abstractMessageBuilder_.getMessageOrBuilder();
- } else {
- return abstractMessage_ == null ?
- io.seata.codec.protobuf.generated.AbstractMessageProto.getDefaultInstance() : abstractMessage_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractMessageProto, io.seata.codec.protobuf.generated.AbstractMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder>
- getAbstractMessageFieldBuilder() {
- if (abstractMessageBuilder_ == null) {
- abstractMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractMessageProto, io.seata.codec.protobuf.generated.AbstractMessageProto.Builder, io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder>(
- getAbstractMessage(),
- getParentForChildren(),
- isClean());
- abstractMessage_ = null;
- }
- return abstractMessageBuilder_;
- }
-
- private java.util.Listrepeated .google.protobuf.Any msgs = 2;
- */
- public java.util.Listrepeated .google.protobuf.Any msgs = 2;
- */
- public int getMsgsCount() {
- if (msgsBuilder_ == null) {
- return msgs_.size();
- } else {
- return msgsBuilder_.getCount();
- }
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.Any getMsgs(int index) {
- if (msgsBuilder_ == null) {
- return msgs_.get(index);
- } else {
- return msgsBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder setMsgs(
- int index, com.google.protobuf.Any value) {
- if (msgsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMsgsIsMutable();
- msgs_.set(index, value);
- onChanged();
- } else {
- msgsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder setMsgs(
- int index, com.google.protobuf.Any.Builder builderForValue) {
- if (msgsBuilder_ == null) {
- ensureMsgsIsMutable();
- msgs_.set(index, builderForValue.build());
- onChanged();
- } else {
- msgsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder addMsgs(com.google.protobuf.Any value) {
- if (msgsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMsgsIsMutable();
- msgs_.add(value);
- onChanged();
- } else {
- msgsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder addMsgs(
- int index, com.google.protobuf.Any value) {
- if (msgsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureMsgsIsMutable();
- msgs_.add(index, value);
- onChanged();
- } else {
- msgsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder addMsgs(
- com.google.protobuf.Any.Builder builderForValue) {
- if (msgsBuilder_ == null) {
- ensureMsgsIsMutable();
- msgs_.add(builderForValue.build());
- onChanged();
- } else {
- msgsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder addMsgs(
- int index, com.google.protobuf.Any.Builder builderForValue) {
- if (msgsBuilder_ == null) {
- ensureMsgsIsMutable();
- msgs_.add(index, builderForValue.build());
- onChanged();
- } else {
- msgsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder addAllMsgs(
- java.lang.Iterable extends com.google.protobuf.Any> values) {
- if (msgsBuilder_ == null) {
- ensureMsgsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, msgs_);
- onChanged();
- } else {
- msgsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder clearMsgs() {
- if (msgsBuilder_ == null) {
- msgs_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- msgsBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public Builder removeMsgs(int index) {
- if (msgsBuilder_ == null) {
- ensureMsgsIsMutable();
- msgs_.remove(index);
- onChanged();
- } else {
- msgsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.Any.Builder getMsgsBuilder(
- int index) {
- return getMsgsFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.AnyOrBuilder getMsgsOrBuilder(
- int index) {
- if (msgsBuilder_ == null) {
- return msgs_.get(index); } else {
- return msgsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public java.util.List extends com.google.protobuf.AnyOrBuilder>
- getMsgsOrBuilderList() {
- if (msgsBuilder_ != null) {
- return msgsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(msgs_);
- }
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.Any.Builder addMsgsBuilder() {
- return getMsgsFieldBuilder().addBuilder(
- com.google.protobuf.Any.getDefaultInstance());
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public com.google.protobuf.Any.Builder addMsgsBuilder(
- int index) {
- return getMsgsFieldBuilder().addBuilder(
- index, com.google.protobuf.Any.getDefaultInstance());
- }
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- public java.util.Listrepeated int32 msgIds = 3;
- */
- public java.util.Listrepeated int32 msgIds = 3;
- */
- public int getMsgIdsCount() {
- return msgIds_.size();
- }
- /**
- * repeated int32 msgIds = 3;
- */
- public int getMsgIds(int index) {
- return msgIds_.getInt(index);
- }
- /**
- * repeated int32 msgIds = 3;
- */
- public Builder setMsgIds(
- int index, int value) {
- ensureMsgIdsIsMutable();
- msgIds_.setInt(index, value);
- onChanged();
- return this;
- }
- /**
- * repeated int32 msgIds = 3;
- */
- public Builder addMsgIds(int value) {
- ensureMsgIdsIsMutable();
- msgIds_.addInt(value);
- onChanged();
- return this;
- }
- /**
- * repeated int32 msgIds = 3;
- */
- public Builder addAllMsgIds(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureMsgIdsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, msgIds_);
- onChanged();
- return this;
- }
- /**
- * repeated int32 msgIds = 3;
- */
- public Builder clearMsgIds() {
- msgIds_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.MergedWarpMessageProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.MergedWarpMessageProto)
- private static final io.seata.codec.protobuf.generated.MergedWarpMessageProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.MergedWarpMessageProto();
- }
-
- public static io.seata.codec.protobuf.generated.MergedWarpMessageProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- boolean hasAbstractMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractMessageProto getAbstractMessage();
- /**
- * .io.seata.protocol.protobuf.AbstractMessageProto abstractMessage = 1;
- */
- io.seata.codec.protobuf.generated.AbstractMessageProtoOrBuilder getAbstractMessageOrBuilder();
-
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- java.util.Listrepeated .google.protobuf.Any msgs = 2;
- */
- com.google.protobuf.Any getMsgs(int index);
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- int getMsgsCount();
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- java.util.List extends com.google.protobuf.AnyOrBuilder>
- getMsgsOrBuilderList();
- /**
- * repeated .google.protobuf.Any msgs = 2;
- */
- com.google.protobuf.AnyOrBuilder getMsgsOrBuilder(
- int index);
-
- /**
- * repeated int32 msgIds = 3;
- */
- java.util.Listrepeated int32 msgIds = 3;
- */
- int getMsgIdsCount();
- /**
- * repeated int32 msgIds = 3;
- */
- int getMsgIds(int index);
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MessageType.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MessageType.java
deleted file mode 100644
index 12295e85d89..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MessageType.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: messageType.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class MessageType {
- private MessageType() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- String[] descriptorData = {
- "\n\021messageType.proto\022\032io.seata.protocol.p" +
- "rotobuf*\335\005\n\020MessageTypeProto\022\031\n\025TYPE_GLO" +
- "BAL_PRESERVED\020\000\022\025\n\021TYPE_GLOBAL_BEGIN\020\001\022\034" +
- "\n\030TYPE_GLOBAL_BEGIN_RESULT\020\002\022\026\n\022TYPE_GLO" +
- "BAL_COMMIT\020\007\022\035\n\031TYPE_GLOBAL_COMMIT_RESUL" +
- "T\020\010\022\030\n\024TYPE_GLOBAL_ROLLBACK\020\t\022\037\n\033TYPE_GL" +
- "OBAL_ROLLBACK_RESULT\020\n\022\026\n\022TYPE_GLOBAL_ST" +
- "ATUS\020\017\022\035\n\031TYPE_GLOBAL_STATUS_RESULT\020\020\022\032\n" +
- "\026TYPE_GLOBAL_LOCK_QUERY\020\025\022!\n\035TYPE_GLOBAL" +
- "_LOCK_QUERY_RESULT\020\026\022\026\n\022TYPE_BRANCH_COMM",
- "IT\020\003\022\035\n\031TYPE_BRANCH_COMMIT_RESULT\020\004\022\030\n\024T" +
- "YPE_BRANCH_ROLLBACK\020\005\022\037\n\033TYPE_BRANCH_ROL" +
- "LBACK_RESULT\020\006\022\030\n\024TYPE_BRANCH_REGISTER\020\013" +
- "\022\037\n\033TYPE_BRANCH_REGISTER_RESULT\020\014\022\035\n\031TYP" +
- "E_BRANCH_STATUS_REPORT\020\r\022$\n TYPE_BRANCH_" +
- "STATUS_REPORT_RESULT\020\016\022\024\n\020TYPE_SEATA_MER" +
- "GE\020;\022\033\n\027TYPE_SEATA_MERGE_RESULT\020<\022\020\n\014TYP" +
- "E_REG_CLT\020e\022\027\n\023TYPE_REG_CLT_RESULT\020f\022\017\n\013" +
- "TYPE_REG_RM\020g\022\026\n\022TYPE_REG_RM_RESULT\020h\022\030\n" +
- "\024TYPE_UNDO_LOG_DELETE\020oB2\n!io.seata.code",
- "c.protobuf.generatedB\013MessageTypeP\001b\006pro" +
- "to3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- }, assigner);
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MessageTypeProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MessageTypeProto.java
deleted file mode 100644
index 16567225b42..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/MessageTypeProto.java
+++ /dev/null
@@ -1,553 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: messageType.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf enum {@code io.seata.protocol.protobuf.MessageTypeProto} - */ -public enum MessageTypeProto - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
TYPE_GLOBAL_PRESERVED = 0;
- */
- TYPE_GLOBAL_PRESERVED(0),
- /**
- * TYPE_GLOBAL_BEGIN = 1;
- */
- TYPE_GLOBAL_BEGIN(1),
- /**
- * TYPE_GLOBAL_BEGIN_RESULT = 2;
- */
- TYPE_GLOBAL_BEGIN_RESULT(2),
- /**
- * - ** - * The constant TYPE_GLOBAL_COMMIT. - *- * - *
TYPE_GLOBAL_COMMIT = 7;
- */
- TYPE_GLOBAL_COMMIT(7),
- /**
- * - ** - * The constant TYPE_GLOBAL_COMMIT_RESULT. - *- * - *
TYPE_GLOBAL_COMMIT_RESULT = 8;
- */
- TYPE_GLOBAL_COMMIT_RESULT(8),
- /**
- * - ** - * The constant TYPE_GLOBAL_ROLLBACK. - *- * - *
TYPE_GLOBAL_ROLLBACK = 9;
- */
- TYPE_GLOBAL_ROLLBACK(9),
- /**
- * - ** - * The constant TYPE_GLOBAL_ROLLBACK_RESULT. - *- * - *
TYPE_GLOBAL_ROLLBACK_RESULT = 10;
- */
- TYPE_GLOBAL_ROLLBACK_RESULT(10),
- /**
- * - ** - * The constant TYPE_GLOBAL_STATUS. - *- * - *
TYPE_GLOBAL_STATUS = 15;
- */
- TYPE_GLOBAL_STATUS(15),
- /**
- * - ** - * The constant TYPE_GLOBAL_STATUS_RESULT. - *- * - *
TYPE_GLOBAL_STATUS_RESULT = 16;
- */
- TYPE_GLOBAL_STATUS_RESULT(16),
- /**
- * - ** - * The constant TYPE_GLOBAL_LOCK_QUERY. - *- * - *
TYPE_GLOBAL_LOCK_QUERY = 21;
- */
- TYPE_GLOBAL_LOCK_QUERY(21),
- /**
- * - ** - * The constant TYPE_GLOBAL_LOCK_QUERY_RESULT. - *- * - *
TYPE_GLOBAL_LOCK_QUERY_RESULT = 22;
- */
- TYPE_GLOBAL_LOCK_QUERY_RESULT(22),
- /**
- * - ** - * The constant TYPE_BRANCH_COMMIT. - *- * - *
TYPE_BRANCH_COMMIT = 3;
- */
- TYPE_BRANCH_COMMIT(3),
- /**
- * - ** - * The constant TYPE_BRANCH_COMMIT_RESULT. - *- * - *
TYPE_BRANCH_COMMIT_RESULT = 4;
- */
- TYPE_BRANCH_COMMIT_RESULT(4),
- /**
- * - ** - * The constant TYPE_BRANCH_ROLLBACK. - *- * - *
TYPE_BRANCH_ROLLBACK = 5;
- */
- TYPE_BRANCH_ROLLBACK(5),
- /**
- * - ** - * The constant TYPE_BRANCH_ROLLBACK_RESULT. - *- * - *
TYPE_BRANCH_ROLLBACK_RESULT = 6;
- */
- TYPE_BRANCH_ROLLBACK_RESULT(6),
- /**
- * - ** - * The constant TYPE_BRANCH_REGISTER. - *- * - *
TYPE_BRANCH_REGISTER = 11;
- */
- TYPE_BRANCH_REGISTER(11),
- /**
- * - ** - * The constant TYPE_BRANCH_REGISTER_RESULT. - *- * - *
TYPE_BRANCH_REGISTER_RESULT = 12;
- */
- TYPE_BRANCH_REGISTER_RESULT(12),
- /**
- * - ** - * The constant TYPE_BRANCH_STATUS_REPORT. - *- * - *
TYPE_BRANCH_STATUS_REPORT = 13;
- */
- TYPE_BRANCH_STATUS_REPORT(13),
- /**
- * - ** - * The constant TYPE_BRANCH_STATUS_REPORT_RESULT. - *- * - *
TYPE_BRANCH_STATUS_REPORT_RESULT = 14;
- */
- TYPE_BRANCH_STATUS_REPORT_RESULT(14),
- /**
- * - ** - * The constant TYPE_SEATA_MERGE. - *- * - *
TYPE_SEATA_MERGE = 59;
- */
- TYPE_SEATA_MERGE(59),
- /**
- * - ** - * The constant TYPE_SEATA_MERGE_RESULT. - *- * - *
TYPE_SEATA_MERGE_RESULT = 60;
- */
- TYPE_SEATA_MERGE_RESULT(60),
- /**
- * - ** - * The constant TYPE_REG_CLT. - *- * - *
TYPE_REG_CLT = 101;
- */
- TYPE_REG_CLT(101),
- /**
- * - ** - * The constant TYPE_REG_CLT_RESULT. - *- * - *
TYPE_REG_CLT_RESULT = 102;
- */
- TYPE_REG_CLT_RESULT(102),
- /**
- * - ** - * The constant TYPE_REG_RM. - *- * - *
TYPE_REG_RM = 103;
- */
- TYPE_REG_RM(103),
- /**
- * - ** - * The constant TYPE_REG_RM_RESULT. - *- * - *
TYPE_REG_RM_RESULT = 104;
- */
- TYPE_REG_RM_RESULT(104),
- /**
- * - ** - * The constant TYPE_UNDO_LOG_DELETE. - *- * - *
TYPE_UNDO_LOG_DELETE = 111;
- */
- TYPE_UNDO_LOG_DELETE(111),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * TYPE_GLOBAL_PRESERVED = 0;
- */
- public static final int TYPE_GLOBAL_PRESERVED_VALUE = 0;
- /**
- * TYPE_GLOBAL_BEGIN = 1;
- */
- public static final int TYPE_GLOBAL_BEGIN_VALUE = 1;
- /**
- * TYPE_GLOBAL_BEGIN_RESULT = 2;
- */
- public static final int TYPE_GLOBAL_BEGIN_RESULT_VALUE = 2;
- /**
- * - ** - * The constant TYPE_GLOBAL_COMMIT. - *- * - *
TYPE_GLOBAL_COMMIT = 7;
- */
- public static final int TYPE_GLOBAL_COMMIT_VALUE = 7;
- /**
- * - ** - * The constant TYPE_GLOBAL_COMMIT_RESULT. - *- * - *
TYPE_GLOBAL_COMMIT_RESULT = 8;
- */
- public static final int TYPE_GLOBAL_COMMIT_RESULT_VALUE = 8;
- /**
- * - ** - * The constant TYPE_GLOBAL_ROLLBACK. - *- * - *
TYPE_GLOBAL_ROLLBACK = 9;
- */
- public static final int TYPE_GLOBAL_ROLLBACK_VALUE = 9;
- /**
- * - ** - * The constant TYPE_GLOBAL_ROLLBACK_RESULT. - *- * - *
TYPE_GLOBAL_ROLLBACK_RESULT = 10;
- */
- public static final int TYPE_GLOBAL_ROLLBACK_RESULT_VALUE = 10;
- /**
- * - ** - * The constant TYPE_GLOBAL_STATUS. - *- * - *
TYPE_GLOBAL_STATUS = 15;
- */
- public static final int TYPE_GLOBAL_STATUS_VALUE = 15;
- /**
- * - ** - * The constant TYPE_GLOBAL_STATUS_RESULT. - *- * - *
TYPE_GLOBAL_STATUS_RESULT = 16;
- */
- public static final int TYPE_GLOBAL_STATUS_RESULT_VALUE = 16;
- /**
- * - ** - * The constant TYPE_GLOBAL_LOCK_QUERY. - *- * - *
TYPE_GLOBAL_LOCK_QUERY = 21;
- */
- public static final int TYPE_GLOBAL_LOCK_QUERY_VALUE = 21;
- /**
- * - ** - * The constant TYPE_GLOBAL_LOCK_QUERY_RESULT. - *- * - *
TYPE_GLOBAL_LOCK_QUERY_RESULT = 22;
- */
- public static final int TYPE_GLOBAL_LOCK_QUERY_RESULT_VALUE = 22;
- /**
- * - ** - * The constant TYPE_BRANCH_COMMIT. - *- * - *
TYPE_BRANCH_COMMIT = 3;
- */
- public static final int TYPE_BRANCH_COMMIT_VALUE = 3;
- /**
- * - ** - * The constant TYPE_BRANCH_COMMIT_RESULT. - *- * - *
TYPE_BRANCH_COMMIT_RESULT = 4;
- */
- public static final int TYPE_BRANCH_COMMIT_RESULT_VALUE = 4;
- /**
- * - ** - * The constant TYPE_BRANCH_ROLLBACK. - *- * - *
TYPE_BRANCH_ROLLBACK = 5;
- */
- public static final int TYPE_BRANCH_ROLLBACK_VALUE = 5;
- /**
- * - ** - * The constant TYPE_BRANCH_ROLLBACK_RESULT. - *- * - *
TYPE_BRANCH_ROLLBACK_RESULT = 6;
- */
- public static final int TYPE_BRANCH_ROLLBACK_RESULT_VALUE = 6;
- /**
- * - ** - * The constant TYPE_BRANCH_REGISTER. - *- * - *
TYPE_BRANCH_REGISTER = 11;
- */
- public static final int TYPE_BRANCH_REGISTER_VALUE = 11;
- /**
- * - ** - * The constant TYPE_BRANCH_REGISTER_RESULT. - *- * - *
TYPE_BRANCH_REGISTER_RESULT = 12;
- */
- public static final int TYPE_BRANCH_REGISTER_RESULT_VALUE = 12;
- /**
- * - ** - * The constant TYPE_BRANCH_STATUS_REPORT. - *- * - *
TYPE_BRANCH_STATUS_REPORT = 13;
- */
- public static final int TYPE_BRANCH_STATUS_REPORT_VALUE = 13;
- /**
- * - ** - * The constant TYPE_BRANCH_STATUS_REPORT_RESULT. - *- * - *
TYPE_BRANCH_STATUS_REPORT_RESULT = 14;
- */
- public static final int TYPE_BRANCH_STATUS_REPORT_RESULT_VALUE = 14;
- /**
- * - ** - * The constant TYPE_SEATA_MERGE. - *- * - *
TYPE_SEATA_MERGE = 59;
- */
- public static final int TYPE_SEATA_MERGE_VALUE = 59;
- /**
- * - ** - * The constant TYPE_SEATA_MERGE_RESULT. - *- * - *
TYPE_SEATA_MERGE_RESULT = 60;
- */
- public static final int TYPE_SEATA_MERGE_RESULT_VALUE = 60;
- /**
- * - ** - * The constant TYPE_REG_CLT. - *- * - *
TYPE_REG_CLT = 101;
- */
- public static final int TYPE_REG_CLT_VALUE = 101;
- /**
- * - ** - * The constant TYPE_REG_CLT_RESULT. - *- * - *
TYPE_REG_CLT_RESULT = 102;
- */
- public static final int TYPE_REG_CLT_RESULT_VALUE = 102;
- /**
- * - ** - * The constant TYPE_REG_RM. - *- * - *
TYPE_REG_RM = 103;
- */
- public static final int TYPE_REG_RM_VALUE = 103;
- /**
- * - ** - * The constant TYPE_REG_RM_RESULT. - *- * - *
TYPE_REG_RM_RESULT = 104;
- */
- public static final int TYPE_REG_RM_RESULT_VALUE = 104;
- /**
- * - ** - * The constant TYPE_UNDO_LOG_DELETE. - *- * - *
TYPE_UNDO_LOG_DELETE = 111;
- */
- public static final int TYPE_UNDO_LOG_DELETE_VALUE = 111;
-
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @Deprecated
- public static MessageTypeProto valueOf(int value) {
- return forNumber(value);
- }
-
- public static MessageTypeProto forNumber(int value) {
- switch (value) {
- case 0: return TYPE_GLOBAL_PRESERVED;
- case 1: return TYPE_GLOBAL_BEGIN;
- case 2: return TYPE_GLOBAL_BEGIN_RESULT;
- case 7: return TYPE_GLOBAL_COMMIT;
- case 8: return TYPE_GLOBAL_COMMIT_RESULT;
- case 9: return TYPE_GLOBAL_ROLLBACK;
- case 10: return TYPE_GLOBAL_ROLLBACK_RESULT;
- case 15: return TYPE_GLOBAL_STATUS;
- case 16: return TYPE_GLOBAL_STATUS_RESULT;
- case 21: return TYPE_GLOBAL_LOCK_QUERY;
- case 22: return TYPE_GLOBAL_LOCK_QUERY_RESULT;
- case 3: return TYPE_BRANCH_COMMIT;
- case 4: return TYPE_BRANCH_COMMIT_RESULT;
- case 5: return TYPE_BRANCH_ROLLBACK;
- case 6: return TYPE_BRANCH_ROLLBACK_RESULT;
- case 11: return TYPE_BRANCH_REGISTER;
- case 12: return TYPE_BRANCH_REGISTER_RESULT;
- case 13: return TYPE_BRANCH_STATUS_REPORT;
- case 14: return TYPE_BRANCH_STATUS_REPORT_RESULT;
- case 59: return TYPE_SEATA_MERGE;
- case 60: return TYPE_SEATA_MERGE_RESULT;
- case 101: return TYPE_REG_CLT;
- case 102: return TYPE_REG_CLT_RESULT;
- case 103: return TYPE_REG_RM;
- case 104: return TYPE_REG_RM_RESULT;
- case 111: return TYPE_UNDO_LOG_DELETE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap- * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.RegisterRMRequestProto} - */ -public final class RegisterRMRequestProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.RegisterRMRequestProto) - RegisterRMRequestProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use RegisterRMRequestProto.newBuilder() to construct. - private RegisterRMRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private RegisterRMRequestProto() { - resourceIds_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegisterRMRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.Builder subBuilder = null; - if (abstractIdentifyRequest_ != null) { - subBuilder = abstractIdentifyRequest_.toBuilder(); - } - abstractIdentifyRequest_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractIdentifyRequest_); - abstractIdentifyRequest_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - resourceIds_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.RegisterRMRequest.internal_static_io_seata_protocol_protobuf_RegisterRMRequestProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.RegisterRMRequest.internal_static_io_seata_protocol_protobuf_RegisterRMRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.RegisterRMRequestProto.class, io.seata.codec.protobuf.generated.RegisterRMRequestProto.Builder.class); - } - - public static final int ABSTRACTIDENTIFYREQUEST_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto abstractIdentifyRequest_; - /** - *
.io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public boolean hasAbstractIdentifyRequest() {
- return abstractIdentifyRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto getAbstractIdentifyRequest() {
- return abstractIdentifyRequest_ == null ? io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.getDefaultInstance() : abstractIdentifyRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyRequestProtoOrBuilder getAbstractIdentifyRequestOrBuilder() {
- return getAbstractIdentifyRequest();
- }
-
- public static final int RESOURCEIDS_FIELD_NUMBER = 2;
- private volatile java.lang.Object resourceIds_;
- /**
- * string resourceIds = 2;
- */
- public java.lang.String getResourceIds() {
- java.lang.Object ref = resourceIds_;
- 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();
- resourceIds_ = s;
- return s;
- }
- }
- /**
- * string resourceIds = 2;
- */
- public com.google.protobuf.ByteString
- getResourceIdsBytes() {
- java.lang.Object ref = resourceIds_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- resourceIds_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractIdentifyRequest_ != null) {
- output.writeMessage(1, getAbstractIdentifyRequest());
- }
- if (!getResourceIdsBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceIds_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractIdentifyRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractIdentifyRequest());
- }
- if (!getResourceIdsBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceIds_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.RegisterRMRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.RegisterRMRequestProto other = (io.seata.codec.protobuf.generated.RegisterRMRequestProto) obj;
-
- if (hasAbstractIdentifyRequest() != other.hasAbstractIdentifyRequest()) return false;
- if (hasAbstractIdentifyRequest()) {
- if (!getAbstractIdentifyRequest()
- .equals(other.getAbstractIdentifyRequest())) return false;
- }
- if (!getResourceIds()
- .equals(other.getResourceIds())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractIdentifyRequest()) {
- hash = (37 * hash) + ABSTRACTIDENTIFYREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractIdentifyRequest().hashCode();
- }
- hash = (37 * hash) + RESOURCEIDS_FIELD_NUMBER;
- hash = (53 * hash) + getResourceIds().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.RegisterRMRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.RegisterRMRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public boolean hasAbstractIdentifyRequest() {
- return abstractIdentifyRequestBuilder_ != null || abstractIdentifyRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto getAbstractIdentifyRequest() {
- if (abstractIdentifyRequestBuilder_ == null) {
- return abstractIdentifyRequest_ == null ? io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.getDefaultInstance() : abstractIdentifyRequest_;
- } else {
- return abstractIdentifyRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public Builder setAbstractIdentifyRequest(io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto value) {
- if (abstractIdentifyRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractIdentifyRequest_ = value;
- onChanged();
- } else {
- abstractIdentifyRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public Builder setAbstractIdentifyRequest(
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.Builder builderForValue) {
- if (abstractIdentifyRequestBuilder_ == null) {
- abstractIdentifyRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractIdentifyRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public Builder mergeAbstractIdentifyRequest(io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto value) {
- if (abstractIdentifyRequestBuilder_ == null) {
- if (abstractIdentifyRequest_ != null) {
- abstractIdentifyRequest_ =
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.newBuilder(abstractIdentifyRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractIdentifyRequest_ = value;
- }
- onChanged();
- } else {
- abstractIdentifyRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public Builder clearAbstractIdentifyRequest() {
- if (abstractIdentifyRequestBuilder_ == null) {
- abstractIdentifyRequest_ = null;
- onChanged();
- } else {
- abstractIdentifyRequest_ = null;
- abstractIdentifyRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.Builder getAbstractIdentifyRequestBuilder() {
-
- onChanged();
- return getAbstractIdentifyRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyRequestProtoOrBuilder getAbstractIdentifyRequestOrBuilder() {
- if (abstractIdentifyRequestBuilder_ != null) {
- return abstractIdentifyRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractIdentifyRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.getDefaultInstance() : abstractIdentifyRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto, io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractIdentifyRequestProtoOrBuilder>
- getAbstractIdentifyRequestFieldBuilder() {
- if (abstractIdentifyRequestBuilder_ == null) {
- abstractIdentifyRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto, io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractIdentifyRequestProtoOrBuilder>(
- getAbstractIdentifyRequest(),
- getParentForChildren(),
- isClean());
- abstractIdentifyRequest_ = null;
- }
- return abstractIdentifyRequestBuilder_;
- }
-
- private java.lang.Object resourceIds_ = "";
- /**
- * string resourceIds = 2;
- */
- public java.lang.String getResourceIds() {
- java.lang.Object ref = resourceIds_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- resourceIds_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string resourceIds = 2;
- */
- public com.google.protobuf.ByteString
- getResourceIdsBytes() {
- java.lang.Object ref = resourceIds_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- resourceIds_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string resourceIds = 2;
- */
- public Builder setResourceIds(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- resourceIds_ = value;
- onChanged();
- return this;
- }
- /**
- * string resourceIds = 2;
- */
- public Builder clearResourceIds() {
-
- resourceIds_ = getDefaultInstance().getResourceIds();
- onChanged();
- return this;
- }
- /**
- * string resourceIds = 2;
- */
- public Builder setResourceIdsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- resourceIds_ = value;
- onChanged();
- return this;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.RegisterRMRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.RegisterRMRequestProto)
- private static final io.seata.codec.protobuf.generated.RegisterRMRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.RegisterRMRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.RegisterRMRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- boolean hasAbstractIdentifyRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto getAbstractIdentifyRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProtoOrBuilder getAbstractIdentifyRequestOrBuilder();
-
- /**
- * string resourceIds = 2;
- */
- java.lang.String getResourceIds();
- /**
- * string resourceIds = 2;
- */
- com.google.protobuf.ByteString
- getResourceIdsBytes();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterRMResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterRMResponse.java
deleted file mode 100644
index 53a22239123..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterRMResponse.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: registerRMResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class RegisterRMResponse {
- private RegisterRMResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_RegisterRMResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_RegisterRMResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\030registerRMResponse.proto\022\032io.seata.pro" +
- "tocol.protobuf\032\036abstractIdentifyResponse" +
- ".proto\"v\n\027RegisterRMResponseProto\022[\n\030abs" +
- "tractIdentifyResponse\030\001 \001(\01329.io.seata.p" +
- "rotocol.protobuf.AbstractIdentifyRespons" +
- "eProtoB9\n!io.seata.codec.protobuf.genera" +
- "tedB\022RegisterRMResponseP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractIdentifyResponse.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_RegisterRMResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_RegisterRMResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_RegisterRMResponseProto_descriptor,
- new java.lang.String[] { "AbstractIdentifyResponse", });
- io.seata.codec.protobuf.generated.AbstractIdentifyResponse.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterRMResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterRMResponseProto.java
deleted file mode 100644
index 30a622295d4..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterRMResponseProto.java
+++ /dev/null
@@ -1,602 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: registerRMResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.RegisterRMResponseProto} - */ -public final class RegisterRMResponseProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.RegisterRMResponseProto) - RegisterRMResponseProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use RegisterRMResponseProto.newBuilder() to construct. - private RegisterRMResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private RegisterRMResponseProto() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegisterRMResponseProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.Builder subBuilder = null; - if (abstractIdentifyResponse_ != null) { - subBuilder = abstractIdentifyResponse_.toBuilder(); - } - abstractIdentifyResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractIdentifyResponse_); - abstractIdentifyResponse_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.RegisterRMResponse.internal_static_io_seata_protocol_protobuf_RegisterRMResponseProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.RegisterRMResponse.internal_static_io_seata_protocol_protobuf_RegisterRMResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.RegisterRMResponseProto.class, io.seata.codec.protobuf.generated.RegisterRMResponseProto.Builder.class); - } - - public static final int ABSTRACTIDENTIFYRESPONSE_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto abstractIdentifyResponse_; - /** - *
.io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public boolean hasAbstractIdentifyResponse() {
- return abstractIdentifyResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto getAbstractIdentifyResponse() {
- return abstractIdentifyResponse_ == null ? io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.getDefaultInstance() : abstractIdentifyResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyResponseProtoOrBuilder getAbstractIdentifyResponseOrBuilder() {
- return getAbstractIdentifyResponse();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractIdentifyResponse_ != null) {
- output.writeMessage(1, getAbstractIdentifyResponse());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractIdentifyResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractIdentifyResponse());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.RegisterRMResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.RegisterRMResponseProto other = (io.seata.codec.protobuf.generated.RegisterRMResponseProto) obj;
-
- if (hasAbstractIdentifyResponse() != other.hasAbstractIdentifyResponse()) return false;
- if (hasAbstractIdentifyResponse()) {
- if (!getAbstractIdentifyResponse()
- .equals(other.getAbstractIdentifyResponse())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractIdentifyResponse()) {
- hash = (37 * hash) + ABSTRACTIDENTIFYRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractIdentifyResponse().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.RegisterRMResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.RegisterRMResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public boolean hasAbstractIdentifyResponse() {
- return abstractIdentifyResponseBuilder_ != null || abstractIdentifyResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto getAbstractIdentifyResponse() {
- if (abstractIdentifyResponseBuilder_ == null) {
- return abstractIdentifyResponse_ == null ? io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.getDefaultInstance() : abstractIdentifyResponse_;
- } else {
- return abstractIdentifyResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public Builder setAbstractIdentifyResponse(io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto value) {
- if (abstractIdentifyResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractIdentifyResponse_ = value;
- onChanged();
- } else {
- abstractIdentifyResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public Builder setAbstractIdentifyResponse(
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.Builder builderForValue) {
- if (abstractIdentifyResponseBuilder_ == null) {
- abstractIdentifyResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractIdentifyResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public Builder mergeAbstractIdentifyResponse(io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto value) {
- if (abstractIdentifyResponseBuilder_ == null) {
- if (abstractIdentifyResponse_ != null) {
- abstractIdentifyResponse_ =
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.newBuilder(abstractIdentifyResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractIdentifyResponse_ = value;
- }
- onChanged();
- } else {
- abstractIdentifyResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public Builder clearAbstractIdentifyResponse() {
- if (abstractIdentifyResponseBuilder_ == null) {
- abstractIdentifyResponse_ = null;
- onChanged();
- } else {
- abstractIdentifyResponse_ = null;
- abstractIdentifyResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.Builder getAbstractIdentifyResponseBuilder() {
-
- onChanged();
- return getAbstractIdentifyResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyResponseProtoOrBuilder getAbstractIdentifyResponseOrBuilder() {
- if (abstractIdentifyResponseBuilder_ != null) {
- return abstractIdentifyResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractIdentifyResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.getDefaultInstance() : abstractIdentifyResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto, io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractIdentifyResponseProtoOrBuilder>
- getAbstractIdentifyResponseFieldBuilder() {
- if (abstractIdentifyResponseBuilder_ == null) {
- abstractIdentifyResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto, io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractIdentifyResponseProtoOrBuilder>(
- getAbstractIdentifyResponse(),
- getParentForChildren(),
- isClean());
- abstractIdentifyResponse_ = null;
- }
- return abstractIdentifyResponseBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.RegisterRMResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.RegisterRMResponseProto)
- private static final io.seata.codec.protobuf.generated.RegisterRMResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.RegisterRMResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.RegisterRMResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- boolean hasAbstractIdentifyResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto getAbstractIdentifyResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProtoOrBuilder getAbstractIdentifyResponseOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterTMRequest.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterTMRequest.java
deleted file mode 100644
index cff375761f7..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterTMRequest.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: registerTMRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class RegisterTMRequest {
- private RegisterTMRequest() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_RegisterTMRequestProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_RegisterTMRequestProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\027registerTMRequest.proto\022\032io.seata.prot" +
- "ocol.protobuf\032\035abstractIdentifyRequest.p" +
- "roto\"s\n\026RegisterTMRequestProto\022Y\n\027abstra" +
- "ctIdentifyRequest\030\001 \001(\01328.io.seata.proto" +
- "col.protobuf.AbstractIdentifyRequestProt" +
- "oB8\n!io.seata.codec.protobuf.generatedB\021" +
- "RegisterTMRequestP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractIdentifyRequest.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_RegisterTMRequestProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_RegisterTMRequestProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_RegisterTMRequestProto_descriptor,
- new java.lang.String[] { "AbstractIdentifyRequest", });
- io.seata.codec.protobuf.generated.AbstractIdentifyRequest.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterTMRequestProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterTMRequestProto.java
deleted file mode 100644
index 36263c6f58a..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterTMRequestProto.java
+++ /dev/null
@@ -1,602 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: registerTMRequest.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.RegisterTMRequestProto} - */ -public final class RegisterTMRequestProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.RegisterTMRequestProto) - RegisterTMRequestProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use RegisterTMRequestProto.newBuilder() to construct. - private RegisterTMRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private RegisterTMRequestProto() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegisterTMRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.Builder subBuilder = null; - if (abstractIdentifyRequest_ != null) { - subBuilder = abstractIdentifyRequest_.toBuilder(); - } - abstractIdentifyRequest_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractIdentifyRequest_); - abstractIdentifyRequest_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.RegisterTMRequest.internal_static_io_seata_protocol_protobuf_RegisterTMRequestProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.RegisterTMRequest.internal_static_io_seata_protocol_protobuf_RegisterTMRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.RegisterTMRequestProto.class, io.seata.codec.protobuf.generated.RegisterTMRequestProto.Builder.class); - } - - public static final int ABSTRACTIDENTIFYREQUEST_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto abstractIdentifyRequest_; - /** - *
.io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public boolean hasAbstractIdentifyRequest() {
- return abstractIdentifyRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto getAbstractIdentifyRequest() {
- return abstractIdentifyRequest_ == null ? io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.getDefaultInstance() : abstractIdentifyRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyRequestProtoOrBuilder getAbstractIdentifyRequestOrBuilder() {
- return getAbstractIdentifyRequest();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractIdentifyRequest_ != null) {
- output.writeMessage(1, getAbstractIdentifyRequest());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractIdentifyRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractIdentifyRequest());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.RegisterTMRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.RegisterTMRequestProto other = (io.seata.codec.protobuf.generated.RegisterTMRequestProto) obj;
-
- if (hasAbstractIdentifyRequest() != other.hasAbstractIdentifyRequest()) return false;
- if (hasAbstractIdentifyRequest()) {
- if (!getAbstractIdentifyRequest()
- .equals(other.getAbstractIdentifyRequest())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractIdentifyRequest()) {
- hash = (37 * hash) + ABSTRACTIDENTIFYREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractIdentifyRequest().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.RegisterTMRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.RegisterTMRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public boolean hasAbstractIdentifyRequest() {
- return abstractIdentifyRequestBuilder_ != null || abstractIdentifyRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto getAbstractIdentifyRequest() {
- if (abstractIdentifyRequestBuilder_ == null) {
- return abstractIdentifyRequest_ == null ? io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.getDefaultInstance() : abstractIdentifyRequest_;
- } else {
- return abstractIdentifyRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public Builder setAbstractIdentifyRequest(io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto value) {
- if (abstractIdentifyRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractIdentifyRequest_ = value;
- onChanged();
- } else {
- abstractIdentifyRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public Builder setAbstractIdentifyRequest(
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.Builder builderForValue) {
- if (abstractIdentifyRequestBuilder_ == null) {
- abstractIdentifyRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractIdentifyRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public Builder mergeAbstractIdentifyRequest(io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto value) {
- if (abstractIdentifyRequestBuilder_ == null) {
- if (abstractIdentifyRequest_ != null) {
- abstractIdentifyRequest_ =
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.newBuilder(abstractIdentifyRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractIdentifyRequest_ = value;
- }
- onChanged();
- } else {
- abstractIdentifyRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public Builder clearAbstractIdentifyRequest() {
- if (abstractIdentifyRequestBuilder_ == null) {
- abstractIdentifyRequest_ = null;
- onChanged();
- } else {
- abstractIdentifyRequest_ = null;
- abstractIdentifyRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.Builder getAbstractIdentifyRequestBuilder() {
-
- onChanged();
- return getAbstractIdentifyRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyRequestProtoOrBuilder getAbstractIdentifyRequestOrBuilder() {
- if (abstractIdentifyRequestBuilder_ != null) {
- return abstractIdentifyRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractIdentifyRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.getDefaultInstance() : abstractIdentifyRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto, io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractIdentifyRequestProtoOrBuilder>
- getAbstractIdentifyRequestFieldBuilder() {
- if (abstractIdentifyRequestBuilder_ == null) {
- abstractIdentifyRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto, io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractIdentifyRequestProtoOrBuilder>(
- getAbstractIdentifyRequest(),
- getParentForChildren(),
- isClean());
- abstractIdentifyRequest_ = null;
- }
- return abstractIdentifyRequestBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.RegisterTMRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.RegisterTMRequestProto)
- private static final io.seata.codec.protobuf.generated.RegisterTMRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.RegisterTMRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.RegisterTMRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- boolean hasAbstractIdentifyRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProto getAbstractIdentifyRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyRequestProto abstractIdentifyRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractIdentifyRequestProtoOrBuilder getAbstractIdentifyRequestOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterTMResponse.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterTMResponse.java
deleted file mode 100644
index c37a2db4661..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterTMResponse.java
+++ /dev/null
@@ -1,62 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: registerTMResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class RegisterTMResponse {
- private RegisterTMResponse() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_io_seata_protocol_protobuf_RegisterTMResponseProto_descriptor;
- static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_io_seata_protocol_protobuf_RegisterTMResponseProto_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\030registerTMResponse.proto\022\032io.seata.pro" +
- "tocol.protobuf\032\036abstractIdentifyResponse" +
- ".proto\"v\n\027RegisterTMResponseProto\022[\n\030abs" +
- "tractIdentifyResponse\030\001 \001(\01329.io.seata.p" +
- "rotocol.protobuf.AbstractIdentifyRespons" +
- "eProtoB9\n!io.seata.codec.protobuf.genera" +
- "tedB\022RegisterTMResponseP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- io.seata.codec.protobuf.generated.AbstractIdentifyResponse.getDescriptor(),
- }, assigner);
- internal_static_io_seata_protocol_protobuf_RegisterTMResponseProto_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_io_seata_protocol_protobuf_RegisterTMResponseProto_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_io_seata_protocol_protobuf_RegisterTMResponseProto_descriptor,
- new java.lang.String[] { "AbstractIdentifyResponse", });
- io.seata.codec.protobuf.generated.AbstractIdentifyResponse.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterTMResponseProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterTMResponseProto.java
deleted file mode 100644
index f6f3789e692..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/RegisterTMResponseProto.java
+++ /dev/null
@@ -1,602 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: registerTMResponse.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.RegisterTMResponseProto} - */ -public final class RegisterTMResponseProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.RegisterTMResponseProto) - RegisterTMResponseProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use RegisterTMResponseProto.newBuilder() to construct. - private RegisterTMResponseProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private RegisterTMResponseProto() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegisterTMResponseProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.Builder subBuilder = null; - if (abstractIdentifyResponse_ != null) { - subBuilder = abstractIdentifyResponse_.toBuilder(); - } - abstractIdentifyResponse_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractIdentifyResponse_); - abstractIdentifyResponse_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.RegisterTMResponse.internal_static_io_seata_protocol_protobuf_RegisterTMResponseProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.RegisterTMResponse.internal_static_io_seata_protocol_protobuf_RegisterTMResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.RegisterTMResponseProto.class, io.seata.codec.protobuf.generated.RegisterTMResponseProto.Builder.class); - } - - public static final int ABSTRACTIDENTIFYRESPONSE_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto abstractIdentifyResponse_; - /** - *
.io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public boolean hasAbstractIdentifyResponse() {
- return abstractIdentifyResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto getAbstractIdentifyResponse() {
- return abstractIdentifyResponse_ == null ? io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.getDefaultInstance() : abstractIdentifyResponse_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyResponseProtoOrBuilder getAbstractIdentifyResponseOrBuilder() {
- return getAbstractIdentifyResponse();
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractIdentifyResponse_ != null) {
- output.writeMessage(1, getAbstractIdentifyResponse());
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractIdentifyResponse_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractIdentifyResponse());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.RegisterTMResponseProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.RegisterTMResponseProto other = (io.seata.codec.protobuf.generated.RegisterTMResponseProto) obj;
-
- if (hasAbstractIdentifyResponse() != other.hasAbstractIdentifyResponse()) return false;
- if (hasAbstractIdentifyResponse()) {
- if (!getAbstractIdentifyResponse()
- .equals(other.getAbstractIdentifyResponse())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractIdentifyResponse()) {
- hash = (37 * hash) + ABSTRACTIDENTIFYRESPONSE_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractIdentifyResponse().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.RegisterTMResponseProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.RegisterTMResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public boolean hasAbstractIdentifyResponse() {
- return abstractIdentifyResponseBuilder_ != null || abstractIdentifyResponse_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto getAbstractIdentifyResponse() {
- if (abstractIdentifyResponseBuilder_ == null) {
- return abstractIdentifyResponse_ == null ? io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.getDefaultInstance() : abstractIdentifyResponse_;
- } else {
- return abstractIdentifyResponseBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public Builder setAbstractIdentifyResponse(io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto value) {
- if (abstractIdentifyResponseBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractIdentifyResponse_ = value;
- onChanged();
- } else {
- abstractIdentifyResponseBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public Builder setAbstractIdentifyResponse(
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.Builder builderForValue) {
- if (abstractIdentifyResponseBuilder_ == null) {
- abstractIdentifyResponse_ = builderForValue.build();
- onChanged();
- } else {
- abstractIdentifyResponseBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public Builder mergeAbstractIdentifyResponse(io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto value) {
- if (abstractIdentifyResponseBuilder_ == null) {
- if (abstractIdentifyResponse_ != null) {
- abstractIdentifyResponse_ =
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.newBuilder(abstractIdentifyResponse_).mergeFrom(value).buildPartial();
- } else {
- abstractIdentifyResponse_ = value;
- }
- onChanged();
- } else {
- abstractIdentifyResponseBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public Builder clearAbstractIdentifyResponse() {
- if (abstractIdentifyResponseBuilder_ == null) {
- abstractIdentifyResponse_ = null;
- onChanged();
- } else {
- abstractIdentifyResponse_ = null;
- abstractIdentifyResponseBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.Builder getAbstractIdentifyResponseBuilder() {
-
- onChanged();
- return getAbstractIdentifyResponseFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractIdentifyResponseProtoOrBuilder getAbstractIdentifyResponseOrBuilder() {
- if (abstractIdentifyResponseBuilder_ != null) {
- return abstractIdentifyResponseBuilder_.getMessageOrBuilder();
- } else {
- return abstractIdentifyResponse_ == null ?
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.getDefaultInstance() : abstractIdentifyResponse_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto, io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractIdentifyResponseProtoOrBuilder>
- getAbstractIdentifyResponseFieldBuilder() {
- if (abstractIdentifyResponseBuilder_ == null) {
- abstractIdentifyResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto, io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto.Builder, io.seata.codec.protobuf.generated.AbstractIdentifyResponseProtoOrBuilder>(
- getAbstractIdentifyResponse(),
- getParentForChildren(),
- isClean());
- abstractIdentifyResponse_ = null;
- }
- return abstractIdentifyResponseBuilder_;
- }
- @java.lang.Override
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFields(unknownFields);
- }
-
- @java.lang.Override
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.RegisterTMResponseProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.RegisterTMResponseProto)
- private static final io.seata.codec.protobuf.generated.RegisterTMResponseProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.RegisterTMResponseProto();
- }
-
- public static io.seata.codec.protobuf.generated.RegisterTMResponseProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- boolean hasAbstractIdentifyResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProto getAbstractIdentifyResponse();
- /**
- * .io.seata.protocol.protobuf.AbstractIdentifyResponseProto abstractIdentifyResponse = 1;
- */
- io.seata.codec.protobuf.generated.AbstractIdentifyResponseProtoOrBuilder getAbstractIdentifyResponseOrBuilder();
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/ResultCode.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/ResultCode.java
deleted file mode 100644
index d5e4398ff11..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/ResultCode.java
+++ /dev/null
@@ -1,46 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: resultCode.proto
-
-package io.seata.codec.protobuf.generated;
-
-public final class ResultCode {
- private ResultCode() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistryLite registry) {
- }
-
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- registerAllExtensions(
- (com.google.protobuf.ExtensionRegistryLite) registry);
- }
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\020resultCode.proto\022\032io.seata.protocol.pr" +
- "otobuf**\n\017ResultCodeProto\022\n\n\006Failed\020\000\022\013\n" +
- "\007Success\020\001B1\n!io.seata.codec.protobuf.ge" +
- "neratedB\nResultCodeP\001b\006proto3"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- }, assigner);
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/ResultCodeProto.java b/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/ResultCodeProto.java
deleted file mode 100644
index 55c7d7148c2..00000000000
--- a/codec/seata-codec-protobuf/src/main/java/io/seata/codec/protobuf/generated/ResultCodeProto.java
+++ /dev/null
@@ -1,107 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: resultCode.proto
-
-package io.seata.codec.protobuf.generated;
-
-/**
- * - * PublishRequest is a publish request. - *- * - * Protobuf enum {@code io.seata.protocol.protobuf.ResultCodeProto} - */ -public enum ResultCodeProto - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
Failed = 0;
- */
- Failed(0),
- /**
- * Success = 1;
- */
- Success(1),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * Failed = 0;
- */
- public static final int Failed_VALUE = 0;
- /**
- * Success = 1;
- */
- public static final int Success_VALUE = 1;
-
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static ResultCodeProto valueOf(int value) {
- return forNumber(value);
- }
-
- public static ResultCodeProto forNumber(int value) {
- switch (value) {
- case 0: return Failed;
- case 1: return Success;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap- * PublishRequest is a publish request. - *- * - * Protobuf enum {@code io.seata.protocol.protobuf.TransactionExceptionCodeProto} - */ -public enum TransactionExceptionCodeProto - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
- *- * - *
Unknown = 0;
- */
- Unknown(0),
- /**
- * - *- * - *
LockKeyConflict = 1;
- */
- LockKeyConflict(1),
- /**
- * - *- * - *
IO = 2;
- */
- IO(2),
- /**
- * - *- * - *
BranchRollbackFailed_Retriable = 3;
- */
- BranchRollbackFailed_Retriable(3),
- /**
- * - *- * - *
BranchRollbackFailed_Unretriable = 4;
- */
- BranchRollbackFailed_Unretriable(4),
- /**
- * - *- * - *
BranchRegisterFailed = 5;
- */
- BranchRegisterFailed(5),
- /**
- * - *- * - *
BranchReportFailed = 6;
- */
- BranchReportFailed(6),
- /**
- * - *- * - *
LockableCheckFailed = 7;
- */
- LockableCheckFailed(7),
- /**
- * - *- * - *
BranchTransactionNotExist = 8;
- */
- BranchTransactionNotExist(8),
- /**
- * - *- * - *
GlobalTransactionNotExist = 9;
- */
- GlobalTransactionNotExist(9),
- /**
- * - *- * - *
GlobalTransactionNotActive = 10;
- */
- GlobalTransactionNotActive(10),
- /**
- * - *- * - *
GlobalTransactionStatusInvalid = 11;
- */
- GlobalTransactionStatusInvalid(11),
- /**
- * - *- * - *
FailedToSendBranchCommitRequest = 12;
- */
- FailedToSendBranchCommitRequest(12),
- /**
- * - *- * - *
FailedToSendBranchRollbackRequest = 13;
- */
- FailedToSendBranchRollbackRequest(13),
- /**
- * - *- * - *
FailedToAddBranch = 14;
- */
- FailedToAddBranch(14),
- /**
- * - ** - * Failed to lock global transaction exception code. - *- * - *
FailedLockGlobalTranscation = 15;
- */
- FailedLockGlobalTranscation(15),
- /**
- * - ** - * FailedWriteSession - *- * - *
FailedWriteSession = 16;
- */
- FailedWriteSession(16),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * - *- * - *
Unknown = 0;
- */
- public static final int Unknown_VALUE = 0;
- /**
- * - *- * - *
LockKeyConflict = 1;
- */
- public static final int LockKeyConflict_VALUE = 1;
- /**
- * - *- * - *
IO = 2;
- */
- public static final int IO_VALUE = 2;
- /**
- * - *- * - *
BranchRollbackFailed_Retriable = 3;
- */
- public static final int BranchRollbackFailed_Retriable_VALUE = 3;
- /**
- * - *- * - *
BranchRollbackFailed_Unretriable = 4;
- */
- public static final int BranchRollbackFailed_Unretriable_VALUE = 4;
- /**
- * - *- * - *
BranchRegisterFailed = 5;
- */
- public static final int BranchRegisterFailed_VALUE = 5;
- /**
- * - *- * - *
BranchReportFailed = 6;
- */
- public static final int BranchReportFailed_VALUE = 6;
- /**
- * - *- * - *
LockableCheckFailed = 7;
- */
- public static final int LockableCheckFailed_VALUE = 7;
- /**
- * - *- * - *
BranchTransactionNotExist = 8;
- */
- public static final int BranchTransactionNotExist_VALUE = 8;
- /**
- * - *- * - *
GlobalTransactionNotExist = 9;
- */
- public static final int GlobalTransactionNotExist_VALUE = 9;
- /**
- * - *- * - *
GlobalTransactionNotActive = 10;
- */
- public static final int GlobalTransactionNotActive_VALUE = 10;
- /**
- * - *- * - *
GlobalTransactionStatusInvalid = 11;
- */
- public static final int GlobalTransactionStatusInvalid_VALUE = 11;
- /**
- * - *- * - *
FailedToSendBranchCommitRequest = 12;
- */
- public static final int FailedToSendBranchCommitRequest_VALUE = 12;
- /**
- * - *- * - *
FailedToSendBranchRollbackRequest = 13;
- */
- public static final int FailedToSendBranchRollbackRequest_VALUE = 13;
- /**
- * - *- * - *
FailedToAddBranch = 14;
- */
- public static final int FailedToAddBranch_VALUE = 14;
- /**
- * - ** - * Failed to lock global transaction exception code. - *- * - *
FailedLockGlobalTranscation = 15;
- */
- public static final int FailedLockGlobalTranscation_VALUE = 15;
- /**
- * - ** - * FailedWriteSession - *- * - *
FailedWriteSession = 16;
- */
- public static final int FailedWriteSession_VALUE = 16;
-
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static TransactionExceptionCodeProto valueOf(int value) {
- return forNumber(value);
- }
-
- public static TransactionExceptionCodeProto forNumber(int value) {
- switch (value) {
- case 0: return Unknown;
- case 1: return LockKeyConflict;
- case 2: return IO;
- case 3: return BranchRollbackFailed_Retriable;
- case 4: return BranchRollbackFailed_Unretriable;
- case 5: return BranchRegisterFailed;
- case 6: return BranchReportFailed;
- case 7: return LockableCheckFailed;
- case 8: return BranchTransactionNotExist;
- case 9: return GlobalTransactionNotExist;
- case 10: return GlobalTransactionNotActive;
- case 11: return GlobalTransactionStatusInvalid;
- case 12: return FailedToSendBranchCommitRequest;
- case 13: return FailedToSendBranchRollbackRequest;
- case 14: return FailedToAddBranch;
- case 15: return FailedLockGlobalTranscation;
- case 16: return FailedWriteSession;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap- * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.UndoLogDeleteRequestProto} - */ -public final class UndoLogDeleteRequestProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:io.seata.protocol.protobuf.UndoLogDeleteRequestProto) - UndoLogDeleteRequestProtoOrBuilder { -private static final long serialVersionUID = 0L; - // Use UndoLogDeleteRequestProto.newBuilder() to construct. - private UndoLogDeleteRequestProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private UndoLogDeleteRequestProto() { - resourceId_ = ""; - saveDays_ = 0; - branchType_ = 0; - } - - @Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UndoLogDeleteRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder subBuilder = null; - if (abstractTransactionRequest_ != null) { - subBuilder = abstractTransactionRequest_.toBuilder(); - } - abstractTransactionRequest_ = input.readMessage(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(abstractTransactionRequest_); - abstractTransactionRequest_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - String s = input.readStringRequireUtf8(); - - resourceId_ = s; - break; - } - case 24: { - - saveDays_ = input.readInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - branchType_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.seata.codec.protobuf.generated.UndoLogDeleteRequest.internal_static_io_seata_protocol_protobuf_UndoLogDeleteRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.seata.codec.protobuf.generated.UndoLogDeleteRequest.internal_static_io_seata_protocol_protobuf_UndoLogDeleteRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto.class, io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto.Builder.class); - } - - public static final int ABSTRACTTRANSACTIONREQUEST_FIELD_NUMBER = 1; - private io.seata.codec.protobuf.generated.AbstractTransactionRequestProto abstractTransactionRequest_; - /** - *
.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public boolean hasAbstractTransactionRequest() {
- return abstractTransactionRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest() {
- return abstractTransactionRequest_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder() {
- return getAbstractTransactionRequest();
- }
-
- public static final int RESOURCEID_FIELD_NUMBER = 2;
- private volatile Object resourceId_;
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 2;
- */
- public String getResourceId() {
- Object ref = resourceId_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- resourceId_ = s;
- return s;
- }
- }
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 2;
- */
- public com.google.protobuf.ByteString
- getResourceIdBytes() {
- Object ref = resourceId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- resourceId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SAVEDAYS_FIELD_NUMBER = 3;
- private int saveDays_;
- /**
- * - ** - * The SaveDays data. - *- * - *
int32 saveDays = 3;
- */
- public int getSaveDays() {
- return saveDays_;
- }
-
- public static final int BRANCHTYPE_FIELD_NUMBER = 4;
- private int branchType_;
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public int getBranchTypeValue() {
- return branchType_;
- }
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public io.seata.codec.protobuf.generated.BranchTypeProto getBranchType() {
- io.seata.codec.protobuf.generated.BranchTypeProto result = io.seata.codec.protobuf.generated.BranchTypeProto.valueOf(branchType_);
- return result == null ? io.seata.codec.protobuf.generated.BranchTypeProto.UNRECOGNIZED : result;
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (abstractTransactionRequest_ != null) {
- output.writeMessage(1, getAbstractTransactionRequest());
- }
- if (!getResourceIdBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceId_);
- }
- if (saveDays_ != 0) {
- output.writeInt32(3, saveDays_);
- }
- if (branchType_ != io.seata.codec.protobuf.generated.BranchTypeProto.AT.getNumber()) {
- output.writeEnum(4, branchType_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (abstractTransactionRequest_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getAbstractTransactionRequest());
- }
- if (!getResourceIdBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceId_);
- }
- if (saveDays_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, saveDays_);
- }
- if (branchType_ != io.seata.codec.protobuf.generated.BranchTypeProto.AT.getNumber()) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(4, branchType_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto)) {
- return super.equals(obj);
- }
- io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto other = (io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto) obj;
-
- boolean result = true;
- result = result && (hasAbstractTransactionRequest() == other.hasAbstractTransactionRequest());
- if (hasAbstractTransactionRequest()) {
- result = result && getAbstractTransactionRequest()
- .equals(other.getAbstractTransactionRequest());
- }
- result = result && getResourceId()
- .equals(other.getResourceId());
- result = result && (getSaveDays()
- == other.getSaveDays());
- result = result && branchType_ == other.branchType_;
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasAbstractTransactionRequest()) {
- hash = (37 * hash) + ABSTRACTTRANSACTIONREQUEST_FIELD_NUMBER;
- hash = (53 * hash) + getAbstractTransactionRequest().hashCode();
- }
- hash = (37 * hash) + RESOURCEID_FIELD_NUMBER;
- hash = (53 * hash) + getResourceId().hashCode();
- hash = (37 * hash) + SAVEDAYS_FIELD_NUMBER;
- hash = (53 * hash) + getSaveDays();
- hash = (37 * hash) + BRANCHTYPE_FIELD_NUMBER;
- hash = (53 * hash) + branchType_;
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * PublishRequest is a publish request. - *- * - * Protobuf type {@code io.seata.protocol.protobuf.UndoLogDeleteRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public boolean hasAbstractTransactionRequest() {
- return abstractTransactionRequestBuilder_ != null || abstractTransactionRequest_ != null;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest() {
- if (abstractTransactionRequestBuilder_ == null) {
- return abstractTransactionRequest_ == null ? io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- } else {
- return abstractTransactionRequestBuilder_.getMessage();
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder setAbstractTransactionRequest(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto value) {
- if (abstractTransactionRequestBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- abstractTransactionRequest_ = value;
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder setAbstractTransactionRequest(
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder builderForValue) {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequest_ = builderForValue.build();
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder mergeAbstractTransactionRequest(io.seata.codec.protobuf.generated.AbstractTransactionRequestProto value) {
- if (abstractTransactionRequestBuilder_ == null) {
- if (abstractTransactionRequest_ != null) {
- abstractTransactionRequest_ =
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.newBuilder(abstractTransactionRequest_).mergeFrom(value).buildPartial();
- } else {
- abstractTransactionRequest_ = value;
- }
- onChanged();
- } else {
- abstractTransactionRequestBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public Builder clearAbstractTransactionRequest() {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequest_ = null;
- onChanged();
- } else {
- abstractTransactionRequest_ = null;
- abstractTransactionRequestBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder getAbstractTransactionRequestBuilder() {
-
- onChanged();
- return getAbstractTransactionRequestFieldBuilder().getBuilder();
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- public io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder() {
- if (abstractTransactionRequestBuilder_ != null) {
- return abstractTransactionRequestBuilder_.getMessageOrBuilder();
- } else {
- return abstractTransactionRequest_ == null ?
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.getDefaultInstance() : abstractTransactionRequest_;
- }
- }
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder>
- getAbstractTransactionRequestFieldBuilder() {
- if (abstractTransactionRequestBuilder_ == null) {
- abstractTransactionRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto, io.seata.codec.protobuf.generated.AbstractTransactionRequestProto.Builder, io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder>(
- getAbstractTransactionRequest(),
- getParentForChildren(),
- isClean());
- abstractTransactionRequest_ = null;
- }
- return abstractTransactionRequestBuilder_;
- }
-
- private Object resourceId_ = "";
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 2;
- */
- public String getResourceId() {
- Object ref = resourceId_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- resourceId_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 2;
- */
- public com.google.protobuf.ByteString
- getResourceIdBytes() {
- Object ref = resourceId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- resourceId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 2;
- */
- public Builder setResourceId(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- resourceId_ = value;
- onChanged();
- return this;
- }
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 2;
- */
- public Builder clearResourceId() {
-
- resourceId_ = getDefaultInstance().getResourceId();
- onChanged();
- return this;
- }
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 2;
- */
- public Builder setResourceIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- resourceId_ = value;
- onChanged();
- return this;
- }
-
- private int saveDays_ ;
- /**
- * - ** - * The SaveDays data. - *- * - *
int32 saveDays = 3;
- */
- public int getSaveDays() {
- return saveDays_;
- }
- /**
- * - ** - * The SaveDays data. - *- * - *
int32 saveDays = 3;
- */
- public Builder setSaveDays(int value) {
-
- saveDays_ = value;
- onChanged();
- return this;
- }
- /**
- * - ** - * The SaveDays data. - *- * - *
int32 saveDays = 3;
- */
- public Builder clearSaveDays() {
-
- saveDays_ = 0;
- onChanged();
- return this;
- }
-
- private int branchType_ = 0;
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public int getBranchTypeValue() {
- return branchType_;
- }
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public Builder setBranchTypeValue(int value) {
- branchType_ = value;
- onChanged();
- return this;
- }
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public io.seata.codec.protobuf.generated.BranchTypeProto getBranchType() {
- io.seata.codec.protobuf.generated.BranchTypeProto result = io.seata.codec.protobuf.generated.BranchTypeProto.valueOf(branchType_);
- return result == null ? io.seata.codec.protobuf.generated.BranchTypeProto.UNRECOGNIZED : result;
- }
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public Builder setBranchType(io.seata.codec.protobuf.generated.BranchTypeProto value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- branchType_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- public Builder clearBranchType() {
-
- branchType_ = 0;
- onChanged();
- return this;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:io.seata.protocol.protobuf.UndoLogDeleteRequestProto)
- }
-
- // @@protoc_insertion_point(class_scope:io.seata.protocol.protobuf.UndoLogDeleteRequestProto)
- private static final io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto();
- }
-
- public static io.seata.codec.protobuf.generated.UndoLogDeleteRequestProto getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- boolean hasAbstractTransactionRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProto getAbstractTransactionRequest();
- /**
- * .io.seata.protocol.protobuf.AbstractTransactionRequestProto abstractTransactionRequest = 1;
- */
- io.seata.codec.protobuf.generated.AbstractTransactionRequestProtoOrBuilder getAbstractTransactionRequestOrBuilder();
-
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 2;
- */
- String getResourceId();
- /**
- * - ** - * The Resource id. - *- * - *
string resourceId = 2;
- */
- com.google.protobuf.ByteString
- getResourceIdBytes();
-
- /**
- * - ** - * The SaveDays data. - *- * - *
int32 saveDays = 3;
- */
- int getSaveDays();
-
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- int getBranchTypeValue();
- /**
- * - ** - * The Branch type. - *- * - *
.io.seata.protocol.protobuf.BranchTypeProto branchType = 4;
- */
- io.seata.codec.protobuf.generated.BranchTypeProto getBranchType();
-}
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchCommitRequestConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchCommitRequestConvertorTest.java
index ec556f0665f..86d8012231d 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchCommitRequestConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchCommitRequestConvertorTest.java
@@ -15,8 +15,8 @@
*/
package io.seata.codec.protobuf.convertor;
-import io.seata.core.model.BranchType;
import io.seata.codec.protobuf.generated.BranchCommitRequestProto;
+import io.seata.core.model.BranchType;
import io.seata.core.protocol.transaction.BranchCommitRequest;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchCommitResponseConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchCommitResponseConvertorTest.java
index 89580441653..8356a2bbd4b 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchCommitResponseConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchCommitResponseConvertorTest.java
@@ -15,10 +15,10 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.BranchCommitResponseProto;
import io.seata.core.exception.TransactionExceptionCode;
import io.seata.core.model.BranchStatus;
import io.seata.core.protocol.ResultCode;
-import io.seata.codec.protobuf.generated.BranchCommitResponseProto;
import io.seata.core.protocol.transaction.BranchCommitResponse;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRegisterRequestConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRegisterRequestConvertorTest.java
index 915ed14e9ce..02edbc07f62 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRegisterRequestConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRegisterRequestConvertorTest.java
@@ -15,8 +15,8 @@
*/
package io.seata.codec.protobuf.convertor;
-import io.seata.core.model.BranchType;
import io.seata.codec.protobuf.generated.BranchRegisterRequestProto;
+import io.seata.core.model.BranchType;
import io.seata.core.protocol.transaction.BranchRegisterRequest;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRegisterResponseConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRegisterResponseConvertorTest.java
index cea9cae6a30..a97d5a435fe 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRegisterResponseConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRegisterResponseConvertorTest.java
@@ -15,9 +15,9 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.BranchRegisterResponseProto;
import io.seata.core.exception.TransactionExceptionCode;
import io.seata.core.protocol.ResultCode;
-import io.seata.codec.protobuf.generated.BranchRegisterResponseProto;
import io.seata.core.protocol.transaction.BranchRegisterResponse;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchReportRequestConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchReportRequestConvertorTest.java
index 3a0878df780..e72ec70e66a 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchReportRequestConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchReportRequestConvertorTest.java
@@ -15,9 +15,9 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.BranchReportRequestProto;
import io.seata.core.model.BranchStatus;
import io.seata.core.model.BranchType;
-import io.seata.codec.protobuf.generated.BranchReportRequestProto;
import io.seata.core.protocol.transaction.BranchReportRequest;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchReportResponseConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchReportResponseConvertorTest.java
index 65d7520bfcf..d16e0299962 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchReportResponseConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchReportResponseConvertorTest.java
@@ -15,9 +15,9 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.BranchReportResponseProto;
import io.seata.core.exception.TransactionExceptionCode;
import io.seata.core.protocol.ResultCode;
-import io.seata.codec.protobuf.generated.BranchReportResponseProto;
import io.seata.core.protocol.transaction.BranchReportResponse;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRollbackRequestConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRollbackRequestConvertorTest.java
index 373654fa3d3..b05526e6c35 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRollbackRequestConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRollbackRequestConvertorTest.java
@@ -15,8 +15,8 @@
*/
package io.seata.codec.protobuf.convertor;
-import io.seata.core.model.BranchType;
import io.seata.codec.protobuf.generated.BranchRollbackRequestProto;
+import io.seata.core.model.BranchType;
import io.seata.core.protocol.transaction.BranchRollbackRequest;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRollbackResponseConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRollbackResponseConvertorTest.java
index 4edf9da0a37..3826fa61d72 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRollbackResponseConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/BranchRollbackResponseConvertorTest.java
@@ -15,10 +15,10 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.BranchRollbackResponseProto;
import io.seata.core.exception.TransactionExceptionCode;
import io.seata.core.model.BranchStatus;
import io.seata.core.protocol.ResultCode;
-import io.seata.codec.protobuf.generated.BranchRollbackResponseProto;
import io.seata.core.protocol.transaction.BranchRollbackResponse;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalBeginResponseConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalBeginResponseConvertorTest.java
index 2cf5cea690b..72e31a34a83 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalBeginResponseConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalBeginResponseConvertorTest.java
@@ -15,9 +15,9 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.GlobalBeginResponseProto;
import io.seata.core.exception.TransactionExceptionCode;
import io.seata.core.protocol.ResultCode;
-import io.seata.codec.protobuf.generated.GlobalBeginResponseProto;
import io.seata.core.protocol.transaction.GlobalBeginResponse;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalCommitResponseConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalCommitResponseConvertorTest.java
index d2433a4f972..63a4dad026c 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalCommitResponseConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalCommitResponseConvertorTest.java
@@ -15,10 +15,10 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.GlobalCommitResponseProto;
import io.seata.core.exception.TransactionExceptionCode;
import io.seata.core.model.GlobalStatus;
import io.seata.core.protocol.ResultCode;
-import io.seata.codec.protobuf.generated.GlobalCommitResponseProto;
import io.seata.core.protocol.transaction.GlobalCommitResponse;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalLockQueryRequestConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalLockQueryRequestConvertorTest.java
index aaa25ab23e5..f3f8371b8a4 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalLockQueryRequestConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalLockQueryRequestConvertorTest.java
@@ -15,8 +15,8 @@
*/
package io.seata.codec.protobuf.convertor;
-import io.seata.core.model.BranchType;
import io.seata.codec.protobuf.generated.GlobalLockQueryRequestProto;
+import io.seata.core.model.BranchType;
import io.seata.core.protocol.transaction.GlobalLockQueryRequest;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalLockQueryResponseConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalLockQueryResponseConvertorTest.java
index ea9d9e088f6..5f5807ea758 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalLockQueryResponseConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalLockQueryResponseConvertorTest.java
@@ -15,9 +15,9 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto;
import io.seata.core.exception.TransactionExceptionCode;
import io.seata.core.protocol.ResultCode;
-import io.seata.codec.protobuf.generated.GlobalLockQueryResponseProto;
import io.seata.core.protocol.transaction.GlobalLockQueryResponse;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalRollbackResponseConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalRollbackResponseConvertorTest.java
index ebd54909fe6..18607f45a98 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalRollbackResponseConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalRollbackResponseConvertorTest.java
@@ -15,10 +15,10 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.GlobalRollbackResponseProto;
import io.seata.core.exception.TransactionExceptionCode;
import io.seata.core.model.GlobalStatus;
import io.seata.core.protocol.ResultCode;
-import io.seata.codec.protobuf.generated.GlobalRollbackResponseProto;
import io.seata.core.protocol.transaction.GlobalRollbackResponse;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalStatusResponseConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalStatusResponseConvertorTest.java
index 091f06dc320..3f67dbabdd3 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalStatusResponseConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/GlobalStatusResponseConvertorTest.java
@@ -15,10 +15,10 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.GlobalStatusResponseProto;
import io.seata.core.exception.TransactionExceptionCode;
import io.seata.core.model.GlobalStatus;
import io.seata.core.protocol.ResultCode;
-import io.seata.codec.protobuf.generated.GlobalStatusResponseProto;
import io.seata.core.protocol.transaction.GlobalStatusResponse;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/HeartbeatMessageConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/HeartbeatMessageConvertorTest.java
index f6b2c7626f5..e971d914241 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/HeartbeatMessageConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/HeartbeatMessageConvertorTest.java
@@ -15,8 +15,8 @@
*/
package io.seata.codec.protobuf.convertor;
-import io.seata.core.protocol.HeartbeatMessage;
import io.seata.codec.protobuf.generated.HeartbeatMessageProto;
+import io.seata.core.protocol.HeartbeatMessage;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/MergeMessageConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/MergeMessageConvertorTest.java
index 7a790597bc7..ce59811f945 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/MergeMessageConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/MergeMessageConvertorTest.java
@@ -15,14 +15,14 @@
*/
package io.seata.codec.protobuf.convertor;
-import java.util.ArrayList;
-
+import io.seata.codec.protobuf.generated.MergedWarpMessageProto;
import io.seata.core.protocol.AbstractMessage;
import io.seata.core.protocol.MergedWarpMessage;
-import io.seata.codec.protobuf.generated.MergedWarpMessageProto;
import io.seata.core.protocol.transaction.GlobalBeginRequest;
import org.junit.jupiter.api.Test;
+import java.util.ArrayList;
+
import static org.assertj.core.api.Assertions.assertThat;
/**
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/MergeResultMessageConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/MergeResultMessageConvertorTest.java
index d13e67071b4..b185242f031 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/MergeResultMessageConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/MergeResultMessageConvertorTest.java
@@ -15,12 +15,12 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.MergedResultMessageProto;
import io.seata.core.exception.TransactionExceptionCode;
import io.seata.core.model.GlobalStatus;
import io.seata.core.protocol.AbstractResultMessage;
import io.seata.core.protocol.MergeResultMessage;
import io.seata.core.protocol.ResultCode;
-import io.seata.codec.protobuf.generated.MergedResultMessageProto;
import io.seata.core.protocol.transaction.GlobalCommitResponse;
import org.junit.jupiter.api.Test;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterRMRequestConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterRMRequestConvertorTest.java
index 7d3e57e4903..2457295a47d 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterRMRequestConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterRMRequestConvertorTest.java
@@ -15,8 +15,8 @@
*/
package io.seata.codec.protobuf.convertor;
-import io.seata.core.protocol.RegisterRMRequest;
import io.seata.codec.protobuf.generated.RegisterRMRequestProto;
+import io.seata.core.protocol.RegisterRMRequest;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterRMResponseConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterRMResponseConvertorTest.java
index 170c42e1733..94bf9b926cd 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterRMResponseConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterRMResponseConvertorTest.java
@@ -15,9 +15,9 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.RegisterRMResponseProto;
import io.seata.core.protocol.RegisterRMResponse;
import io.seata.core.protocol.ResultCode;
-import io.seata.codec.protobuf.generated.RegisterRMResponseProto;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterTMRequestConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterTMRequestConvertorTest.java
index 4e28f8357f6..20814c0baad 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterTMRequestConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterTMRequestConvertorTest.java
@@ -15,8 +15,8 @@
*/
package io.seata.codec.protobuf.convertor;
-import io.seata.core.protocol.RegisterTMRequest;
import io.seata.codec.protobuf.generated.RegisterTMRequestProto;
+import io.seata.core.protocol.RegisterTMRequest;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
diff --git a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterTMResponseConvertorTest.java b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterTMResponseConvertorTest.java
index 46ef1368b75..c2d1ad972fe 100644
--- a/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterTMResponseConvertorTest.java
+++ b/codec/seata-codec-protobuf/src/test/java/io/seata/codec/protobuf/convertor/RegisterTMResponseConvertorTest.java
@@ -15,9 +15,9 @@
*/
package io.seata.codec.protobuf.convertor;
+import io.seata.codec.protobuf.generated.RegisterTMResponseProto;
import io.seata.core.protocol.RegisterTMResponse;
import io.seata.core.protocol.ResultCode;
-import io.seata.codec.protobuf.generated.RegisterTMResponseProto;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
diff --git a/codec/seata-codec-seata/src/test/resources/file.conf b/codec/seata-codec-seata/src/test/resources/file.conf
index 7ea53e40d02..383ceb6b0b3 100644
--- a/codec/seata-codec-seata/src/test/resources/file.conf
+++ b/codec/seata-codec-seata/src/test/resources/file.conf
@@ -19,40 +19,13 @@ transport {
#auto default pin or 8
worker-thread-size = 8
}
+ shutdown {
+ # when destroy server, wait seconds
+ wait = 3
+ }
serialization = "seata"
compressor = "none"
}
-## transaction log store
-store {
- ## store mode: file、db
- mode = "file"
-
- ## file store
- file {
- dir = "sessionStore"
-
- # branch session size , if exceeded first try compress lockkey, still exceeded throws exceptions
- max-branch-session-size = 16384
- # globe session size , if exceeded throws exceptions
- max-global-session-size = 512
- # file buffer size , if exceeded allocate new buffer
- file-write-buffer-cache-size = 16384
- # when recover batch read size
- session.reload.read_size = 100
- # async, sync
- flush-disk-mode = async
- }
-
- ## database store
- db {
- driver_class = ""
- url = ""
- user = ""
- password = ""
- }
-
-}
-
service {
#vgroup->rgroup
vgroup_mapping.my_test_tx_group = "default"
@@ -72,3 +45,20 @@ client {
}
report.retry.count = 5
}
+
+transaction {
+ undo.data.validation = true
+ undo.log.serialization = "jackson"
+ undo.log.save.days = 7
+ #schedule delete expired undo_log in milliseconds
+ undo.log.delete.period = 86400000
+ undo.log.table = "undo_log"
+}
+
+support {
+ ## spring
+ spring {
+ # auto proxy the DataSource bean
+ datasource.autoproxy = false
+ }
+}
\ No newline at end of file
diff --git a/codec/seata-codec-seata/src/test/resources/registry.conf b/codec/seata-codec-seata/src/test/resources/registry.conf
index 15677236a89..e14f0d88e9d 100644
--- a/codec/seata-codec-seata/src/test/resources/registry.conf
+++ b/codec/seata-codec-seata/src/test/resources/registry.conf
@@ -4,7 +4,7 @@ registry {
nacos {
serverAddr = "localhost"
- namespace = "public"
+ namespace = ""
cluster = "default"
}
eureka {
@@ -50,8 +50,7 @@ config {
nacos {
serverAddr = "localhost"
- namespace = "public"
- cluster = "default"
+ namespace = ""
}
apollo {
app.id = "seata-server"
diff --git a/common/src/main/java/io/seata/common/loader/EnhancedServiceLoader.java b/common/src/main/java/io/seata/common/loader/EnhancedServiceLoader.java
index 20c23ac50a3..4d14027876b 100644
--- a/common/src/main/java/io/seata/common/loader/EnhancedServiceLoader.java
+++ b/common/src/main/java/io/seata/common/loader/EnhancedServiceLoader.java
@@ -313,10 +313,13 @@ private static void loadFile(Class> service, String dir, ClassLoader classLoad
}
line = line.trim();
if (line.length() > 0) {
- extensions.add(Class.forName(line, true, classLoader));
+ try {
+ extensions.add(Class.forName(line, true, classLoader));
+ } catch (LinkageError | ClassNotFoundException e) {
+ LOGGER.warn("load [{}] class fail. {}", line, e.getMessage());
+ }
}
}
- } catch (ClassNotFoundException e) {
} catch (Throwable e) {
LOGGER.warn(e.getMessage());
} finally {
diff --git a/common/src/main/java/io/seata/common/util/DurationUtil.java b/common/src/main/java/io/seata/common/util/DurationUtil.java
index 0ed4967a5c4..d0019c09f34 100644
--- a/common/src/main/java/io/seata/common/util/DurationUtil.java
+++ b/common/src/main/java/io/seata/common/util/DurationUtil.java
@@ -26,7 +26,7 @@ public class DurationUtil {
public static final String DAY_UNIT = "d";
public static final String HOUR_UNIT = "h";
- public static final String MINIUTE_UNIT = "m";
+ public static final String MINUTE_UNIT = "m";
public static final String SECOND_UNIT = "s";
public static final String MILLIS_SECOND_UNIT = "ms";
@@ -44,8 +44,8 @@ public static Duration parse(String str) {
} else if (str.contains(HOUR_UNIT)) {
Long value = doParse(HOUR_UNIT, str);
return value == null ? null : Duration.ofHours(value);
- } else if (str.contains(MINIUTE_UNIT)) {
- Long value = doParse(MINIUTE_UNIT, str);
+ } else if (str.contains(MINUTE_UNIT)) {
+ Long value = doParse(MINUTE_UNIT, str);
return value == null ? null : Duration.ofMinutes(value);
} else if (str.contains(SECOND_UNIT)) {
Long value = doParse(SECOND_UNIT, str);
diff --git a/common/src/test/java/io/seata/common/util/BlobUtilsTest.java b/common/src/test/java/io/seata/common/util/BlobUtilsTest.java
index f643ad49caa..59d1f14f94f 100644
--- a/common/src/test/java/io/seata/common/util/BlobUtilsTest.java
+++ b/common/src/test/java/io/seata/common/util/BlobUtilsTest.java
@@ -62,7 +62,7 @@ public void testBlob2string() throws SQLException {
@Test
void bytes2Blob() throws UnsupportedEncodingException, SQLException {
assertNull(BlobUtils.bytes2Blob(null));
- byte[] bs = "xxa哈哈dd".getBytes(Constants.DEFAULT_CHARSET_NAME);
+ byte[] bs = "xxaaadd".getBytes(Constants.DEFAULT_CHARSET_NAME);
assertThat(BlobUtils.bytes2Blob(bs)).isEqualTo(
new SerialBlob(bs));
}
@@ -70,7 +70,7 @@ void bytes2Blob() throws UnsupportedEncodingException, SQLException {
@Test
void blob2Bytes() throws UnsupportedEncodingException, SQLException {
assertNull(BlobUtils.blob2Bytes(null));
- byte[] bs = "xxa哈哈dd".getBytes(Constants.DEFAULT_CHARSET_NAME);
+ byte[] bs = "xxaaadd".getBytes(Constants.DEFAULT_CHARSET_NAME);
assertThat(BlobUtils.blob2Bytes(new SerialBlob(bs))).isEqualTo(
bs);
}
diff --git a/config/seata-config-consul/src/main/java/io/seata/config/consul/ConsulConfiguration.java b/config/seata-config-consul/src/main/java/io/seata/config/consul/ConsulConfiguration.java
index ca18b54903c..fc7f77cb3b9 100644
--- a/config/seata-config-consul/src/main/java/io/seata/config/consul/ConsulConfiguration.java
+++ b/config/seata-config-consul/src/main/java/io/seata/config/consul/ConsulConfiguration.java
@@ -207,12 +207,12 @@ private static ConsulClient getConsulClient() {
* @param configFuture
*/
private void complete(Response response, ConfigFuture configFuture) {
- Object value = response.getValue();
- if (null != response && null != value) {
+ if (null != response && null != response.getValue()) {
+ Object value = response.getValue();
if (value instanceof GetValue) {
- configFuture.setResult(((GetValue) response.getValue()).getDecodedValue());
+ configFuture.setResult(((GetValue) value).getDecodedValue());
} else {
- configFuture.setResult(response.getValue());
+ configFuture.setResult(value);
}
}
}
diff --git a/config/seata-config-core/src/main/java/io/seata/config/AbstractConfiguration.java b/config/seata-config-core/src/main/java/io/seata/config/AbstractConfiguration.java
index 6cdbcd8546f..4402cfcc305 100644
--- a/config/seata-config-core/src/main/java/io/seata/config/AbstractConfiguration.java
+++ b/config/seata-config-core/src/main/java/io/seata/config/AbstractConfiguration.java
@@ -94,7 +94,7 @@ public Duration getDuration(String dataId, Duration defaultValue) {
@Override
public Duration getDuration(String dataId, Duration defaultValue, long timeoutMills) {
- String result = getConfig(dataId, String.valueOf(defaultValue.toMillis() + "ms"), timeoutMills);
+ String result = getConfig(dataId, defaultValue.toMillis() + "ms", timeoutMills);
return DurationUtil.parse(result);
}
diff --git a/config/seata-config-core/src/main/java/io/seata/config/ConfigFuture.java b/config/seata-config-core/src/main/java/io/seata/config/ConfigFuture.java
index c1f4eae6779..fb8ac11b0bd 100644
--- a/config/seata-config-core/src/main/java/io/seata/config/ConfigFuture.java
+++ b/config/seata-config-core/src/main/java/io/seata/config/ConfigFuture.java
@@ -77,7 +77,6 @@ public boolean isTimeout() {
* Get object.
*
* @return the object
- * @throws InterruptedException the interrupted exception
*/
public Object get() {
return get(this.timeoutMills, TimeUnit.MILLISECONDS);
@@ -89,7 +88,6 @@ public Object get() {
* @param timeout the timeout
* @param unit the unit
* @return the object
- * @throws InterruptedException the interrupted exception
*/
public Object get(long timeout, TimeUnit unit) {
this.timeoutMills = unit.toMillis(timeout);
diff --git a/config/seata-config-core/src/main/java/io/seata/config/ConfigurationFactory.java b/config/seata-config-core/src/main/java/io/seata/config/ConfigurationFactory.java
index 38ddf64f21c..737c6b3f0ab 100644
--- a/config/seata-config-core/src/main/java/io/seata/config/ConfigurationFactory.java
+++ b/config/seata-config-core/src/main/java/io/seata/config/ConfigurationFactory.java
@@ -15,11 +15,11 @@
*/
package io.seata.config;
-import java.util.Objects;
-
import io.seata.common.exception.NotSupportYetException;
import io.seata.common.loader.EnhancedServiceLoader;
+import java.util.Objects;
+
/**
* The type Configuration factory.
*
@@ -29,28 +29,31 @@
public final class ConfigurationFactory {
private static final String REGISTRY_CONF_PREFIX = "registry";
private static final String REGISTRY_CONF_SUFFIX = ".conf";
- private static final String ENV_SYSTEM_KEY = "SEATA_CONFIG_ENV";
- private static final String ENV_PROPERTY_KEY = "seataConfigEnv";
- private static final String DEFAULT_ENV_VALUE = "default";
- /**
- * The constant FILE_INSTANCE.
- */
- private static String envValue;
+ private static final String ENV_SYSTEM_KEY = "SEATA_ENV";
+ private static final String ENV_PROPERTY_KEY = "seataEnv";
+
+ private static final String SYSTEM_PROPERTY_SEATA_CONFIG_NAME = "seata.config.name";
+
+ private static final String ENV_SEATA_CONFIG_NAME = "SEATA_CONFIG_NAME";
+
+ public static final Configuration CURRENT_FILE_INSTANCE;
static {
- String env = System.getenv(ENV_SYSTEM_KEY);
- if (env != null && System.getProperty(ENV_PROPERTY_KEY) == null) {
- //Help users get
- System.setProperty(ENV_PROPERTY_KEY, env);
+ String seataConfigName = System.getProperty(SYSTEM_PROPERTY_SEATA_CONFIG_NAME);
+ if (null == seataConfigName) {
+ seataConfigName = System.getenv(ENV_SEATA_CONFIG_NAME);
+ }
+ if (null == seataConfigName) {
+ seataConfigName = REGISTRY_CONF_PREFIX;
+ }
+ String envValue = System.getProperty(ENV_PROPERTY_KEY);
+ if (null == envValue) {
+ envValue = System.getenv(ENV_SYSTEM_KEY);
}
- envValue = System.getProperty(ENV_PROPERTY_KEY);
+ CURRENT_FILE_INSTANCE = (null == envValue) ? new FileConfiguration(seataConfigName + REGISTRY_CONF_SUFFIX)
+ : new FileConfiguration(seataConfigName + "-" + envValue + REGISTRY_CONF_SUFFIX);
}
- private static final Configuration DEFAULT_FILE_INSTANCE = new FileConfiguration(
- REGISTRY_CONF_PREFIX + REGISTRY_CONF_SUFFIX);
- public static final Configuration CURRENT_FILE_INSTANCE = (envValue == null || DEFAULT_ENV_VALUE.equals(envValue))
- ? DEFAULT_FILE_INSTANCE : new FileConfiguration(REGISTRY_CONF_PREFIX + "-" + envValue
- + REGISTRY_CONF_SUFFIX);
private static final String NAME_KEY = "name";
private static final String FILE_TYPE = "file";
diff --git a/config/seata-config-core/src/main/java/io/seata/config/FileConfiguration.java b/config/seata-config-core/src/main/java/io/seata/config/FileConfiguration.java
index 3eee2b98416..53efa008d14 100644
--- a/config/seata-config-core/src/main/java/io/seata/config/FileConfiguration.java
+++ b/config/seata-config-core/src/main/java/io/seata/config/FileConfiguration.java
@@ -15,6 +15,7 @@
*/
package io.seata.config;
+import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@@ -58,6 +59,8 @@ public class FileConfiguration extends AbstractConfiguration* Math.pow(2, 1) */ - PROTOBUF((byte)0x2); + PROTOBUF((byte)0x2), + + /** + * The kryo. + *
+ * Math.pow(2, 2)
+ */
+ KRYO((byte)0x4),
+ ;
private final byte code;
diff --git a/core/src/main/java/io/seata/core/constants/ConfigurationKeys.java b/core/src/main/java/io/seata/core/constants/ConfigurationKeys.java
index 62bf022da84..a2cb3d99c66 100644
--- a/core/src/main/java/io/seata/core/constants/ConfigurationKeys.java
+++ b/core/src/main/java/io/seata/core/constants/ConfigurationKeys.java
@@ -98,6 +98,16 @@ public class ConfigurationKeys {
*/
public static final String CLIENT_REPORT_RETRY_COUNT = CLIENT_PREFIX + "report.retry.count";
+ /**
+ * The constant CLIENT_LOCK_RETRY_POLICY_BRANCH_ROLLBACK_ON_CONFLICT.
+ */
+ public static final String CLIENT_LOCK_RETRY_POLICY_BRANCH_ROLLBACK_ON_CONFLICT = CLIENT_PREFIX + "lock.retry.policy.branch-rollback-on-conflict";
+
+ /**
+ * The constant CLIENT_TABLE_META_CHECK_ENABLE.
+ */
+ public static final String CLIENT_TABLE_META_CHECK_ENABLE = CLIENT_PREFIX + "table.meta.check.enable";
+
/**
* The constant SERIALIZE_FOR_RPC.
@@ -264,4 +274,21 @@ public class ConfigurationKeys {
* The constant TRANSACTION_UNDO_LOG_DEFAULT_TABLE.
*/
public static final String TRANSACTION_UNDO_LOG_DEFAULT_TABLE = "undo_log";
+
+ /**
+ * The constant SUPPORT_PREFIX.
+ */
+ public static final String SUPPORT_PREFIX = "support.";
+ /**
+ * The constant SPRING_PREFIX.
+ */
+ public static final String SPRING_PREFIX = "spring.";
+ /**
+ * The constant DATASOURCE_PREFIX.
+ */
+ public static final String DATASOURCE_PREFIX = "datasource.";
+ /**
+ * The constant DATASOURCE_AUTOPROXY.
+ */
+ public static final String DATASOURCE_AUTOPROXY = SUPPORT_PREFIX + SPRING_PREFIX + DATASOURCE_PREFIX + "autoproxy";
}
diff --git a/core/src/main/java/io/seata/core/exception/BranchTransactionException.java b/core/src/main/java/io/seata/core/exception/BranchTransactionException.java
new file mode 100644
index 00000000000..6e804ce0aa5
--- /dev/null
+++ b/core/src/main/java/io/seata/core/exception/BranchTransactionException.java
@@ -0,0 +1,92 @@
+/*
+ * Copyright 1999-2019 Seata.io Group.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package io.seata.core.exception;
+
+/**
+ * The type BranchTransaction exception.
+ *
+ * @author will
+ */
+public class BranchTransactionException extends TransactionException{
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ */
+ public BranchTransactionException(TransactionExceptionCode code) {
+ super(code);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ * @param cause the cause
+ */
+ public BranchTransactionException(TransactionExceptionCode code, Throwable cause) {
+ super(code, cause);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param message the message
+ */
+ public BranchTransactionException(String message) {
+ super(message);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ * @param message the message
+ */
+ public BranchTransactionException(TransactionExceptionCode code, String message) {
+ super(code, message);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param cause the cause
+ */
+ public BranchTransactionException(Throwable cause) {
+ super(cause);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param message the message
+ * @param cause the cause
+ */
+ public BranchTransactionException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ * @param message the message
+ * @param cause the cause
+ */
+ public BranchTransactionException(TransactionExceptionCode code, String message, Throwable cause) {
+ super(code, message, cause);
+ }
+}
diff --git a/core/src/main/java/io/seata/core/exception/GlobalTransactionException.java b/core/src/main/java/io/seata/core/exception/GlobalTransactionException.java
new file mode 100644
index 00000000000..98c4cf8c4b0
--- /dev/null
+++ b/core/src/main/java/io/seata/core/exception/GlobalTransactionException.java
@@ -0,0 +1,92 @@
+/*
+ * Copyright 1999-2019 Seata.io Group.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package io.seata.core.exception;
+
+/**
+ * The type GlobalTransaction exception.
+ *
+ * @author will
+ */
+public class GlobalTransactionException extends TransactionException{
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ */
+ public GlobalTransactionException(TransactionExceptionCode code) {
+ super(code);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ * @param cause the cause
+ */
+ public GlobalTransactionException(TransactionExceptionCode code, Throwable cause) {
+ super(code, cause);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param message the message
+ */
+ public GlobalTransactionException(String message) {
+ super(message);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ * @param message the message
+ */
+ public GlobalTransactionException(TransactionExceptionCode code, String message) {
+ super(code, message);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param cause the cause
+ */
+ public GlobalTransactionException(Throwable cause) {
+ super(cause);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param message the message
+ * @param cause the cause
+ */
+ public GlobalTransactionException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ * @param message the message
+ * @param cause the cause
+ */
+ public GlobalTransactionException(TransactionExceptionCode code, String message, Throwable cause) {
+ super(code, message, cause);
+ }
+}
diff --git a/core/src/main/java/io/seata/core/exception/RmTransactionException.java b/core/src/main/java/io/seata/core/exception/RmTransactionException.java
new file mode 100644
index 00000000000..1c2485ca326
--- /dev/null
+++ b/core/src/main/java/io/seata/core/exception/RmTransactionException.java
@@ -0,0 +1,92 @@
+/*
+ * Copyright 1999-2019 Seata.io Group.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package io.seata.core.exception;
+
+/**
+ * The type RmTransaction exception.
+ *
+ * @author will
+ */
+public class RmTransactionException extends BranchTransactionException{
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ */
+ public RmTransactionException(TransactionExceptionCode code) {
+ super(code);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ * @param cause the cause
+ */
+ public RmTransactionException(TransactionExceptionCode code, Throwable cause) {
+ super(code, cause);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param message the message
+ */
+ public RmTransactionException(String message) {
+ super(message);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ * @param message the message
+ */
+ public RmTransactionException(TransactionExceptionCode code, String message) {
+ super(code, message);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param cause the cause
+ */
+ public RmTransactionException(Throwable cause) {
+ super(cause);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param message the message
+ * @param cause the cause
+ */
+ public RmTransactionException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ * @param message the message
+ * @param cause the cause
+ */
+ public RmTransactionException(TransactionExceptionCode code, String message, Throwable cause) {
+ super(code, message, cause);
+ }
+}
diff --git a/core/src/main/java/io/seata/core/exception/TmTransactionException.java b/core/src/main/java/io/seata/core/exception/TmTransactionException.java
new file mode 100644
index 00000000000..1b39d97670a
--- /dev/null
+++ b/core/src/main/java/io/seata/core/exception/TmTransactionException.java
@@ -0,0 +1,92 @@
+/*
+ * Copyright 1999-2019 Seata.io Group.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package io.seata.core.exception;
+
+/**
+ * The type TmTransaction exception.
+ *
+ * @author will
+ */
+public class TmTransactionException extends GlobalTransactionException{
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ */
+ public TmTransactionException(TransactionExceptionCode code) {
+ super(code);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ * @param cause the cause
+ */
+ public TmTransactionException(TransactionExceptionCode code, Throwable cause) {
+ super(code, cause);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param message the message
+ */
+ public TmTransactionException(String message) {
+ super(message);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ * @param message the message
+ */
+ public TmTransactionException(TransactionExceptionCode code, String message) {
+ super(code, message);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param cause the cause
+ */
+ public TmTransactionException(Throwable cause) {
+ super(cause);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param message the message
+ * @param cause the cause
+ */
+ public TmTransactionException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ /**
+ * Instantiates a new Transaction exception.
+ *
+ * @param code the code
+ * @param message the message
+ * @param cause the cause
+ */
+ public TmTransactionException(TransactionExceptionCode code, String message, Throwable cause) {
+ super(code, message, cause);
+ }
+}
diff --git a/core/src/main/java/io/seata/core/exception/TransactionExceptionCode.java b/core/src/main/java/io/seata/core/exception/TransactionExceptionCode.java
index d0902ac5ed6..afdf1437b51 100644
--- a/core/src/main/java/io/seata/core/exception/TransactionExceptionCode.java
+++ b/core/src/main/java/io/seata/core/exception/TransactionExceptionCode.java
@@ -28,7 +28,6 @@ public enum TransactionExceptionCode {
/**
* Unknown transaction exception code.
*/
- //
Unknown,
/**
@@ -39,86 +38,73 @@ public enum TransactionExceptionCode {
/**
* Lock key conflict transaction exception code.
*/
- //
LockKeyConflict,
/**
* Io transaction exception code.
*/
- //
IO,
/**
* Branch rollback failed retriable transaction exception code.
*/
- //
BranchRollbackFailed_Retriable,
/**
* Branch rollback failed unretriable transaction exception code.
*/
- //
BranchRollbackFailed_Unretriable,
/**
* Branch register failed transaction exception code.
*/
- //
BranchRegisterFailed,
/**
* Branch report failed transaction exception code.
*/
- //
BranchReportFailed,
/**
* Lockable check failed transaction exception code.
*/
- //
LockableCheckFailed,
/**
* Branch transaction not exist transaction exception code.
*/
- //
BranchTransactionNotExist,
/**
* Global transaction not exist transaction exception code.
*/
- //
GlobalTransactionNotExist,
/**
* Global transaction not active transaction exception code.
*/
- //
GlobalTransactionNotActive,
/**
* Global transaction status invalid transaction exception code.
*/
- //
GlobalTransactionStatusInvalid,
/**
* Failed to send branch commit request transaction exception code.
*/
- //
FailedToSendBranchCommitRequest,
/**
* Failed to send branch rollback request transaction exception code.
*/
- //
FailedToSendBranchRollbackRequest,
/**
* Failed to add branch transaction exception code.
*/
- //
FailedToAddBranch,
+
/**
* Failed to lock global transaction exception code.
*/
diff --git a/core/src/main/java/io/seata/core/protocol/Version.java b/core/src/main/java/io/seata/core/protocol/Version.java
index e0b28109646..eb40820b2a0 100644
--- a/core/src/main/java/io/seata/core/protocol/Version.java
+++ b/core/src/main/java/io/seata/core/protocol/Version.java
@@ -31,7 +31,7 @@ public class Version {
/**
* The constant CURRENT.
*/
- public static final String CURRENT = "0.8.0";
+ public static final String CURRENT = "0.8.1";
/**
* The constant VERSION_MAP.
diff --git a/core/src/main/java/io/seata/core/rpc/ChannelManager.java b/core/src/main/java/io/seata/core/rpc/ChannelManager.java
index 92a5519fd12..b62347a689c 100644
--- a/core/src/main/java/io/seata/core/rpc/ChannelManager.java
+++ b/core/src/main/java/io/seata/core/rpc/ChannelManager.java
@@ -160,17 +160,11 @@ public static void registerRMChannel(RegisterRMRequest resourceManagerRequest, C
}
if (null == dbkeySet || dbkeySet.isEmpty()) { return; }
for (String resourceId : dbkeySet) {
- RM_CHANNELS.putIfAbsent(resourceId,
- new ConcurrentHashMap