github.com/pachyderm/pachyderm@v1.13.4/src/client/transaction/transaction.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: client/transaction/transaction.proto
     3  
     4  package transaction
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	types "github.com/gogo/protobuf/types"
    12  	pfs "github.com/pachyderm/pachyderm/src/client/pfs"
    13  	pps "github.com/pachyderm/pachyderm/src/client/pps"
    14  	grpc "google.golang.org/grpc"
    15  	codes "google.golang.org/grpc/codes"
    16  	status "google.golang.org/grpc/status"
    17  	io "io"
    18  	math "math"
    19  	math_bits "math/bits"
    20  )
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    32  
    33  type DeleteAllRequest struct {
    34  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    35  	XXX_unrecognized     []byte   `json:"-"`
    36  	XXX_sizecache        int32    `json:"-"`
    37  }
    38  
    39  func (m *DeleteAllRequest) Reset()         { *m = DeleteAllRequest{} }
    40  func (m *DeleteAllRequest) String() string { return proto.CompactTextString(m) }
    41  func (*DeleteAllRequest) ProtoMessage()    {}
    42  func (*DeleteAllRequest) Descriptor() ([]byte, []int) {
    43  	return fileDescriptor_363f2adee3615c0c, []int{0}
    44  }
    45  func (m *DeleteAllRequest) XXX_Unmarshal(b []byte) error {
    46  	return m.Unmarshal(b)
    47  }
    48  func (m *DeleteAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    49  	if deterministic {
    50  		return xxx_messageInfo_DeleteAllRequest.Marshal(b, m, deterministic)
    51  	} else {
    52  		b = b[:cap(b)]
    53  		n, err := m.MarshalToSizedBuffer(b)
    54  		if err != nil {
    55  			return nil, err
    56  		}
    57  		return b[:n], nil
    58  	}
    59  }
    60  func (m *DeleteAllRequest) XXX_Merge(src proto.Message) {
    61  	xxx_messageInfo_DeleteAllRequest.Merge(m, src)
    62  }
    63  func (m *DeleteAllRequest) XXX_Size() int {
    64  	return m.Size()
    65  }
    66  func (m *DeleteAllRequest) XXX_DiscardUnknown() {
    67  	xxx_messageInfo_DeleteAllRequest.DiscardUnknown(m)
    68  }
    69  
    70  var xxx_messageInfo_DeleteAllRequest proto.InternalMessageInfo
    71  
    72  type TransactionRequest struct {
    73  	// Exactly one of these fields should be set
    74  	CreateRepo           *pfs.CreateRepoRequest     `protobuf:"bytes,1,opt,name=create_repo,json=createRepo,proto3" json:"create_repo,omitempty"`
    75  	DeleteRepo           *pfs.DeleteRepoRequest     `protobuf:"bytes,2,opt,name=delete_repo,json=deleteRepo,proto3" json:"delete_repo,omitempty"`
    76  	StartCommit          *pfs.StartCommitRequest    `protobuf:"bytes,3,opt,name=start_commit,json=startCommit,proto3" json:"start_commit,omitempty"`
    77  	FinishCommit         *pfs.FinishCommitRequest   `protobuf:"bytes,4,opt,name=finish_commit,json=finishCommit,proto3" json:"finish_commit,omitempty"`
    78  	DeleteCommit         *pfs.DeleteCommitRequest   `protobuf:"bytes,5,opt,name=delete_commit,json=deleteCommit,proto3" json:"delete_commit,omitempty"`
    79  	CreateBranch         *pfs.CreateBranchRequest   `protobuf:"bytes,6,opt,name=create_branch,json=createBranch,proto3" json:"create_branch,omitempty"`
    80  	DeleteBranch         *pfs.DeleteBranchRequest   `protobuf:"bytes,7,opt,name=delete_branch,json=deleteBranch,proto3" json:"delete_branch,omitempty"`
    81  	UpdateJobState       *pps.UpdateJobStateRequest `protobuf:"bytes,11,opt,name=update_job_state,json=updateJobState,proto3" json:"update_job_state,omitempty"`
    82  	CreatePipeline       *pps.CreatePipelineRequest `protobuf:"bytes,12,opt,name=create_pipeline,json=createPipeline,proto3" json:"create_pipeline,omitempty"`
    83  	DeleteAll            *DeleteAllRequest          `protobuf:"bytes,10,opt,name=delete_all,json=deleteAll,proto3" json:"delete_all,omitempty"`
    84  	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
    85  	XXX_unrecognized     []byte                     `json:"-"`
    86  	XXX_sizecache        int32                      `json:"-"`
    87  }
    88  
    89  func (m *TransactionRequest) Reset()         { *m = TransactionRequest{} }
    90  func (m *TransactionRequest) String() string { return proto.CompactTextString(m) }
    91  func (*TransactionRequest) ProtoMessage()    {}
    92  func (*TransactionRequest) Descriptor() ([]byte, []int) {
    93  	return fileDescriptor_363f2adee3615c0c, []int{1}
    94  }
    95  func (m *TransactionRequest) XXX_Unmarshal(b []byte) error {
    96  	return m.Unmarshal(b)
    97  }
    98  func (m *TransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    99  	if deterministic {
   100  		return xxx_messageInfo_TransactionRequest.Marshal(b, m, deterministic)
   101  	} else {
   102  		b = b[:cap(b)]
   103  		n, err := m.MarshalToSizedBuffer(b)
   104  		if err != nil {
   105  			return nil, err
   106  		}
   107  		return b[:n], nil
   108  	}
   109  }
   110  func (m *TransactionRequest) XXX_Merge(src proto.Message) {
   111  	xxx_messageInfo_TransactionRequest.Merge(m, src)
   112  }
   113  func (m *TransactionRequest) XXX_Size() int {
   114  	return m.Size()
   115  }
   116  func (m *TransactionRequest) XXX_DiscardUnknown() {
   117  	xxx_messageInfo_TransactionRequest.DiscardUnknown(m)
   118  }
   119  
   120  var xxx_messageInfo_TransactionRequest proto.InternalMessageInfo
   121  
   122  func (m *TransactionRequest) GetCreateRepo() *pfs.CreateRepoRequest {
   123  	if m != nil {
   124  		return m.CreateRepo
   125  	}
   126  	return nil
   127  }
   128  
   129  func (m *TransactionRequest) GetDeleteRepo() *pfs.DeleteRepoRequest {
   130  	if m != nil {
   131  		return m.DeleteRepo
   132  	}
   133  	return nil
   134  }
   135  
   136  func (m *TransactionRequest) GetStartCommit() *pfs.StartCommitRequest {
   137  	if m != nil {
   138  		return m.StartCommit
   139  	}
   140  	return nil
   141  }
   142  
   143  func (m *TransactionRequest) GetFinishCommit() *pfs.FinishCommitRequest {
   144  	if m != nil {
   145  		return m.FinishCommit
   146  	}
   147  	return nil
   148  }
   149  
   150  func (m *TransactionRequest) GetDeleteCommit() *pfs.DeleteCommitRequest {
   151  	if m != nil {
   152  		return m.DeleteCommit
   153  	}
   154  	return nil
   155  }
   156  
   157  func (m *TransactionRequest) GetCreateBranch() *pfs.CreateBranchRequest {
   158  	if m != nil {
   159  		return m.CreateBranch
   160  	}
   161  	return nil
   162  }
   163  
   164  func (m *TransactionRequest) GetDeleteBranch() *pfs.DeleteBranchRequest {
   165  	if m != nil {
   166  		return m.DeleteBranch
   167  	}
   168  	return nil
   169  }
   170  
   171  func (m *TransactionRequest) GetUpdateJobState() *pps.UpdateJobStateRequest {
   172  	if m != nil {
   173  		return m.UpdateJobState
   174  	}
   175  	return nil
   176  }
   177  
   178  func (m *TransactionRequest) GetCreatePipeline() *pps.CreatePipelineRequest {
   179  	if m != nil {
   180  		return m.CreatePipeline
   181  	}
   182  	return nil
   183  }
   184  
   185  func (m *TransactionRequest) GetDeleteAll() *DeleteAllRequest {
   186  	if m != nil {
   187  		return m.DeleteAll
   188  	}
   189  	return nil
   190  }
   191  
   192  type TransactionResponse struct {
   193  	// At most, one of these fields should be set (most responses are empty)
   194  	Commit               *pfs.Commit `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
   195  	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
   196  	XXX_unrecognized     []byte      `json:"-"`
   197  	XXX_sizecache        int32       `json:"-"`
   198  }
   199  
   200  func (m *TransactionResponse) Reset()         { *m = TransactionResponse{} }
   201  func (m *TransactionResponse) String() string { return proto.CompactTextString(m) }
   202  func (*TransactionResponse) ProtoMessage()    {}
   203  func (*TransactionResponse) Descriptor() ([]byte, []int) {
   204  	return fileDescriptor_363f2adee3615c0c, []int{2}
   205  }
   206  func (m *TransactionResponse) XXX_Unmarshal(b []byte) error {
   207  	return m.Unmarshal(b)
   208  }
   209  func (m *TransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   210  	if deterministic {
   211  		return xxx_messageInfo_TransactionResponse.Marshal(b, m, deterministic)
   212  	} else {
   213  		b = b[:cap(b)]
   214  		n, err := m.MarshalToSizedBuffer(b)
   215  		if err != nil {
   216  			return nil, err
   217  		}
   218  		return b[:n], nil
   219  	}
   220  }
   221  func (m *TransactionResponse) XXX_Merge(src proto.Message) {
   222  	xxx_messageInfo_TransactionResponse.Merge(m, src)
   223  }
   224  func (m *TransactionResponse) XXX_Size() int {
   225  	return m.Size()
   226  }
   227  func (m *TransactionResponse) XXX_DiscardUnknown() {
   228  	xxx_messageInfo_TransactionResponse.DiscardUnknown(m)
   229  }
   230  
   231  var xxx_messageInfo_TransactionResponse proto.InternalMessageInfo
   232  
   233  func (m *TransactionResponse) GetCommit() *pfs.Commit {
   234  	if m != nil {
   235  		return m.Commit
   236  	}
   237  	return nil
   238  }
   239  
   240  type Transaction struct {
   241  	ID                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   242  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   243  	XXX_unrecognized     []byte   `json:"-"`
   244  	XXX_sizecache        int32    `json:"-"`
   245  }
   246  
   247  func (m *Transaction) Reset()         { *m = Transaction{} }
   248  func (m *Transaction) String() string { return proto.CompactTextString(m) }
   249  func (*Transaction) ProtoMessage()    {}
   250  func (*Transaction) Descriptor() ([]byte, []int) {
   251  	return fileDescriptor_363f2adee3615c0c, []int{3}
   252  }
   253  func (m *Transaction) XXX_Unmarshal(b []byte) error {
   254  	return m.Unmarshal(b)
   255  }
   256  func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   257  	if deterministic {
   258  		return xxx_messageInfo_Transaction.Marshal(b, m, deterministic)
   259  	} else {
   260  		b = b[:cap(b)]
   261  		n, err := m.MarshalToSizedBuffer(b)
   262  		if err != nil {
   263  			return nil, err
   264  		}
   265  		return b[:n], nil
   266  	}
   267  }
   268  func (m *Transaction) XXX_Merge(src proto.Message) {
   269  	xxx_messageInfo_Transaction.Merge(m, src)
   270  }
   271  func (m *Transaction) XXX_Size() int {
   272  	return m.Size()
   273  }
   274  func (m *Transaction) XXX_DiscardUnknown() {
   275  	xxx_messageInfo_Transaction.DiscardUnknown(m)
   276  }
   277  
   278  var xxx_messageInfo_Transaction proto.InternalMessageInfo
   279  
   280  func (m *Transaction) GetID() string {
   281  	if m != nil {
   282  		return m.ID
   283  	}
   284  	return ""
   285  }
   286  
   287  type TransactionInfo struct {
   288  	Transaction          *Transaction           `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
   289  	Requests             []*TransactionRequest  `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
   290  	Responses            []*TransactionResponse `protobuf:"bytes,3,rep,name=responses,proto3" json:"responses,omitempty"`
   291  	Started              *types.Timestamp       `protobuf:"bytes,4,opt,name=started,proto3" json:"started,omitempty"`
   292  	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
   293  	XXX_unrecognized     []byte                 `json:"-"`
   294  	XXX_sizecache        int32                  `json:"-"`
   295  }
   296  
   297  func (m *TransactionInfo) Reset()         { *m = TransactionInfo{} }
   298  func (m *TransactionInfo) String() string { return proto.CompactTextString(m) }
   299  func (*TransactionInfo) ProtoMessage()    {}
   300  func (*TransactionInfo) Descriptor() ([]byte, []int) {
   301  	return fileDescriptor_363f2adee3615c0c, []int{4}
   302  }
   303  func (m *TransactionInfo) XXX_Unmarshal(b []byte) error {
   304  	return m.Unmarshal(b)
   305  }
   306  func (m *TransactionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   307  	if deterministic {
   308  		return xxx_messageInfo_TransactionInfo.Marshal(b, m, deterministic)
   309  	} else {
   310  		b = b[:cap(b)]
   311  		n, err := m.MarshalToSizedBuffer(b)
   312  		if err != nil {
   313  			return nil, err
   314  		}
   315  		return b[:n], nil
   316  	}
   317  }
   318  func (m *TransactionInfo) XXX_Merge(src proto.Message) {
   319  	xxx_messageInfo_TransactionInfo.Merge(m, src)
   320  }
   321  func (m *TransactionInfo) XXX_Size() int {
   322  	return m.Size()
   323  }
   324  func (m *TransactionInfo) XXX_DiscardUnknown() {
   325  	xxx_messageInfo_TransactionInfo.DiscardUnknown(m)
   326  }
   327  
   328  var xxx_messageInfo_TransactionInfo proto.InternalMessageInfo
   329  
   330  func (m *TransactionInfo) GetTransaction() *Transaction {
   331  	if m != nil {
   332  		return m.Transaction
   333  	}
   334  	return nil
   335  }
   336  
   337  func (m *TransactionInfo) GetRequests() []*TransactionRequest {
   338  	if m != nil {
   339  		return m.Requests
   340  	}
   341  	return nil
   342  }
   343  
   344  func (m *TransactionInfo) GetResponses() []*TransactionResponse {
   345  	if m != nil {
   346  		return m.Responses
   347  	}
   348  	return nil
   349  }
   350  
   351  func (m *TransactionInfo) GetStarted() *types.Timestamp {
   352  	if m != nil {
   353  		return m.Started
   354  	}
   355  	return nil
   356  }
   357  
   358  type TransactionInfos struct {
   359  	TransactionInfo      []*TransactionInfo `protobuf:"bytes,1,rep,name=transaction_info,json=transactionInfo,proto3" json:"transaction_info,omitempty"`
   360  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
   361  	XXX_unrecognized     []byte             `json:"-"`
   362  	XXX_sizecache        int32              `json:"-"`
   363  }
   364  
   365  func (m *TransactionInfos) Reset()         { *m = TransactionInfos{} }
   366  func (m *TransactionInfos) String() string { return proto.CompactTextString(m) }
   367  func (*TransactionInfos) ProtoMessage()    {}
   368  func (*TransactionInfos) Descriptor() ([]byte, []int) {
   369  	return fileDescriptor_363f2adee3615c0c, []int{5}
   370  }
   371  func (m *TransactionInfos) XXX_Unmarshal(b []byte) error {
   372  	return m.Unmarshal(b)
   373  }
   374  func (m *TransactionInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   375  	if deterministic {
   376  		return xxx_messageInfo_TransactionInfos.Marshal(b, m, deterministic)
   377  	} else {
   378  		b = b[:cap(b)]
   379  		n, err := m.MarshalToSizedBuffer(b)
   380  		if err != nil {
   381  			return nil, err
   382  		}
   383  		return b[:n], nil
   384  	}
   385  }
   386  func (m *TransactionInfos) XXX_Merge(src proto.Message) {
   387  	xxx_messageInfo_TransactionInfos.Merge(m, src)
   388  }
   389  func (m *TransactionInfos) XXX_Size() int {
   390  	return m.Size()
   391  }
   392  func (m *TransactionInfos) XXX_DiscardUnknown() {
   393  	xxx_messageInfo_TransactionInfos.DiscardUnknown(m)
   394  }
   395  
   396  var xxx_messageInfo_TransactionInfos proto.InternalMessageInfo
   397  
   398  func (m *TransactionInfos) GetTransactionInfo() []*TransactionInfo {
   399  	if m != nil {
   400  		return m.TransactionInfo
   401  	}
   402  	return nil
   403  }
   404  
   405  type BatchTransactionRequest struct {
   406  	Requests             []*TransactionRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
   407  	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
   408  	XXX_unrecognized     []byte                `json:"-"`
   409  	XXX_sizecache        int32                 `json:"-"`
   410  }
   411  
   412  func (m *BatchTransactionRequest) Reset()         { *m = BatchTransactionRequest{} }
   413  func (m *BatchTransactionRequest) String() string { return proto.CompactTextString(m) }
   414  func (*BatchTransactionRequest) ProtoMessage()    {}
   415  func (*BatchTransactionRequest) Descriptor() ([]byte, []int) {
   416  	return fileDescriptor_363f2adee3615c0c, []int{6}
   417  }
   418  func (m *BatchTransactionRequest) XXX_Unmarshal(b []byte) error {
   419  	return m.Unmarshal(b)
   420  }
   421  func (m *BatchTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   422  	if deterministic {
   423  		return xxx_messageInfo_BatchTransactionRequest.Marshal(b, m, deterministic)
   424  	} else {
   425  		b = b[:cap(b)]
   426  		n, err := m.MarshalToSizedBuffer(b)
   427  		if err != nil {
   428  			return nil, err
   429  		}
   430  		return b[:n], nil
   431  	}
   432  }
   433  func (m *BatchTransactionRequest) XXX_Merge(src proto.Message) {
   434  	xxx_messageInfo_BatchTransactionRequest.Merge(m, src)
   435  }
   436  func (m *BatchTransactionRequest) XXX_Size() int {
   437  	return m.Size()
   438  }
   439  func (m *BatchTransactionRequest) XXX_DiscardUnknown() {
   440  	xxx_messageInfo_BatchTransactionRequest.DiscardUnknown(m)
   441  }
   442  
   443  var xxx_messageInfo_BatchTransactionRequest proto.InternalMessageInfo
   444  
   445  func (m *BatchTransactionRequest) GetRequests() []*TransactionRequest {
   446  	if m != nil {
   447  		return m.Requests
   448  	}
   449  	return nil
   450  }
   451  
   452  type StartTransactionRequest struct {
   453  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   454  	XXX_unrecognized     []byte   `json:"-"`
   455  	XXX_sizecache        int32    `json:"-"`
   456  }
   457  
   458  func (m *StartTransactionRequest) Reset()         { *m = StartTransactionRequest{} }
   459  func (m *StartTransactionRequest) String() string { return proto.CompactTextString(m) }
   460  func (*StartTransactionRequest) ProtoMessage()    {}
   461  func (*StartTransactionRequest) Descriptor() ([]byte, []int) {
   462  	return fileDescriptor_363f2adee3615c0c, []int{7}
   463  }
   464  func (m *StartTransactionRequest) XXX_Unmarshal(b []byte) error {
   465  	return m.Unmarshal(b)
   466  }
   467  func (m *StartTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   468  	if deterministic {
   469  		return xxx_messageInfo_StartTransactionRequest.Marshal(b, m, deterministic)
   470  	} else {
   471  		b = b[:cap(b)]
   472  		n, err := m.MarshalToSizedBuffer(b)
   473  		if err != nil {
   474  			return nil, err
   475  		}
   476  		return b[:n], nil
   477  	}
   478  }
   479  func (m *StartTransactionRequest) XXX_Merge(src proto.Message) {
   480  	xxx_messageInfo_StartTransactionRequest.Merge(m, src)
   481  }
   482  func (m *StartTransactionRequest) XXX_Size() int {
   483  	return m.Size()
   484  }
   485  func (m *StartTransactionRequest) XXX_DiscardUnknown() {
   486  	xxx_messageInfo_StartTransactionRequest.DiscardUnknown(m)
   487  }
   488  
   489  var xxx_messageInfo_StartTransactionRequest proto.InternalMessageInfo
   490  
   491  type InspectTransactionRequest struct {
   492  	Transaction          *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
   493  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
   494  	XXX_unrecognized     []byte       `json:"-"`
   495  	XXX_sizecache        int32        `json:"-"`
   496  }
   497  
   498  func (m *InspectTransactionRequest) Reset()         { *m = InspectTransactionRequest{} }
   499  func (m *InspectTransactionRequest) String() string { return proto.CompactTextString(m) }
   500  func (*InspectTransactionRequest) ProtoMessage()    {}
   501  func (*InspectTransactionRequest) Descriptor() ([]byte, []int) {
   502  	return fileDescriptor_363f2adee3615c0c, []int{8}
   503  }
   504  func (m *InspectTransactionRequest) XXX_Unmarshal(b []byte) error {
   505  	return m.Unmarshal(b)
   506  }
   507  func (m *InspectTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   508  	if deterministic {
   509  		return xxx_messageInfo_InspectTransactionRequest.Marshal(b, m, deterministic)
   510  	} else {
   511  		b = b[:cap(b)]
   512  		n, err := m.MarshalToSizedBuffer(b)
   513  		if err != nil {
   514  			return nil, err
   515  		}
   516  		return b[:n], nil
   517  	}
   518  }
   519  func (m *InspectTransactionRequest) XXX_Merge(src proto.Message) {
   520  	xxx_messageInfo_InspectTransactionRequest.Merge(m, src)
   521  }
   522  func (m *InspectTransactionRequest) XXX_Size() int {
   523  	return m.Size()
   524  }
   525  func (m *InspectTransactionRequest) XXX_DiscardUnknown() {
   526  	xxx_messageInfo_InspectTransactionRequest.DiscardUnknown(m)
   527  }
   528  
   529  var xxx_messageInfo_InspectTransactionRequest proto.InternalMessageInfo
   530  
   531  func (m *InspectTransactionRequest) GetTransaction() *Transaction {
   532  	if m != nil {
   533  		return m.Transaction
   534  	}
   535  	return nil
   536  }
   537  
   538  type DeleteTransactionRequest struct {
   539  	Transaction          *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
   540  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
   541  	XXX_unrecognized     []byte       `json:"-"`
   542  	XXX_sizecache        int32        `json:"-"`
   543  }
   544  
   545  func (m *DeleteTransactionRequest) Reset()         { *m = DeleteTransactionRequest{} }
   546  func (m *DeleteTransactionRequest) String() string { return proto.CompactTextString(m) }
   547  func (*DeleteTransactionRequest) ProtoMessage()    {}
   548  func (*DeleteTransactionRequest) Descriptor() ([]byte, []int) {
   549  	return fileDescriptor_363f2adee3615c0c, []int{9}
   550  }
   551  func (m *DeleteTransactionRequest) XXX_Unmarshal(b []byte) error {
   552  	return m.Unmarshal(b)
   553  }
   554  func (m *DeleteTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   555  	if deterministic {
   556  		return xxx_messageInfo_DeleteTransactionRequest.Marshal(b, m, deterministic)
   557  	} else {
   558  		b = b[:cap(b)]
   559  		n, err := m.MarshalToSizedBuffer(b)
   560  		if err != nil {
   561  			return nil, err
   562  		}
   563  		return b[:n], nil
   564  	}
   565  }
   566  func (m *DeleteTransactionRequest) XXX_Merge(src proto.Message) {
   567  	xxx_messageInfo_DeleteTransactionRequest.Merge(m, src)
   568  }
   569  func (m *DeleteTransactionRequest) XXX_Size() int {
   570  	return m.Size()
   571  }
   572  func (m *DeleteTransactionRequest) XXX_DiscardUnknown() {
   573  	xxx_messageInfo_DeleteTransactionRequest.DiscardUnknown(m)
   574  }
   575  
   576  var xxx_messageInfo_DeleteTransactionRequest proto.InternalMessageInfo
   577  
   578  func (m *DeleteTransactionRequest) GetTransaction() *Transaction {
   579  	if m != nil {
   580  		return m.Transaction
   581  	}
   582  	return nil
   583  }
   584  
   585  type ListTransactionRequest struct {
   586  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   587  	XXX_unrecognized     []byte   `json:"-"`
   588  	XXX_sizecache        int32    `json:"-"`
   589  }
   590  
   591  func (m *ListTransactionRequest) Reset()         { *m = ListTransactionRequest{} }
   592  func (m *ListTransactionRequest) String() string { return proto.CompactTextString(m) }
   593  func (*ListTransactionRequest) ProtoMessage()    {}
   594  func (*ListTransactionRequest) Descriptor() ([]byte, []int) {
   595  	return fileDescriptor_363f2adee3615c0c, []int{10}
   596  }
   597  func (m *ListTransactionRequest) XXX_Unmarshal(b []byte) error {
   598  	return m.Unmarshal(b)
   599  }
   600  func (m *ListTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   601  	if deterministic {
   602  		return xxx_messageInfo_ListTransactionRequest.Marshal(b, m, deterministic)
   603  	} else {
   604  		b = b[:cap(b)]
   605  		n, err := m.MarshalToSizedBuffer(b)
   606  		if err != nil {
   607  			return nil, err
   608  		}
   609  		return b[:n], nil
   610  	}
   611  }
   612  func (m *ListTransactionRequest) XXX_Merge(src proto.Message) {
   613  	xxx_messageInfo_ListTransactionRequest.Merge(m, src)
   614  }
   615  func (m *ListTransactionRequest) XXX_Size() int {
   616  	return m.Size()
   617  }
   618  func (m *ListTransactionRequest) XXX_DiscardUnknown() {
   619  	xxx_messageInfo_ListTransactionRequest.DiscardUnknown(m)
   620  }
   621  
   622  var xxx_messageInfo_ListTransactionRequest proto.InternalMessageInfo
   623  
   624  type FinishTransactionRequest struct {
   625  	Transaction          *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
   626  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
   627  	XXX_unrecognized     []byte       `json:"-"`
   628  	XXX_sizecache        int32        `json:"-"`
   629  }
   630  
   631  func (m *FinishTransactionRequest) Reset()         { *m = FinishTransactionRequest{} }
   632  func (m *FinishTransactionRequest) String() string { return proto.CompactTextString(m) }
   633  func (*FinishTransactionRequest) ProtoMessage()    {}
   634  func (*FinishTransactionRequest) Descriptor() ([]byte, []int) {
   635  	return fileDescriptor_363f2adee3615c0c, []int{11}
   636  }
   637  func (m *FinishTransactionRequest) XXX_Unmarshal(b []byte) error {
   638  	return m.Unmarshal(b)
   639  }
   640  func (m *FinishTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   641  	if deterministic {
   642  		return xxx_messageInfo_FinishTransactionRequest.Marshal(b, m, deterministic)
   643  	} else {
   644  		b = b[:cap(b)]
   645  		n, err := m.MarshalToSizedBuffer(b)
   646  		if err != nil {
   647  			return nil, err
   648  		}
   649  		return b[:n], nil
   650  	}
   651  }
   652  func (m *FinishTransactionRequest) XXX_Merge(src proto.Message) {
   653  	xxx_messageInfo_FinishTransactionRequest.Merge(m, src)
   654  }
   655  func (m *FinishTransactionRequest) XXX_Size() int {
   656  	return m.Size()
   657  }
   658  func (m *FinishTransactionRequest) XXX_DiscardUnknown() {
   659  	xxx_messageInfo_FinishTransactionRequest.DiscardUnknown(m)
   660  }
   661  
   662  var xxx_messageInfo_FinishTransactionRequest proto.InternalMessageInfo
   663  
   664  func (m *FinishTransactionRequest) GetTransaction() *Transaction {
   665  	if m != nil {
   666  		return m.Transaction
   667  	}
   668  	return nil
   669  }
   670  
   671  func init() {
   672  	proto.RegisterType((*DeleteAllRequest)(nil), "transaction.DeleteAllRequest")
   673  	proto.RegisterType((*TransactionRequest)(nil), "transaction.TransactionRequest")
   674  	proto.RegisterType((*TransactionResponse)(nil), "transaction.TransactionResponse")
   675  	proto.RegisterType((*Transaction)(nil), "transaction.Transaction")
   676  	proto.RegisterType((*TransactionInfo)(nil), "transaction.TransactionInfo")
   677  	proto.RegisterType((*TransactionInfos)(nil), "transaction.TransactionInfos")
   678  	proto.RegisterType((*BatchTransactionRequest)(nil), "transaction.BatchTransactionRequest")
   679  	proto.RegisterType((*StartTransactionRequest)(nil), "transaction.StartTransactionRequest")
   680  	proto.RegisterType((*InspectTransactionRequest)(nil), "transaction.InspectTransactionRequest")
   681  	proto.RegisterType((*DeleteTransactionRequest)(nil), "transaction.DeleteTransactionRequest")
   682  	proto.RegisterType((*ListTransactionRequest)(nil), "transaction.ListTransactionRequest")
   683  	proto.RegisterType((*FinishTransactionRequest)(nil), "transaction.FinishTransactionRequest")
   684  }
   685  
   686  func init() {
   687  	proto.RegisterFile("client/transaction/transaction.proto", fileDescriptor_363f2adee3615c0c)
   688  }
   689  
   690  var fileDescriptor_363f2adee3615c0c = []byte{
   691  	// 785 bytes of a gzipped FileDescriptorProto
   692  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4b, 0x6f, 0xd3, 0x4a,
   693  	0x14, 0xce, 0xa3, 0x4d, 0x6f, 0x8e, 0x7b, 0x6f, 0xd2, 0xb9, 0x57, 0xa9, 0x9b, 0x4b, 0x1f, 0x72,
   694  	0x5b, 0xd4, 0x95, 0x23, 0x15, 0x10, 0x52, 0x79, 0x48, 0x4d, 0x02, 0x28, 0x88, 0x45, 0xe5, 0x96,
   695  	0x16, 0x15, 0xa4, 0xc8, 0xb1, 0x27, 0x89, 0x91, 0x63, 0x1b, 0xcf, 0x64, 0xd1, 0x1d, 0x3b, 0xfe,
   696  	0x1a, 0x4b, 0x7e, 0x01, 0x42, 0x11, 0x3f, 0x04, 0xcd, 0x23, 0xe9, 0xd8, 0x89, 0x0b, 0x88, 0x2e,
   697  	0x2c, 0x8d, 0xbe, 0x73, 0xbe, 0xf3, 0x98, 0xef, 0xcc, 0x49, 0x60, 0xcf, 0xf1, 0x3d, 0x1c, 0xd0,
   698  	0x06, 0x8d, 0xed, 0x80, 0xd8, 0x0e, 0xf5, 0xc2, 0x40, 0x3d, 0x9b, 0x51, 0x1c, 0xd2, 0x10, 0x69,
   699  	0x0a, 0x54, 0xff, 0x7f, 0x10, 0x86, 0x03, 0x1f, 0x37, 0xb8, 0xa9, 0x37, 0xee, 0x37, 0xf0, 0x28,
   700  	0xa2, 0x57, 0xc2, 0xb3, 0xbe, 0x9d, 0x36, 0x52, 0x6f, 0x84, 0x09, 0xb5, 0x47, 0x91, 0x74, 0xf8,
   701  	0x6f, 0x10, 0x0e, 0x42, 0x7e, 0x6c, 0xb0, 0xd3, 0x14, 0x95, 0x65, 0x44, 0x7d, 0xc2, 0xbe, 0x34,
   702  	0x1a, 0x11, 0xf6, 0x09, 0xd4, 0x40, 0x50, 0x6d, 0x63, 0x1f, 0x53, 0x7c, 0xec, 0xfb, 0x16, 0xfe,
   703  	0x30, 0xc6, 0x84, 0x1a, 0x9f, 0x96, 0x01, 0x9d, 0x5d, 0xd7, 0x28, 0x61, 0xf4, 0x10, 0x34, 0x27,
   704  	0xc6, 0x36, 0xc5, 0xdd, 0x18, 0x47, 0xa1, 0x9e, 0xdf, 0xc9, 0x1f, 0x68, 0x87, 0x35, 0x93, 0x65,
   705  	0x68, 0x71, 0xdc, 0xc2, 0x51, 0x28, 0x9d, 0x2d, 0x70, 0x66, 0x10, 0x23, 0xba, 0x3c, 0x87, 0x20,
   706  	0x16, 0x14, 0xa2, 0xc8, 0x9d, 0x20, 0xba, 0x33, 0x08, 0x1d, 0xc1, 0x2a, 0xa1, 0x76, 0x4c, 0xbb,
   707  	0x4e, 0x38, 0x1a, 0x79, 0x54, 0x2f, 0x72, 0xe6, 0x3a, 0x67, 0x9e, 0x32, 0x43, 0x8b, 0xe3, 0x53,
   708  	0xaa, 0x46, 0xae, 0x31, 0xf4, 0x04, 0xfe, 0xee, 0x7b, 0x81, 0x47, 0x86, 0x53, 0xf2, 0x12, 0x27,
   709  	0xeb, 0x9c, 0xfc, 0x9c, 0x5b, 0x92, 0xec, 0xd5, 0xbe, 0x02, 0x32, 0xba, 0xac, 0x59, 0xd2, 0x97,
   710  	0x15, 0xba, 0xa8, 0x3a, 0x45, 0x77, 0x15, 0x90, 0xd1, 0xe5, 0x5d, 0xf5, 0x62, 0x3b, 0x70, 0x86,
   711  	0x7a, 0x49, 0xa1, 0x8b, 0xdb, 0x6a, 0x72, 0xc3, 0x8c, 0xee, 0x28, 0xa0, 0x92, 0x5d, 0xd2, 0x57,
   712  	0xe6, 0xb2, 0xa7, 0xe8, 0xae, 0x02, 0xa2, 0x36, 0x54, 0xc7, 0x91, 0xcb, 0xb2, 0xbf, 0x0f, 0x7b,
   713  	0x5d, 0x42, 0x6d, 0x8a, 0x75, 0x8d, 0x47, 0xa8, 0x9b, 0x4c, 0xfa, 0xd7, 0xdc, 0xf8, 0x32, 0xec,
   714  	0x9d, 0x52, 0xae, 0x91, 0x88, 0xf1, 0xcf, 0x38, 0x01, 0xa3, 0x16, 0x54, 0x64, 0x0f, 0x91, 0x17,
   715  	0x61, 0xdf, 0x0b, 0xb0, 0xbe, 0xaa, 0x04, 0x11, 0x5d, 0x9c, 0x48, 0xd3, 0x2c, 0x88, 0x93, 0x80,
   716  	0xd1, 0x63, 0x90, 0x82, 0x76, 0x6d, 0xdf, 0xd7, 0x81, 0xf3, 0x37, 0x4d, 0xf5, 0x51, 0xa4, 0xc7,
   717  	0xcf, 0x2a, 0xbb, 0x53, 0xc4, 0x38, 0x82, 0x7f, 0x13, 0x83, 0x48, 0xa2, 0x30, 0x20, 0x18, 0xed,
   718  	0x42, 0x49, 0xaa, 0x22, 0x66, 0x49, 0x13, 0xd7, 0x2a, 0xf4, 0x90, 0x26, 0x63, 0x1f, 0x34, 0x85,
   719  	0x8b, 0x6a, 0x50, 0xf0, 0x5c, 0x3e, 0xb4, 0xe5, 0x66, 0x69, 0xf2, 0x75, 0xbb, 0xd0, 0x69, 0x5b,
   720  	0x05, 0xcf, 0x35, 0x3e, 0x16, 0xa0, 0xa2, 0xf8, 0x75, 0x82, 0x3e, 0x9b, 0x3b, 0xf5, 0x8d, 0xca,
   721  	0x49, 0xd7, 0x13, 0x55, 0xab, 0x65, 0xa9, 0xce, 0xe8, 0x11, 0xfc, 0x15, 0x8b, 0x46, 0x88, 0x5e,
   722  	0xd8, 0x29, 0x1e, 0x68, 0x87, 0xdb, 0x99, 0x44, 0xd9, 0xf0, 0x8c, 0x80, 0x9e, 0x42, 0x39, 0x96,
   723  	0x4d, 0x12, 0xbd, 0xc8, 0xd9, 0x3b, 0xd9, 0x6c, 0xe1, 0x68, 0x5d, 0x53, 0xd0, 0x7d, 0x58, 0xe1,
   724  	0x6f, 0x00, 0xbb, 0x72, 0xdc, 0xeb, 0xa6, 0x58, 0x21, 0xe6, 0x74, 0x85, 0x98, 0x67, 0xd3, 0x15,
   725  	0x62, 0x4d, 0x5d, 0x8d, 0xb7, 0x50, 0x4d, 0xdd, 0x00, 0x41, 0x2f, 0xa0, 0xaa, 0xe4, 0xed, 0x7a,
   726  	0x41, 0x9f, 0xbd, 0x78, 0x56, 0xd0, 0x9d, 0xac, 0x82, 0x18, 0xd1, 0xaa, 0xd0, 0x24, 0x60, 0x9c,
   727  	0xc3, 0x7a, 0xd3, 0xa6, 0xce, 0x70, 0xc1, 0x42, 0x51, 0xaf, 0x2a, 0xff, 0x9b, 0x57, 0x65, 0x6c,
   728  	0xc0, 0x3a, 0x5f, 0x01, 0xf3, 0x4e, 0xc6, 0x05, 0x6c, 0x74, 0x02, 0x12, 0x61, 0x67, 0x81, 0xf1,
   729  	0x4f, 0xb4, 0x35, 0xce, 0x41, 0x17, 0xd3, 0x7a, 0xcb, 0x71, 0x75, 0xa8, 0xbd, 0xf2, 0xc8, 0xa2,
   730  	0x56, 0xce, 0x41, 0x17, 0xbb, 0xea, 0x76, 0x33, 0x1e, 0x7e, 0x5f, 0x82, 0xe2, 0xf1, 0x49, 0x07,
   731  	0xbd, 0x81, 0x6a, 0x5a, 0x1d, 0xb4, 0x97, 0x08, 0x91, 0x21, 0x5e, 0xfd, 0xc6, 0x31, 0x30, 0x72,
   732  	0xe8, 0x0c, 0xaa, 0x69, 0x7d, 0x52, 0x91, 0x33, 0xe4, 0xab, 0x67, 0xb6, 0x60, 0xe4, 0xd0, 0x3b,
   733  	0x40, 0xf3, 0xd2, 0xa2, 0xbb, 0x09, 0x46, 0xa6, 0xf6, 0xbf, 0x50, 0xf3, 0xda, 0x9c, 0xbe, 0x68,
   734  	0x7f, 0xc1, 0xb6, 0x5a, 0x10, 0xbb, 0x36, 0xf7, 0xd2, 0x9e, 0xb1, 0x5f, 0x72, 0x23, 0x87, 0x2e,
   735  	0xa0, 0x92, 0x52, 0x17, 0xed, 0x26, 0x62, 0x2e, 0xd6, 0xbe, 0xbe, 0x79, 0x53, 0xb5, 0xc4, 0xc8,
   736  	0xa1, 0x4b, 0x58, 0x9b, 0x1b, 0x8e, 0x54, 0xb9, 0x59, 0xc3, 0xf3, 0xd3, 0xab, 0x68, 0x43, 0x79,
   737  	0xb6, 0x98, 0xd1, 0xcd, 0x0b, 0x3b, 0xbb, 0xf5, 0x66, 0xeb, 0xf3, 0x64, 0x2b, 0xff, 0x65, 0xb2,
   738  	0x95, 0xff, 0x36, 0xd9, 0xca, 0x5f, 0x3e, 0x18, 0x78, 0x74, 0x38, 0xee, 0x99, 0x4e, 0x38, 0x6a,
   739  	0x44, 0xb6, 0x33, 0xbc, 0x72, 0x71, 0xac, 0x9e, 0x48, 0xec, 0x34, 0xe6, 0xff, 0x41, 0xf5, 0x4a,
   740  	0x3c, 0xec, 0xbd, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x15, 0x0b, 0x15, 0xfc, 0x5e, 0x09, 0x00,
   741  	0x00,
   742  }
   743  
   744  // Reference imports to suppress errors if they are not otherwise used.
   745  var _ context.Context
   746  var _ grpc.ClientConn
   747  
   748  // This is a compile-time assertion to ensure that this generated file
   749  // is compatible with the grpc package it is being compiled against.
   750  const _ = grpc.SupportPackageIsVersion4
   751  
   752  // APIClient is the client API for API service.
   753  //
   754  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   755  type APIClient interface {
   756  	// Transaction rpcs
   757  	BatchTransaction(ctx context.Context, in *BatchTransactionRequest, opts ...grpc.CallOption) (*TransactionInfo, error)
   758  	StartTransaction(ctx context.Context, in *StartTransactionRequest, opts ...grpc.CallOption) (*Transaction, error)
   759  	InspectTransaction(ctx context.Context, in *InspectTransactionRequest, opts ...grpc.CallOption) (*TransactionInfo, error)
   760  	DeleteTransaction(ctx context.Context, in *DeleteTransactionRequest, opts ...grpc.CallOption) (*types.Empty, error)
   761  	ListTransaction(ctx context.Context, in *ListTransactionRequest, opts ...grpc.CallOption) (*TransactionInfos, error)
   762  	FinishTransaction(ctx context.Context, in *FinishTransactionRequest, opts ...grpc.CallOption) (*TransactionInfo, error)
   763  	DeleteAll(ctx context.Context, in *DeleteAllRequest, opts ...grpc.CallOption) (*types.Empty, error)
   764  }
   765  
   766  type aPIClient struct {
   767  	cc *grpc.ClientConn
   768  }
   769  
   770  func NewAPIClient(cc *grpc.ClientConn) APIClient {
   771  	return &aPIClient{cc}
   772  }
   773  
   774  func (c *aPIClient) BatchTransaction(ctx context.Context, in *BatchTransactionRequest, opts ...grpc.CallOption) (*TransactionInfo, error) {
   775  	out := new(TransactionInfo)
   776  	err := c.cc.Invoke(ctx, "/transaction.API/BatchTransaction", in, out, opts...)
   777  	if err != nil {
   778  		return nil, err
   779  	}
   780  	return out, nil
   781  }
   782  
   783  func (c *aPIClient) StartTransaction(ctx context.Context, in *StartTransactionRequest, opts ...grpc.CallOption) (*Transaction, error) {
   784  	out := new(Transaction)
   785  	err := c.cc.Invoke(ctx, "/transaction.API/StartTransaction", in, out, opts...)
   786  	if err != nil {
   787  		return nil, err
   788  	}
   789  	return out, nil
   790  }
   791  
   792  func (c *aPIClient) InspectTransaction(ctx context.Context, in *InspectTransactionRequest, opts ...grpc.CallOption) (*TransactionInfo, error) {
   793  	out := new(TransactionInfo)
   794  	err := c.cc.Invoke(ctx, "/transaction.API/InspectTransaction", in, out, opts...)
   795  	if err != nil {
   796  		return nil, err
   797  	}
   798  	return out, nil
   799  }
   800  
   801  func (c *aPIClient) DeleteTransaction(ctx context.Context, in *DeleteTransactionRequest, opts ...grpc.CallOption) (*types.Empty, error) {
   802  	out := new(types.Empty)
   803  	err := c.cc.Invoke(ctx, "/transaction.API/DeleteTransaction", in, out, opts...)
   804  	if err != nil {
   805  		return nil, err
   806  	}
   807  	return out, nil
   808  }
   809  
   810  func (c *aPIClient) ListTransaction(ctx context.Context, in *ListTransactionRequest, opts ...grpc.CallOption) (*TransactionInfos, error) {
   811  	out := new(TransactionInfos)
   812  	err := c.cc.Invoke(ctx, "/transaction.API/ListTransaction", in, out, opts...)
   813  	if err != nil {
   814  		return nil, err
   815  	}
   816  	return out, nil
   817  }
   818  
   819  func (c *aPIClient) FinishTransaction(ctx context.Context, in *FinishTransactionRequest, opts ...grpc.CallOption) (*TransactionInfo, error) {
   820  	out := new(TransactionInfo)
   821  	err := c.cc.Invoke(ctx, "/transaction.API/FinishTransaction", in, out, opts...)
   822  	if err != nil {
   823  		return nil, err
   824  	}
   825  	return out, nil
   826  }
   827  
   828  func (c *aPIClient) DeleteAll(ctx context.Context, in *DeleteAllRequest, opts ...grpc.CallOption) (*types.Empty, error) {
   829  	out := new(types.Empty)
   830  	err := c.cc.Invoke(ctx, "/transaction.API/DeleteAll", in, out, opts...)
   831  	if err != nil {
   832  		return nil, err
   833  	}
   834  	return out, nil
   835  }
   836  
   837  // APIServer is the server API for API service.
   838  type APIServer interface {
   839  	// Transaction rpcs
   840  	BatchTransaction(context.Context, *BatchTransactionRequest) (*TransactionInfo, error)
   841  	StartTransaction(context.Context, *StartTransactionRequest) (*Transaction, error)
   842  	InspectTransaction(context.Context, *InspectTransactionRequest) (*TransactionInfo, error)
   843  	DeleteTransaction(context.Context, *DeleteTransactionRequest) (*types.Empty, error)
   844  	ListTransaction(context.Context, *ListTransactionRequest) (*TransactionInfos, error)
   845  	FinishTransaction(context.Context, *FinishTransactionRequest) (*TransactionInfo, error)
   846  	DeleteAll(context.Context, *DeleteAllRequest) (*types.Empty, error)
   847  }
   848  
   849  // UnimplementedAPIServer can be embedded to have forward compatible implementations.
   850  type UnimplementedAPIServer struct {
   851  }
   852  
   853  func (*UnimplementedAPIServer) BatchTransaction(ctx context.Context, req *BatchTransactionRequest) (*TransactionInfo, error) {
   854  	return nil, status.Errorf(codes.Unimplemented, "method BatchTransaction not implemented")
   855  }
   856  func (*UnimplementedAPIServer) StartTransaction(ctx context.Context, req *StartTransactionRequest) (*Transaction, error) {
   857  	return nil, status.Errorf(codes.Unimplemented, "method StartTransaction not implemented")
   858  }
   859  func (*UnimplementedAPIServer) InspectTransaction(ctx context.Context, req *InspectTransactionRequest) (*TransactionInfo, error) {
   860  	return nil, status.Errorf(codes.Unimplemented, "method InspectTransaction not implemented")
   861  }
   862  func (*UnimplementedAPIServer) DeleteTransaction(ctx context.Context, req *DeleteTransactionRequest) (*types.Empty, error) {
   863  	return nil, status.Errorf(codes.Unimplemented, "method DeleteTransaction not implemented")
   864  }
   865  func (*UnimplementedAPIServer) ListTransaction(ctx context.Context, req *ListTransactionRequest) (*TransactionInfos, error) {
   866  	return nil, status.Errorf(codes.Unimplemented, "method ListTransaction not implemented")
   867  }
   868  func (*UnimplementedAPIServer) FinishTransaction(ctx context.Context, req *FinishTransactionRequest) (*TransactionInfo, error) {
   869  	return nil, status.Errorf(codes.Unimplemented, "method FinishTransaction not implemented")
   870  }
   871  func (*UnimplementedAPIServer) DeleteAll(ctx context.Context, req *DeleteAllRequest) (*types.Empty, error) {
   872  	return nil, status.Errorf(codes.Unimplemented, "method DeleteAll not implemented")
   873  }
   874  
   875  func RegisterAPIServer(s *grpc.Server, srv APIServer) {
   876  	s.RegisterService(&_API_serviceDesc, srv)
   877  }
   878  
   879  func _API_BatchTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   880  	in := new(BatchTransactionRequest)
   881  	if err := dec(in); err != nil {
   882  		return nil, err
   883  	}
   884  	if interceptor == nil {
   885  		return srv.(APIServer).BatchTransaction(ctx, in)
   886  	}
   887  	info := &grpc.UnaryServerInfo{
   888  		Server:     srv,
   889  		FullMethod: "/transaction.API/BatchTransaction",
   890  	}
   891  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   892  		return srv.(APIServer).BatchTransaction(ctx, req.(*BatchTransactionRequest))
   893  	}
   894  	return interceptor(ctx, in, info, handler)
   895  }
   896  
   897  func _API_StartTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   898  	in := new(StartTransactionRequest)
   899  	if err := dec(in); err != nil {
   900  		return nil, err
   901  	}
   902  	if interceptor == nil {
   903  		return srv.(APIServer).StartTransaction(ctx, in)
   904  	}
   905  	info := &grpc.UnaryServerInfo{
   906  		Server:     srv,
   907  		FullMethod: "/transaction.API/StartTransaction",
   908  	}
   909  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   910  		return srv.(APIServer).StartTransaction(ctx, req.(*StartTransactionRequest))
   911  	}
   912  	return interceptor(ctx, in, info, handler)
   913  }
   914  
   915  func _API_InspectTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   916  	in := new(InspectTransactionRequest)
   917  	if err := dec(in); err != nil {
   918  		return nil, err
   919  	}
   920  	if interceptor == nil {
   921  		return srv.(APIServer).InspectTransaction(ctx, in)
   922  	}
   923  	info := &grpc.UnaryServerInfo{
   924  		Server:     srv,
   925  		FullMethod: "/transaction.API/InspectTransaction",
   926  	}
   927  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   928  		return srv.(APIServer).InspectTransaction(ctx, req.(*InspectTransactionRequest))
   929  	}
   930  	return interceptor(ctx, in, info, handler)
   931  }
   932  
   933  func _API_DeleteTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   934  	in := new(DeleteTransactionRequest)
   935  	if err := dec(in); err != nil {
   936  		return nil, err
   937  	}
   938  	if interceptor == nil {
   939  		return srv.(APIServer).DeleteTransaction(ctx, in)
   940  	}
   941  	info := &grpc.UnaryServerInfo{
   942  		Server:     srv,
   943  		FullMethod: "/transaction.API/DeleteTransaction",
   944  	}
   945  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   946  		return srv.(APIServer).DeleteTransaction(ctx, req.(*DeleteTransactionRequest))
   947  	}
   948  	return interceptor(ctx, in, info, handler)
   949  }
   950  
   951  func _API_ListTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   952  	in := new(ListTransactionRequest)
   953  	if err := dec(in); err != nil {
   954  		return nil, err
   955  	}
   956  	if interceptor == nil {
   957  		return srv.(APIServer).ListTransaction(ctx, in)
   958  	}
   959  	info := &grpc.UnaryServerInfo{
   960  		Server:     srv,
   961  		FullMethod: "/transaction.API/ListTransaction",
   962  	}
   963  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   964  		return srv.(APIServer).ListTransaction(ctx, req.(*ListTransactionRequest))
   965  	}
   966  	return interceptor(ctx, in, info, handler)
   967  }
   968  
   969  func _API_FinishTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   970  	in := new(FinishTransactionRequest)
   971  	if err := dec(in); err != nil {
   972  		return nil, err
   973  	}
   974  	if interceptor == nil {
   975  		return srv.(APIServer).FinishTransaction(ctx, in)
   976  	}
   977  	info := &grpc.UnaryServerInfo{
   978  		Server:     srv,
   979  		FullMethod: "/transaction.API/FinishTransaction",
   980  	}
   981  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   982  		return srv.(APIServer).FinishTransaction(ctx, req.(*FinishTransactionRequest))
   983  	}
   984  	return interceptor(ctx, in, info, handler)
   985  }
   986  
   987  func _API_DeleteAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   988  	in := new(DeleteAllRequest)
   989  	if err := dec(in); err != nil {
   990  		return nil, err
   991  	}
   992  	if interceptor == nil {
   993  		return srv.(APIServer).DeleteAll(ctx, in)
   994  	}
   995  	info := &grpc.UnaryServerInfo{
   996  		Server:     srv,
   997  		FullMethod: "/transaction.API/DeleteAll",
   998  	}
   999  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1000  		return srv.(APIServer).DeleteAll(ctx, req.(*DeleteAllRequest))
  1001  	}
  1002  	return interceptor(ctx, in, info, handler)
  1003  }
  1004  
  1005  var _API_serviceDesc = grpc.ServiceDesc{
  1006  	ServiceName: "transaction.API",
  1007  	HandlerType: (*APIServer)(nil),
  1008  	Methods: []grpc.MethodDesc{
  1009  		{
  1010  			MethodName: "BatchTransaction",
  1011  			Handler:    _API_BatchTransaction_Handler,
  1012  		},
  1013  		{
  1014  			MethodName: "StartTransaction",
  1015  			Handler:    _API_StartTransaction_Handler,
  1016  		},
  1017  		{
  1018  			MethodName: "InspectTransaction",
  1019  			Handler:    _API_InspectTransaction_Handler,
  1020  		},
  1021  		{
  1022  			MethodName: "DeleteTransaction",
  1023  			Handler:    _API_DeleteTransaction_Handler,
  1024  		},
  1025  		{
  1026  			MethodName: "ListTransaction",
  1027  			Handler:    _API_ListTransaction_Handler,
  1028  		},
  1029  		{
  1030  			MethodName: "FinishTransaction",
  1031  			Handler:    _API_FinishTransaction_Handler,
  1032  		},
  1033  		{
  1034  			MethodName: "DeleteAll",
  1035  			Handler:    _API_DeleteAll_Handler,
  1036  		},
  1037  	},
  1038  	Streams:  []grpc.StreamDesc{},
  1039  	Metadata: "client/transaction/transaction.proto",
  1040  }
  1041  
  1042  func (m *DeleteAllRequest) Marshal() (dAtA []byte, err error) {
  1043  	size := m.Size()
  1044  	dAtA = make([]byte, size)
  1045  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1046  	if err != nil {
  1047  		return nil, err
  1048  	}
  1049  	return dAtA[:n], nil
  1050  }
  1051  
  1052  func (m *DeleteAllRequest) MarshalTo(dAtA []byte) (int, error) {
  1053  	size := m.Size()
  1054  	return m.MarshalToSizedBuffer(dAtA[:size])
  1055  }
  1056  
  1057  func (m *DeleteAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1058  	i := len(dAtA)
  1059  	_ = i
  1060  	var l int
  1061  	_ = l
  1062  	if m.XXX_unrecognized != nil {
  1063  		i -= len(m.XXX_unrecognized)
  1064  		copy(dAtA[i:], m.XXX_unrecognized)
  1065  	}
  1066  	return len(dAtA) - i, nil
  1067  }
  1068  
  1069  func (m *TransactionRequest) Marshal() (dAtA []byte, err error) {
  1070  	size := m.Size()
  1071  	dAtA = make([]byte, size)
  1072  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1073  	if err != nil {
  1074  		return nil, err
  1075  	}
  1076  	return dAtA[:n], nil
  1077  }
  1078  
  1079  func (m *TransactionRequest) MarshalTo(dAtA []byte) (int, error) {
  1080  	size := m.Size()
  1081  	return m.MarshalToSizedBuffer(dAtA[:size])
  1082  }
  1083  
  1084  func (m *TransactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1085  	i := len(dAtA)
  1086  	_ = i
  1087  	var l int
  1088  	_ = l
  1089  	if m.XXX_unrecognized != nil {
  1090  		i -= len(m.XXX_unrecognized)
  1091  		copy(dAtA[i:], m.XXX_unrecognized)
  1092  	}
  1093  	if m.CreatePipeline != nil {
  1094  		{
  1095  			size, err := m.CreatePipeline.MarshalToSizedBuffer(dAtA[:i])
  1096  			if err != nil {
  1097  				return 0, err
  1098  			}
  1099  			i -= size
  1100  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1101  		}
  1102  		i--
  1103  		dAtA[i] = 0x62
  1104  	}
  1105  	if m.UpdateJobState != nil {
  1106  		{
  1107  			size, err := m.UpdateJobState.MarshalToSizedBuffer(dAtA[:i])
  1108  			if err != nil {
  1109  				return 0, err
  1110  			}
  1111  			i -= size
  1112  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1113  		}
  1114  		i--
  1115  		dAtA[i] = 0x5a
  1116  	}
  1117  	if m.DeleteAll != nil {
  1118  		{
  1119  			size, err := m.DeleteAll.MarshalToSizedBuffer(dAtA[:i])
  1120  			if err != nil {
  1121  				return 0, err
  1122  			}
  1123  			i -= size
  1124  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1125  		}
  1126  		i--
  1127  		dAtA[i] = 0x52
  1128  	}
  1129  	if m.DeleteBranch != nil {
  1130  		{
  1131  			size, err := m.DeleteBranch.MarshalToSizedBuffer(dAtA[:i])
  1132  			if err != nil {
  1133  				return 0, err
  1134  			}
  1135  			i -= size
  1136  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1137  		}
  1138  		i--
  1139  		dAtA[i] = 0x3a
  1140  	}
  1141  	if m.CreateBranch != nil {
  1142  		{
  1143  			size, err := m.CreateBranch.MarshalToSizedBuffer(dAtA[:i])
  1144  			if err != nil {
  1145  				return 0, err
  1146  			}
  1147  			i -= size
  1148  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1149  		}
  1150  		i--
  1151  		dAtA[i] = 0x32
  1152  	}
  1153  	if m.DeleteCommit != nil {
  1154  		{
  1155  			size, err := m.DeleteCommit.MarshalToSizedBuffer(dAtA[:i])
  1156  			if err != nil {
  1157  				return 0, err
  1158  			}
  1159  			i -= size
  1160  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1161  		}
  1162  		i--
  1163  		dAtA[i] = 0x2a
  1164  	}
  1165  	if m.FinishCommit != nil {
  1166  		{
  1167  			size, err := m.FinishCommit.MarshalToSizedBuffer(dAtA[:i])
  1168  			if err != nil {
  1169  				return 0, err
  1170  			}
  1171  			i -= size
  1172  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1173  		}
  1174  		i--
  1175  		dAtA[i] = 0x22
  1176  	}
  1177  	if m.StartCommit != nil {
  1178  		{
  1179  			size, err := m.StartCommit.MarshalToSizedBuffer(dAtA[:i])
  1180  			if err != nil {
  1181  				return 0, err
  1182  			}
  1183  			i -= size
  1184  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1185  		}
  1186  		i--
  1187  		dAtA[i] = 0x1a
  1188  	}
  1189  	if m.DeleteRepo != nil {
  1190  		{
  1191  			size, err := m.DeleteRepo.MarshalToSizedBuffer(dAtA[:i])
  1192  			if err != nil {
  1193  				return 0, err
  1194  			}
  1195  			i -= size
  1196  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1197  		}
  1198  		i--
  1199  		dAtA[i] = 0x12
  1200  	}
  1201  	if m.CreateRepo != nil {
  1202  		{
  1203  			size, err := m.CreateRepo.MarshalToSizedBuffer(dAtA[:i])
  1204  			if err != nil {
  1205  				return 0, err
  1206  			}
  1207  			i -= size
  1208  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1209  		}
  1210  		i--
  1211  		dAtA[i] = 0xa
  1212  	}
  1213  	return len(dAtA) - i, nil
  1214  }
  1215  
  1216  func (m *TransactionResponse) Marshal() (dAtA []byte, err error) {
  1217  	size := m.Size()
  1218  	dAtA = make([]byte, size)
  1219  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1220  	if err != nil {
  1221  		return nil, err
  1222  	}
  1223  	return dAtA[:n], nil
  1224  }
  1225  
  1226  func (m *TransactionResponse) MarshalTo(dAtA []byte) (int, error) {
  1227  	size := m.Size()
  1228  	return m.MarshalToSizedBuffer(dAtA[:size])
  1229  }
  1230  
  1231  func (m *TransactionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1232  	i := len(dAtA)
  1233  	_ = i
  1234  	var l int
  1235  	_ = l
  1236  	if m.XXX_unrecognized != nil {
  1237  		i -= len(m.XXX_unrecognized)
  1238  		copy(dAtA[i:], m.XXX_unrecognized)
  1239  	}
  1240  	if m.Commit != nil {
  1241  		{
  1242  			size, err := m.Commit.MarshalToSizedBuffer(dAtA[:i])
  1243  			if err != nil {
  1244  				return 0, err
  1245  			}
  1246  			i -= size
  1247  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1248  		}
  1249  		i--
  1250  		dAtA[i] = 0x12
  1251  	}
  1252  	return len(dAtA) - i, nil
  1253  }
  1254  
  1255  func (m *Transaction) Marshal() (dAtA []byte, err error) {
  1256  	size := m.Size()
  1257  	dAtA = make([]byte, size)
  1258  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1259  	if err != nil {
  1260  		return nil, err
  1261  	}
  1262  	return dAtA[:n], nil
  1263  }
  1264  
  1265  func (m *Transaction) MarshalTo(dAtA []byte) (int, error) {
  1266  	size := m.Size()
  1267  	return m.MarshalToSizedBuffer(dAtA[:size])
  1268  }
  1269  
  1270  func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1271  	i := len(dAtA)
  1272  	_ = i
  1273  	var l int
  1274  	_ = l
  1275  	if m.XXX_unrecognized != nil {
  1276  		i -= len(m.XXX_unrecognized)
  1277  		copy(dAtA[i:], m.XXX_unrecognized)
  1278  	}
  1279  	if len(m.ID) > 0 {
  1280  		i -= len(m.ID)
  1281  		copy(dAtA[i:], m.ID)
  1282  		i = encodeVarintTransaction(dAtA, i, uint64(len(m.ID)))
  1283  		i--
  1284  		dAtA[i] = 0xa
  1285  	}
  1286  	return len(dAtA) - i, nil
  1287  }
  1288  
  1289  func (m *TransactionInfo) Marshal() (dAtA []byte, err error) {
  1290  	size := m.Size()
  1291  	dAtA = make([]byte, size)
  1292  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1293  	if err != nil {
  1294  		return nil, err
  1295  	}
  1296  	return dAtA[:n], nil
  1297  }
  1298  
  1299  func (m *TransactionInfo) MarshalTo(dAtA []byte) (int, error) {
  1300  	size := m.Size()
  1301  	return m.MarshalToSizedBuffer(dAtA[:size])
  1302  }
  1303  
  1304  func (m *TransactionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1305  	i := len(dAtA)
  1306  	_ = i
  1307  	var l int
  1308  	_ = l
  1309  	if m.XXX_unrecognized != nil {
  1310  		i -= len(m.XXX_unrecognized)
  1311  		copy(dAtA[i:], m.XXX_unrecognized)
  1312  	}
  1313  	if m.Started != nil {
  1314  		{
  1315  			size, err := m.Started.MarshalToSizedBuffer(dAtA[:i])
  1316  			if err != nil {
  1317  				return 0, err
  1318  			}
  1319  			i -= size
  1320  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1321  		}
  1322  		i--
  1323  		dAtA[i] = 0x22
  1324  	}
  1325  	if len(m.Responses) > 0 {
  1326  		for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- {
  1327  			{
  1328  				size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1329  				if err != nil {
  1330  					return 0, err
  1331  				}
  1332  				i -= size
  1333  				i = encodeVarintTransaction(dAtA, i, uint64(size))
  1334  			}
  1335  			i--
  1336  			dAtA[i] = 0x1a
  1337  		}
  1338  	}
  1339  	if len(m.Requests) > 0 {
  1340  		for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- {
  1341  			{
  1342  				size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1343  				if err != nil {
  1344  					return 0, err
  1345  				}
  1346  				i -= size
  1347  				i = encodeVarintTransaction(dAtA, i, uint64(size))
  1348  			}
  1349  			i--
  1350  			dAtA[i] = 0x12
  1351  		}
  1352  	}
  1353  	if m.Transaction != nil {
  1354  		{
  1355  			size, err := m.Transaction.MarshalToSizedBuffer(dAtA[:i])
  1356  			if err != nil {
  1357  				return 0, err
  1358  			}
  1359  			i -= size
  1360  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1361  		}
  1362  		i--
  1363  		dAtA[i] = 0xa
  1364  	}
  1365  	return len(dAtA) - i, nil
  1366  }
  1367  
  1368  func (m *TransactionInfos) Marshal() (dAtA []byte, err error) {
  1369  	size := m.Size()
  1370  	dAtA = make([]byte, size)
  1371  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1372  	if err != nil {
  1373  		return nil, err
  1374  	}
  1375  	return dAtA[:n], nil
  1376  }
  1377  
  1378  func (m *TransactionInfos) MarshalTo(dAtA []byte) (int, error) {
  1379  	size := m.Size()
  1380  	return m.MarshalToSizedBuffer(dAtA[:size])
  1381  }
  1382  
  1383  func (m *TransactionInfos) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1384  	i := len(dAtA)
  1385  	_ = i
  1386  	var l int
  1387  	_ = l
  1388  	if m.XXX_unrecognized != nil {
  1389  		i -= len(m.XXX_unrecognized)
  1390  		copy(dAtA[i:], m.XXX_unrecognized)
  1391  	}
  1392  	if len(m.TransactionInfo) > 0 {
  1393  		for iNdEx := len(m.TransactionInfo) - 1; iNdEx >= 0; iNdEx-- {
  1394  			{
  1395  				size, err := m.TransactionInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1396  				if err != nil {
  1397  					return 0, err
  1398  				}
  1399  				i -= size
  1400  				i = encodeVarintTransaction(dAtA, i, uint64(size))
  1401  			}
  1402  			i--
  1403  			dAtA[i] = 0xa
  1404  		}
  1405  	}
  1406  	return len(dAtA) - i, nil
  1407  }
  1408  
  1409  func (m *BatchTransactionRequest) Marshal() (dAtA []byte, err error) {
  1410  	size := m.Size()
  1411  	dAtA = make([]byte, size)
  1412  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1413  	if err != nil {
  1414  		return nil, err
  1415  	}
  1416  	return dAtA[:n], nil
  1417  }
  1418  
  1419  func (m *BatchTransactionRequest) MarshalTo(dAtA []byte) (int, error) {
  1420  	size := m.Size()
  1421  	return m.MarshalToSizedBuffer(dAtA[:size])
  1422  }
  1423  
  1424  func (m *BatchTransactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1425  	i := len(dAtA)
  1426  	_ = i
  1427  	var l int
  1428  	_ = l
  1429  	if m.XXX_unrecognized != nil {
  1430  		i -= len(m.XXX_unrecognized)
  1431  		copy(dAtA[i:], m.XXX_unrecognized)
  1432  	}
  1433  	if len(m.Requests) > 0 {
  1434  		for iNdEx := len(m.Requests) - 1; iNdEx >= 0; iNdEx-- {
  1435  			{
  1436  				size, err := m.Requests[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1437  				if err != nil {
  1438  					return 0, err
  1439  				}
  1440  				i -= size
  1441  				i = encodeVarintTransaction(dAtA, i, uint64(size))
  1442  			}
  1443  			i--
  1444  			dAtA[i] = 0xa
  1445  		}
  1446  	}
  1447  	return len(dAtA) - i, nil
  1448  }
  1449  
  1450  func (m *StartTransactionRequest) Marshal() (dAtA []byte, err error) {
  1451  	size := m.Size()
  1452  	dAtA = make([]byte, size)
  1453  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1454  	if err != nil {
  1455  		return nil, err
  1456  	}
  1457  	return dAtA[:n], nil
  1458  }
  1459  
  1460  func (m *StartTransactionRequest) MarshalTo(dAtA []byte) (int, error) {
  1461  	size := m.Size()
  1462  	return m.MarshalToSizedBuffer(dAtA[:size])
  1463  }
  1464  
  1465  func (m *StartTransactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1466  	i := len(dAtA)
  1467  	_ = i
  1468  	var l int
  1469  	_ = l
  1470  	if m.XXX_unrecognized != nil {
  1471  		i -= len(m.XXX_unrecognized)
  1472  		copy(dAtA[i:], m.XXX_unrecognized)
  1473  	}
  1474  	return len(dAtA) - i, nil
  1475  }
  1476  
  1477  func (m *InspectTransactionRequest) Marshal() (dAtA []byte, err error) {
  1478  	size := m.Size()
  1479  	dAtA = make([]byte, size)
  1480  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1481  	if err != nil {
  1482  		return nil, err
  1483  	}
  1484  	return dAtA[:n], nil
  1485  }
  1486  
  1487  func (m *InspectTransactionRequest) MarshalTo(dAtA []byte) (int, error) {
  1488  	size := m.Size()
  1489  	return m.MarshalToSizedBuffer(dAtA[:size])
  1490  }
  1491  
  1492  func (m *InspectTransactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1493  	i := len(dAtA)
  1494  	_ = i
  1495  	var l int
  1496  	_ = l
  1497  	if m.XXX_unrecognized != nil {
  1498  		i -= len(m.XXX_unrecognized)
  1499  		copy(dAtA[i:], m.XXX_unrecognized)
  1500  	}
  1501  	if m.Transaction != nil {
  1502  		{
  1503  			size, err := m.Transaction.MarshalToSizedBuffer(dAtA[:i])
  1504  			if err != nil {
  1505  				return 0, err
  1506  			}
  1507  			i -= size
  1508  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1509  		}
  1510  		i--
  1511  		dAtA[i] = 0xa
  1512  	}
  1513  	return len(dAtA) - i, nil
  1514  }
  1515  
  1516  func (m *DeleteTransactionRequest) Marshal() (dAtA []byte, err error) {
  1517  	size := m.Size()
  1518  	dAtA = make([]byte, size)
  1519  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1520  	if err != nil {
  1521  		return nil, err
  1522  	}
  1523  	return dAtA[:n], nil
  1524  }
  1525  
  1526  func (m *DeleteTransactionRequest) MarshalTo(dAtA []byte) (int, error) {
  1527  	size := m.Size()
  1528  	return m.MarshalToSizedBuffer(dAtA[:size])
  1529  }
  1530  
  1531  func (m *DeleteTransactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1532  	i := len(dAtA)
  1533  	_ = i
  1534  	var l int
  1535  	_ = l
  1536  	if m.XXX_unrecognized != nil {
  1537  		i -= len(m.XXX_unrecognized)
  1538  		copy(dAtA[i:], m.XXX_unrecognized)
  1539  	}
  1540  	if m.Transaction != nil {
  1541  		{
  1542  			size, err := m.Transaction.MarshalToSizedBuffer(dAtA[:i])
  1543  			if err != nil {
  1544  				return 0, err
  1545  			}
  1546  			i -= size
  1547  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1548  		}
  1549  		i--
  1550  		dAtA[i] = 0xa
  1551  	}
  1552  	return len(dAtA) - i, nil
  1553  }
  1554  
  1555  func (m *ListTransactionRequest) Marshal() (dAtA []byte, err error) {
  1556  	size := m.Size()
  1557  	dAtA = make([]byte, size)
  1558  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1559  	if err != nil {
  1560  		return nil, err
  1561  	}
  1562  	return dAtA[:n], nil
  1563  }
  1564  
  1565  func (m *ListTransactionRequest) MarshalTo(dAtA []byte) (int, error) {
  1566  	size := m.Size()
  1567  	return m.MarshalToSizedBuffer(dAtA[:size])
  1568  }
  1569  
  1570  func (m *ListTransactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1571  	i := len(dAtA)
  1572  	_ = i
  1573  	var l int
  1574  	_ = l
  1575  	if m.XXX_unrecognized != nil {
  1576  		i -= len(m.XXX_unrecognized)
  1577  		copy(dAtA[i:], m.XXX_unrecognized)
  1578  	}
  1579  	return len(dAtA) - i, nil
  1580  }
  1581  
  1582  func (m *FinishTransactionRequest) Marshal() (dAtA []byte, err error) {
  1583  	size := m.Size()
  1584  	dAtA = make([]byte, size)
  1585  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1586  	if err != nil {
  1587  		return nil, err
  1588  	}
  1589  	return dAtA[:n], nil
  1590  }
  1591  
  1592  func (m *FinishTransactionRequest) MarshalTo(dAtA []byte) (int, error) {
  1593  	size := m.Size()
  1594  	return m.MarshalToSizedBuffer(dAtA[:size])
  1595  }
  1596  
  1597  func (m *FinishTransactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1598  	i := len(dAtA)
  1599  	_ = i
  1600  	var l int
  1601  	_ = l
  1602  	if m.XXX_unrecognized != nil {
  1603  		i -= len(m.XXX_unrecognized)
  1604  		copy(dAtA[i:], m.XXX_unrecognized)
  1605  	}
  1606  	if m.Transaction != nil {
  1607  		{
  1608  			size, err := m.Transaction.MarshalToSizedBuffer(dAtA[:i])
  1609  			if err != nil {
  1610  				return 0, err
  1611  			}
  1612  			i -= size
  1613  			i = encodeVarintTransaction(dAtA, i, uint64(size))
  1614  		}
  1615  		i--
  1616  		dAtA[i] = 0xa
  1617  	}
  1618  	return len(dAtA) - i, nil
  1619  }
  1620  
  1621  func encodeVarintTransaction(dAtA []byte, offset int, v uint64) int {
  1622  	offset -= sovTransaction(v)
  1623  	base := offset
  1624  	for v >= 1<<7 {
  1625  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1626  		v >>= 7
  1627  		offset++
  1628  	}
  1629  	dAtA[offset] = uint8(v)
  1630  	return base
  1631  }
  1632  func (m *DeleteAllRequest) Size() (n int) {
  1633  	if m == nil {
  1634  		return 0
  1635  	}
  1636  	var l int
  1637  	_ = l
  1638  	if m.XXX_unrecognized != nil {
  1639  		n += len(m.XXX_unrecognized)
  1640  	}
  1641  	return n
  1642  }
  1643  
  1644  func (m *TransactionRequest) Size() (n int) {
  1645  	if m == nil {
  1646  		return 0
  1647  	}
  1648  	var l int
  1649  	_ = l
  1650  	if m.CreateRepo != nil {
  1651  		l = m.CreateRepo.Size()
  1652  		n += 1 + l + sovTransaction(uint64(l))
  1653  	}
  1654  	if m.DeleteRepo != nil {
  1655  		l = m.DeleteRepo.Size()
  1656  		n += 1 + l + sovTransaction(uint64(l))
  1657  	}
  1658  	if m.StartCommit != nil {
  1659  		l = m.StartCommit.Size()
  1660  		n += 1 + l + sovTransaction(uint64(l))
  1661  	}
  1662  	if m.FinishCommit != nil {
  1663  		l = m.FinishCommit.Size()
  1664  		n += 1 + l + sovTransaction(uint64(l))
  1665  	}
  1666  	if m.DeleteCommit != nil {
  1667  		l = m.DeleteCommit.Size()
  1668  		n += 1 + l + sovTransaction(uint64(l))
  1669  	}
  1670  	if m.CreateBranch != nil {
  1671  		l = m.CreateBranch.Size()
  1672  		n += 1 + l + sovTransaction(uint64(l))
  1673  	}
  1674  	if m.DeleteBranch != nil {
  1675  		l = m.DeleteBranch.Size()
  1676  		n += 1 + l + sovTransaction(uint64(l))
  1677  	}
  1678  	if m.DeleteAll != nil {
  1679  		l = m.DeleteAll.Size()
  1680  		n += 1 + l + sovTransaction(uint64(l))
  1681  	}
  1682  	if m.UpdateJobState != nil {
  1683  		l = m.UpdateJobState.Size()
  1684  		n += 1 + l + sovTransaction(uint64(l))
  1685  	}
  1686  	if m.CreatePipeline != nil {
  1687  		l = m.CreatePipeline.Size()
  1688  		n += 1 + l + sovTransaction(uint64(l))
  1689  	}
  1690  	if m.XXX_unrecognized != nil {
  1691  		n += len(m.XXX_unrecognized)
  1692  	}
  1693  	return n
  1694  }
  1695  
  1696  func (m *TransactionResponse) Size() (n int) {
  1697  	if m == nil {
  1698  		return 0
  1699  	}
  1700  	var l int
  1701  	_ = l
  1702  	if m.Commit != nil {
  1703  		l = m.Commit.Size()
  1704  		n += 1 + l + sovTransaction(uint64(l))
  1705  	}
  1706  	if m.XXX_unrecognized != nil {
  1707  		n += len(m.XXX_unrecognized)
  1708  	}
  1709  	return n
  1710  }
  1711  
  1712  func (m *Transaction) Size() (n int) {
  1713  	if m == nil {
  1714  		return 0
  1715  	}
  1716  	var l int
  1717  	_ = l
  1718  	l = len(m.ID)
  1719  	if l > 0 {
  1720  		n += 1 + l + sovTransaction(uint64(l))
  1721  	}
  1722  	if m.XXX_unrecognized != nil {
  1723  		n += len(m.XXX_unrecognized)
  1724  	}
  1725  	return n
  1726  }
  1727  
  1728  func (m *TransactionInfo) Size() (n int) {
  1729  	if m == nil {
  1730  		return 0
  1731  	}
  1732  	var l int
  1733  	_ = l
  1734  	if m.Transaction != nil {
  1735  		l = m.Transaction.Size()
  1736  		n += 1 + l + sovTransaction(uint64(l))
  1737  	}
  1738  	if len(m.Requests) > 0 {
  1739  		for _, e := range m.Requests {
  1740  			l = e.Size()
  1741  			n += 1 + l + sovTransaction(uint64(l))
  1742  		}
  1743  	}
  1744  	if len(m.Responses) > 0 {
  1745  		for _, e := range m.Responses {
  1746  			l = e.Size()
  1747  			n += 1 + l + sovTransaction(uint64(l))
  1748  		}
  1749  	}
  1750  	if m.Started != nil {
  1751  		l = m.Started.Size()
  1752  		n += 1 + l + sovTransaction(uint64(l))
  1753  	}
  1754  	if m.XXX_unrecognized != nil {
  1755  		n += len(m.XXX_unrecognized)
  1756  	}
  1757  	return n
  1758  }
  1759  
  1760  func (m *TransactionInfos) Size() (n int) {
  1761  	if m == nil {
  1762  		return 0
  1763  	}
  1764  	var l int
  1765  	_ = l
  1766  	if len(m.TransactionInfo) > 0 {
  1767  		for _, e := range m.TransactionInfo {
  1768  			l = e.Size()
  1769  			n += 1 + l + sovTransaction(uint64(l))
  1770  		}
  1771  	}
  1772  	if m.XXX_unrecognized != nil {
  1773  		n += len(m.XXX_unrecognized)
  1774  	}
  1775  	return n
  1776  }
  1777  
  1778  func (m *BatchTransactionRequest) Size() (n int) {
  1779  	if m == nil {
  1780  		return 0
  1781  	}
  1782  	var l int
  1783  	_ = l
  1784  	if len(m.Requests) > 0 {
  1785  		for _, e := range m.Requests {
  1786  			l = e.Size()
  1787  			n += 1 + l + sovTransaction(uint64(l))
  1788  		}
  1789  	}
  1790  	if m.XXX_unrecognized != nil {
  1791  		n += len(m.XXX_unrecognized)
  1792  	}
  1793  	return n
  1794  }
  1795  
  1796  func (m *StartTransactionRequest) Size() (n int) {
  1797  	if m == nil {
  1798  		return 0
  1799  	}
  1800  	var l int
  1801  	_ = l
  1802  	if m.XXX_unrecognized != nil {
  1803  		n += len(m.XXX_unrecognized)
  1804  	}
  1805  	return n
  1806  }
  1807  
  1808  func (m *InspectTransactionRequest) Size() (n int) {
  1809  	if m == nil {
  1810  		return 0
  1811  	}
  1812  	var l int
  1813  	_ = l
  1814  	if m.Transaction != nil {
  1815  		l = m.Transaction.Size()
  1816  		n += 1 + l + sovTransaction(uint64(l))
  1817  	}
  1818  	if m.XXX_unrecognized != nil {
  1819  		n += len(m.XXX_unrecognized)
  1820  	}
  1821  	return n
  1822  }
  1823  
  1824  func (m *DeleteTransactionRequest) Size() (n int) {
  1825  	if m == nil {
  1826  		return 0
  1827  	}
  1828  	var l int
  1829  	_ = l
  1830  	if m.Transaction != nil {
  1831  		l = m.Transaction.Size()
  1832  		n += 1 + l + sovTransaction(uint64(l))
  1833  	}
  1834  	if m.XXX_unrecognized != nil {
  1835  		n += len(m.XXX_unrecognized)
  1836  	}
  1837  	return n
  1838  }
  1839  
  1840  func (m *ListTransactionRequest) Size() (n int) {
  1841  	if m == nil {
  1842  		return 0
  1843  	}
  1844  	var l int
  1845  	_ = l
  1846  	if m.XXX_unrecognized != nil {
  1847  		n += len(m.XXX_unrecognized)
  1848  	}
  1849  	return n
  1850  }
  1851  
  1852  func (m *FinishTransactionRequest) Size() (n int) {
  1853  	if m == nil {
  1854  		return 0
  1855  	}
  1856  	var l int
  1857  	_ = l
  1858  	if m.Transaction != nil {
  1859  		l = m.Transaction.Size()
  1860  		n += 1 + l + sovTransaction(uint64(l))
  1861  	}
  1862  	if m.XXX_unrecognized != nil {
  1863  		n += len(m.XXX_unrecognized)
  1864  	}
  1865  	return n
  1866  }
  1867  
  1868  func sovTransaction(x uint64) (n int) {
  1869  	return (math_bits.Len64(x|1) + 6) / 7
  1870  }
  1871  func sozTransaction(x uint64) (n int) {
  1872  	return sovTransaction(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1873  }
  1874  func (m *DeleteAllRequest) Unmarshal(dAtA []byte) error {
  1875  	l := len(dAtA)
  1876  	iNdEx := 0
  1877  	for iNdEx < l {
  1878  		preIndex := iNdEx
  1879  		var wire uint64
  1880  		for shift := uint(0); ; shift += 7 {
  1881  			if shift >= 64 {
  1882  				return ErrIntOverflowTransaction
  1883  			}
  1884  			if iNdEx >= l {
  1885  				return io.ErrUnexpectedEOF
  1886  			}
  1887  			b := dAtA[iNdEx]
  1888  			iNdEx++
  1889  			wire |= uint64(b&0x7F) << shift
  1890  			if b < 0x80 {
  1891  				break
  1892  			}
  1893  		}
  1894  		fieldNum := int32(wire >> 3)
  1895  		wireType := int(wire & 0x7)
  1896  		if wireType == 4 {
  1897  			return fmt.Errorf("proto: DeleteAllRequest: wiretype end group for non-group")
  1898  		}
  1899  		if fieldNum <= 0 {
  1900  			return fmt.Errorf("proto: DeleteAllRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1901  		}
  1902  		switch fieldNum {
  1903  		default:
  1904  			iNdEx = preIndex
  1905  			skippy, err := skipTransaction(dAtA[iNdEx:])
  1906  			if err != nil {
  1907  				return err
  1908  			}
  1909  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1910  				return ErrInvalidLengthTransaction
  1911  			}
  1912  			if (iNdEx + skippy) > l {
  1913  				return io.ErrUnexpectedEOF
  1914  			}
  1915  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1916  			iNdEx += skippy
  1917  		}
  1918  	}
  1919  
  1920  	if iNdEx > l {
  1921  		return io.ErrUnexpectedEOF
  1922  	}
  1923  	return nil
  1924  }
  1925  func (m *TransactionRequest) Unmarshal(dAtA []byte) error {
  1926  	l := len(dAtA)
  1927  	iNdEx := 0
  1928  	for iNdEx < l {
  1929  		preIndex := iNdEx
  1930  		var wire uint64
  1931  		for shift := uint(0); ; shift += 7 {
  1932  			if shift >= 64 {
  1933  				return ErrIntOverflowTransaction
  1934  			}
  1935  			if iNdEx >= l {
  1936  				return io.ErrUnexpectedEOF
  1937  			}
  1938  			b := dAtA[iNdEx]
  1939  			iNdEx++
  1940  			wire |= uint64(b&0x7F) << shift
  1941  			if b < 0x80 {
  1942  				break
  1943  			}
  1944  		}
  1945  		fieldNum := int32(wire >> 3)
  1946  		wireType := int(wire & 0x7)
  1947  		if wireType == 4 {
  1948  			return fmt.Errorf("proto: TransactionRequest: wiretype end group for non-group")
  1949  		}
  1950  		if fieldNum <= 0 {
  1951  			return fmt.Errorf("proto: TransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1952  		}
  1953  		switch fieldNum {
  1954  		case 1:
  1955  			if wireType != 2 {
  1956  				return fmt.Errorf("proto: wrong wireType = %d for field CreateRepo", wireType)
  1957  			}
  1958  			var msglen int
  1959  			for shift := uint(0); ; shift += 7 {
  1960  				if shift >= 64 {
  1961  					return ErrIntOverflowTransaction
  1962  				}
  1963  				if iNdEx >= l {
  1964  					return io.ErrUnexpectedEOF
  1965  				}
  1966  				b := dAtA[iNdEx]
  1967  				iNdEx++
  1968  				msglen |= int(b&0x7F) << shift
  1969  				if b < 0x80 {
  1970  					break
  1971  				}
  1972  			}
  1973  			if msglen < 0 {
  1974  				return ErrInvalidLengthTransaction
  1975  			}
  1976  			postIndex := iNdEx + msglen
  1977  			if postIndex < 0 {
  1978  				return ErrInvalidLengthTransaction
  1979  			}
  1980  			if postIndex > l {
  1981  				return io.ErrUnexpectedEOF
  1982  			}
  1983  			if m.CreateRepo == nil {
  1984  				m.CreateRepo = &pfs.CreateRepoRequest{}
  1985  			}
  1986  			if err := m.CreateRepo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1987  				return err
  1988  			}
  1989  			iNdEx = postIndex
  1990  		case 2:
  1991  			if wireType != 2 {
  1992  				return fmt.Errorf("proto: wrong wireType = %d for field DeleteRepo", wireType)
  1993  			}
  1994  			var msglen int
  1995  			for shift := uint(0); ; shift += 7 {
  1996  				if shift >= 64 {
  1997  					return ErrIntOverflowTransaction
  1998  				}
  1999  				if iNdEx >= l {
  2000  					return io.ErrUnexpectedEOF
  2001  				}
  2002  				b := dAtA[iNdEx]
  2003  				iNdEx++
  2004  				msglen |= int(b&0x7F) << shift
  2005  				if b < 0x80 {
  2006  					break
  2007  				}
  2008  			}
  2009  			if msglen < 0 {
  2010  				return ErrInvalidLengthTransaction
  2011  			}
  2012  			postIndex := iNdEx + msglen
  2013  			if postIndex < 0 {
  2014  				return ErrInvalidLengthTransaction
  2015  			}
  2016  			if postIndex > l {
  2017  				return io.ErrUnexpectedEOF
  2018  			}
  2019  			if m.DeleteRepo == nil {
  2020  				m.DeleteRepo = &pfs.DeleteRepoRequest{}
  2021  			}
  2022  			if err := m.DeleteRepo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2023  				return err
  2024  			}
  2025  			iNdEx = postIndex
  2026  		case 3:
  2027  			if wireType != 2 {
  2028  				return fmt.Errorf("proto: wrong wireType = %d for field StartCommit", wireType)
  2029  			}
  2030  			var msglen int
  2031  			for shift := uint(0); ; shift += 7 {
  2032  				if shift >= 64 {
  2033  					return ErrIntOverflowTransaction
  2034  				}
  2035  				if iNdEx >= l {
  2036  					return io.ErrUnexpectedEOF
  2037  				}
  2038  				b := dAtA[iNdEx]
  2039  				iNdEx++
  2040  				msglen |= int(b&0x7F) << shift
  2041  				if b < 0x80 {
  2042  					break
  2043  				}
  2044  			}
  2045  			if msglen < 0 {
  2046  				return ErrInvalidLengthTransaction
  2047  			}
  2048  			postIndex := iNdEx + msglen
  2049  			if postIndex < 0 {
  2050  				return ErrInvalidLengthTransaction
  2051  			}
  2052  			if postIndex > l {
  2053  				return io.ErrUnexpectedEOF
  2054  			}
  2055  			if m.StartCommit == nil {
  2056  				m.StartCommit = &pfs.StartCommitRequest{}
  2057  			}
  2058  			if err := m.StartCommit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2059  				return err
  2060  			}
  2061  			iNdEx = postIndex
  2062  		case 4:
  2063  			if wireType != 2 {
  2064  				return fmt.Errorf("proto: wrong wireType = %d for field FinishCommit", wireType)
  2065  			}
  2066  			var msglen int
  2067  			for shift := uint(0); ; shift += 7 {
  2068  				if shift >= 64 {
  2069  					return ErrIntOverflowTransaction
  2070  				}
  2071  				if iNdEx >= l {
  2072  					return io.ErrUnexpectedEOF
  2073  				}
  2074  				b := dAtA[iNdEx]
  2075  				iNdEx++
  2076  				msglen |= int(b&0x7F) << shift
  2077  				if b < 0x80 {
  2078  					break
  2079  				}
  2080  			}
  2081  			if msglen < 0 {
  2082  				return ErrInvalidLengthTransaction
  2083  			}
  2084  			postIndex := iNdEx + msglen
  2085  			if postIndex < 0 {
  2086  				return ErrInvalidLengthTransaction
  2087  			}
  2088  			if postIndex > l {
  2089  				return io.ErrUnexpectedEOF
  2090  			}
  2091  			if m.FinishCommit == nil {
  2092  				m.FinishCommit = &pfs.FinishCommitRequest{}
  2093  			}
  2094  			if err := m.FinishCommit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2095  				return err
  2096  			}
  2097  			iNdEx = postIndex
  2098  		case 5:
  2099  			if wireType != 2 {
  2100  				return fmt.Errorf("proto: wrong wireType = %d for field DeleteCommit", wireType)
  2101  			}
  2102  			var msglen int
  2103  			for shift := uint(0); ; shift += 7 {
  2104  				if shift >= 64 {
  2105  					return ErrIntOverflowTransaction
  2106  				}
  2107  				if iNdEx >= l {
  2108  					return io.ErrUnexpectedEOF
  2109  				}
  2110  				b := dAtA[iNdEx]
  2111  				iNdEx++
  2112  				msglen |= int(b&0x7F) << shift
  2113  				if b < 0x80 {
  2114  					break
  2115  				}
  2116  			}
  2117  			if msglen < 0 {
  2118  				return ErrInvalidLengthTransaction
  2119  			}
  2120  			postIndex := iNdEx + msglen
  2121  			if postIndex < 0 {
  2122  				return ErrInvalidLengthTransaction
  2123  			}
  2124  			if postIndex > l {
  2125  				return io.ErrUnexpectedEOF
  2126  			}
  2127  			if m.DeleteCommit == nil {
  2128  				m.DeleteCommit = &pfs.DeleteCommitRequest{}
  2129  			}
  2130  			if err := m.DeleteCommit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2131  				return err
  2132  			}
  2133  			iNdEx = postIndex
  2134  		case 6:
  2135  			if wireType != 2 {
  2136  				return fmt.Errorf("proto: wrong wireType = %d for field CreateBranch", wireType)
  2137  			}
  2138  			var msglen int
  2139  			for shift := uint(0); ; shift += 7 {
  2140  				if shift >= 64 {
  2141  					return ErrIntOverflowTransaction
  2142  				}
  2143  				if iNdEx >= l {
  2144  					return io.ErrUnexpectedEOF
  2145  				}
  2146  				b := dAtA[iNdEx]
  2147  				iNdEx++
  2148  				msglen |= int(b&0x7F) << shift
  2149  				if b < 0x80 {
  2150  					break
  2151  				}
  2152  			}
  2153  			if msglen < 0 {
  2154  				return ErrInvalidLengthTransaction
  2155  			}
  2156  			postIndex := iNdEx + msglen
  2157  			if postIndex < 0 {
  2158  				return ErrInvalidLengthTransaction
  2159  			}
  2160  			if postIndex > l {
  2161  				return io.ErrUnexpectedEOF
  2162  			}
  2163  			if m.CreateBranch == nil {
  2164  				m.CreateBranch = &pfs.CreateBranchRequest{}
  2165  			}
  2166  			if err := m.CreateBranch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2167  				return err
  2168  			}
  2169  			iNdEx = postIndex
  2170  		case 7:
  2171  			if wireType != 2 {
  2172  				return fmt.Errorf("proto: wrong wireType = %d for field DeleteBranch", wireType)
  2173  			}
  2174  			var msglen int
  2175  			for shift := uint(0); ; shift += 7 {
  2176  				if shift >= 64 {
  2177  					return ErrIntOverflowTransaction
  2178  				}
  2179  				if iNdEx >= l {
  2180  					return io.ErrUnexpectedEOF
  2181  				}
  2182  				b := dAtA[iNdEx]
  2183  				iNdEx++
  2184  				msglen |= int(b&0x7F) << shift
  2185  				if b < 0x80 {
  2186  					break
  2187  				}
  2188  			}
  2189  			if msglen < 0 {
  2190  				return ErrInvalidLengthTransaction
  2191  			}
  2192  			postIndex := iNdEx + msglen
  2193  			if postIndex < 0 {
  2194  				return ErrInvalidLengthTransaction
  2195  			}
  2196  			if postIndex > l {
  2197  				return io.ErrUnexpectedEOF
  2198  			}
  2199  			if m.DeleteBranch == nil {
  2200  				m.DeleteBranch = &pfs.DeleteBranchRequest{}
  2201  			}
  2202  			if err := m.DeleteBranch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2203  				return err
  2204  			}
  2205  			iNdEx = postIndex
  2206  		case 10:
  2207  			if wireType != 2 {
  2208  				return fmt.Errorf("proto: wrong wireType = %d for field DeleteAll", wireType)
  2209  			}
  2210  			var msglen int
  2211  			for shift := uint(0); ; shift += 7 {
  2212  				if shift >= 64 {
  2213  					return ErrIntOverflowTransaction
  2214  				}
  2215  				if iNdEx >= l {
  2216  					return io.ErrUnexpectedEOF
  2217  				}
  2218  				b := dAtA[iNdEx]
  2219  				iNdEx++
  2220  				msglen |= int(b&0x7F) << shift
  2221  				if b < 0x80 {
  2222  					break
  2223  				}
  2224  			}
  2225  			if msglen < 0 {
  2226  				return ErrInvalidLengthTransaction
  2227  			}
  2228  			postIndex := iNdEx + msglen
  2229  			if postIndex < 0 {
  2230  				return ErrInvalidLengthTransaction
  2231  			}
  2232  			if postIndex > l {
  2233  				return io.ErrUnexpectedEOF
  2234  			}
  2235  			if m.DeleteAll == nil {
  2236  				m.DeleteAll = &DeleteAllRequest{}
  2237  			}
  2238  			if err := m.DeleteAll.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2239  				return err
  2240  			}
  2241  			iNdEx = postIndex
  2242  		case 11:
  2243  			if wireType != 2 {
  2244  				return fmt.Errorf("proto: wrong wireType = %d for field UpdateJobState", wireType)
  2245  			}
  2246  			var msglen int
  2247  			for shift := uint(0); ; shift += 7 {
  2248  				if shift >= 64 {
  2249  					return ErrIntOverflowTransaction
  2250  				}
  2251  				if iNdEx >= l {
  2252  					return io.ErrUnexpectedEOF
  2253  				}
  2254  				b := dAtA[iNdEx]
  2255  				iNdEx++
  2256  				msglen |= int(b&0x7F) << shift
  2257  				if b < 0x80 {
  2258  					break
  2259  				}
  2260  			}
  2261  			if msglen < 0 {
  2262  				return ErrInvalidLengthTransaction
  2263  			}
  2264  			postIndex := iNdEx + msglen
  2265  			if postIndex < 0 {
  2266  				return ErrInvalidLengthTransaction
  2267  			}
  2268  			if postIndex > l {
  2269  				return io.ErrUnexpectedEOF
  2270  			}
  2271  			if m.UpdateJobState == nil {
  2272  				m.UpdateJobState = &pps.UpdateJobStateRequest{}
  2273  			}
  2274  			if err := m.UpdateJobState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2275  				return err
  2276  			}
  2277  			iNdEx = postIndex
  2278  		case 12:
  2279  			if wireType != 2 {
  2280  				return fmt.Errorf("proto: wrong wireType = %d for field CreatePipeline", wireType)
  2281  			}
  2282  			var msglen int
  2283  			for shift := uint(0); ; shift += 7 {
  2284  				if shift >= 64 {
  2285  					return ErrIntOverflowTransaction
  2286  				}
  2287  				if iNdEx >= l {
  2288  					return io.ErrUnexpectedEOF
  2289  				}
  2290  				b := dAtA[iNdEx]
  2291  				iNdEx++
  2292  				msglen |= int(b&0x7F) << shift
  2293  				if b < 0x80 {
  2294  					break
  2295  				}
  2296  			}
  2297  			if msglen < 0 {
  2298  				return ErrInvalidLengthTransaction
  2299  			}
  2300  			postIndex := iNdEx + msglen
  2301  			if postIndex < 0 {
  2302  				return ErrInvalidLengthTransaction
  2303  			}
  2304  			if postIndex > l {
  2305  				return io.ErrUnexpectedEOF
  2306  			}
  2307  			if m.CreatePipeline == nil {
  2308  				m.CreatePipeline = &pps.CreatePipelineRequest{}
  2309  			}
  2310  			if err := m.CreatePipeline.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2311  				return err
  2312  			}
  2313  			iNdEx = postIndex
  2314  		default:
  2315  			iNdEx = preIndex
  2316  			skippy, err := skipTransaction(dAtA[iNdEx:])
  2317  			if err != nil {
  2318  				return err
  2319  			}
  2320  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2321  				return ErrInvalidLengthTransaction
  2322  			}
  2323  			if (iNdEx + skippy) > l {
  2324  				return io.ErrUnexpectedEOF
  2325  			}
  2326  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2327  			iNdEx += skippy
  2328  		}
  2329  	}
  2330  
  2331  	if iNdEx > l {
  2332  		return io.ErrUnexpectedEOF
  2333  	}
  2334  	return nil
  2335  }
  2336  func (m *TransactionResponse) Unmarshal(dAtA []byte) error {
  2337  	l := len(dAtA)
  2338  	iNdEx := 0
  2339  	for iNdEx < l {
  2340  		preIndex := iNdEx
  2341  		var wire uint64
  2342  		for shift := uint(0); ; shift += 7 {
  2343  			if shift >= 64 {
  2344  				return ErrIntOverflowTransaction
  2345  			}
  2346  			if iNdEx >= l {
  2347  				return io.ErrUnexpectedEOF
  2348  			}
  2349  			b := dAtA[iNdEx]
  2350  			iNdEx++
  2351  			wire |= uint64(b&0x7F) << shift
  2352  			if b < 0x80 {
  2353  				break
  2354  			}
  2355  		}
  2356  		fieldNum := int32(wire >> 3)
  2357  		wireType := int(wire & 0x7)
  2358  		if wireType == 4 {
  2359  			return fmt.Errorf("proto: TransactionResponse: wiretype end group for non-group")
  2360  		}
  2361  		if fieldNum <= 0 {
  2362  			return fmt.Errorf("proto: TransactionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2363  		}
  2364  		switch fieldNum {
  2365  		case 2:
  2366  			if wireType != 2 {
  2367  				return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType)
  2368  			}
  2369  			var msglen int
  2370  			for shift := uint(0); ; shift += 7 {
  2371  				if shift >= 64 {
  2372  					return ErrIntOverflowTransaction
  2373  				}
  2374  				if iNdEx >= l {
  2375  					return io.ErrUnexpectedEOF
  2376  				}
  2377  				b := dAtA[iNdEx]
  2378  				iNdEx++
  2379  				msglen |= int(b&0x7F) << shift
  2380  				if b < 0x80 {
  2381  					break
  2382  				}
  2383  			}
  2384  			if msglen < 0 {
  2385  				return ErrInvalidLengthTransaction
  2386  			}
  2387  			postIndex := iNdEx + msglen
  2388  			if postIndex < 0 {
  2389  				return ErrInvalidLengthTransaction
  2390  			}
  2391  			if postIndex > l {
  2392  				return io.ErrUnexpectedEOF
  2393  			}
  2394  			if m.Commit == nil {
  2395  				m.Commit = &pfs.Commit{}
  2396  			}
  2397  			if err := m.Commit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2398  				return err
  2399  			}
  2400  			iNdEx = postIndex
  2401  		default:
  2402  			iNdEx = preIndex
  2403  			skippy, err := skipTransaction(dAtA[iNdEx:])
  2404  			if err != nil {
  2405  				return err
  2406  			}
  2407  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2408  				return ErrInvalidLengthTransaction
  2409  			}
  2410  			if (iNdEx + skippy) > l {
  2411  				return io.ErrUnexpectedEOF
  2412  			}
  2413  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2414  			iNdEx += skippy
  2415  		}
  2416  	}
  2417  
  2418  	if iNdEx > l {
  2419  		return io.ErrUnexpectedEOF
  2420  	}
  2421  	return nil
  2422  }
  2423  func (m *Transaction) Unmarshal(dAtA []byte) error {
  2424  	l := len(dAtA)
  2425  	iNdEx := 0
  2426  	for iNdEx < l {
  2427  		preIndex := iNdEx
  2428  		var wire uint64
  2429  		for shift := uint(0); ; shift += 7 {
  2430  			if shift >= 64 {
  2431  				return ErrIntOverflowTransaction
  2432  			}
  2433  			if iNdEx >= l {
  2434  				return io.ErrUnexpectedEOF
  2435  			}
  2436  			b := dAtA[iNdEx]
  2437  			iNdEx++
  2438  			wire |= uint64(b&0x7F) << shift
  2439  			if b < 0x80 {
  2440  				break
  2441  			}
  2442  		}
  2443  		fieldNum := int32(wire >> 3)
  2444  		wireType := int(wire & 0x7)
  2445  		if wireType == 4 {
  2446  			return fmt.Errorf("proto: Transaction: wiretype end group for non-group")
  2447  		}
  2448  		if fieldNum <= 0 {
  2449  			return fmt.Errorf("proto: Transaction: illegal tag %d (wire type %d)", fieldNum, wire)
  2450  		}
  2451  		switch fieldNum {
  2452  		case 1:
  2453  			if wireType != 2 {
  2454  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2455  			}
  2456  			var stringLen uint64
  2457  			for shift := uint(0); ; shift += 7 {
  2458  				if shift >= 64 {
  2459  					return ErrIntOverflowTransaction
  2460  				}
  2461  				if iNdEx >= l {
  2462  					return io.ErrUnexpectedEOF
  2463  				}
  2464  				b := dAtA[iNdEx]
  2465  				iNdEx++
  2466  				stringLen |= uint64(b&0x7F) << shift
  2467  				if b < 0x80 {
  2468  					break
  2469  				}
  2470  			}
  2471  			intStringLen := int(stringLen)
  2472  			if intStringLen < 0 {
  2473  				return ErrInvalidLengthTransaction
  2474  			}
  2475  			postIndex := iNdEx + intStringLen
  2476  			if postIndex < 0 {
  2477  				return ErrInvalidLengthTransaction
  2478  			}
  2479  			if postIndex > l {
  2480  				return io.ErrUnexpectedEOF
  2481  			}
  2482  			m.ID = string(dAtA[iNdEx:postIndex])
  2483  			iNdEx = postIndex
  2484  		default:
  2485  			iNdEx = preIndex
  2486  			skippy, err := skipTransaction(dAtA[iNdEx:])
  2487  			if err != nil {
  2488  				return err
  2489  			}
  2490  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2491  				return ErrInvalidLengthTransaction
  2492  			}
  2493  			if (iNdEx + skippy) > l {
  2494  				return io.ErrUnexpectedEOF
  2495  			}
  2496  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2497  			iNdEx += skippy
  2498  		}
  2499  	}
  2500  
  2501  	if iNdEx > l {
  2502  		return io.ErrUnexpectedEOF
  2503  	}
  2504  	return nil
  2505  }
  2506  func (m *TransactionInfo) Unmarshal(dAtA []byte) error {
  2507  	l := len(dAtA)
  2508  	iNdEx := 0
  2509  	for iNdEx < l {
  2510  		preIndex := iNdEx
  2511  		var wire uint64
  2512  		for shift := uint(0); ; shift += 7 {
  2513  			if shift >= 64 {
  2514  				return ErrIntOverflowTransaction
  2515  			}
  2516  			if iNdEx >= l {
  2517  				return io.ErrUnexpectedEOF
  2518  			}
  2519  			b := dAtA[iNdEx]
  2520  			iNdEx++
  2521  			wire |= uint64(b&0x7F) << shift
  2522  			if b < 0x80 {
  2523  				break
  2524  			}
  2525  		}
  2526  		fieldNum := int32(wire >> 3)
  2527  		wireType := int(wire & 0x7)
  2528  		if wireType == 4 {
  2529  			return fmt.Errorf("proto: TransactionInfo: wiretype end group for non-group")
  2530  		}
  2531  		if fieldNum <= 0 {
  2532  			return fmt.Errorf("proto: TransactionInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  2533  		}
  2534  		switch fieldNum {
  2535  		case 1:
  2536  			if wireType != 2 {
  2537  				return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType)
  2538  			}
  2539  			var msglen int
  2540  			for shift := uint(0); ; shift += 7 {
  2541  				if shift >= 64 {
  2542  					return ErrIntOverflowTransaction
  2543  				}
  2544  				if iNdEx >= l {
  2545  					return io.ErrUnexpectedEOF
  2546  				}
  2547  				b := dAtA[iNdEx]
  2548  				iNdEx++
  2549  				msglen |= int(b&0x7F) << shift
  2550  				if b < 0x80 {
  2551  					break
  2552  				}
  2553  			}
  2554  			if msglen < 0 {
  2555  				return ErrInvalidLengthTransaction
  2556  			}
  2557  			postIndex := iNdEx + msglen
  2558  			if postIndex < 0 {
  2559  				return ErrInvalidLengthTransaction
  2560  			}
  2561  			if postIndex > l {
  2562  				return io.ErrUnexpectedEOF
  2563  			}
  2564  			if m.Transaction == nil {
  2565  				m.Transaction = &Transaction{}
  2566  			}
  2567  			if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2568  				return err
  2569  			}
  2570  			iNdEx = postIndex
  2571  		case 2:
  2572  			if wireType != 2 {
  2573  				return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType)
  2574  			}
  2575  			var msglen int
  2576  			for shift := uint(0); ; shift += 7 {
  2577  				if shift >= 64 {
  2578  					return ErrIntOverflowTransaction
  2579  				}
  2580  				if iNdEx >= l {
  2581  					return io.ErrUnexpectedEOF
  2582  				}
  2583  				b := dAtA[iNdEx]
  2584  				iNdEx++
  2585  				msglen |= int(b&0x7F) << shift
  2586  				if b < 0x80 {
  2587  					break
  2588  				}
  2589  			}
  2590  			if msglen < 0 {
  2591  				return ErrInvalidLengthTransaction
  2592  			}
  2593  			postIndex := iNdEx + msglen
  2594  			if postIndex < 0 {
  2595  				return ErrInvalidLengthTransaction
  2596  			}
  2597  			if postIndex > l {
  2598  				return io.ErrUnexpectedEOF
  2599  			}
  2600  			m.Requests = append(m.Requests, &TransactionRequest{})
  2601  			if err := m.Requests[len(m.Requests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2602  				return err
  2603  			}
  2604  			iNdEx = postIndex
  2605  		case 3:
  2606  			if wireType != 2 {
  2607  				return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType)
  2608  			}
  2609  			var msglen int
  2610  			for shift := uint(0); ; shift += 7 {
  2611  				if shift >= 64 {
  2612  					return ErrIntOverflowTransaction
  2613  				}
  2614  				if iNdEx >= l {
  2615  					return io.ErrUnexpectedEOF
  2616  				}
  2617  				b := dAtA[iNdEx]
  2618  				iNdEx++
  2619  				msglen |= int(b&0x7F) << shift
  2620  				if b < 0x80 {
  2621  					break
  2622  				}
  2623  			}
  2624  			if msglen < 0 {
  2625  				return ErrInvalidLengthTransaction
  2626  			}
  2627  			postIndex := iNdEx + msglen
  2628  			if postIndex < 0 {
  2629  				return ErrInvalidLengthTransaction
  2630  			}
  2631  			if postIndex > l {
  2632  				return io.ErrUnexpectedEOF
  2633  			}
  2634  			m.Responses = append(m.Responses, &TransactionResponse{})
  2635  			if err := m.Responses[len(m.Responses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2636  				return err
  2637  			}
  2638  			iNdEx = postIndex
  2639  		case 4:
  2640  			if wireType != 2 {
  2641  				return fmt.Errorf("proto: wrong wireType = %d for field Started", wireType)
  2642  			}
  2643  			var msglen int
  2644  			for shift := uint(0); ; shift += 7 {
  2645  				if shift >= 64 {
  2646  					return ErrIntOverflowTransaction
  2647  				}
  2648  				if iNdEx >= l {
  2649  					return io.ErrUnexpectedEOF
  2650  				}
  2651  				b := dAtA[iNdEx]
  2652  				iNdEx++
  2653  				msglen |= int(b&0x7F) << shift
  2654  				if b < 0x80 {
  2655  					break
  2656  				}
  2657  			}
  2658  			if msglen < 0 {
  2659  				return ErrInvalidLengthTransaction
  2660  			}
  2661  			postIndex := iNdEx + msglen
  2662  			if postIndex < 0 {
  2663  				return ErrInvalidLengthTransaction
  2664  			}
  2665  			if postIndex > l {
  2666  				return io.ErrUnexpectedEOF
  2667  			}
  2668  			if m.Started == nil {
  2669  				m.Started = &types.Timestamp{}
  2670  			}
  2671  			if err := m.Started.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2672  				return err
  2673  			}
  2674  			iNdEx = postIndex
  2675  		default:
  2676  			iNdEx = preIndex
  2677  			skippy, err := skipTransaction(dAtA[iNdEx:])
  2678  			if err != nil {
  2679  				return err
  2680  			}
  2681  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2682  				return ErrInvalidLengthTransaction
  2683  			}
  2684  			if (iNdEx + skippy) > l {
  2685  				return io.ErrUnexpectedEOF
  2686  			}
  2687  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2688  			iNdEx += skippy
  2689  		}
  2690  	}
  2691  
  2692  	if iNdEx > l {
  2693  		return io.ErrUnexpectedEOF
  2694  	}
  2695  	return nil
  2696  }
  2697  func (m *TransactionInfos) Unmarshal(dAtA []byte) error {
  2698  	l := len(dAtA)
  2699  	iNdEx := 0
  2700  	for iNdEx < l {
  2701  		preIndex := iNdEx
  2702  		var wire uint64
  2703  		for shift := uint(0); ; shift += 7 {
  2704  			if shift >= 64 {
  2705  				return ErrIntOverflowTransaction
  2706  			}
  2707  			if iNdEx >= l {
  2708  				return io.ErrUnexpectedEOF
  2709  			}
  2710  			b := dAtA[iNdEx]
  2711  			iNdEx++
  2712  			wire |= uint64(b&0x7F) << shift
  2713  			if b < 0x80 {
  2714  				break
  2715  			}
  2716  		}
  2717  		fieldNum := int32(wire >> 3)
  2718  		wireType := int(wire & 0x7)
  2719  		if wireType == 4 {
  2720  			return fmt.Errorf("proto: TransactionInfos: wiretype end group for non-group")
  2721  		}
  2722  		if fieldNum <= 0 {
  2723  			return fmt.Errorf("proto: TransactionInfos: illegal tag %d (wire type %d)", fieldNum, wire)
  2724  		}
  2725  		switch fieldNum {
  2726  		case 1:
  2727  			if wireType != 2 {
  2728  				return fmt.Errorf("proto: wrong wireType = %d for field TransactionInfo", wireType)
  2729  			}
  2730  			var msglen int
  2731  			for shift := uint(0); ; shift += 7 {
  2732  				if shift >= 64 {
  2733  					return ErrIntOverflowTransaction
  2734  				}
  2735  				if iNdEx >= l {
  2736  					return io.ErrUnexpectedEOF
  2737  				}
  2738  				b := dAtA[iNdEx]
  2739  				iNdEx++
  2740  				msglen |= int(b&0x7F) << shift
  2741  				if b < 0x80 {
  2742  					break
  2743  				}
  2744  			}
  2745  			if msglen < 0 {
  2746  				return ErrInvalidLengthTransaction
  2747  			}
  2748  			postIndex := iNdEx + msglen
  2749  			if postIndex < 0 {
  2750  				return ErrInvalidLengthTransaction
  2751  			}
  2752  			if postIndex > l {
  2753  				return io.ErrUnexpectedEOF
  2754  			}
  2755  			m.TransactionInfo = append(m.TransactionInfo, &TransactionInfo{})
  2756  			if err := m.TransactionInfo[len(m.TransactionInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2757  				return err
  2758  			}
  2759  			iNdEx = postIndex
  2760  		default:
  2761  			iNdEx = preIndex
  2762  			skippy, err := skipTransaction(dAtA[iNdEx:])
  2763  			if err != nil {
  2764  				return err
  2765  			}
  2766  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2767  				return ErrInvalidLengthTransaction
  2768  			}
  2769  			if (iNdEx + skippy) > l {
  2770  				return io.ErrUnexpectedEOF
  2771  			}
  2772  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2773  			iNdEx += skippy
  2774  		}
  2775  	}
  2776  
  2777  	if iNdEx > l {
  2778  		return io.ErrUnexpectedEOF
  2779  	}
  2780  	return nil
  2781  }
  2782  func (m *BatchTransactionRequest) Unmarshal(dAtA []byte) error {
  2783  	l := len(dAtA)
  2784  	iNdEx := 0
  2785  	for iNdEx < l {
  2786  		preIndex := iNdEx
  2787  		var wire uint64
  2788  		for shift := uint(0); ; shift += 7 {
  2789  			if shift >= 64 {
  2790  				return ErrIntOverflowTransaction
  2791  			}
  2792  			if iNdEx >= l {
  2793  				return io.ErrUnexpectedEOF
  2794  			}
  2795  			b := dAtA[iNdEx]
  2796  			iNdEx++
  2797  			wire |= uint64(b&0x7F) << shift
  2798  			if b < 0x80 {
  2799  				break
  2800  			}
  2801  		}
  2802  		fieldNum := int32(wire >> 3)
  2803  		wireType := int(wire & 0x7)
  2804  		if wireType == 4 {
  2805  			return fmt.Errorf("proto: BatchTransactionRequest: wiretype end group for non-group")
  2806  		}
  2807  		if fieldNum <= 0 {
  2808  			return fmt.Errorf("proto: BatchTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2809  		}
  2810  		switch fieldNum {
  2811  		case 1:
  2812  			if wireType != 2 {
  2813  				return fmt.Errorf("proto: wrong wireType = %d for field Requests", wireType)
  2814  			}
  2815  			var msglen int
  2816  			for shift := uint(0); ; shift += 7 {
  2817  				if shift >= 64 {
  2818  					return ErrIntOverflowTransaction
  2819  				}
  2820  				if iNdEx >= l {
  2821  					return io.ErrUnexpectedEOF
  2822  				}
  2823  				b := dAtA[iNdEx]
  2824  				iNdEx++
  2825  				msglen |= int(b&0x7F) << shift
  2826  				if b < 0x80 {
  2827  					break
  2828  				}
  2829  			}
  2830  			if msglen < 0 {
  2831  				return ErrInvalidLengthTransaction
  2832  			}
  2833  			postIndex := iNdEx + msglen
  2834  			if postIndex < 0 {
  2835  				return ErrInvalidLengthTransaction
  2836  			}
  2837  			if postIndex > l {
  2838  				return io.ErrUnexpectedEOF
  2839  			}
  2840  			m.Requests = append(m.Requests, &TransactionRequest{})
  2841  			if err := m.Requests[len(m.Requests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2842  				return err
  2843  			}
  2844  			iNdEx = postIndex
  2845  		default:
  2846  			iNdEx = preIndex
  2847  			skippy, err := skipTransaction(dAtA[iNdEx:])
  2848  			if err != nil {
  2849  				return err
  2850  			}
  2851  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2852  				return ErrInvalidLengthTransaction
  2853  			}
  2854  			if (iNdEx + skippy) > l {
  2855  				return io.ErrUnexpectedEOF
  2856  			}
  2857  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2858  			iNdEx += skippy
  2859  		}
  2860  	}
  2861  
  2862  	if iNdEx > l {
  2863  		return io.ErrUnexpectedEOF
  2864  	}
  2865  	return nil
  2866  }
  2867  func (m *StartTransactionRequest) Unmarshal(dAtA []byte) error {
  2868  	l := len(dAtA)
  2869  	iNdEx := 0
  2870  	for iNdEx < l {
  2871  		preIndex := iNdEx
  2872  		var wire uint64
  2873  		for shift := uint(0); ; shift += 7 {
  2874  			if shift >= 64 {
  2875  				return ErrIntOverflowTransaction
  2876  			}
  2877  			if iNdEx >= l {
  2878  				return io.ErrUnexpectedEOF
  2879  			}
  2880  			b := dAtA[iNdEx]
  2881  			iNdEx++
  2882  			wire |= uint64(b&0x7F) << shift
  2883  			if b < 0x80 {
  2884  				break
  2885  			}
  2886  		}
  2887  		fieldNum := int32(wire >> 3)
  2888  		wireType := int(wire & 0x7)
  2889  		if wireType == 4 {
  2890  			return fmt.Errorf("proto: StartTransactionRequest: wiretype end group for non-group")
  2891  		}
  2892  		if fieldNum <= 0 {
  2893  			return fmt.Errorf("proto: StartTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2894  		}
  2895  		switch fieldNum {
  2896  		default:
  2897  			iNdEx = preIndex
  2898  			skippy, err := skipTransaction(dAtA[iNdEx:])
  2899  			if err != nil {
  2900  				return err
  2901  			}
  2902  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2903  				return ErrInvalidLengthTransaction
  2904  			}
  2905  			if (iNdEx + skippy) > l {
  2906  				return io.ErrUnexpectedEOF
  2907  			}
  2908  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2909  			iNdEx += skippy
  2910  		}
  2911  	}
  2912  
  2913  	if iNdEx > l {
  2914  		return io.ErrUnexpectedEOF
  2915  	}
  2916  	return nil
  2917  }
  2918  func (m *InspectTransactionRequest) Unmarshal(dAtA []byte) error {
  2919  	l := len(dAtA)
  2920  	iNdEx := 0
  2921  	for iNdEx < l {
  2922  		preIndex := iNdEx
  2923  		var wire uint64
  2924  		for shift := uint(0); ; shift += 7 {
  2925  			if shift >= 64 {
  2926  				return ErrIntOverflowTransaction
  2927  			}
  2928  			if iNdEx >= l {
  2929  				return io.ErrUnexpectedEOF
  2930  			}
  2931  			b := dAtA[iNdEx]
  2932  			iNdEx++
  2933  			wire |= uint64(b&0x7F) << shift
  2934  			if b < 0x80 {
  2935  				break
  2936  			}
  2937  		}
  2938  		fieldNum := int32(wire >> 3)
  2939  		wireType := int(wire & 0x7)
  2940  		if wireType == 4 {
  2941  			return fmt.Errorf("proto: InspectTransactionRequest: wiretype end group for non-group")
  2942  		}
  2943  		if fieldNum <= 0 {
  2944  			return fmt.Errorf("proto: InspectTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2945  		}
  2946  		switch fieldNum {
  2947  		case 1:
  2948  			if wireType != 2 {
  2949  				return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType)
  2950  			}
  2951  			var msglen int
  2952  			for shift := uint(0); ; shift += 7 {
  2953  				if shift >= 64 {
  2954  					return ErrIntOverflowTransaction
  2955  				}
  2956  				if iNdEx >= l {
  2957  					return io.ErrUnexpectedEOF
  2958  				}
  2959  				b := dAtA[iNdEx]
  2960  				iNdEx++
  2961  				msglen |= int(b&0x7F) << shift
  2962  				if b < 0x80 {
  2963  					break
  2964  				}
  2965  			}
  2966  			if msglen < 0 {
  2967  				return ErrInvalidLengthTransaction
  2968  			}
  2969  			postIndex := iNdEx + msglen
  2970  			if postIndex < 0 {
  2971  				return ErrInvalidLengthTransaction
  2972  			}
  2973  			if postIndex > l {
  2974  				return io.ErrUnexpectedEOF
  2975  			}
  2976  			if m.Transaction == nil {
  2977  				m.Transaction = &Transaction{}
  2978  			}
  2979  			if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2980  				return err
  2981  			}
  2982  			iNdEx = postIndex
  2983  		default:
  2984  			iNdEx = preIndex
  2985  			skippy, err := skipTransaction(dAtA[iNdEx:])
  2986  			if err != nil {
  2987  				return err
  2988  			}
  2989  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  2990  				return ErrInvalidLengthTransaction
  2991  			}
  2992  			if (iNdEx + skippy) > l {
  2993  				return io.ErrUnexpectedEOF
  2994  			}
  2995  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2996  			iNdEx += skippy
  2997  		}
  2998  	}
  2999  
  3000  	if iNdEx > l {
  3001  		return io.ErrUnexpectedEOF
  3002  	}
  3003  	return nil
  3004  }
  3005  func (m *DeleteTransactionRequest) Unmarshal(dAtA []byte) error {
  3006  	l := len(dAtA)
  3007  	iNdEx := 0
  3008  	for iNdEx < l {
  3009  		preIndex := iNdEx
  3010  		var wire uint64
  3011  		for shift := uint(0); ; shift += 7 {
  3012  			if shift >= 64 {
  3013  				return ErrIntOverflowTransaction
  3014  			}
  3015  			if iNdEx >= l {
  3016  				return io.ErrUnexpectedEOF
  3017  			}
  3018  			b := dAtA[iNdEx]
  3019  			iNdEx++
  3020  			wire |= uint64(b&0x7F) << shift
  3021  			if b < 0x80 {
  3022  				break
  3023  			}
  3024  		}
  3025  		fieldNum := int32(wire >> 3)
  3026  		wireType := int(wire & 0x7)
  3027  		if wireType == 4 {
  3028  			return fmt.Errorf("proto: DeleteTransactionRequest: wiretype end group for non-group")
  3029  		}
  3030  		if fieldNum <= 0 {
  3031  			return fmt.Errorf("proto: DeleteTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3032  		}
  3033  		switch fieldNum {
  3034  		case 1:
  3035  			if wireType != 2 {
  3036  				return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType)
  3037  			}
  3038  			var msglen int
  3039  			for shift := uint(0); ; shift += 7 {
  3040  				if shift >= 64 {
  3041  					return ErrIntOverflowTransaction
  3042  				}
  3043  				if iNdEx >= l {
  3044  					return io.ErrUnexpectedEOF
  3045  				}
  3046  				b := dAtA[iNdEx]
  3047  				iNdEx++
  3048  				msglen |= int(b&0x7F) << shift
  3049  				if b < 0x80 {
  3050  					break
  3051  				}
  3052  			}
  3053  			if msglen < 0 {
  3054  				return ErrInvalidLengthTransaction
  3055  			}
  3056  			postIndex := iNdEx + msglen
  3057  			if postIndex < 0 {
  3058  				return ErrInvalidLengthTransaction
  3059  			}
  3060  			if postIndex > l {
  3061  				return io.ErrUnexpectedEOF
  3062  			}
  3063  			if m.Transaction == nil {
  3064  				m.Transaction = &Transaction{}
  3065  			}
  3066  			if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3067  				return err
  3068  			}
  3069  			iNdEx = postIndex
  3070  		default:
  3071  			iNdEx = preIndex
  3072  			skippy, err := skipTransaction(dAtA[iNdEx:])
  3073  			if err != nil {
  3074  				return err
  3075  			}
  3076  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3077  				return ErrInvalidLengthTransaction
  3078  			}
  3079  			if (iNdEx + skippy) > l {
  3080  				return io.ErrUnexpectedEOF
  3081  			}
  3082  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3083  			iNdEx += skippy
  3084  		}
  3085  	}
  3086  
  3087  	if iNdEx > l {
  3088  		return io.ErrUnexpectedEOF
  3089  	}
  3090  	return nil
  3091  }
  3092  func (m *ListTransactionRequest) Unmarshal(dAtA []byte) error {
  3093  	l := len(dAtA)
  3094  	iNdEx := 0
  3095  	for iNdEx < l {
  3096  		preIndex := iNdEx
  3097  		var wire uint64
  3098  		for shift := uint(0); ; shift += 7 {
  3099  			if shift >= 64 {
  3100  				return ErrIntOverflowTransaction
  3101  			}
  3102  			if iNdEx >= l {
  3103  				return io.ErrUnexpectedEOF
  3104  			}
  3105  			b := dAtA[iNdEx]
  3106  			iNdEx++
  3107  			wire |= uint64(b&0x7F) << shift
  3108  			if b < 0x80 {
  3109  				break
  3110  			}
  3111  		}
  3112  		fieldNum := int32(wire >> 3)
  3113  		wireType := int(wire & 0x7)
  3114  		if wireType == 4 {
  3115  			return fmt.Errorf("proto: ListTransactionRequest: wiretype end group for non-group")
  3116  		}
  3117  		if fieldNum <= 0 {
  3118  			return fmt.Errorf("proto: ListTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3119  		}
  3120  		switch fieldNum {
  3121  		default:
  3122  			iNdEx = preIndex
  3123  			skippy, err := skipTransaction(dAtA[iNdEx:])
  3124  			if err != nil {
  3125  				return err
  3126  			}
  3127  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3128  				return ErrInvalidLengthTransaction
  3129  			}
  3130  			if (iNdEx + skippy) > l {
  3131  				return io.ErrUnexpectedEOF
  3132  			}
  3133  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3134  			iNdEx += skippy
  3135  		}
  3136  	}
  3137  
  3138  	if iNdEx > l {
  3139  		return io.ErrUnexpectedEOF
  3140  	}
  3141  	return nil
  3142  }
  3143  func (m *FinishTransactionRequest) Unmarshal(dAtA []byte) error {
  3144  	l := len(dAtA)
  3145  	iNdEx := 0
  3146  	for iNdEx < l {
  3147  		preIndex := iNdEx
  3148  		var wire uint64
  3149  		for shift := uint(0); ; shift += 7 {
  3150  			if shift >= 64 {
  3151  				return ErrIntOverflowTransaction
  3152  			}
  3153  			if iNdEx >= l {
  3154  				return io.ErrUnexpectedEOF
  3155  			}
  3156  			b := dAtA[iNdEx]
  3157  			iNdEx++
  3158  			wire |= uint64(b&0x7F) << shift
  3159  			if b < 0x80 {
  3160  				break
  3161  			}
  3162  		}
  3163  		fieldNum := int32(wire >> 3)
  3164  		wireType := int(wire & 0x7)
  3165  		if wireType == 4 {
  3166  			return fmt.Errorf("proto: FinishTransactionRequest: wiretype end group for non-group")
  3167  		}
  3168  		if fieldNum <= 0 {
  3169  			return fmt.Errorf("proto: FinishTransactionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3170  		}
  3171  		switch fieldNum {
  3172  		case 1:
  3173  			if wireType != 2 {
  3174  				return fmt.Errorf("proto: wrong wireType = %d for field Transaction", wireType)
  3175  			}
  3176  			var msglen int
  3177  			for shift := uint(0); ; shift += 7 {
  3178  				if shift >= 64 {
  3179  					return ErrIntOverflowTransaction
  3180  				}
  3181  				if iNdEx >= l {
  3182  					return io.ErrUnexpectedEOF
  3183  				}
  3184  				b := dAtA[iNdEx]
  3185  				iNdEx++
  3186  				msglen |= int(b&0x7F) << shift
  3187  				if b < 0x80 {
  3188  					break
  3189  				}
  3190  			}
  3191  			if msglen < 0 {
  3192  				return ErrInvalidLengthTransaction
  3193  			}
  3194  			postIndex := iNdEx + msglen
  3195  			if postIndex < 0 {
  3196  				return ErrInvalidLengthTransaction
  3197  			}
  3198  			if postIndex > l {
  3199  				return io.ErrUnexpectedEOF
  3200  			}
  3201  			if m.Transaction == nil {
  3202  				m.Transaction = &Transaction{}
  3203  			}
  3204  			if err := m.Transaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3205  				return err
  3206  			}
  3207  			iNdEx = postIndex
  3208  		default:
  3209  			iNdEx = preIndex
  3210  			skippy, err := skipTransaction(dAtA[iNdEx:])
  3211  			if err != nil {
  3212  				return err
  3213  			}
  3214  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3215  				return ErrInvalidLengthTransaction
  3216  			}
  3217  			if (iNdEx + skippy) > l {
  3218  				return io.ErrUnexpectedEOF
  3219  			}
  3220  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3221  			iNdEx += skippy
  3222  		}
  3223  	}
  3224  
  3225  	if iNdEx > l {
  3226  		return io.ErrUnexpectedEOF
  3227  	}
  3228  	return nil
  3229  }
  3230  func skipTransaction(dAtA []byte) (n int, err error) {
  3231  	l := len(dAtA)
  3232  	iNdEx := 0
  3233  	depth := 0
  3234  	for iNdEx < l {
  3235  		var wire uint64
  3236  		for shift := uint(0); ; shift += 7 {
  3237  			if shift >= 64 {
  3238  				return 0, ErrIntOverflowTransaction
  3239  			}
  3240  			if iNdEx >= l {
  3241  				return 0, io.ErrUnexpectedEOF
  3242  			}
  3243  			b := dAtA[iNdEx]
  3244  			iNdEx++
  3245  			wire |= (uint64(b) & 0x7F) << shift
  3246  			if b < 0x80 {
  3247  				break
  3248  			}
  3249  		}
  3250  		wireType := int(wire & 0x7)
  3251  		switch wireType {
  3252  		case 0:
  3253  			for shift := uint(0); ; shift += 7 {
  3254  				if shift >= 64 {
  3255  					return 0, ErrIntOverflowTransaction
  3256  				}
  3257  				if iNdEx >= l {
  3258  					return 0, io.ErrUnexpectedEOF
  3259  				}
  3260  				iNdEx++
  3261  				if dAtA[iNdEx-1] < 0x80 {
  3262  					break
  3263  				}
  3264  			}
  3265  		case 1:
  3266  			iNdEx += 8
  3267  		case 2:
  3268  			var length int
  3269  			for shift := uint(0); ; shift += 7 {
  3270  				if shift >= 64 {
  3271  					return 0, ErrIntOverflowTransaction
  3272  				}
  3273  				if iNdEx >= l {
  3274  					return 0, io.ErrUnexpectedEOF
  3275  				}
  3276  				b := dAtA[iNdEx]
  3277  				iNdEx++
  3278  				length |= (int(b) & 0x7F) << shift
  3279  				if b < 0x80 {
  3280  					break
  3281  				}
  3282  			}
  3283  			if length < 0 {
  3284  				return 0, ErrInvalidLengthTransaction
  3285  			}
  3286  			iNdEx += length
  3287  		case 3:
  3288  			depth++
  3289  		case 4:
  3290  			if depth == 0 {
  3291  				return 0, ErrUnexpectedEndOfGroupTransaction
  3292  			}
  3293  			depth--
  3294  		case 5:
  3295  			iNdEx += 4
  3296  		default:
  3297  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3298  		}
  3299  		if iNdEx < 0 {
  3300  			return 0, ErrInvalidLengthTransaction
  3301  		}
  3302  		if depth == 0 {
  3303  			return iNdEx, nil
  3304  		}
  3305  	}
  3306  	return 0, io.ErrUnexpectedEOF
  3307  }
  3308  
  3309  var (
  3310  	ErrInvalidLengthTransaction        = fmt.Errorf("proto: negative length found during unmarshaling")
  3311  	ErrIntOverflowTransaction          = fmt.Errorf("proto: integer overflow")
  3312  	ErrUnexpectedEndOfGroupTransaction = fmt.Errorf("proto: unexpected end of group")
  3313  )