|
- // Code generated by protoc-gen-gogo. DO NOT EDIT.
- // source: seata.proto
-
- package apis
-
- import (
- bytes "bytes"
- fmt "fmt"
- _ "github.com/gogo/protobuf/gogoproto"
- proto "github.com/gogo/protobuf/proto"
- types "github.com/gogo/protobuf/types"
- io "io"
- math "math"
- math_bits "math/bits"
- reflect "reflect"
- strconv "strconv"
- strings "strings"
- )
-
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
-
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
-
- type ResultCode int32
-
- const (
- ResultCodeFailed ResultCode = 0
- ResultCodeSuccess ResultCode = 1
- )
-
- var ResultCode_name = map[int32]string{
- 0: "ResultCodeFailed",
- 1: "ResultCodeSuccess",
- }
-
- var ResultCode_value = map[string]int32{
- "ResultCodeFailed": 0,
- "ResultCodeSuccess": 1,
- }
-
- func (ResultCode) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{0}
- }
-
- type ExceptionCode int32
-
- const (
- // Unknown transaction error code.
- UnknownErr ExceptionCode = 0
- // BeginFailed
- BeginFailed ExceptionCode = 1
- // Lock key conflict transaction error code.
- LockKeyConflict ExceptionCode = 2
- // Io transaction error code.
- IO ExceptionCode = 3
- // Branch rollback failed retryable transaction error code.
- BranchRollbackFailedRetryable ExceptionCode = 4
- // Branch rollback failed unretryable transaction error code.
- BranchRollbackFailedUnretryable ExceptionCode = 5
- // Branch register failed transaction error code.
- BranchRegisterFailed ExceptionCode = 6
- // Branch report failed transaction error code.
- BranchReportFailed ExceptionCode = 7
- // Lockable check failed transaction error code.
- LockableCheckFailed ExceptionCode = 8
- // Branch transaction not exist transaction error code.
- BranchTransactionNotExist ExceptionCode = 9
- // Global transaction not exist transaction error code.
- GlobalTransactionNotExist ExceptionCode = 10
- // Global transaction not active transaction error code.
- GlobalTransactionNotActive ExceptionCode = 11
- // Global transaction status invalid transaction error code.
- GlobalTransactionStatusInvalid ExceptionCode = 12
- // Failed to send branch commit request transaction error code.
- FailedToSendBranchCommitRequest ExceptionCode = 13
- // Failed to send branch rollback request transaction error code.
- FailedToSendBranchRollbackRequest ExceptionCode = 14
- // Failed to add branch transaction error code.
- FailedToAddBranch ExceptionCode = 15
- // Failed to lock global transaction error code.
- FailedLockGlobalTransaction ExceptionCode = 16
- // FailedWriteSession
- FailedWriteSession ExceptionCode = 17
- // Failed to holder error code
- FailedStore ExceptionCode = 18
- )
-
- var ExceptionCode_name = map[int32]string{
- 0: "UnknownErr",
- 1: "BeginFailed",
- 2: "LockKeyConflict",
- 3: "IO",
- 4: "BranchRollbackFailedRetryable",
- 5: "BranchRollbackFailedUnretryable",
- 6: "BranchRegisterFailed",
- 7: "BranchReportFailed",
- 8: "LockableCheckFailed",
- 9: "BranchTransactionNotExist",
- 10: "GlobalTransactionNotExist",
- 11: "GlobalTransactionNotActive",
- 12: "GlobalTransactionStatusInvalid",
- 13: "FailedToSendBranchCommitRequest",
- 14: "FailedToSendBranchRollbackRequest",
- 15: "FailedToAddBranch",
- 16: "FailedLockGlobalTransaction",
- 17: "FailedWriteSession",
- 18: "FailedStore",
- }
-
- var ExceptionCode_value = map[string]int32{
- "UnknownErr": 0,
- "BeginFailed": 1,
- "LockKeyConflict": 2,
- "IO": 3,
- "BranchRollbackFailedRetryable": 4,
- "BranchRollbackFailedUnretryable": 5,
- "BranchRegisterFailed": 6,
- "BranchReportFailed": 7,
- "LockableCheckFailed": 8,
- "BranchTransactionNotExist": 9,
- "GlobalTransactionNotExist": 10,
- "GlobalTransactionNotActive": 11,
- "GlobalTransactionStatusInvalid": 12,
- "FailedToSendBranchCommitRequest": 13,
- "FailedToSendBranchRollbackRequest": 14,
- "FailedToAddBranch": 15,
- "FailedLockGlobalTransaction": 16,
- "FailedWriteSession": 17,
- "FailedStore": 18,
- }
-
- func (ExceptionCode) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{1}
- }
-
- type BranchMessageType int32
-
- const (
- TypeBranchCommit BranchMessageType = 0
- TypeBranchCommitResult BranchMessageType = 1
- TypeBranchRollback BranchMessageType = 2
- TypeBranchRollBackResult BranchMessageType = 3
- )
-
- var BranchMessageType_name = map[int32]string{
- 0: "TypeBranchCommit",
- 1: "TypeBranchCommitResult",
- 2: "TypeBranchRollback",
- 3: "TypeBranchRollBackResult",
- }
-
- var BranchMessageType_value = map[string]int32{
- "TypeBranchCommit": 0,
- "TypeBranchCommitResult": 1,
- "TypeBranchRollback": 2,
- "TypeBranchRollBackResult": 3,
- }
-
- func (BranchMessageType) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{2}
- }
-
- type GlobalSession_GlobalStatus int32
-
- const (
- // Un known global status.
- UnknownGlobalStatus GlobalSession_GlobalStatus = 0
- // PHASE 1: can accept new branch registering.
- Begin GlobalSession_GlobalStatus = 1
- // PHASE 2: Running Status: may be changed any time.
- Committing GlobalSession_GlobalStatus = 2
- // The Commit retrying.
- // Retrying commit after a recoverable failure.
- CommitRetrying GlobalSession_GlobalStatus = 3
- // Rolling back global status.
- RollingBack GlobalSession_GlobalStatus = 4
- // The Rollback retrying.
- // Retrying rollback after a recoverable failure.
- RollbackRetrying GlobalSession_GlobalStatus = 5
- // The Timeout rolling back.
- // Rolling back since timeout
- TimeoutRollingBack GlobalSession_GlobalStatus = 6
- // The Timeout rollback retrying.
- // Retrying rollback (since timeout) after a recoverable failure.
- TimeoutRollbackRetrying GlobalSession_GlobalStatus = 7
- // All branches can be async committed. The committing is NOT done yet, but it can be seen as
- // committed for TM/RM rpc_client.
- AsyncCommitting GlobalSession_GlobalStatus = 8
- // PHASE 2: Final Status: will NOT change any more.
- // Finally: global transaction is successfully committed.
- Committed GlobalSession_GlobalStatus = 9
- // The Commit failed.
- // Finally: failed to commit
- CommitFailed GlobalSession_GlobalStatus = 10
- // The RolledBack.
- // Finally: global transaction is successfully rollback.
- RolledBack GlobalSession_GlobalStatus = 11
- // The Rollback failed.
- // Finally: failed to rollback
- RollbackFailed GlobalSession_GlobalStatus = 12
- // The Timeout rolled back.
- // Finally: global transaction is successfully rollback since timeout.
- TimeoutRolledBack GlobalSession_GlobalStatus = 13
- // The Timeout rollback failed.
- // Finally: failed to rollback since timeout
- TimeoutRollbackFailed GlobalSession_GlobalStatus = 14
- // The Finished.
- // Not managed in getty_session MAP any more
- Finished GlobalSession_GlobalStatus = 15
- )
-
- var GlobalSession_GlobalStatus_name = map[int32]string{
- 0: "UnknownGlobalStatus",
- 1: "Begin",
- 2: "Committing",
- 3: "CommitRetrying",
- 4: "RollingBack",
- 5: "RollbackRetrying",
- 6: "TimeoutRollingBack",
- 7: "TimeoutRollbackRetrying",
- 8: "AsyncCommitting",
- 9: "Committed",
- 10: "CommitFailed",
- 11: "RolledBack",
- 12: "RollbackFailed",
- 13: "TimeoutRolledBack",
- 14: "TimeoutRollbackFailed",
- 15: "Finished",
- }
-
- var GlobalSession_GlobalStatus_value = map[string]int32{
- "UnknownGlobalStatus": 0,
- "Begin": 1,
- "Committing": 2,
- "CommitRetrying": 3,
- "RollingBack": 4,
- "RollbackRetrying": 5,
- "TimeoutRollingBack": 6,
- "TimeoutRollbackRetrying": 7,
- "AsyncCommitting": 8,
- "Committed": 9,
- "CommitFailed": 10,
- "RolledBack": 11,
- "RollbackFailed": 12,
- "TimeoutRolledBack": 13,
- "TimeoutRollbackFailed": 14,
- "Finished": 15,
- }
-
- func (GlobalSession_GlobalStatus) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{0, 0}
- }
-
- type BranchSession_BranchType int32
-
- const (
- AT BranchSession_BranchType = 0
- TCC BranchSession_BranchType = 1
- SAGA BranchSession_BranchType = 2
- XA BranchSession_BranchType = 3
- )
-
- var BranchSession_BranchType_name = map[int32]string{
- 0: "AT",
- 1: "TCC",
- 2: "SAGA",
- 3: "XA",
- }
-
- var BranchSession_BranchType_value = map[string]int32{
- "AT": 0,
- "TCC": 1,
- "SAGA": 2,
- "XA": 3,
- }
-
- func (BranchSession_BranchType) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{1, 0}
- }
-
- type BranchSession_BranchStatus int32
-
- const (
- // description:BranchStatus_Unknown branch status.
- UnknownBranchStatus BranchSession_BranchStatus = 0
- // description:BranchStatus_Registered to TC.
- Registered BranchSession_BranchStatus = 1
- // The Phase one done.
- // description:Branch logic is successfully done at phase one.
- PhaseOneDone BranchSession_BranchStatus = 2
- // The Phase one failed.
- // description:Branch logic is failed at phase one.
- PhaseOneFailed BranchSession_BranchStatus = 3
- // The Phase one timeout.
- // description:Branch logic is NOT reported for a timeout.
- PhaseOneTimeout BranchSession_BranchStatus = 4
- // The Phase two committed.
- // description:Commit logic is successfully done at phase two.
- PhaseTwoCommitted BranchSession_BranchStatus = 5
- // The Phase two commit failed retryable.
- // description:Commit logic is failed but retryable.
- PhaseTwoCommitFailedRetryable BranchSession_BranchStatus = 6
- // The Phase two commit failed and can not retry.
- // description:Commit logic is failed and NOT retryable.
- PhaseTwoCommitFailedCanNotRetry BranchSession_BranchStatus = 7
- // The Phase two rollback completed.
- // description:Rollback logic is successfully done at phase two.
- PhaseTwoRolledBack BranchSession_BranchStatus = 8
- // The Phase two rollback failed retryable.
- // description:Rollback logic is failed but retryable.
- PhaseTwoRollbackFailedRetryable BranchSession_BranchStatus = 9
- // The Phase two rollback failed and can not retry.
- // description:Rollback logic is failed but NOT retryable.
- PhaseTwoRollbackFailedCanNotRetry BranchSession_BranchStatus = 10
- )
-
- var BranchSession_BranchStatus_name = map[int32]string{
- 0: "UnknownBranchStatus",
- 1: "Registered",
- 2: "PhaseOneDone",
- 3: "PhaseOneFailed",
- 4: "PhaseOneTimeout",
- 5: "PhaseTwoCommitted",
- 6: "PhaseTwoCommitFailedRetryable",
- 7: "PhaseTwoCommitFailedCanNotRetry",
- 8: "PhaseTwoRolledBack",
- 9: "PhaseTwoRollbackFailedRetryable",
- 10: "PhaseTwoRollbackFailedCanNotRetry",
- }
-
- var BranchSession_BranchStatus_value = map[string]int32{
- "UnknownBranchStatus": 0,
- "Registered": 1,
- "PhaseOneDone": 2,
- "PhaseOneFailed": 3,
- "PhaseOneTimeout": 4,
- "PhaseTwoCommitted": 5,
- "PhaseTwoCommitFailedRetryable": 6,
- "PhaseTwoCommitFailedCanNotRetry": 7,
- "PhaseTwoRolledBack": 8,
- "PhaseTwoRollbackFailedRetryable": 9,
- "PhaseTwoRollbackFailedCanNotRetry": 10,
- }
-
- func (BranchSession_BranchStatus) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{1, 1}
- }
-
- type GlobalSession struct {
- Addressing string `protobuf:"bytes,1,opt,name=Addressing,proto3" json:"Addressing,omitempty" xorm:"addressing"`
- XID string `protobuf:"bytes,2,opt,name=XID,proto3" json:"XID,omitempty" xorm:"xid"`
- TransactionID int64 `protobuf:"varint,3,opt,name=TransactionID,proto3" json:"TransactionID,omitempty" xorm:"transaction_id"`
- TransactionName string `protobuf:"bytes,4,opt,name=TransactionName,proto3" json:"TransactionName,omitempty" xorm:"transaction_name"`
- Timeout int32 `protobuf:"varint,5,opt,name=Timeout,proto3" json:"Timeout,omitempty" xorm:"timeout"`
- BeginTime int64 `protobuf:"varint,6,opt,name=BeginTime,proto3" json:"BeginTime,omitempty" xorm:"begin_time"`
- Status GlobalSession_GlobalStatus `protobuf:"varint,7,opt,name=Status,proto3,enum=apis.GlobalSession_GlobalStatus" json:"Status,omitempty" xorm:"status"`
- Active bool `protobuf:"varint,8,opt,name=Active,proto3" json:"Active,omitempty" xorm:"active"`
- }
-
- func (m *GlobalSession) Reset() { *m = GlobalSession{} }
- func (*GlobalSession) ProtoMessage() {}
- func (*GlobalSession) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{0}
- }
- func (m *GlobalSession) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalSession.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalSession) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalSession.Merge(m, src)
- }
- func (m *GlobalSession) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalSession) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalSession.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalSession proto.InternalMessageInfo
-
- func (m *GlobalSession) GetAddressing() string {
- if m != nil {
- return m.Addressing
- }
- return ""
- }
-
- func (m *GlobalSession) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *GlobalSession) GetTransactionID() int64 {
- if m != nil {
- return m.TransactionID
- }
- return 0
- }
-
- func (m *GlobalSession) GetTransactionName() string {
- if m != nil {
- return m.TransactionName
- }
- return ""
- }
-
- func (m *GlobalSession) GetTimeout() int32 {
- if m != nil {
- return m.Timeout
- }
- return 0
- }
-
- func (m *GlobalSession) GetBeginTime() int64 {
- if m != nil {
- return m.BeginTime
- }
- return 0
- }
-
- func (m *GlobalSession) GetStatus() GlobalSession_GlobalStatus {
- if m != nil {
- return m.Status
- }
- return UnknownGlobalStatus
- }
-
- func (m *GlobalSession) GetActive() bool {
- if m != nil {
- return m.Active
- }
- return false
- }
-
- type BranchSession struct {
- Addressing string `protobuf:"bytes,1,opt,name=Addressing,proto3" json:"Addressing,omitempty" xorm:"addressing"`
- XID string `protobuf:"bytes,2,opt,name=XID,proto3" json:"XID,omitempty" xorm:"xid"`
- BranchID int64 `protobuf:"varint,3,opt,name=BranchID,proto3" json:"BranchID,omitempty" xorm:"branch_id"`
- TransactionID int64 `protobuf:"varint,4,opt,name=TransactionID,proto3" json:"TransactionID,omitempty" xorm:"transaction_id"`
- ResourceID string `protobuf:"bytes,5,opt,name=ResourceID,proto3" json:"ResourceID,omitempty" xorm:"resource_id"`
- LockKey string `protobuf:"bytes,6,opt,name=LockKey,proto3" json:"LockKey,omitempty" xorm:"lock_key"`
- Type BranchSession_BranchType `protobuf:"varint,7,opt,name=Type,proto3,enum=apis.BranchSession_BranchType" json:"Type,omitempty" xorm:"branch_type"`
- Status BranchSession_BranchStatus `protobuf:"varint,8,opt,name=Status,proto3,enum=apis.BranchSession_BranchStatus" json:"Status,omitempty" xorm:"status"`
- ApplicationData []byte `protobuf:"bytes,9,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty" xorm:"application_data"`
- AsyncCommit bool `protobuf:"varint,10,opt,name=AsyncCommit,proto3" json:"AsyncCommit,omitempty" xorm:"async_commit"`
- }
-
- func (m *BranchSession) Reset() { *m = BranchSession{} }
- func (*BranchSession) ProtoMessage() {}
- func (*BranchSession) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{1}
- }
- func (m *BranchSession) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchSession.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchSession) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchSession.Merge(m, src)
- }
- func (m *BranchSession) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchSession) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchSession.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchSession proto.InternalMessageInfo
-
- func (m *BranchSession) GetAddressing() string {
- if m != nil {
- return m.Addressing
- }
- return ""
- }
-
- func (m *BranchSession) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchSession) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *BranchSession) GetTransactionID() int64 {
- if m != nil {
- return m.TransactionID
- }
- return 0
- }
-
- func (m *BranchSession) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *BranchSession) GetLockKey() string {
- if m != nil {
- return m.LockKey
- }
- return ""
- }
-
- func (m *BranchSession) GetType() BranchSession_BranchType {
- if m != nil {
- return m.Type
- }
- return AT
- }
-
- func (m *BranchSession) GetStatus() BranchSession_BranchStatus {
- if m != nil {
- return m.Status
- }
- return UnknownBranchStatus
- }
-
- func (m *BranchSession) GetApplicationData() []byte {
- if m != nil {
- return m.ApplicationData
- }
- return nil
- }
-
- func (m *BranchSession) GetAsyncCommit() bool {
- if m != nil {
- return m.AsyncCommit
- }
- return false
- }
-
- type RowLock struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty" xorm:"xid"`
- TransactionID int64 `protobuf:"varint,2,opt,name=TransactionID,proto3" json:"TransactionID,omitempty" xorm:"transaction_id"`
- BranchID int64 `protobuf:"varint,3,opt,name=BranchID,proto3" json:"BranchID,omitempty" xorm:"branch_id"`
- ResourceID string `protobuf:"bytes,4,opt,name=ResourceID,proto3" json:"ResourceID,omitempty" xorm:"resource_id"`
- TableName string `protobuf:"bytes,5,opt,name=TableName,proto3" json:"TableName,omitempty" xorm:"table_name"`
- PK string `protobuf:"bytes,6,opt,name=PK,proto3" json:"PK,omitempty" xorm:"pk"`
- RowKey string `protobuf:"bytes,7,opt,name=RowKey,proto3" json:"RowKey,omitempty" xorm:"row_key"`
- }
-
- func (m *RowLock) Reset() { *m = RowLock{} }
- func (*RowLock) ProtoMessage() {}
- func (*RowLock) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{2}
- }
- func (m *RowLock) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *RowLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_RowLock.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *RowLock) XXX_Merge(src proto.Message) {
- xxx_messageInfo_RowLock.Merge(m, src)
- }
- func (m *RowLock) XXX_Size() int {
- return m.Size()
- }
- func (m *RowLock) XXX_DiscardUnknown() {
- xxx_messageInfo_RowLock.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_RowLock proto.InternalMessageInfo
-
- func (m *RowLock) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *RowLock) GetTransactionID() int64 {
- if m != nil {
- return m.TransactionID
- }
- return 0
- }
-
- func (m *RowLock) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *RowLock) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *RowLock) GetTableName() string {
- if m != nil {
- return m.TableName
- }
- return ""
- }
-
- func (m *RowLock) GetPK() string {
- if m != nil {
- return m.PK
- }
- return ""
- }
-
- func (m *RowLock) GetRowKey() string {
- if m != nil {
- return m.RowKey
- }
- return ""
- }
-
- // GlobalBeginRequest represents a global transaction begin
- type GlobalBeginRequest struct {
- Addressing string `protobuf:"bytes,1,opt,name=Addressing,proto3" json:"Addressing,omitempty"`
- Timeout int32 `protobuf:"varint,2,opt,name=Timeout,proto3" json:"Timeout,omitempty"`
- TransactionName string `protobuf:"bytes,3,opt,name=TransactionName,proto3" json:"TransactionName,omitempty"`
- }
-
- func (m *GlobalBeginRequest) Reset() { *m = GlobalBeginRequest{} }
- func (*GlobalBeginRequest) ProtoMessage() {}
- func (*GlobalBeginRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{3}
- }
- func (m *GlobalBeginRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalBeginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalBeginRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalBeginRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalBeginRequest.Merge(m, src)
- }
- func (m *GlobalBeginRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalBeginRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalBeginRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalBeginRequest proto.InternalMessageInfo
-
- func (m *GlobalBeginRequest) GetAddressing() string {
- if m != nil {
- return m.Addressing
- }
- return ""
- }
-
- func (m *GlobalBeginRequest) GetTimeout() int32 {
- if m != nil {
- return m.Timeout
- }
- return 0
- }
-
- func (m *GlobalBeginRequest) GetTransactionName() string {
- if m != nil {
- return m.TransactionName
- }
- return ""
- }
-
- // GlobalBeginResponse represents a response to GlobalBeginRequest
- type GlobalBeginResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- XID string `protobuf:"bytes,4,opt,name=XID,proto3" json:"XID,omitempty"`
- }
-
- func (m *GlobalBeginResponse) Reset() { *m = GlobalBeginResponse{} }
- func (*GlobalBeginResponse) ProtoMessage() {}
- func (*GlobalBeginResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{4}
- }
- func (m *GlobalBeginResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalBeginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalBeginResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalBeginResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalBeginResponse.Merge(m, src)
- }
- func (m *GlobalBeginResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalBeginResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalBeginResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalBeginResponse proto.InternalMessageInfo
-
- func (m *GlobalBeginResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *GlobalBeginResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *GlobalBeginResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *GlobalBeginResponse) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- // BranchRegisterRequest represents a branch transaction join in the global transaction
- type BranchRegisterRequest struct {
- Addressing string `protobuf:"bytes,1,opt,name=Addressing,proto3" json:"Addressing,omitempty"`
- XID string `protobuf:"bytes,2,opt,name=XID,proto3" json:"XID,omitempty"`
- ResourceID string `protobuf:"bytes,3,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
- LockKey string `protobuf:"bytes,4,opt,name=LockKey,proto3" json:"LockKey,omitempty"`
- BranchType BranchSession_BranchType `protobuf:"varint,5,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
- ApplicationData []byte `protobuf:"bytes,6,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty"`
- AsyncCommit bool `protobuf:"varint,7,opt,name=AsyncCommit,proto3" json:"AsyncCommit,omitempty"`
- }
-
- func (m *BranchRegisterRequest) Reset() { *m = BranchRegisterRequest{} }
- func (*BranchRegisterRequest) ProtoMessage() {}
- func (*BranchRegisterRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{5}
- }
- func (m *BranchRegisterRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchRegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchRegisterRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchRegisterRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchRegisterRequest.Merge(m, src)
- }
- func (m *BranchRegisterRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchRegisterRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchRegisterRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchRegisterRequest proto.InternalMessageInfo
-
- func (m *BranchRegisterRequest) GetAddressing() string {
- if m != nil {
- return m.Addressing
- }
- return ""
- }
-
- func (m *BranchRegisterRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchRegisterRequest) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *BranchRegisterRequest) GetLockKey() string {
- if m != nil {
- return m.LockKey
- }
- return ""
- }
-
- func (m *BranchRegisterRequest) GetBranchType() BranchSession_BranchType {
- if m != nil {
- return m.BranchType
- }
- return AT
- }
-
- func (m *BranchRegisterRequest) GetApplicationData() []byte {
- if m != nil {
- return m.ApplicationData
- }
- return nil
- }
-
- func (m *BranchRegisterRequest) GetAsyncCommit() bool {
- if m != nil {
- return m.AsyncCommit
- }
- return false
- }
-
- // BranchRegisterResponse represents a response to BranchRegisterRequest
- type BranchRegisterResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- BranchID int64 `protobuf:"varint,4,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
- }
-
- func (m *BranchRegisterResponse) Reset() { *m = BranchRegisterResponse{} }
- func (*BranchRegisterResponse) ProtoMessage() {}
- func (*BranchRegisterResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{6}
- }
- func (m *BranchRegisterResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchRegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchRegisterResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchRegisterResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchRegisterResponse.Merge(m, src)
- }
- func (m *BranchRegisterResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchRegisterResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchRegisterResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchRegisterResponse proto.InternalMessageInfo
-
- func (m *BranchRegisterResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *BranchRegisterResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *BranchRegisterResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *BranchRegisterResponse) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- // BranchReportRequest represents a request to report branch transaction execution status
- type BranchReportRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- BranchID int64 `protobuf:"varint,2,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
- ResourceID string `protobuf:"bytes,3,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
- BranchType BranchSession_BranchType `protobuf:"varint,4,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
- BranchStatus BranchSession_BranchStatus `protobuf:"varint,5,opt,name=BranchStatus,proto3,enum=apis.BranchSession_BranchStatus" json:"BranchStatus,omitempty"`
- ApplicationData []byte `protobuf:"bytes,6,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty"`
- }
-
- func (m *BranchReportRequest) Reset() { *m = BranchReportRequest{} }
- func (*BranchReportRequest) ProtoMessage() {}
- func (*BranchReportRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{7}
- }
- func (m *BranchReportRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchReportRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchReportRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchReportRequest.Merge(m, src)
- }
- func (m *BranchReportRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchReportRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchReportRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchReportRequest proto.InternalMessageInfo
-
- func (m *BranchReportRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchReportRequest) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *BranchReportRequest) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *BranchReportRequest) GetBranchType() BranchSession_BranchType {
- if m != nil {
- return m.BranchType
- }
- return AT
- }
-
- func (m *BranchReportRequest) GetBranchStatus() BranchSession_BranchStatus {
- if m != nil {
- return m.BranchStatus
- }
- return UnknownBranchStatus
- }
-
- func (m *BranchReportRequest) GetApplicationData() []byte {
- if m != nil {
- return m.ApplicationData
- }
- return nil
- }
-
- // BranchReportResponse represents a response to BranchReportRequest
- type BranchReportResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- }
-
- func (m *BranchReportResponse) Reset() { *m = BranchReportResponse{} }
- func (*BranchReportResponse) ProtoMessage() {}
- func (*BranchReportResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{8}
- }
- func (m *BranchReportResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchReportResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchReportResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchReportResponse.Merge(m, src)
- }
- func (m *BranchReportResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchReportResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchReportResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchReportResponse proto.InternalMessageInfo
-
- func (m *BranchReportResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *BranchReportResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *BranchReportResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- // GlobalLockQueryRequest represents a request to query the global lock
- type GlobalLockQueryRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- ResourceID string `protobuf:"bytes,2,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
- LockKey string `protobuf:"bytes,3,opt,name=LockKey,proto3" json:"LockKey,omitempty"`
- BranchType BranchSession_BranchType `protobuf:"varint,4,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
- }
-
- func (m *GlobalLockQueryRequest) Reset() { *m = GlobalLockQueryRequest{} }
- func (*GlobalLockQueryRequest) ProtoMessage() {}
- func (*GlobalLockQueryRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{9}
- }
- func (m *GlobalLockQueryRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalLockQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalLockQueryRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalLockQueryRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalLockQueryRequest.Merge(m, src)
- }
- func (m *GlobalLockQueryRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalLockQueryRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalLockQueryRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalLockQueryRequest proto.InternalMessageInfo
-
- func (m *GlobalLockQueryRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *GlobalLockQueryRequest) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *GlobalLockQueryRequest) GetLockKey() string {
- if m != nil {
- return m.LockKey
- }
- return ""
- }
-
- func (m *GlobalLockQueryRequest) GetBranchType() BranchSession_BranchType {
- if m != nil {
- return m.BranchType
- }
- return AT
- }
-
- // GlobalLockQueryResponse represents a response to GlobalLockQueryRequest
- type GlobalLockQueryResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- Lockable bool `protobuf:"varint,4,opt,name=Lockable,proto3" json:"Lockable,omitempty"`
- }
-
- func (m *GlobalLockQueryResponse) Reset() { *m = GlobalLockQueryResponse{} }
- func (*GlobalLockQueryResponse) ProtoMessage() {}
- func (*GlobalLockQueryResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{10}
- }
- func (m *GlobalLockQueryResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalLockQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalLockQueryResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalLockQueryResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalLockQueryResponse.Merge(m, src)
- }
- func (m *GlobalLockQueryResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalLockQueryResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalLockQueryResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalLockQueryResponse proto.InternalMessageInfo
-
- func (m *GlobalLockQueryResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *GlobalLockQueryResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *GlobalLockQueryResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *GlobalLockQueryResponse) GetLockable() bool {
- if m != nil {
- return m.Lockable
- }
- return false
- }
-
- // GlobalStatusRequest represents a request to query the global transaction status
- type GlobalStatusRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- }
-
- func (m *GlobalStatusRequest) Reset() { *m = GlobalStatusRequest{} }
- func (*GlobalStatusRequest) ProtoMessage() {}
- func (*GlobalStatusRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{11}
- }
- func (m *GlobalStatusRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalStatusRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalStatusRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalStatusRequest.Merge(m, src)
- }
- func (m *GlobalStatusRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalStatusRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalStatusRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalStatusRequest proto.InternalMessageInfo
-
- func (m *GlobalStatusRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- // GlobalStatusResponse represents a response to GlobalStatusRequest
- type GlobalStatusResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,4,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
- }
-
- func (m *GlobalStatusResponse) Reset() { *m = GlobalStatusResponse{} }
- func (*GlobalStatusResponse) ProtoMessage() {}
- func (*GlobalStatusResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{12}
- }
- func (m *GlobalStatusResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalStatusResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalStatusResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalStatusResponse.Merge(m, src)
- }
- func (m *GlobalStatusResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalStatusResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalStatusResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalStatusResponse proto.InternalMessageInfo
-
- func (m *GlobalStatusResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *GlobalStatusResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *GlobalStatusResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *GlobalStatusResponse) GetGlobalStatus() GlobalSession_GlobalStatus {
- if m != nil {
- return m.GlobalStatus
- }
- return UnknownGlobalStatus
- }
-
- // GlobalCommitRequest represents a request to commit global transaction
- type GlobalCommitRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- }
-
- func (m *GlobalCommitRequest) Reset() { *m = GlobalCommitRequest{} }
- func (*GlobalCommitRequest) ProtoMessage() {}
- func (*GlobalCommitRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{13}
- }
- func (m *GlobalCommitRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalCommitRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalCommitRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalCommitRequest.Merge(m, src)
- }
- func (m *GlobalCommitRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalCommitRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalCommitRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalCommitRequest proto.InternalMessageInfo
-
- func (m *GlobalCommitRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- // GlobalCommitResponse represents a response to GlobalCommitRequest
- type GlobalCommitResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,4,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
- }
-
- func (m *GlobalCommitResponse) Reset() { *m = GlobalCommitResponse{} }
- func (*GlobalCommitResponse) ProtoMessage() {}
- func (*GlobalCommitResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{14}
- }
- func (m *GlobalCommitResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalCommitResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalCommitResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalCommitResponse.Merge(m, src)
- }
- func (m *GlobalCommitResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalCommitResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalCommitResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalCommitResponse proto.InternalMessageInfo
-
- func (m *GlobalCommitResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *GlobalCommitResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *GlobalCommitResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *GlobalCommitResponse) GetGlobalStatus() GlobalSession_GlobalStatus {
- if m != nil {
- return m.GlobalStatus
- }
- return UnknownGlobalStatus
- }
-
- // GlobalRollbackRequest represents a request to rollback global transaction
- type GlobalRollbackRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- }
-
- func (m *GlobalRollbackRequest) Reset() { *m = GlobalRollbackRequest{} }
- func (*GlobalRollbackRequest) ProtoMessage() {}
- func (*GlobalRollbackRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{15}
- }
- func (m *GlobalRollbackRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalRollbackRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalRollbackRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalRollbackRequest.Merge(m, src)
- }
- func (m *GlobalRollbackRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalRollbackRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalRollbackRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalRollbackRequest proto.InternalMessageInfo
-
- func (m *GlobalRollbackRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- // GlobalRollbackResponse represents a response to GlobalRollbackRequest
- type GlobalRollbackResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,4,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
- }
-
- func (m *GlobalRollbackResponse) Reset() { *m = GlobalRollbackResponse{} }
- func (*GlobalRollbackResponse) ProtoMessage() {}
- func (*GlobalRollbackResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{16}
- }
- func (m *GlobalRollbackResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalRollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalRollbackResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalRollbackResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalRollbackResponse.Merge(m, src)
- }
- func (m *GlobalRollbackResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalRollbackResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalRollbackResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalRollbackResponse proto.InternalMessageInfo
-
- func (m *GlobalRollbackResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *GlobalRollbackResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *GlobalRollbackResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *GlobalRollbackResponse) GetGlobalStatus() GlobalSession_GlobalStatus {
- if m != nil {
- return m.GlobalStatus
- }
- return UnknownGlobalStatus
- }
-
- // GlobalReportRequest represents a request to report global transaction execution status
- type GlobalReportRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,2,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
- }
-
- func (m *GlobalReportRequest) Reset() { *m = GlobalReportRequest{} }
- func (*GlobalReportRequest) ProtoMessage() {}
- func (*GlobalReportRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{17}
- }
- func (m *GlobalReportRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalReportRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalReportRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalReportRequest.Merge(m, src)
- }
- func (m *GlobalReportRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalReportRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalReportRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalReportRequest proto.InternalMessageInfo
-
- func (m *GlobalReportRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *GlobalReportRequest) GetGlobalStatus() GlobalSession_GlobalStatus {
- if m != nil {
- return m.GlobalStatus
- }
- return UnknownGlobalStatus
- }
-
- // GlobalReportResponse represents a response to GlobalReportRequest
- type GlobalReportResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- GlobalStatus GlobalSession_GlobalStatus `protobuf:"varint,4,opt,name=GlobalStatus,proto3,enum=apis.GlobalSession_GlobalStatus" json:"GlobalStatus,omitempty"`
- }
-
- func (m *GlobalReportResponse) Reset() { *m = GlobalReportResponse{} }
- func (*GlobalReportResponse) ProtoMessage() {}
- func (*GlobalReportResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{18}
- }
- func (m *GlobalReportResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *GlobalReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_GlobalReportResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *GlobalReportResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_GlobalReportResponse.Merge(m, src)
- }
- func (m *GlobalReportResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *GlobalReportResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_GlobalReportResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_GlobalReportResponse proto.InternalMessageInfo
-
- func (m *GlobalReportResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *GlobalReportResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *GlobalReportResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *GlobalReportResponse) GetGlobalStatus() GlobalSession_GlobalStatus {
- if m != nil {
- return m.GlobalStatus
- }
- return UnknownGlobalStatus
- }
-
- // BranchCommitRequest represents a request to commit branch transaction
- type BranchCommitRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- BranchID int64 `protobuf:"varint,2,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
- ResourceID string `protobuf:"bytes,3,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
- LockKey string `protobuf:"bytes,4,opt,name=LockKey,proto3" json:"LockKey,omitempty"`
- BranchType BranchSession_BranchType `protobuf:"varint,5,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
- ApplicationData []byte `protobuf:"bytes,6,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty"`
- }
-
- func (m *BranchCommitRequest) Reset() { *m = BranchCommitRequest{} }
- func (*BranchCommitRequest) ProtoMessage() {}
- func (*BranchCommitRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{19}
- }
- func (m *BranchCommitRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchCommitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchCommitRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchCommitRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchCommitRequest.Merge(m, src)
- }
- func (m *BranchCommitRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchCommitRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchCommitRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchCommitRequest proto.InternalMessageInfo
-
- func (m *BranchCommitRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchCommitRequest) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *BranchCommitRequest) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *BranchCommitRequest) GetLockKey() string {
- if m != nil {
- return m.LockKey
- }
- return ""
- }
-
- func (m *BranchCommitRequest) GetBranchType() BranchSession_BranchType {
- if m != nil {
- return m.BranchType
- }
- return AT
- }
-
- func (m *BranchCommitRequest) GetApplicationData() []byte {
- if m != nil {
- return m.ApplicationData
- }
- return nil
- }
-
- // BranchCommitResponse represents a response to BranchCommitRequest
- type BranchCommitResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- XID string `protobuf:"bytes,4,opt,name=XID,proto3" json:"XID,omitempty"`
- BranchID int64 `protobuf:"varint,5,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
- BranchStatus BranchSession_BranchStatus `protobuf:"varint,6,opt,name=BranchStatus,proto3,enum=apis.BranchSession_BranchStatus" json:"BranchStatus,omitempty"`
- }
-
- func (m *BranchCommitResponse) Reset() { *m = BranchCommitResponse{} }
- func (*BranchCommitResponse) ProtoMessage() {}
- func (*BranchCommitResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{20}
- }
- func (m *BranchCommitResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchCommitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchCommitResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchCommitResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchCommitResponse.Merge(m, src)
- }
- func (m *BranchCommitResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchCommitResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchCommitResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchCommitResponse proto.InternalMessageInfo
-
- func (m *BranchCommitResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *BranchCommitResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *BranchCommitResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *BranchCommitResponse) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchCommitResponse) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *BranchCommitResponse) GetBranchStatus() BranchSession_BranchStatus {
- if m != nil {
- return m.BranchStatus
- }
- return UnknownBranchStatus
- }
-
- // BranchCommitRequest represents a request to rollback branch transaction
- type BranchRollbackRequest struct {
- XID string `protobuf:"bytes,1,opt,name=XID,proto3" json:"XID,omitempty"`
- BranchID int64 `protobuf:"varint,2,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
- ResourceID string `protobuf:"bytes,3,opt,name=ResourceID,proto3" json:"ResourceID,omitempty"`
- LockKey string `protobuf:"bytes,4,opt,name=LockKey,proto3" json:"LockKey,omitempty"`
- BranchType BranchSession_BranchType `protobuf:"varint,5,opt,name=BranchType,proto3,enum=apis.BranchSession_BranchType" json:"BranchType,omitempty"`
- ApplicationData []byte `protobuf:"bytes,6,opt,name=ApplicationData,proto3" json:"ApplicationData,omitempty"`
- }
-
- func (m *BranchRollbackRequest) Reset() { *m = BranchRollbackRequest{} }
- func (*BranchRollbackRequest) ProtoMessage() {}
- func (*BranchRollbackRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{21}
- }
- func (m *BranchRollbackRequest) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchRollbackRequest.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchRollbackRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchRollbackRequest.Merge(m, src)
- }
- func (m *BranchRollbackRequest) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchRollbackRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchRollbackRequest.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchRollbackRequest proto.InternalMessageInfo
-
- func (m *BranchRollbackRequest) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchRollbackRequest) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *BranchRollbackRequest) GetResourceID() string {
- if m != nil {
- return m.ResourceID
- }
- return ""
- }
-
- func (m *BranchRollbackRequest) GetLockKey() string {
- if m != nil {
- return m.LockKey
- }
- return ""
- }
-
- func (m *BranchRollbackRequest) GetBranchType() BranchSession_BranchType {
- if m != nil {
- return m.BranchType
- }
- return AT
- }
-
- func (m *BranchRollbackRequest) GetApplicationData() []byte {
- if m != nil {
- return m.ApplicationData
- }
- return nil
- }
-
- // BranchRollbackResponse represents a response to BranchRollbackRequest
- type BranchRollbackResponse struct {
- ResultCode ResultCode `protobuf:"varint,1,opt,name=ResultCode,proto3,enum=apis.ResultCode" json:"ResultCode,omitempty"`
- ExceptionCode ExceptionCode `protobuf:"varint,2,opt,name=ExceptionCode,proto3,enum=apis.ExceptionCode" json:"ExceptionCode,omitempty"`
- Message string `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- XID string `protobuf:"bytes,4,opt,name=XID,proto3" json:"XID,omitempty"`
- BranchID int64 `protobuf:"varint,5,opt,name=BranchID,proto3" json:"BranchID,omitempty"`
- BranchStatus BranchSession_BranchStatus `protobuf:"varint,6,opt,name=BranchStatus,proto3,enum=apis.BranchSession_BranchStatus" json:"BranchStatus,omitempty"`
- }
-
- func (m *BranchRollbackResponse) Reset() { *m = BranchRollbackResponse{} }
- func (*BranchRollbackResponse) ProtoMessage() {}
- func (*BranchRollbackResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{22}
- }
- func (m *BranchRollbackResponse) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchRollbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchRollbackResponse.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchRollbackResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchRollbackResponse.Merge(m, src)
- }
- func (m *BranchRollbackResponse) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchRollbackResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchRollbackResponse.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchRollbackResponse proto.InternalMessageInfo
-
- func (m *BranchRollbackResponse) GetResultCode() ResultCode {
- if m != nil {
- return m.ResultCode
- }
- return ResultCodeFailed
- }
-
- func (m *BranchRollbackResponse) GetExceptionCode() ExceptionCode {
- if m != nil {
- return m.ExceptionCode
- }
- return UnknownErr
- }
-
- func (m *BranchRollbackResponse) GetMessage() string {
- if m != nil {
- return m.Message
- }
- return ""
- }
-
- func (m *BranchRollbackResponse) GetXID() string {
- if m != nil {
- return m.XID
- }
- return ""
- }
-
- func (m *BranchRollbackResponse) GetBranchID() int64 {
- if m != nil {
- return m.BranchID
- }
- return 0
- }
-
- func (m *BranchRollbackResponse) GetBranchStatus() BranchSession_BranchStatus {
- if m != nil {
- return m.BranchStatus
- }
- return UnknownBranchStatus
- }
-
- type BranchMessage struct {
- ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
- BranchMessageType BranchMessageType `protobuf:"varint,2,opt,name=BranchMessageType,proto3,enum=apis.BranchMessageType" json:"BranchMessageType,omitempty"`
- Message *types.Any `protobuf:"bytes,3,opt,name=Message,proto3" json:"Message,omitempty"`
- }
-
- func (m *BranchMessage) Reset() { *m = BranchMessage{} }
- func (*BranchMessage) ProtoMessage() {}
- func (*BranchMessage) Descriptor() ([]byte, []int) {
- return fileDescriptor_450a439f8893981f, []int{23}
- }
- func (m *BranchMessage) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
- }
- func (m *BranchMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_BranchMessage.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalToSizedBuffer(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
- }
- func (m *BranchMessage) XXX_Merge(src proto.Message) {
- xxx_messageInfo_BranchMessage.Merge(m, src)
- }
- func (m *BranchMessage) XXX_Size() int {
- return m.Size()
- }
- func (m *BranchMessage) XXX_DiscardUnknown() {
- xxx_messageInfo_BranchMessage.DiscardUnknown(m)
- }
-
- var xxx_messageInfo_BranchMessage proto.InternalMessageInfo
-
- func (m *BranchMessage) GetID() int64 {
- if m != nil {
- return m.ID
- }
- return 0
- }
-
- func (m *BranchMessage) GetBranchMessageType() BranchMessageType {
- if m != nil {
- return m.BranchMessageType
- }
- return TypeBranchCommit
- }
-
- func (m *BranchMessage) GetMessage() *types.Any {
- if m != nil {
- return m.Message
- }
- return nil
- }
-
- func init() {
- proto.RegisterEnum("apis.ResultCode", ResultCode_name, ResultCode_value)
- proto.RegisterEnum("apis.ExceptionCode", ExceptionCode_name, ExceptionCode_value)
- proto.RegisterEnum("apis.BranchMessageType", BranchMessageType_name, BranchMessageType_value)
- proto.RegisterEnum("apis.GlobalSession_GlobalStatus", GlobalSession_GlobalStatus_name, GlobalSession_GlobalStatus_value)
- proto.RegisterEnum("apis.BranchSession_BranchType", BranchSession_BranchType_name, BranchSession_BranchType_value)
- proto.RegisterEnum("apis.BranchSession_BranchStatus", BranchSession_BranchStatus_name, BranchSession_BranchStatus_value)
- proto.RegisterType((*GlobalSession)(nil), "apis.GlobalSession")
- proto.RegisterType((*BranchSession)(nil), "apis.BranchSession")
- proto.RegisterType((*RowLock)(nil), "apis.RowLock")
- proto.RegisterType((*GlobalBeginRequest)(nil), "apis.GlobalBeginRequest")
- proto.RegisterType((*GlobalBeginResponse)(nil), "apis.GlobalBeginResponse")
- proto.RegisterType((*BranchRegisterRequest)(nil), "apis.BranchRegisterRequest")
- proto.RegisterType((*BranchRegisterResponse)(nil), "apis.BranchRegisterResponse")
- proto.RegisterType((*BranchReportRequest)(nil), "apis.BranchReportRequest")
- proto.RegisterType((*BranchReportResponse)(nil), "apis.BranchReportResponse")
- proto.RegisterType((*GlobalLockQueryRequest)(nil), "apis.GlobalLockQueryRequest")
- proto.RegisterType((*GlobalLockQueryResponse)(nil), "apis.GlobalLockQueryResponse")
- proto.RegisterType((*GlobalStatusRequest)(nil), "apis.GlobalStatusRequest")
- proto.RegisterType((*GlobalStatusResponse)(nil), "apis.GlobalStatusResponse")
- proto.RegisterType((*GlobalCommitRequest)(nil), "apis.GlobalCommitRequest")
- proto.RegisterType((*GlobalCommitResponse)(nil), "apis.GlobalCommitResponse")
- proto.RegisterType((*GlobalRollbackRequest)(nil), "apis.GlobalRollbackRequest")
- proto.RegisterType((*GlobalRollbackResponse)(nil), "apis.GlobalRollbackResponse")
- proto.RegisterType((*GlobalReportRequest)(nil), "apis.GlobalReportRequest")
- proto.RegisterType((*GlobalReportResponse)(nil), "apis.GlobalReportResponse")
- proto.RegisterType((*BranchCommitRequest)(nil), "apis.BranchCommitRequest")
- proto.RegisterType((*BranchCommitResponse)(nil), "apis.BranchCommitResponse")
- proto.RegisterType((*BranchRollbackRequest)(nil), "apis.BranchRollbackRequest")
- proto.RegisterType((*BranchRollbackResponse)(nil), "apis.BranchRollbackResponse")
- proto.RegisterType((*BranchMessage)(nil), "apis.BranchMessage")
- }
-
- func init() { proto.RegisterFile("seata.proto", fileDescriptor_450a439f8893981f) }
-
- var fileDescriptor_450a439f8893981f = []byte{
- // 1943 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0x4f, 0x6f, 0x23, 0x49,
- 0x15, 0x77, 0xb7, 0xff, 0xbf, 0xc4, 0x76, 0xa5, 0x3c, 0x49, 0x1c, 0xcf, 0xa6, 0xed, 0xe9, 0xd5,
- 0x0a, 0xef, 0x88, 0xcd, 0x8c, 0x32, 0x80, 0x34, 0x08, 0xb1, 0xb2, 0x93, 0xec, 0x10, 0xc2, 0xee,
- 0x0e, 0x9d, 0xac, 0xd8, 0x5b, 0xd4, 0xb1, 0x6b, 0x9d, 0x56, 0x9c, 0x6e, 0xd3, 0xdd, 0x9e, 0xc4,
- 0xe2, 0xc2, 0x37, 0x58, 0xd0, 0x4a, 0x1c, 0x90, 0xb8, 0x71, 0xe0, 0xc4, 0x8d, 0x03, 0x82, 0x33,
- 0xe2, 0xc0, 0x61, 0x4e, 0x68, 0x4f, 0x16, 0x93, 0x11, 0x02, 0x24, 0x0e, 0x2b, 0x7f, 0x02, 0x54,
- 0x7f, 0xda, 0x5d, 0x65, 0x3b, 0xeb, 0xc9, 0x02, 0x22, 0xec, 0xcd, 0xf5, 0xde, 0xaf, 0x5e, 0x55,
- 0xbf, 0xf7, 0x7e, 0xef, 0x55, 0x95, 0x61, 0x29, 0x20, 0x76, 0x68, 0x6f, 0xf5, 0x7d, 0x2f, 0xf4,
- 0x70, 0xca, 0xee, 0x3b, 0x41, 0xf5, 0xad, 0xae, 0x13, 0x9e, 0x0e, 0x4e, 0xb6, 0xda, 0xde, 0xf9,
- 0x83, 0xae, 0xd7, 0xf5, 0x1e, 0x30, 0xe5, 0xc9, 0xe0, 0x23, 0x36, 0x62, 0x03, 0xf6, 0x8b, 0x4f,
- 0xaa, 0x6e, 0x74, 0x3d, 0xaf, 0xdb, 0x23, 0x31, 0xca, 0x76, 0x87, 0x5c, 0x65, 0xfe, 0x3c, 0x03,
- 0x85, 0x27, 0x3d, 0xef, 0xc4, 0xee, 0x1d, 0x92, 0x20, 0x70, 0x3c, 0x17, 0x7f, 0x1d, 0xa0, 0xd9,
- 0xe9, 0xf8, 0x74, 0xe4, 0x76, 0x2b, 0x5a, 0x5d, 0x6b, 0xe4, 0x5b, 0xab, 0xe3, 0x51, 0x6d, 0xe5,
- 0xd2, 0xf3, 0xcf, 0xbf, 0x69, 0xda, 0x13, 0x9d, 0x69, 0x49, 0x40, 0x5c, 0x87, 0xe4, 0x87, 0xfb,
- 0xbb, 0x15, 0x9d, 0xe1, 0x8b, 0xe3, 0x51, 0x0d, 0x38, 0xfe, 0xd2, 0xe9, 0x98, 0x16, 0x55, 0xe1,
- 0xb7, 0xa1, 0x70, 0xe4, 0xdb, 0x6e, 0x60, 0xb7, 0x43, 0xc7, 0x73, 0xf7, 0x77, 0x2b, 0xc9, 0xba,
- 0xd6, 0x48, 0xb6, 0x36, 0xc6, 0xa3, 0xda, 0x2a, 0xc7, 0x86, 0xb1, 0xfa, 0x98, 0x4e, 0x53, 0xf1,
- 0x78, 0x0f, 0x4a, 0x92, 0xe0, 0x3d, 0xfb, 0x9c, 0x54, 0x52, 0x6c, 0xb9, 0xbb, 0xe3, 0x51, 0x6d,
- 0x7d, 0xd6, 0x84, 0x6b, 0x9f, 0x13, 0xd3, 0x9a, 0x9e, 0x83, 0xbf, 0x0a, 0xd9, 0x23, 0xe7, 0x9c,
- 0x78, 0x83, 0xb0, 0x92, 0xae, 0x6b, 0x8d, 0x74, 0x0b, 0x8f, 0x47, 0xb5, 0xa2, 0x98, 0xce, 0x15,
- 0xa6, 0x15, 0x41, 0xf0, 0x23, 0xc8, 0xb7, 0x48, 0xd7, 0x71, 0xe9, 0xb8, 0x92, 0x61, 0x3b, 0x96,
- 0xbc, 0x71, 0x42, 0x55, 0xc7, 0x74, 0x96, 0x69, 0xc5, 0x38, 0x7c, 0x00, 0x99, 0xc3, 0xd0, 0x0e,
- 0x07, 0x41, 0x25, 0x5b, 0xd7, 0x1a, 0xc5, 0xed, 0xfa, 0x16, 0x0d, 0xdb, 0x96, 0xe2, 0xe8, 0x68,
- 0xc4, 0x70, 0xad, 0x95, 0xf1, 0xa8, 0x56, 0xe0, 0x36, 0x03, 0x26, 0x31, 0x2d, 0x61, 0x02, 0xbf,
- 0x09, 0x99, 0x66, 0x3b, 0x74, 0x9e, 0x91, 0x4a, 0xae, 0xae, 0x35, 0x72, 0x32, 0xd4, 0x66, 0x72,
- 0xd3, 0x12, 0x00, 0xf3, 0x4f, 0x3a, 0x2c, 0xcb, 0x66, 0xf1, 0x3a, 0x94, 0x3f, 0x70, 0xcf, 0x5c,
- 0xef, 0xc2, 0x95, 0xc5, 0x28, 0x81, 0xf3, 0x90, 0x66, 0xdb, 0x45, 0x1a, 0x2e, 0x02, 0xec, 0x78,
- 0xe7, 0xe7, 0x4e, 0x18, 0x3a, 0x6e, 0x17, 0xe9, 0x18, 0x43, 0x91, 0x8f, 0x2d, 0x12, 0xfa, 0x43,
- 0x2a, 0x4b, 0xe2, 0x12, 0x2c, 0x59, 0x5e, 0xaf, 0xe7, 0xb8, 0xdd, 0x96, 0xdd, 0x3e, 0x43, 0x29,
- 0x7c, 0x07, 0x10, 0x15, 0x9c, 0xd8, 0xed, 0xb3, 0x09, 0x2c, 0x8d, 0xd7, 0x00, 0x0b, 0xbf, 0xc9,
- 0xe8, 0x0c, 0xbe, 0x0b, 0xeb, 0x92, 0x5c, 0x99, 0x94, 0xc5, 0x65, 0x28, 0x35, 0x83, 0xa1, 0xdb,
- 0x96, 0x36, 0x91, 0xc3, 0x05, 0xc8, 0x8b, 0x31, 0xe9, 0xa0, 0x3c, 0x46, 0xb0, 0xcc, 0x87, 0xef,
- 0xd8, 0x4e, 0x8f, 0x74, 0x10, 0xd0, 0x5d, 0x53, 0x5b, 0xa4, 0xc3, 0x96, 0x58, 0xa2, 0xbb, 0x8e,
- 0x6c, 0x0b, 0xcc, 0x32, 0x5e, 0x85, 0x15, 0x69, 0x59, 0x01, 0x2d, 0xe0, 0x0d, 0x58, 0x9d, 0xda,
- 0x8d, 0x98, 0x51, 0xc4, 0xcb, 0x90, 0x7b, 0xc7, 0x71, 0x9d, 0xe0, 0x94, 0x74, 0x50, 0xc9, 0xfc,
- 0x43, 0x16, 0x0a, 0x2d, 0xdf, 0x76, 0xdb, 0xa7, 0xff, 0x75, 0x72, 0x3c, 0x84, 0x1c, 0x5f, 0x69,
- 0xc2, 0x8b, 0x3b, 0xe3, 0x51, 0x0d, 0x89, 0x2c, 0x63, 0x1a, 0x46, 0x89, 0x09, 0x6a, 0x96, 0x4e,
- 0xa9, 0x1b, 0xd2, 0xe9, 0x1b, 0x00, 0x16, 0x09, 0xbc, 0x81, 0xdf, 0x26, 0xfb, 0xbb, 0x8c, 0x0a,
- 0xf9, 0xd6, 0xda, 0x78, 0x54, 0xc3, 0x7c, 0xb6, 0x2f, 0x74, 0x6c, 0xaa, 0x84, 0xc4, 0x6f, 0x41,
- 0xf6, 0x7b, 0x5e, 0xfb, 0xec, 0x80, 0x0c, 0x19, 0x1f, 0xf2, 0xad, 0xf2, 0x78, 0x54, 0x2b, 0xf1,
- 0x49, 0x3d, 0xaf, 0x7d, 0x76, 0x7c, 0x46, 0x86, 0xa6, 0x15, 0x61, 0xf0, 0x77, 0x21, 0x75, 0x34,
- 0xec, 0x13, 0xc1, 0x04, 0x83, 0x33, 0x41, 0xf1, 0xaa, 0x18, 0x51, 0x94, 0xbc, 0x01, 0xf1, 0xd5,
- 0xe1, 0xb0, 0x4f, 0x4c, 0x8b, 0xd9, 0x90, 0x78, 0x95, 0x93, 0x79, 0x35, 0xcf, 0xda, 0x62, 0x5e,
- 0xed, 0x41, 0xa9, 0xd9, 0xef, 0xf7, 0x9c, 0xb6, 0x4d, 0x1d, 0xb2, 0x6b, 0x87, 0x76, 0x25, 0x5f,
- 0xd7, 0x1a, 0xcb, 0x72, 0x39, 0xb1, 0x63, 0xc0, 0x71, 0xc7, 0x0e, 0x6d, 0xd3, 0x9a, 0x9e, 0x83,
- 0x1f, 0xc3, 0x92, 0x94, 0xbe, 0x15, 0x60, 0x1c, 0x5d, 0x1f, 0x8f, 0x6a, 0x65, 0x61, 0x82, 0x2a,
- 0x8f, 0xdb, 0x4c, 0x6b, 0x5a, 0x32, 0xd6, 0x7c, 0x00, 0x10, 0x7f, 0x3a, 0xce, 0x80, 0xde, 0x3c,
- 0x42, 0x09, 0x9c, 0x85, 0xe4, 0xd1, 0xce, 0x0e, 0xd2, 0x70, 0x0e, 0x52, 0x87, 0xcd, 0x27, 0x4d,
- 0xa4, 0x53, 0xd5, 0x87, 0x4d, 0x94, 0x34, 0x7f, 0xa3, 0xc3, 0xb2, 0xfc, 0x79, 0x12, 0xbf, 0x65,
- 0x31, 0x4a, 0x30, 0x7a, 0x90, 0xae, 0x13, 0x84, 0xc4, 0x27, 0x1d, 0xa4, 0x51, 0x02, 0x3d, 0x3d,
- 0xb5, 0x03, 0xf2, 0xbe, 0x4b, 0x76, 0x3d, 0x97, 0x70, 0x9a, 0x47, 0x12, 0x91, 0xfe, 0x49, 0x4a,
- 0xc5, 0x48, 0x26, 0x18, 0x82, 0x52, 0x94, 0x45, 0x4c, 0x78, 0x74, 0xe1, 0xc5, 0x94, 0x4c, 0xe3,
- 0x7b, 0xb0, 0xa9, 0x8a, 0xb9, 0x15, 0x46, 0x6c, 0xfb, 0xa4, 0x47, 0x50, 0x06, 0xbf, 0x0e, 0xb5,
- 0x79, 0x90, 0x1d, 0xdb, 0x7d, 0xcf, 0xe3, 0xd5, 0x05, 0x65, 0x69, 0xcd, 0x88, 0x40, 0x12, 0x4b,
- 0x73, 0xf2, 0x64, 0x95, 0xa6, 0xf1, 0x0a, 0x79, 0xfc, 0x06, 0xdc, 0x9b, 0x0f, 0x92, 0xd7, 0x00,
- 0xf3, 0xcf, 0x3a, 0x64, 0x2d, 0xef, 0x82, 0xa6, 0x64, 0xc4, 0x45, 0xed, 0x06, 0x8d, 0x4a, 0xbf,
- 0x21, 0xb3, 0x6e, 0x4e, 0x66, 0x95, 0x8b, 0xa9, 0x57, 0xe6, 0xe2, 0x23, 0xc8, 0x1f, 0x51, 0x57,
- 0xb0, 0x66, 0x98, 0x9e, 0x2e, 0x47, 0x21, 0x55, 0x89, 0x36, 0x18, 0xe3, 0xf0, 0x26, 0xe8, 0x4f,
- 0x0f, 0x04, 0x77, 0x0b, 0xe3, 0x51, 0x2d, 0xcf, 0xd1, 0xfd, 0x33, 0xd3, 0xd2, 0x9f, 0x1e, 0xe0,
- 0xfb, 0x90, 0xb1, 0xbc, 0x0b, 0x4a, 0xef, 0x2c, 0x83, 0x48, 0xed, 0xd1, 0xf7, 0x2e, 0x38, 0xbb,
- 0x05, 0xc2, 0xbc, 0x04, 0xcc, 0x1b, 0x0b, 0x6b, 0x26, 0x16, 0xf9, 0xe1, 0x80, 0x04, 0x21, 0x36,
- 0x66, 0xab, 0xa4, 0x52, 0x0e, 0x2b, 0x71, 0x07, 0xa6, 0xae, 0x4d, 0xc7, 0xdd, 0xb6, 0x31, 0xdb,
- 0xe2, 0x93, 0x6c, 0xfa, 0xb4, 0xd8, 0xfc, 0xb5, 0x06, 0x65, 0x65, 0xe9, 0xa0, 0xef, 0xb9, 0x01,
- 0xc1, 0x0f, 0x99, 0x27, 0x07, 0xbd, 0x70, 0xc7, 0xeb, 0x10, 0xb6, 0x76, 0x71, 0x1b, 0xf1, 0x32,
- 0x11, 0xcb, 0x2d, 0x09, 0x83, 0x1f, 0x43, 0x61, 0xef, 0xb2, 0x4d, 0xfa, 0xd4, 0x34, 0x9b, 0xa4,
- 0xb3, 0x49, 0x65, 0x3e, 0x49, 0x51, 0x59, 0x2a, 0x92, 0x7e, 0xc8, 0xbb, 0x24, 0x08, 0xec, 0x6e,
- 0xb4, 0xcd, 0x68, 0x88, 0x11, 0xcf, 0x32, 0x16, 0x49, 0x96, 0x55, 0xe6, 0xc7, 0x3a, 0xac, 0xf2,
- 0x78, 0x47, 0xc4, 0x7c, 0x55, 0x77, 0x21, 0xa9, 0x7b, 0xf0, 0x0c, 0x35, 0x94, 0x74, 0xe1, 0x4b,
- 0xcb, 0x69, 0x51, 0x89, 0x4b, 0x34, 0xdf, 0xc1, 0xa4, 0x1a, 0x7f, 0x5b, 0x2e, 0x39, 0x2c, 0x63,
- 0x16, 0xd6, 0x64, 0x4b, 0x2e, 0x52, 0x8d, 0xd9, 0xa2, 0x49, 0x13, 0x69, 0x79, 0xb6, 0x2e, 0xd6,
- 0xd5, 0xba, 0x48, 0x73, 0x29, 0xa7, 0x96, 0xbf, 0xdf, 0x69, 0xb0, 0x36, 0xed, 0x91, 0xdb, 0x15,
- 0xc5, 0xaa, 0x44, 0x64, 0xd6, 0x5e, 0x63, 0xca, 0x9a, 0x9f, 0xe8, 0x50, 0x8e, 0x76, 0xdf, 0xf7,
- 0xfc, 0x30, 0x8a, 0x26, 0x92, 0xea, 0x0b, 0x8f, 0x96, 0x6c, 0x45, 0x57, 0xad, 0x2c, 0x8c, 0xa4,
- 0x1a, 0xaf, 0xd4, 0x8d, 0xe3, 0xb5, 0xab, 0x36, 0x0c, 0x11, 0xf1, 0x85, 0x7d, 0xd3, 0x52, 0xdb,
- 0xcc, 0x2b, 0x47, 0xdd, 0xfc, 0x85, 0x06, 0x77, 0x54, 0xaf, 0xdc, 0xaa, 0x88, 0x9a, 0xbf, 0xd4,
- 0x60, 0x8d, 0x97, 0x0d, 0xca, 0x88, 0xef, 0x0f, 0x88, 0x3f, 0xbc, 0x3e, 0x70, 0x6a, 0x70, 0xf4,
- 0xcf, 0xa3, 0x59, 0xf2, 0xf3, 0x68, 0x76, 0xe3, 0xb0, 0x99, 0xbf, 0xd7, 0x60, 0x7d, 0x66, 0x9b,
- 0xb7, 0x8e, 0x1b, 0x74, 0x6f, 0xb4, 0xab, 0xb0, 0x0f, 0xcc, 0x59, 0x93, 0xb1, 0xf9, 0x95, 0xa8,
- 0x36, 0x8b, 0x6c, 0xba, 0xce, 0xc3, 0xe6, 0x4b, 0x0d, 0xee, 0xa8, 0xc8, 0xdb, 0xf5, 0x91, 0xbb,
- 0xea, 0x7d, 0x4a, 0x44, 0x72, 0xe1, 0x75, 0xce, 0x52, 0x66, 0xc5, 0xee, 0x88, 0xee, 0x55, 0x8b,
- 0xdd, 0x11, 0x21, 0xbf, 0x8c, 0xee, 0x78, 0x13, 0x56, 0xf9, 0x38, 0xbe, 0x0c, 0x5e, 0xe7, 0x90,
- 0xbf, 0x4e, 0xe8, 0x1a, 0x63, 0xbf, 0x8c, 0x2e, 0x39, 0x8f, 0x32, 0x64, 0x51, 0x2f, 0x99, 0x5e,
- 0x4e, 0xff, 0x42, 0xcb, 0xc5, 0x79, 0x76, 0x2b, 0xab, 0xf4, 0x7f, 0xc8, 0xa9, 0x7f, 0xd3, 0xa2,
- 0x0e, 0xbd, 0x80, 0x77, 0xff, 0x56, 0x87, 0xbe, 0x05, 0x67, 0x2d, 0xf3, 0xa7, 0x7a, 0xd4, 0x75,
- 0x6f, 0x67, 0xdd, 0x98, 0x39, 0x0d, 0x2b, 0x1e, 0x4f, 0x4f, 0x79, 0x7c, 0xfa, 0xcc, 0x92, 0xf9,
- 0x22, 0x67, 0x16, 0xf3, 0x1f, 0xda, 0xe4, 0xbc, 0xbd, 0xa8, 0xcc, 0xfc, 0xdf, 0xc7, 0xff, 0x13,
- 0x7d, 0x72, 0x92, 0xbe, 0xa5, 0x65, 0xf2, 0x7f, 0x91, 0x01, 0x3f, 0xd3, 0xa2, 0xe7, 0xbb, 0x68,
- 0x17, 0x45, 0xd0, 0x45, 0xe0, 0x93, 0x96, 0xce, 0x5e, 0x94, 0x57, 0x14, 0x00, 0x0b, 0x14, 0xff,
- 0xdc, 0x75, 0x79, 0x31, 0x49, 0x6d, 0xcd, 0xce, 0xc0, 0x5b, 0xea, 0x67, 0x2f, 0x6d, 0xdf, 0xd9,
- 0xe2, 0x2f, 0xee, 0x5b, 0xd1, 0x8b, 0xfb, 0x56, 0xd3, 0x1d, 0x4e, 0x9c, 0x71, 0xff, 0xb1, 0x1c,
- 0x13, 0xf6, 0x94, 0x3a, 0x19, 0x89, 0xa7, 0x98, 0x04, 0x5e, 0x85, 0x95, 0x58, 0x7a, 0x38, 0x68,
- 0xb7, 0x49, 0x10, 0x20, 0xed, 0xfe, 0xc7, 0xa9, 0xa9, 0xe8, 0xe0, 0x22, 0x80, 0x78, 0x02, 0xda,
- 0xf3, 0x7d, 0x94, 0xc0, 0x25, 0x58, 0x62, 0x37, 0x62, 0x61, 0x49, 0xc3, 0x65, 0x28, 0x89, 0x8c,
- 0xdc, 0xf1, 0xdc, 0x8f, 0x7a, 0x4e, 0x3b, 0xe4, 0x2f, 0x4a, 0xfb, 0xef, 0xa3, 0x24, 0xbe, 0x07,
- 0x9b, 0x6a, 0xe2, 0x4c, 0xbf, 0xb1, 0xa4, 0xf0, 0xeb, 0x50, 0x9b, 0x07, 0xf9, 0xc0, 0xf5, 0x27,
- 0xa0, 0x34, 0xae, 0xc4, 0xc7, 0x7e, 0x7e, 0x95, 0x13, 0xcb, 0x67, 0xf0, 0x1a, 0x60, 0xf9, 0x42,
- 0x20, 0xe4, 0x59, 0xbc, 0x0e, 0xe5, 0xe8, 0xbc, 0xb8, 0x73, 0x4a, 0x26, 0x6f, 0xb0, 0x39, 0xbc,
- 0x09, 0x1b, 0x82, 0x04, 0xd2, 0x95, 0xdf, 0x0b, 0xf7, 0x2e, 0x9d, 0x20, 0x44, 0x79, 0xaa, 0xe6,
- 0x55, 0x7e, 0x9e, 0x1a, 0xb0, 0x01, 0xd5, 0x79, 0x6a, 0xfe, 0x40, 0x8e, 0x96, 0xb0, 0x09, 0xc6,
- 0x8c, 0x9e, 0xe7, 0xcb, 0xbe, 0xfb, 0xcc, 0xee, 0x39, 0x1d, 0xb4, 0x4c, 0xbf, 0x98, 0xef, 0xe6,
- 0xc8, 0x3b, 0x24, 0x6e, 0x67, 0x4e, 0x0f, 0x41, 0x05, 0xfc, 0x06, 0xdc, 0x9b, 0x05, 0x4d, 0x95,
- 0x1a, 0x54, 0xa4, 0x71, 0x8c, 0x60, 0xcd, 0x8e, 0x40, 0xa1, 0x12, 0xae, 0xc1, 0x5d, 0x2e, 0xa6,
- 0x3e, 0x98, 0xd9, 0x10, 0x42, 0xd4, 0x6d, 0x1c, 0xf0, 0x03, 0xdf, 0x09, 0x89, 0xc8, 0x76, 0xb4,
- 0x42, 0xc3, 0xcb, 0xe5, 0x87, 0xa1, 0xe7, 0x13, 0x84, 0xef, 0xff, 0x68, 0x4e, 0x0e, 0xd3, 0x9c,
- 0x62, 0xcf, 0xa9, 0xd2, 0xce, 0x51, 0x02, 0x57, 0x61, 0x6d, 0x5a, 0xca, 0x73, 0x0c, 0x69, 0xec,
- 0xe9, 0x7e, 0xa2, 0x8b, 0x3e, 0x03, 0xe9, 0xf8, 0x35, 0xa8, 0xa8, 0xf2, 0x16, 0xaf, 0x2e, 0x74,
- 0x56, 0x72, 0xfb, 0x9f, 0x3a, 0x6c, 0x48, 0xfb, 0x7e, 0xd7, 0x76, 0xed, 0x2e, 0xf1, 0x0f, 0x89,
- 0xff, 0xcc, 0x69, 0x13, 0xfc, 0x2d, 0xf1, 0x27, 0x03, 0xae, 0xc8, 0x9d, 0x5b, 0x7e, 0x2a, 0xaa,
- 0x6e, 0xcc, 0xd1, 0x88, 0xca, 0xd5, 0x82, 0xfc, 0x13, 0x12, 0x8a, 0x1b, 0xa8, 0x82, 0x53, 0x6e,
- 0x15, 0xd5, 0xea, 0x3c, 0x95, 0xb0, 0xb1, 0x17, 0x1d, 0x24, 0x78, 0xf2, 0xa9, 0x66, 0x94, 0xb3,
- 0x96, 0x6a, 0x66, 0xea, 0x58, 0xf4, 0x36, 0x64, 0xb8, 0xbb, 0x54, 0x03, 0x4a, 0x4a, 0xa8, 0x06,
- 0xa6, 0xfa, 0xf0, 0x1e, 0xe4, 0x22, 0x9f, 0xe2, 0xbb, 0xca, 0x42, 0x6a, 0xc2, 0x54, 0x5f, 0x9b,
- 0xaf, 0xe4, 0x66, 0xb6, 0x7f, 0xab, 0xc3, 0x5a, 0xd4, 0x7a, 0xa6, 0x7c, 0xdd, 0x8c, 0xd2, 0x80,
- 0xae, 0x3c, 0x70, 0x69, 0x77, 0x20, 0xb8, 0x3c, 0xa7, 0x88, 0x55, 0xe7, 0x09, 0x1b, 0xda, 0x43,
- 0x0d, 0x1f, 0x40, 0x51, 0xe5, 0x70, 0xb4, 0xd5, 0xb9, 0xcf, 0x56, 0xd1, 0x56, 0xaf, 0x79, 0xc1,
- 0xd9, 0x8b, 0x4a, 0xb8, 0xea, 0xf9, 0x39, 0x2f, 0x26, 0x91, 0xe3, 0xe6, 0x3e, 0x1b, 0x7c, 0x07,
- 0xf2, 0x93, 0x1b, 0x30, 0x56, 0x9c, 0x33, 0x7d, 0x7f, 0xaf, 0x6e, 0x5e, 0xa3, 0xe5, 0x96, 0x5a,
- 0x5f, 0x7b, 0xfe, 0xc2, 0x48, 0x7c, 0xfa, 0xc2, 0x48, 0x7c, 0xf6, 0xc2, 0xd0, 0x7e, 0x7c, 0x65,
- 0x68, 0xbf, 0xba, 0x32, 0xb4, 0x3f, 0x5e, 0x19, 0xda, 0xf3, 0x2b, 0x43, 0xfb, 0xcb, 0x95, 0xa1,
- 0xfd, 0xfd, 0xca, 0x48, 0x7c, 0x76, 0x65, 0x68, 0x3f, 0x79, 0x69, 0x24, 0x9e, 0xbf, 0x34, 0x12,
- 0x9f, 0xbe, 0x34, 0x12, 0x27, 0x19, 0x56, 0xc1, 0x1f, 0xfd, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x29,
- 0x5b, 0x99, 0x9e, 0x85, 0x1d, 0x00, 0x00,
- }
-
- func (x ResultCode) String() string {
- s, ok := ResultCode_name[int32(x)]
- if ok {
- return s
- }
- return strconv.Itoa(int(x))
- }
- func (x ExceptionCode) String() string {
- s, ok := ExceptionCode_name[int32(x)]
- if ok {
- return s
- }
- return strconv.Itoa(int(x))
- }
- func (x BranchMessageType) String() string {
- s, ok := BranchMessageType_name[int32(x)]
- if ok {
- return s
- }
- return strconv.Itoa(int(x))
- }
- func (x GlobalSession_GlobalStatus) String() string {
- s, ok := GlobalSession_GlobalStatus_name[int32(x)]
- if ok {
- return s
- }
- return strconv.Itoa(int(x))
- }
- func (x BranchSession_BranchType) String() string {
- s, ok := BranchSession_BranchType_name[int32(x)]
- if ok {
- return s
- }
- return strconv.Itoa(int(x))
- }
- func (x BranchSession_BranchStatus) String() string {
- s, ok := BranchSession_BranchStatus_name[int32(x)]
- if ok {
- return s
- }
- return strconv.Itoa(int(x))
- }
- func (this *GlobalSession) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalSession)
- if !ok {
- that2, ok := that.(GlobalSession)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.Addressing != that1.Addressing {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.TransactionID != that1.TransactionID {
- return false
- }
- if this.TransactionName != that1.TransactionName {
- return false
- }
- if this.Timeout != that1.Timeout {
- return false
- }
- if this.BeginTime != that1.BeginTime {
- return false
- }
- if this.Status != that1.Status {
- return false
- }
- if this.Active != that1.Active {
- return false
- }
- return true
- }
- func (this *BranchSession) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchSession)
- if !ok {
- that2, ok := that.(BranchSession)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.Addressing != that1.Addressing {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.TransactionID != that1.TransactionID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.LockKey != that1.LockKey {
- return false
- }
- if this.Type != that1.Type {
- return false
- }
- if this.Status != that1.Status {
- return false
- }
- if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
- return false
- }
- if this.AsyncCommit != that1.AsyncCommit {
- return false
- }
- return true
- }
- func (this *RowLock) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*RowLock)
- if !ok {
- that2, ok := that.(RowLock)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.TransactionID != that1.TransactionID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.TableName != that1.TableName {
- return false
- }
- if this.PK != that1.PK {
- return false
- }
- if this.RowKey != that1.RowKey {
- return false
- }
- return true
- }
- func (this *GlobalBeginRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalBeginRequest)
- if !ok {
- that2, ok := that.(GlobalBeginRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.Addressing != that1.Addressing {
- return false
- }
- if this.Timeout != that1.Timeout {
- return false
- }
- if this.TransactionName != that1.TransactionName {
- return false
- }
- return true
- }
- func (this *GlobalBeginResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalBeginResponse)
- if !ok {
- that2, ok := that.(GlobalBeginResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- return true
- }
- func (this *BranchRegisterRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchRegisterRequest)
- if !ok {
- that2, ok := that.(BranchRegisterRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.Addressing != that1.Addressing {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.LockKey != that1.LockKey {
- return false
- }
- if this.BranchType != that1.BranchType {
- return false
- }
- if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
- return false
- }
- if this.AsyncCommit != that1.AsyncCommit {
- return false
- }
- return true
- }
- func (this *BranchRegisterResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchRegisterResponse)
- if !ok {
- that2, ok := that.(BranchRegisterResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- return true
- }
- func (this *BranchReportRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchReportRequest)
- if !ok {
- that2, ok := that.(BranchReportRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.BranchType != that1.BranchType {
- return false
- }
- if this.BranchStatus != that1.BranchStatus {
- return false
- }
- if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
- return false
- }
- return true
- }
- func (this *BranchReportResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchReportResponse)
- if !ok {
- that2, ok := that.(BranchReportResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- return true
- }
- func (this *GlobalLockQueryRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalLockQueryRequest)
- if !ok {
- that2, ok := that.(GlobalLockQueryRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.LockKey != that1.LockKey {
- return false
- }
- if this.BranchType != that1.BranchType {
- return false
- }
- return true
- }
- func (this *GlobalLockQueryResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalLockQueryResponse)
- if !ok {
- that2, ok := that.(GlobalLockQueryResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.Lockable != that1.Lockable {
- return false
- }
- return true
- }
- func (this *GlobalStatusRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalStatusRequest)
- if !ok {
- that2, ok := that.(GlobalStatusRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- return true
- }
- func (this *GlobalStatusResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalStatusResponse)
- if !ok {
- that2, ok := that.(GlobalStatusResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.GlobalStatus != that1.GlobalStatus {
- return false
- }
- return true
- }
- func (this *GlobalCommitRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalCommitRequest)
- if !ok {
- that2, ok := that.(GlobalCommitRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- return true
- }
- func (this *GlobalCommitResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalCommitResponse)
- if !ok {
- that2, ok := that.(GlobalCommitResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.GlobalStatus != that1.GlobalStatus {
- return false
- }
- return true
- }
- func (this *GlobalRollbackRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalRollbackRequest)
- if !ok {
- that2, ok := that.(GlobalRollbackRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- return true
- }
- func (this *GlobalRollbackResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalRollbackResponse)
- if !ok {
- that2, ok := that.(GlobalRollbackResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.GlobalStatus != that1.GlobalStatus {
- return false
- }
- return true
- }
- func (this *GlobalReportRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalReportRequest)
- if !ok {
- that2, ok := that.(GlobalReportRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.GlobalStatus != that1.GlobalStatus {
- return false
- }
- return true
- }
- func (this *GlobalReportResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*GlobalReportResponse)
- if !ok {
- that2, ok := that.(GlobalReportResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.GlobalStatus != that1.GlobalStatus {
- return false
- }
- return true
- }
- func (this *BranchCommitRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchCommitRequest)
- if !ok {
- that2, ok := that.(BranchCommitRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.LockKey != that1.LockKey {
- return false
- }
- if this.BranchType != that1.BranchType {
- return false
- }
- if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
- return false
- }
- return true
- }
- func (this *BranchCommitResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchCommitResponse)
- if !ok {
- that2, ok := that.(BranchCommitResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.BranchStatus != that1.BranchStatus {
- return false
- }
- return true
- }
- func (this *BranchRollbackRequest) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchRollbackRequest)
- if !ok {
- that2, ok := that.(BranchRollbackRequest)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.ResourceID != that1.ResourceID {
- return false
- }
- if this.LockKey != that1.LockKey {
- return false
- }
- if this.BranchType != that1.BranchType {
- return false
- }
- if !bytes.Equal(this.ApplicationData, that1.ApplicationData) {
- return false
- }
- return true
- }
- func (this *BranchRollbackResponse) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchRollbackResponse)
- if !ok {
- that2, ok := that.(BranchRollbackResponse)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ResultCode != that1.ResultCode {
- return false
- }
- if this.ExceptionCode != that1.ExceptionCode {
- return false
- }
- if this.Message != that1.Message {
- return false
- }
- if this.XID != that1.XID {
- return false
- }
- if this.BranchID != that1.BranchID {
- return false
- }
- if this.BranchStatus != that1.BranchStatus {
- return false
- }
- return true
- }
- func (this *BranchMessage) Equal(that interface{}) bool {
- if that == nil {
- return this == nil
- }
-
- that1, ok := that.(*BranchMessage)
- if !ok {
- that2, ok := that.(BranchMessage)
- if ok {
- that1 = &that2
- } else {
- return false
- }
- }
- if that1 == nil {
- return this == nil
- } else if this == nil {
- return false
- }
- if this.ID != that1.ID {
- return false
- }
- if this.BranchMessageType != that1.BranchMessageType {
- return false
- }
- if !this.Message.Equal(that1.Message) {
- return false
- }
- return true
- }
- func (this *GlobalSession) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 12)
- s = append(s, "&apis.GlobalSession{")
- s = append(s, "Addressing: "+fmt.Sprintf("%#v", this.Addressing)+",\n")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "TransactionID: "+fmt.Sprintf("%#v", this.TransactionID)+",\n")
- s = append(s, "TransactionName: "+fmt.Sprintf("%#v", this.TransactionName)+",\n")
- s = append(s, "Timeout: "+fmt.Sprintf("%#v", this.Timeout)+",\n")
- s = append(s, "BeginTime: "+fmt.Sprintf("%#v", this.BeginTime)+",\n")
- s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n")
- s = append(s, "Active: "+fmt.Sprintf("%#v", this.Active)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchSession) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 14)
- s = append(s, "&apis.BranchSession{")
- s = append(s, "Addressing: "+fmt.Sprintf("%#v", this.Addressing)+",\n")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "TransactionID: "+fmt.Sprintf("%#v", this.TransactionID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
- s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n")
- s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n")
- s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
- s = append(s, "AsyncCommit: "+fmt.Sprintf("%#v", this.AsyncCommit)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *RowLock) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 11)
- s = append(s, "&apis.RowLock{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "TransactionID: "+fmt.Sprintf("%#v", this.TransactionID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "TableName: "+fmt.Sprintf("%#v", this.TableName)+",\n")
- s = append(s, "PK: "+fmt.Sprintf("%#v", this.PK)+",\n")
- s = append(s, "RowKey: "+fmt.Sprintf("%#v", this.RowKey)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalBeginRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 7)
- s = append(s, "&apis.GlobalBeginRequest{")
- s = append(s, "Addressing: "+fmt.Sprintf("%#v", this.Addressing)+",\n")
- s = append(s, "Timeout: "+fmt.Sprintf("%#v", this.Timeout)+",\n")
- s = append(s, "TransactionName: "+fmt.Sprintf("%#v", this.TransactionName)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalBeginResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalBeginResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchRegisterRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 11)
- s = append(s, "&apis.BranchRegisterRequest{")
- s = append(s, "Addressing: "+fmt.Sprintf("%#v", this.Addressing)+",\n")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
- s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
- s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
- s = append(s, "AsyncCommit: "+fmt.Sprintf("%#v", this.AsyncCommit)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchRegisterResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.BranchRegisterResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchReportRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 10)
- s = append(s, "&apis.BranchReportRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
- s = append(s, "BranchStatus: "+fmt.Sprintf("%#v", this.BranchStatus)+",\n")
- s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchReportResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 7)
- s = append(s, "&apis.BranchReportResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalLockQueryRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalLockQueryRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
- s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalLockQueryResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalLockQueryResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "Lockable: "+fmt.Sprintf("%#v", this.Lockable)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalStatusRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 5)
- s = append(s, "&apis.GlobalStatusRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalStatusResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalStatusResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalCommitRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 5)
- s = append(s, "&apis.GlobalCommitRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalCommitResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalCommitResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalRollbackRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 5)
- s = append(s, "&apis.GlobalRollbackRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalRollbackResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalRollbackResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalReportRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 6)
- s = append(s, "&apis.GlobalReportRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *GlobalReportResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 8)
- s = append(s, "&apis.GlobalReportResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "GlobalStatus: "+fmt.Sprintf("%#v", this.GlobalStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchCommitRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 10)
- s = append(s, "&apis.BranchCommitRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
- s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
- s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchCommitResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 10)
- s = append(s, "&apis.BranchCommitResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "BranchStatus: "+fmt.Sprintf("%#v", this.BranchStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchRollbackRequest) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 10)
- s = append(s, "&apis.BranchRollbackRequest{")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "ResourceID: "+fmt.Sprintf("%#v", this.ResourceID)+",\n")
- s = append(s, "LockKey: "+fmt.Sprintf("%#v", this.LockKey)+",\n")
- s = append(s, "BranchType: "+fmt.Sprintf("%#v", this.BranchType)+",\n")
- s = append(s, "ApplicationData: "+fmt.Sprintf("%#v", this.ApplicationData)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchRollbackResponse) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 10)
- s = append(s, "&apis.BranchRollbackResponse{")
- s = append(s, "ResultCode: "+fmt.Sprintf("%#v", this.ResultCode)+",\n")
- s = append(s, "ExceptionCode: "+fmt.Sprintf("%#v", this.ExceptionCode)+",\n")
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- s = append(s, "XID: "+fmt.Sprintf("%#v", this.XID)+",\n")
- s = append(s, "BranchID: "+fmt.Sprintf("%#v", this.BranchID)+",\n")
- s = append(s, "BranchStatus: "+fmt.Sprintf("%#v", this.BranchStatus)+",\n")
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func (this *BranchMessage) GoString() string {
- if this == nil {
- return "nil"
- }
- s := make([]string, 0, 7)
- s = append(s, "&apis.BranchMessage{")
- s = append(s, "ID: "+fmt.Sprintf("%#v", this.ID)+",\n")
- s = append(s, "BranchMessageType: "+fmt.Sprintf("%#v", this.BranchMessageType)+",\n")
- if this.Message != nil {
- s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
- }
- s = append(s, "}")
- return strings.Join(s, "")
- }
- func valueToGoStringSeata(v interface{}, typ string) string {
- rv := reflect.ValueOf(v)
- if rv.IsNil() {
- return "nil"
- }
- pv := reflect.Indirect(rv).Interface()
- return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
- }
- func (m *GlobalSession) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalSession) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalSession) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.Active {
- i--
- if m.Active {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x40
- }
- if m.Status != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.Status))
- i--
- dAtA[i] = 0x38
- }
- if m.BeginTime != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BeginTime))
- i--
- dAtA[i] = 0x30
- }
- if m.Timeout != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.Timeout))
- i--
- dAtA[i] = 0x28
- }
- if len(m.TransactionName) > 0 {
- i -= len(m.TransactionName)
- copy(dAtA[i:], m.TransactionName)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.TransactionName)))
- i--
- dAtA[i] = 0x22
- }
- if m.TransactionID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.TransactionID))
- i--
- dAtA[i] = 0x18
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Addressing) > 0 {
- i -= len(m.Addressing)
- copy(dAtA[i:], m.Addressing)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Addressing)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchSession) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchSession) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchSession) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.AsyncCommit {
- i--
- if m.AsyncCommit {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x50
- }
- if len(m.ApplicationData) > 0 {
- i -= len(m.ApplicationData)
- copy(dAtA[i:], m.ApplicationData)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
- i--
- dAtA[i] = 0x4a
- }
- if m.Status != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.Status))
- i--
- dAtA[i] = 0x40
- }
- if m.Type != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.Type))
- i--
- dAtA[i] = 0x38
- }
- if len(m.LockKey) > 0 {
- i -= len(m.LockKey)
- copy(dAtA[i:], m.LockKey)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
- i--
- dAtA[i] = 0x32
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x2a
- }
- if m.TransactionID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.TransactionID))
- i--
- dAtA[i] = 0x20
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x18
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Addressing) > 0 {
- i -= len(m.Addressing)
- copy(dAtA[i:], m.Addressing)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Addressing)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *RowLock) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *RowLock) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *RowLock) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.RowKey) > 0 {
- i -= len(m.RowKey)
- copy(dAtA[i:], m.RowKey)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.RowKey)))
- i--
- dAtA[i] = 0x3a
- }
- if len(m.PK) > 0 {
- i -= len(m.PK)
- copy(dAtA[i:], m.PK)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.PK)))
- i--
- dAtA[i] = 0x32
- }
- if len(m.TableName) > 0 {
- i -= len(m.TableName)
- copy(dAtA[i:], m.TableName)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.TableName)))
- i--
- dAtA[i] = 0x2a
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x22
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x18
- }
- if m.TransactionID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.TransactionID))
- i--
- dAtA[i] = 0x10
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalBeginRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalBeginRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalBeginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.TransactionName) > 0 {
- i -= len(m.TransactionName)
- copy(dAtA[i:], m.TransactionName)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.TransactionName)))
- i--
- dAtA[i] = 0x1a
- }
- if m.Timeout != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.Timeout))
- i--
- dAtA[i] = 0x10
- }
- if len(m.Addressing) > 0 {
- i -= len(m.Addressing)
- copy(dAtA[i:], m.Addressing)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Addressing)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalBeginResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalBeginResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalBeginResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchRegisterRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchRegisterRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchRegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.AsyncCommit {
- i--
- if m.AsyncCommit {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x38
- }
- if len(m.ApplicationData) > 0 {
- i -= len(m.ApplicationData)
- copy(dAtA[i:], m.ApplicationData)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
- i--
- dAtA[i] = 0x32
- }
- if m.BranchType != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
- i--
- dAtA[i] = 0x28
- }
- if len(m.LockKey) > 0 {
- i -= len(m.LockKey)
- copy(dAtA[i:], m.LockKey)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Addressing) > 0 {
- i -= len(m.Addressing)
- copy(dAtA[i:], m.Addressing)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Addressing)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchRegisterResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchRegisterResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchRegisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchReportRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchReportRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.ApplicationData) > 0 {
- i -= len(m.ApplicationData)
- copy(dAtA[i:], m.ApplicationData)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
- i--
- dAtA[i] = 0x32
- }
- if m.BranchStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchStatus))
- i--
- dAtA[i] = 0x28
- }
- if m.BranchType != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
- i--
- dAtA[i] = 0x20
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x1a
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x10
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchReportResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchReportResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalLockQueryRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalLockQueryRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalLockQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.BranchType != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
- i--
- dAtA[i] = 0x20
- }
- if len(m.LockKey) > 0 {
- i -= len(m.LockKey)
- copy(dAtA[i:], m.LockKey)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
- i--
- dAtA[i] = 0x1a
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalLockQueryResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalLockQueryResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalLockQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.Lockable {
- i--
- if m.Lockable {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i--
- dAtA[i] = 0x20
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalStatusRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalStatusRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalStatusResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalStatusResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.GlobalStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalCommitRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalCommitRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalCommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalCommitResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalCommitResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalCommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.GlobalStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalRollbackRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalRollbackRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalRollbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalRollbackResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalRollbackResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalRollbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.GlobalStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalReportRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalReportRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.GlobalStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
- i--
- dAtA[i] = 0x10
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *GlobalReportResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *GlobalReportResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *GlobalReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.GlobalStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.GlobalStatus))
- i--
- dAtA[i] = 0x20
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchCommitRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchCommitRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchCommitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.ApplicationData) > 0 {
- i -= len(m.ApplicationData)
- copy(dAtA[i:], m.ApplicationData)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
- i--
- dAtA[i] = 0x32
- }
- if m.BranchType != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
- i--
- dAtA[i] = 0x28
- }
- if len(m.LockKey) > 0 {
- i -= len(m.LockKey)
- copy(dAtA[i:], m.LockKey)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x1a
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x10
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchCommitResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchCommitResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchCommitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.BranchStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchStatus))
- i--
- dAtA[i] = 0x30
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x28
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchRollbackRequest) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchRollbackRequest) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchRollbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if len(m.ApplicationData) > 0 {
- i -= len(m.ApplicationData)
- copy(dAtA[i:], m.ApplicationData)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ApplicationData)))
- i--
- dAtA[i] = 0x32
- }
- if m.BranchType != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchType))
- i--
- dAtA[i] = 0x28
- }
- if len(m.LockKey) > 0 {
- i -= len(m.LockKey)
- copy(dAtA[i:], m.LockKey)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.LockKey)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.ResourceID) > 0 {
- i -= len(m.ResourceID)
- copy(dAtA[i:], m.ResourceID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.ResourceID)))
- i--
- dAtA[i] = 0x1a
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x10
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0xa
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchRollbackResponse) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchRollbackResponse) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchRollbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.BranchStatus != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchStatus))
- i--
- dAtA[i] = 0x30
- }
- if m.BranchID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchID))
- i--
- dAtA[i] = 0x28
- }
- if len(m.XID) > 0 {
- i -= len(m.XID)
- copy(dAtA[i:], m.XID)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.XID)))
- i--
- dAtA[i] = 0x22
- }
- if len(m.Message) > 0 {
- i -= len(m.Message)
- copy(dAtA[i:], m.Message)
- i = encodeVarintSeata(dAtA, i, uint64(len(m.Message)))
- i--
- dAtA[i] = 0x1a
- }
- if m.ExceptionCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ExceptionCode))
- i--
- dAtA[i] = 0x10
- }
- if m.ResultCode != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ResultCode))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func (m *BranchMessage) Marshal() (dAtA []byte, err error) {
- size := m.Size()
- dAtA = make([]byte, size)
- n, err := m.MarshalToSizedBuffer(dAtA[:size])
- if err != nil {
- return nil, err
- }
- return dAtA[:n], nil
- }
-
- func (m *BranchMessage) MarshalTo(dAtA []byte) (int, error) {
- size := m.Size()
- return m.MarshalToSizedBuffer(dAtA[:size])
- }
-
- func (m *BranchMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
- i := len(dAtA)
- _ = i
- var l int
- _ = l
- if m.Message != nil {
- {
- size, err := m.Message.MarshalToSizedBuffer(dAtA[:i])
- if err != nil {
- return 0, err
- }
- i -= size
- i = encodeVarintSeata(dAtA, i, uint64(size))
- }
- i--
- dAtA[i] = 0x1a
- }
- if m.BranchMessageType != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.BranchMessageType))
- i--
- dAtA[i] = 0x10
- }
- if m.ID != 0 {
- i = encodeVarintSeata(dAtA, i, uint64(m.ID))
- i--
- dAtA[i] = 0x8
- }
- return len(dAtA) - i, nil
- }
-
- func encodeVarintSeata(dAtA []byte, offset int, v uint64) int {
- offset -= sovSeata(v)
- base := offset
- for v >= 1<<7 {
- dAtA[offset] = uint8(v&0x7f | 0x80)
- v >>= 7
- offset++
- }
- dAtA[offset] = uint8(v)
- return base
- }
- func (m *GlobalSession) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Addressing)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.TransactionID != 0 {
- n += 1 + sovSeata(uint64(m.TransactionID))
- }
- l = len(m.TransactionName)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.Timeout != 0 {
- n += 1 + sovSeata(uint64(m.Timeout))
- }
- if m.BeginTime != 0 {
- n += 1 + sovSeata(uint64(m.BeginTime))
- }
- if m.Status != 0 {
- n += 1 + sovSeata(uint64(m.Status))
- }
- if m.Active {
- n += 2
- }
- return n
- }
-
- func (m *BranchSession) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Addressing)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- if m.TransactionID != 0 {
- n += 1 + sovSeata(uint64(m.TransactionID))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.LockKey)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.Type != 0 {
- n += 1 + sovSeata(uint64(m.Type))
- }
- if m.Status != 0 {
- n += 1 + sovSeata(uint64(m.Status))
- }
- l = len(m.ApplicationData)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.AsyncCommit {
- n += 2
- }
- return n
- }
-
- func (m *RowLock) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.TransactionID != 0 {
- n += 1 + sovSeata(uint64(m.TransactionID))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.TableName)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.PK)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.RowKey)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *GlobalBeginRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Addressing)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.Timeout != 0 {
- n += 1 + sovSeata(uint64(m.Timeout))
- }
- l = len(m.TransactionName)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *GlobalBeginResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *BranchRegisterRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Addressing)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.LockKey)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchType != 0 {
- n += 1 + sovSeata(uint64(m.BranchType))
- }
- l = len(m.ApplicationData)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.AsyncCommit {
- n += 2
- }
- return n
- }
-
- func (m *BranchRegisterResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- return n
- }
-
- func (m *BranchReportRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchType != 0 {
- n += 1 + sovSeata(uint64(m.BranchType))
- }
- if m.BranchStatus != 0 {
- n += 1 + sovSeata(uint64(m.BranchStatus))
- }
- l = len(m.ApplicationData)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *BranchReportResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *GlobalLockQueryRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.LockKey)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchType != 0 {
- n += 1 + sovSeata(uint64(m.BranchType))
- }
- return n
- }
-
- func (m *GlobalLockQueryResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.Lockable {
- n += 2
- }
- return n
- }
-
- func (m *GlobalStatusRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *GlobalStatusResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.GlobalStatus != 0 {
- n += 1 + sovSeata(uint64(m.GlobalStatus))
- }
- return n
- }
-
- func (m *GlobalCommitRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *GlobalCommitResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.GlobalStatus != 0 {
- n += 1 + sovSeata(uint64(m.GlobalStatus))
- }
- return n
- }
-
- func (m *GlobalRollbackRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *GlobalRollbackResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.GlobalStatus != 0 {
- n += 1 + sovSeata(uint64(m.GlobalStatus))
- }
- return n
- }
-
- func (m *GlobalReportRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.GlobalStatus != 0 {
- n += 1 + sovSeata(uint64(m.GlobalStatus))
- }
- return n
- }
-
- func (m *GlobalReportResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.GlobalStatus != 0 {
- n += 1 + sovSeata(uint64(m.GlobalStatus))
- }
- return n
- }
-
- func (m *BranchCommitRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.LockKey)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchType != 0 {
- n += 1 + sovSeata(uint64(m.BranchType))
- }
- l = len(m.ApplicationData)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *BranchCommitResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- if m.BranchStatus != 0 {
- n += 1 + sovSeata(uint64(m.BranchStatus))
- }
- return n
- }
-
- func (m *BranchRollbackRequest) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- l = len(m.ResourceID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.LockKey)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchType != 0 {
- n += 1 + sovSeata(uint64(m.BranchType))
- }
- l = len(m.ApplicationData)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func (m *BranchRollbackResponse) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ResultCode != 0 {
- n += 1 + sovSeata(uint64(m.ResultCode))
- }
- if m.ExceptionCode != 0 {
- n += 1 + sovSeata(uint64(m.ExceptionCode))
- }
- l = len(m.Message)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- l = len(m.XID)
- if l > 0 {
- n += 1 + l + sovSeata(uint64(l))
- }
- if m.BranchID != 0 {
- n += 1 + sovSeata(uint64(m.BranchID))
- }
- if m.BranchStatus != 0 {
- n += 1 + sovSeata(uint64(m.BranchStatus))
- }
- return n
- }
-
- func (m *BranchMessage) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- if m.ID != 0 {
- n += 1 + sovSeata(uint64(m.ID))
- }
- if m.BranchMessageType != 0 {
- n += 1 + sovSeata(uint64(m.BranchMessageType))
- }
- if m.Message != nil {
- l = m.Message.Size()
- n += 1 + l + sovSeata(uint64(l))
- }
- return n
- }
-
- func sovSeata(x uint64) (n int) {
- return (math_bits.Len64(x|1) + 6) / 7
- }
- func sozSeata(x uint64) (n int) {
- return sovSeata(uint64((x << 1) ^ uint64((int64(x) >> 63))))
- }
- func (this *GlobalSession) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalSession{`,
- `Addressing:` + fmt.Sprintf("%v", this.Addressing) + `,`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `TransactionID:` + fmt.Sprintf("%v", this.TransactionID) + `,`,
- `TransactionName:` + fmt.Sprintf("%v", this.TransactionName) + `,`,
- `Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`,
- `BeginTime:` + fmt.Sprintf("%v", this.BeginTime) + `,`,
- `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
- `Active:` + fmt.Sprintf("%v", this.Active) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchSession) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchSession{`,
- `Addressing:` + fmt.Sprintf("%v", this.Addressing) + `,`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `TransactionID:` + fmt.Sprintf("%v", this.TransactionID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
- `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
- `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
- `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
- `AsyncCommit:` + fmt.Sprintf("%v", this.AsyncCommit) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *RowLock) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&RowLock{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `TransactionID:` + fmt.Sprintf("%v", this.TransactionID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `TableName:` + fmt.Sprintf("%v", this.TableName) + `,`,
- `PK:` + fmt.Sprintf("%v", this.PK) + `,`,
- `RowKey:` + fmt.Sprintf("%v", this.RowKey) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalBeginRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalBeginRequest{`,
- `Addressing:` + fmt.Sprintf("%v", this.Addressing) + `,`,
- `Timeout:` + fmt.Sprintf("%v", this.Timeout) + `,`,
- `TransactionName:` + fmt.Sprintf("%v", this.TransactionName) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalBeginResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalBeginResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchRegisterRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchRegisterRequest{`,
- `Addressing:` + fmt.Sprintf("%v", this.Addressing) + `,`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
- `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
- `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
- `AsyncCommit:` + fmt.Sprintf("%v", this.AsyncCommit) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchRegisterResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchRegisterResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchReportRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchReportRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
- `BranchStatus:` + fmt.Sprintf("%v", this.BranchStatus) + `,`,
- `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchReportResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchReportResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalLockQueryRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalLockQueryRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
- `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalLockQueryResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalLockQueryResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `Lockable:` + fmt.Sprintf("%v", this.Lockable) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalStatusRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalStatusRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalStatusResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalStatusResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalCommitRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalCommitRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalCommitResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalCommitResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalRollbackRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalRollbackRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalRollbackResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalRollbackResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalReportRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalReportRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *GlobalReportResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&GlobalReportResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `GlobalStatus:` + fmt.Sprintf("%v", this.GlobalStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchCommitRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchCommitRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
- `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
- `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchCommitResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchCommitResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `BranchStatus:` + fmt.Sprintf("%v", this.BranchStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchRollbackRequest) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchRollbackRequest{`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `ResourceID:` + fmt.Sprintf("%v", this.ResourceID) + `,`,
- `LockKey:` + fmt.Sprintf("%v", this.LockKey) + `,`,
- `BranchType:` + fmt.Sprintf("%v", this.BranchType) + `,`,
- `ApplicationData:` + fmt.Sprintf("%v", this.ApplicationData) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchRollbackResponse) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchRollbackResponse{`,
- `ResultCode:` + fmt.Sprintf("%v", this.ResultCode) + `,`,
- `ExceptionCode:` + fmt.Sprintf("%v", this.ExceptionCode) + `,`,
- `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
- `XID:` + fmt.Sprintf("%v", this.XID) + `,`,
- `BranchID:` + fmt.Sprintf("%v", this.BranchID) + `,`,
- `BranchStatus:` + fmt.Sprintf("%v", this.BranchStatus) + `,`,
- `}`,
- }, "")
- return s
- }
- func (this *BranchMessage) String() string {
- if this == nil {
- return "nil"
- }
- s := strings.Join([]string{`&BranchMessage{`,
- `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
- `BranchMessageType:` + fmt.Sprintf("%v", this.BranchMessageType) + `,`,
- `Message:` + strings.Replace(fmt.Sprintf("%v", this.Message), "Any", "types.Any", 1) + `,`,
- `}`,
- }, "")
- return s
- }
- func valueToStringSeata(v interface{}) string {
- rv := reflect.ValueOf(v)
- if rv.IsNil() {
- return "nil"
- }
- pv := reflect.Indirect(rv).Interface()
- return fmt.Sprintf("*%v", pv)
- }
- func (m *GlobalSession) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalSession: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalSession: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Addressing", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Addressing = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TransactionID", wireType)
- }
- m.TransactionID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TransactionID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field TransactionName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.TransactionName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
- }
- m.Timeout = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Timeout |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BeginTime", wireType)
- }
- m.BeginTime = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BeginTime |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
- }
- m.Status = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Status |= GlobalSession_GlobalStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Active = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchSession) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchSession: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchSession: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Addressing", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Addressing = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TransactionID", wireType)
- }
- m.TransactionID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TransactionID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.LockKey = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- m.Type = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Type |= BranchSession_BranchType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
- }
- m.Status = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Status |= BranchSession_BranchStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
- if m.ApplicationData == nil {
- m.ApplicationData = []byte{}
- }
- iNdEx = postIndex
- case 10:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AsyncCommit", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AsyncCommit = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *RowLock) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: RowLock: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: RowLock: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field TransactionID", wireType)
- }
- m.TransactionID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.TransactionID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.TableName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PK", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.PK = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RowKey", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.RowKey = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalBeginRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalBeginRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalBeginRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Addressing", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Addressing = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
- }
- m.Timeout = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Timeout |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field TransactionName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.TransactionName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalBeginResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalBeginResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalBeginResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchRegisterRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchRegisterRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchRegisterRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Addressing", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Addressing = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.LockKey = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
- }
- m.BranchType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
- if m.ApplicationData == nil {
- m.ApplicationData = []byte{}
- }
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field AsyncCommit", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.AsyncCommit = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchRegisterResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchRegisterResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchRegisterResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchReportRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchReportRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchReportRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
- }
- m.BranchType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchStatus", wireType)
- }
- m.BranchStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchStatus |= BranchSession_BranchStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
- if m.ApplicationData == nil {
- m.ApplicationData = []byte{}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchReportResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchReportResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchReportResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalLockQueryRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalLockQueryRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalLockQueryRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.LockKey = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
- }
- m.BranchType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalLockQueryResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalLockQueryResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalLockQueryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Lockable", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.Lockable = bool(v != 0)
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalStatusRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalStatusRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalStatusResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalStatusResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
- }
- m.GlobalStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalCommitRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalCommitRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalCommitRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalCommitResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalCommitResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalCommitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
- }
- m.GlobalStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalRollbackRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalRollbackRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalRollbackRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalRollbackResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalRollbackResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalRollbackResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
- }
- m.GlobalStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalReportRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalReportRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalReportRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
- }
- m.GlobalStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *GlobalReportResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: GlobalReportResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: GlobalReportResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field GlobalStatus", wireType)
- }
- m.GlobalStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.GlobalStatus |= GlobalSession_GlobalStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchCommitRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchCommitRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchCommitRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.LockKey = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
- }
- m.BranchType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
- if m.ApplicationData == nil {
- m.ApplicationData = []byte{}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchCommitResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchCommitResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchCommitResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchStatus", wireType)
- }
- m.BranchStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchStatus |= BranchSession_BranchStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchRollbackRequest) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchRollbackRequest: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchRollbackRequest: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResourceID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ResourceID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field LockKey", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.LockKey = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchType", wireType)
- }
- m.BranchType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchType |= BranchSession_BranchType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ApplicationData", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ApplicationData = append(m.ApplicationData[:0], dAtA[iNdEx:postIndex]...)
- if m.ApplicationData == nil {
- m.ApplicationData = []byte{}
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchRollbackResponse) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchRollbackResponse: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchRollbackResponse: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
- }
- m.ResultCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ResultCode |= ResultCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ExceptionCode", wireType)
- }
- m.ExceptionCode = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ExceptionCode |= ExceptionCode(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Message = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field XID", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- stringLen |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- intStringLen := int(stringLen)
- if intStringLen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.XID = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchID", wireType)
- }
- m.BranchID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 6:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchStatus", wireType)
- }
- m.BranchStatus = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchStatus |= BranchSession_BranchStatus(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func (m *BranchMessage) Unmarshal(dAtA []byte) error {
- l := len(dAtA)
- iNdEx := 0
- for iNdEx < l {
- preIndex := iNdEx
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= uint64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- fieldNum := int32(wire >> 3)
- wireType := int(wire & 0x7)
- if wireType == 4 {
- return fmt.Errorf("proto: BranchMessage: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: BranchMessage: illegal tag %d (wire type %d)", fieldNum, wire)
- }
- switch fieldNum {
- case 1:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
- }
- m.ID = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.ID |= int64(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 2:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field BranchMessageType", wireType)
- }
- m.BranchMessageType = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.BranchMessageType |= BranchMessageType(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 3:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
- }
- var msglen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- msglen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if msglen < 0 {
- return ErrInvalidLengthSeata
- }
- postIndex := iNdEx + msglen
- if postIndex < 0 {
- return ErrInvalidLengthSeata
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- if m.Message == nil {
- m.Message = &types.Any{}
- }
- if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
- return err
- }
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipSeata(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if (skippy < 0) || (iNdEx+skippy) < 0 {
- return ErrInvalidLengthSeata
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
- }
- func skipSeata(dAtA []byte) (n int, err error) {
- l := len(dAtA)
- iNdEx := 0
- depth := 0
- for iNdEx < l {
- var wire uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- wire |= (uint64(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- wireType := int(wire & 0x7)
- switch wireType {
- case 0:
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- iNdEx++
- if dAtA[iNdEx-1] < 0x80 {
- break
- }
- }
- case 1:
- iNdEx += 8
- case 2:
- var length int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowSeata
- }
- if iNdEx >= l {
- return 0, io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- length |= (int(b) & 0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if length < 0 {
- return 0, ErrInvalidLengthSeata
- }
- iNdEx += length
- case 3:
- depth++
- case 4:
- if depth == 0 {
- return 0, ErrUnexpectedEndOfGroupSeata
- }
- depth--
- case 5:
- iNdEx += 4
- default:
- return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
- }
- if iNdEx < 0 {
- return 0, ErrInvalidLengthSeata
- }
- if depth == 0 {
- return iNdEx, nil
- }
- }
- return 0, io.ErrUnexpectedEOF
- }
-
- var (
- ErrInvalidLengthSeata = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowSeata = fmt.Errorf("proto: integer overflow")
- ErrUnexpectedEndOfGroupSeata = fmt.Errorf("proto: unexpected end of group")
- )
|