github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/rpc/rpctransact/rpctransact.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: rpctransact.proto
     3  
     4  package rpctransact
     5  
     6  import (
     7  	fmt "fmt"
     8  	io "io"
     9  	math "math"
    10  	math_bits "math/bits"
    11  	time "time"
    12  
    13  	_ "github.com/gogo/protobuf/gogoproto"
    14  	proto "github.com/gogo/protobuf/proto"
    15  	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    16  	golang_proto "github.com/golang/protobuf/proto"
    17  	github_com_hyperledger_burrow_crypto "github.com/hyperledger/burrow/crypto"
    18  	_ "github.com/hyperledger/burrow/execution/exec"
    19  	_ "github.com/hyperledger/burrow/txs"
    20  	github_com_hyperledger_burrow_txs "github.com/hyperledger/burrow/txs"
    21  	payload "github.com/hyperledger/burrow/txs/payload"
    22  	_ "google.golang.org/protobuf/types/known/durationpb"
    23  )
    24  
    25  // Reference imports to suppress errors if they are not otherwise used.
    26  var _ = proto.Marshal
    27  var _ = golang_proto.Marshal
    28  var _ = fmt.Errorf
    29  var _ = math.Inf
    30  var _ = time.Kitchen
    31  
    32  // This is a compile-time assertion to ensure that this generated file
    33  // is compatible with the proto package it is being compiled against.
    34  // A compilation error at this line likely means your copy of the
    35  // proto package needs to be updated.
    36  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    37  
    38  type CallCodeParam struct {
    39  	FromAddress          github_com_hyperledger_burrow_crypto.Address `protobuf:"bytes,1,opt,name=FromAddress,proto3,customtype=github.com/hyperledger/burrow/crypto.Address" json:"FromAddress"`
    40  	Code                 []byte                                       `protobuf:"bytes,2,opt,name=Code,proto3" json:"Code,omitempty"`
    41  	Data                 []byte                                       `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"`
    42  	XXX_NoUnkeyedLiteral struct{}                                     `json:"-"`
    43  	XXX_unrecognized     []byte                                       `json:"-"`
    44  	XXX_sizecache        int32                                        `json:"-"`
    45  }
    46  
    47  func (m *CallCodeParam) Reset()         { *m = CallCodeParam{} }
    48  func (m *CallCodeParam) String() string { return proto.CompactTextString(m) }
    49  func (*CallCodeParam) ProtoMessage()    {}
    50  func (*CallCodeParam) Descriptor() ([]byte, []int) {
    51  	return fileDescriptor_039da6ebb58a8dc9, []int{0}
    52  }
    53  func (m *CallCodeParam) XXX_Unmarshal(b []byte) error {
    54  	return m.Unmarshal(b)
    55  }
    56  func (m *CallCodeParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    57  	b = b[:cap(b)]
    58  	n, err := m.MarshalToSizedBuffer(b)
    59  	if err != nil {
    60  		return nil, err
    61  	}
    62  	return b[:n], nil
    63  }
    64  func (m *CallCodeParam) XXX_Merge(src proto.Message) {
    65  	xxx_messageInfo_CallCodeParam.Merge(m, src)
    66  }
    67  func (m *CallCodeParam) XXX_Size() int {
    68  	return m.Size()
    69  }
    70  func (m *CallCodeParam) XXX_DiscardUnknown() {
    71  	xxx_messageInfo_CallCodeParam.DiscardUnknown(m)
    72  }
    73  
    74  var xxx_messageInfo_CallCodeParam proto.InternalMessageInfo
    75  
    76  func (m *CallCodeParam) GetCode() []byte {
    77  	if m != nil {
    78  		return m.Code
    79  	}
    80  	return nil
    81  }
    82  
    83  func (m *CallCodeParam) GetData() []byte {
    84  	if m != nil {
    85  		return m.Data
    86  	}
    87  	return nil
    88  }
    89  
    90  func (*CallCodeParam) XXX_MessageName() string {
    91  	return "rpctransact.CallCodeParam"
    92  }
    93  
    94  type TxEnvelope struct {
    95  	Envelope             *github_com_hyperledger_burrow_txs.Envelope `protobuf:"bytes,1,opt,name=Envelope,proto3,customtype=github.com/hyperledger/burrow/txs.Envelope" json:"Envelope,omitempty"`
    96  	XXX_NoUnkeyedLiteral struct{}                                    `json:"-"`
    97  	XXX_unrecognized     []byte                                      `json:"-"`
    98  	XXX_sizecache        int32                                       `json:"-"`
    99  }
   100  
   101  func (m *TxEnvelope) Reset()         { *m = TxEnvelope{} }
   102  func (m *TxEnvelope) String() string { return proto.CompactTextString(m) }
   103  func (*TxEnvelope) ProtoMessage()    {}
   104  func (*TxEnvelope) Descriptor() ([]byte, []int) {
   105  	return fileDescriptor_039da6ebb58a8dc9, []int{1}
   106  }
   107  func (m *TxEnvelope) XXX_Unmarshal(b []byte) error {
   108  	return m.Unmarshal(b)
   109  }
   110  func (m *TxEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   111  	b = b[:cap(b)]
   112  	n, err := m.MarshalToSizedBuffer(b)
   113  	if err != nil {
   114  		return nil, err
   115  	}
   116  	return b[:n], nil
   117  }
   118  func (m *TxEnvelope) XXX_Merge(src proto.Message) {
   119  	xxx_messageInfo_TxEnvelope.Merge(m, src)
   120  }
   121  func (m *TxEnvelope) XXX_Size() int {
   122  	return m.Size()
   123  }
   124  func (m *TxEnvelope) XXX_DiscardUnknown() {
   125  	xxx_messageInfo_TxEnvelope.DiscardUnknown(m)
   126  }
   127  
   128  var xxx_messageInfo_TxEnvelope proto.InternalMessageInfo
   129  
   130  func (*TxEnvelope) XXX_MessageName() string {
   131  	return "rpctransact.TxEnvelope"
   132  }
   133  
   134  type TxEnvelopeParam struct {
   135  	// An existing Envelope - either signed or unsigned - if the latter will be signed server-side
   136  	Envelope *github_com_hyperledger_burrow_txs.Envelope `protobuf:"bytes,1,opt,name=Envelope,proto3,customtype=github.com/hyperledger/burrow/txs.Envelope" json:"Envelope,omitempty"`
   137  	// If no Envelope provided then one will be generated from the provided payload and signed server-side
   138  	Payload *payload.Any `protobuf:"bytes,2,opt,name=Payload,proto3" json:"Payload,omitempty"`
   139  	// The amount of time to wait for the transaction to be committed and the TxExecution to be returned (server-side).
   140  	// If zero there wait is unbounded. Timed out transactions return SyncInfo state that may be helpful debugging
   141  	// non-committed transactions - this timeout must be less than client timeout to see such information!
   142  	Timeout              time.Duration `protobuf:"bytes,3,opt,name=Timeout,proto3,stdduration" json:"Timeout"`
   143  	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
   144  	XXX_unrecognized     []byte        `json:"-"`
   145  	XXX_sizecache        int32         `json:"-"`
   146  }
   147  
   148  func (m *TxEnvelopeParam) Reset()         { *m = TxEnvelopeParam{} }
   149  func (m *TxEnvelopeParam) String() string { return proto.CompactTextString(m) }
   150  func (*TxEnvelopeParam) ProtoMessage()    {}
   151  func (*TxEnvelopeParam) Descriptor() ([]byte, []int) {
   152  	return fileDescriptor_039da6ebb58a8dc9, []int{2}
   153  }
   154  func (m *TxEnvelopeParam) XXX_Unmarshal(b []byte) error {
   155  	return m.Unmarshal(b)
   156  }
   157  func (m *TxEnvelopeParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   158  	b = b[:cap(b)]
   159  	n, err := m.MarshalToSizedBuffer(b)
   160  	if err != nil {
   161  		return nil, err
   162  	}
   163  	return b[:n], nil
   164  }
   165  func (m *TxEnvelopeParam) XXX_Merge(src proto.Message) {
   166  	xxx_messageInfo_TxEnvelopeParam.Merge(m, src)
   167  }
   168  func (m *TxEnvelopeParam) XXX_Size() int {
   169  	return m.Size()
   170  }
   171  func (m *TxEnvelopeParam) XXX_DiscardUnknown() {
   172  	xxx_messageInfo_TxEnvelopeParam.DiscardUnknown(m)
   173  }
   174  
   175  var xxx_messageInfo_TxEnvelopeParam proto.InternalMessageInfo
   176  
   177  func (m *TxEnvelopeParam) GetPayload() *payload.Any {
   178  	if m != nil {
   179  		return m.Payload
   180  	}
   181  	return nil
   182  }
   183  
   184  func (m *TxEnvelopeParam) GetTimeout() time.Duration {
   185  	if m != nil {
   186  		return m.Timeout
   187  	}
   188  	return 0
   189  }
   190  
   191  func (*TxEnvelopeParam) XXX_MessageName() string {
   192  	return "rpctransact.TxEnvelopeParam"
   193  }
   194  func init() {
   195  	proto.RegisterType((*CallCodeParam)(nil), "rpctransact.CallCodeParam")
   196  	golang_proto.RegisterType((*CallCodeParam)(nil), "rpctransact.CallCodeParam")
   197  	proto.RegisterType((*TxEnvelope)(nil), "rpctransact.TxEnvelope")
   198  	golang_proto.RegisterType((*TxEnvelope)(nil), "rpctransact.TxEnvelope")
   199  	proto.RegisterType((*TxEnvelopeParam)(nil), "rpctransact.TxEnvelopeParam")
   200  	golang_proto.RegisterType((*TxEnvelopeParam)(nil), "rpctransact.TxEnvelopeParam")
   201  }
   202  
   203  func init() { proto.RegisterFile("rpctransact.proto", fileDescriptor_039da6ebb58a8dc9) }
   204  func init() { golang_proto.RegisterFile("rpctransact.proto", fileDescriptor_039da6ebb58a8dc9) }
   205  
   206  var fileDescriptor_039da6ebb58a8dc9 = []byte{
   207  	// 557 bytes of a gzipped FileDescriptorProto
   208  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0x4d, 0x6f, 0xd3, 0x4c,
   209  	0x10, 0x7e, 0xfd, 0x02, 0xfd, 0x18, 0x37, 0x0a, 0x5d, 0x21, 0x11, 0x22, 0xe4, 0xa0, 0x1c, 0x10,
   210  	0x42, 0x65, 0x1d, 0x85, 0x1e, 0xf9, 0x50, 0xdc, 0x0f, 0x6e, 0xa8, 0x72, 0x2c, 0x24, 0xb8, 0x6d,
   211  	0xec, 0xc5, 0xb5, 0x64, 0x7b, 0xad, 0xf5, 0x1a, 0x9c, 0x5f, 0xc1, 0x85, 0x03, 0x3f, 0x87, 0x63,
   212  	0x8e, 0x48, 0x5c, 0x50, 0x0f, 0x01, 0xa5, 0x7f, 0x04, 0xad, 0xd7, 0x2e, 0x76, 0xd2, 0xb4, 0x5c,
   213  	0xb8, 0x8d, 0x9f, 0xf1, 0xf3, 0xcc, 0x3c, 0x33, 0xb3, 0xb0, 0xcb, 0x13, 0x57, 0x70, 0x12, 0xa7,
   214  	0xc4, 0x15, 0x38, 0xe1, 0x4c, 0x30, 0xa4, 0xd7, 0xa0, 0xee, 0x1d, 0x9f, 0xf9, 0xac, 0xc0, 0x4d,
   215  	0x19, 0xa9, 0x5f, 0xba, 0x86, 0xcf, 0x98, 0x1f, 0x52, 0xb3, 0xf8, 0x9a, 0x64, 0xef, 0x4d, 0x2f,
   216  	0xe3, 0x44, 0x04, 0x2c, 0x2e, 0xf3, 0x40, 0x73, 0xea, 0x96, 0x71, 0x2b, 0x21, 0xd3, 0x90, 0x11,
   217  	0xaf, 0xfc, 0xdc, 0x16, 0x79, 0xaa, 0xc2, 0xfe, 0x27, 0x0d, 0x5a, 0x07, 0x24, 0x0c, 0x0f, 0x98,
   218  	0x47, 0x4f, 0x08, 0x27, 0x11, 0x7a, 0x03, 0xfa, 0x31, 0x67, 0xd1, 0xc8, 0xf3, 0x38, 0x4d, 0xd3,
   219  	0x8e, 0xf6, 0x40, 0x7b, 0xb4, 0x63, 0xed, 0xcf, 0xe6, 0xbd, 0xff, 0xce, 0xe6, 0xbd, 0x3d, 0x3f,
   220  	0x10, 0xa7, 0xd9, 0x04, 0xbb, 0x2c, 0x32, 0x4f, 0xa7, 0x09, 0xe5, 0x21, 0xf5, 0x7c, 0xca, 0xcd,
   221  	0x49, 0xc6, 0x39, 0xfb, 0x68, 0xba, 0x7c, 0x9a, 0x08, 0x86, 0x4b, 0xae, 0x5d, 0x17, 0x42, 0x08,
   222  	0x6e, 0xca, 0x22, 0x9d, 0xff, 0xa5, 0xa0, 0x5d, 0xc4, 0x12, 0x3b, 0x24, 0x82, 0x74, 0x6e, 0x28,
   223  	0x4c, 0xc6, 0x7d, 0x1f, 0xc0, 0xc9, 0x8f, 0xe2, 0x0f, 0x34, 0x64, 0x09, 0x45, 0x6f, 0x61, 0xab,
   224  	0x8a, 0x8b, 0x56, 0xf4, 0x61, 0x0b, 0xcb, 0xee, 0x2b, 0xd0, 0xc2, 0x67, 0xf3, 0xde, 0xe3, 0xab,
   225  	0xbb, 0xaa, 0xff, 0x6f, 0x5f, 0xc8, 0xf5, 0xbf, 0x6b, 0xd0, 0xfe, 0x53, 0x49, 0x99, 0xff, 0x77,
   226  	0xe5, 0xd0, 0x43, 0xd8, 0x3c, 0x51, 0x5b, 0x28, 0x46, 0xa0, 0x0f, 0x77, 0x70, 0xb5, 0x95, 0x51,
   227  	0x3c, 0xb5, 0xab, 0x24, 0x7a, 0x0e, 0x9b, 0x4e, 0x10, 0x51, 0x96, 0x89, 0x62, 0x2c, 0xfa, 0xf0,
   228  	0x1e, 0x56, 0x9b, 0xc6, 0xd5, 0xa6, 0xf1, 0x61, 0xb9, 0x69, 0x6b, 0x4b, 0xae, 0xe5, 0xcb, 0xcf,
   229  	0x9e, 0x66, 0x57, 0x9c, 0xe1, 0xe7, 0x5b, 0xb0, 0xe5, 0x94, 0x97, 0x83, 0x2c, 0x68, 0x5b, 0x9c,
   230  	0x11, 0xcf, 0x25, 0xa9, 0x70, 0xf2, 0xf1, 0x34, 0x76, 0xd1, 0x7d, 0x5c, 0xbf, 0xb6, 0x25, 0xff,
   231  	0xdd, 0x5d, 0x5c, 0x5c, 0x8d, 0x93, 0x1f, 0xe5, 0xd4, 0xcd, 0x64, 0x0d, 0xf4, 0x02, 0x6e, 0xd7,
   232  	0x34, 0x46, 0xe9, 0xf5, 0x22, 0x3b, 0xc5, 0xc8, 0x6c, 0xea, 0xd2, 0x20, 0x11, 0xe8, 0x25, 0x6c,
   233  	0x8c, 0x03, 0x3f, 0x76, 0xf2, 0x6b, 0x58, 0x77, 0xd7, 0x64, 0xd1, 0x3e, 0xe8, 0xc7, 0x8c, 0x47,
   234  	0x59, 0x48, 0x04, 0x75, 0x72, 0xd4, 0x18, 0xdb, 0x7a, 0xd6, 0x00, 0x40, 0xde, 0x75, 0xe9, 0xba,
   235  	0x7d, 0x41, 0x52, 0xe0, 0x65, 0x46, 0xf7, 0x40, 0x57, 0x49, 0xe5, 0x71, 0x85, 0xd2, 0xb4, 0x65,
   236  	0xc2, 0x76, 0xa9, 0x1f, 0x44, 0x7f, 0x25, 0xff, 0x4c, 0xc9, 0xcb, 0xbb, 0x97, 0x94, 0x6e, 0xa3,
   237  	0xf1, 0xc6, 0x13, 0xbc, 0x8c, 0x3d, 0x00, 0x18, 0xd3, 0xd8, 0x5b, 0xb1, 0xa3, 0xc0, 0x35, 0x76,
   238  	0x54, 0x72, 0xd9, 0x4e, 0x49, 0x69, 0xda, 0x19, 0x00, 0xbc, 0x26, 0x11, 0x5d, 0xd1, 0x57, 0xe0,
   239  	0x1a, 0x7d, 0x95, 0x5c, 0xd6, 0x2f, 0x29, 0x0d, 0x7d, 0xeb, 0xd5, 0x6c, 0x61, 0x68, 0xdf, 0x16,
   240  	0x86, 0xf6, 0x63, 0x61, 0x68, 0xbf, 0x16, 0x86, 0xf6, 0xf5, 0xdc, 0xd0, 0x66, 0xe7, 0x86, 0xf6,
   241  	0xee, 0xc9, 0xd5, 0xaf, 0x89, 0x27, 0xae, 0x59, 0x9b, 0xd4, 0x64, 0xa3, 0x78, 0x05, 0x4f, 0x7f,
   242  	0x07, 0x00, 0x00, 0xff, 0xff, 0x69, 0x8d, 0x35, 0xa5, 0x35, 0x05, 0x00, 0x00,
   243  }
   244  
   245  func (m *CallCodeParam) Marshal() (dAtA []byte, err error) {
   246  	size := m.Size()
   247  	dAtA = make([]byte, size)
   248  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   249  	if err != nil {
   250  		return nil, err
   251  	}
   252  	return dAtA[:n], nil
   253  }
   254  
   255  func (m *CallCodeParam) MarshalTo(dAtA []byte) (int, error) {
   256  	size := m.Size()
   257  	return m.MarshalToSizedBuffer(dAtA[:size])
   258  }
   259  
   260  func (m *CallCodeParam) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   261  	i := len(dAtA)
   262  	_ = i
   263  	var l int
   264  	_ = l
   265  	if m.XXX_unrecognized != nil {
   266  		i -= len(m.XXX_unrecognized)
   267  		copy(dAtA[i:], m.XXX_unrecognized)
   268  	}
   269  	if len(m.Data) > 0 {
   270  		i -= len(m.Data)
   271  		copy(dAtA[i:], m.Data)
   272  		i = encodeVarintRpctransact(dAtA, i, uint64(len(m.Data)))
   273  		i--
   274  		dAtA[i] = 0x1a
   275  	}
   276  	if len(m.Code) > 0 {
   277  		i -= len(m.Code)
   278  		copy(dAtA[i:], m.Code)
   279  		i = encodeVarintRpctransact(dAtA, i, uint64(len(m.Code)))
   280  		i--
   281  		dAtA[i] = 0x12
   282  	}
   283  	{
   284  		size := m.FromAddress.Size()
   285  		i -= size
   286  		if _, err := m.FromAddress.MarshalTo(dAtA[i:]); err != nil {
   287  			return 0, err
   288  		}
   289  		i = encodeVarintRpctransact(dAtA, i, uint64(size))
   290  	}
   291  	i--
   292  	dAtA[i] = 0xa
   293  	return len(dAtA) - i, nil
   294  }
   295  
   296  func (m *TxEnvelope) Marshal() (dAtA []byte, err error) {
   297  	size := m.Size()
   298  	dAtA = make([]byte, size)
   299  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   300  	if err != nil {
   301  		return nil, err
   302  	}
   303  	return dAtA[:n], nil
   304  }
   305  
   306  func (m *TxEnvelope) MarshalTo(dAtA []byte) (int, error) {
   307  	size := m.Size()
   308  	return m.MarshalToSizedBuffer(dAtA[:size])
   309  }
   310  
   311  func (m *TxEnvelope) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   312  	i := len(dAtA)
   313  	_ = i
   314  	var l int
   315  	_ = l
   316  	if m.XXX_unrecognized != nil {
   317  		i -= len(m.XXX_unrecognized)
   318  		copy(dAtA[i:], m.XXX_unrecognized)
   319  	}
   320  	if m.Envelope != nil {
   321  		{
   322  			size := m.Envelope.Size()
   323  			i -= size
   324  			if _, err := m.Envelope.MarshalTo(dAtA[i:]); err != nil {
   325  				return 0, err
   326  			}
   327  			i = encodeVarintRpctransact(dAtA, i, uint64(size))
   328  		}
   329  		i--
   330  		dAtA[i] = 0xa
   331  	}
   332  	return len(dAtA) - i, nil
   333  }
   334  
   335  func (m *TxEnvelopeParam) Marshal() (dAtA []byte, err error) {
   336  	size := m.Size()
   337  	dAtA = make([]byte, size)
   338  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   339  	if err != nil {
   340  		return nil, err
   341  	}
   342  	return dAtA[:n], nil
   343  }
   344  
   345  func (m *TxEnvelopeParam) MarshalTo(dAtA []byte) (int, error) {
   346  	size := m.Size()
   347  	return m.MarshalToSizedBuffer(dAtA[:size])
   348  }
   349  
   350  func (m *TxEnvelopeParam) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   351  	i := len(dAtA)
   352  	_ = i
   353  	var l int
   354  	_ = l
   355  	if m.XXX_unrecognized != nil {
   356  		i -= len(m.XXX_unrecognized)
   357  		copy(dAtA[i:], m.XXX_unrecognized)
   358  	}
   359  	n2, err2 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.Timeout, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.Timeout):])
   360  	if err2 != nil {
   361  		return 0, err2
   362  	}
   363  	i -= n2
   364  	i = encodeVarintRpctransact(dAtA, i, uint64(n2))
   365  	i--
   366  	dAtA[i] = 0x1a
   367  	if m.Payload != nil {
   368  		{
   369  			size, err := m.Payload.MarshalToSizedBuffer(dAtA[:i])
   370  			if err != nil {
   371  				return 0, err
   372  			}
   373  			i -= size
   374  			i = encodeVarintRpctransact(dAtA, i, uint64(size))
   375  		}
   376  		i--
   377  		dAtA[i] = 0x12
   378  	}
   379  	if m.Envelope != nil {
   380  		{
   381  			size := m.Envelope.Size()
   382  			i -= size
   383  			if _, err := m.Envelope.MarshalTo(dAtA[i:]); err != nil {
   384  				return 0, err
   385  			}
   386  			i = encodeVarintRpctransact(dAtA, i, uint64(size))
   387  		}
   388  		i--
   389  		dAtA[i] = 0xa
   390  	}
   391  	return len(dAtA) - i, nil
   392  }
   393  
   394  func encodeVarintRpctransact(dAtA []byte, offset int, v uint64) int {
   395  	offset -= sovRpctransact(v)
   396  	base := offset
   397  	for v >= 1<<7 {
   398  		dAtA[offset] = uint8(v&0x7f | 0x80)
   399  		v >>= 7
   400  		offset++
   401  	}
   402  	dAtA[offset] = uint8(v)
   403  	return base
   404  }
   405  func (m *CallCodeParam) Size() (n int) {
   406  	if m == nil {
   407  		return 0
   408  	}
   409  	var l int
   410  	_ = l
   411  	l = m.FromAddress.Size()
   412  	n += 1 + l + sovRpctransact(uint64(l))
   413  	l = len(m.Code)
   414  	if l > 0 {
   415  		n += 1 + l + sovRpctransact(uint64(l))
   416  	}
   417  	l = len(m.Data)
   418  	if l > 0 {
   419  		n += 1 + l + sovRpctransact(uint64(l))
   420  	}
   421  	if m.XXX_unrecognized != nil {
   422  		n += len(m.XXX_unrecognized)
   423  	}
   424  	return n
   425  }
   426  
   427  func (m *TxEnvelope) Size() (n int) {
   428  	if m == nil {
   429  		return 0
   430  	}
   431  	var l int
   432  	_ = l
   433  	if m.Envelope != nil {
   434  		l = m.Envelope.Size()
   435  		n += 1 + l + sovRpctransact(uint64(l))
   436  	}
   437  	if m.XXX_unrecognized != nil {
   438  		n += len(m.XXX_unrecognized)
   439  	}
   440  	return n
   441  }
   442  
   443  func (m *TxEnvelopeParam) Size() (n int) {
   444  	if m == nil {
   445  		return 0
   446  	}
   447  	var l int
   448  	_ = l
   449  	if m.Envelope != nil {
   450  		l = m.Envelope.Size()
   451  		n += 1 + l + sovRpctransact(uint64(l))
   452  	}
   453  	if m.Payload != nil {
   454  		l = m.Payload.Size()
   455  		n += 1 + l + sovRpctransact(uint64(l))
   456  	}
   457  	l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.Timeout)
   458  	n += 1 + l + sovRpctransact(uint64(l))
   459  	if m.XXX_unrecognized != nil {
   460  		n += len(m.XXX_unrecognized)
   461  	}
   462  	return n
   463  }
   464  
   465  func sovRpctransact(x uint64) (n int) {
   466  	return (math_bits.Len64(x|1) + 6) / 7
   467  }
   468  func sozRpctransact(x uint64) (n int) {
   469  	return sovRpctransact(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   470  }
   471  func (m *CallCodeParam) Unmarshal(dAtA []byte) error {
   472  	l := len(dAtA)
   473  	iNdEx := 0
   474  	for iNdEx < l {
   475  		preIndex := iNdEx
   476  		var wire uint64
   477  		for shift := uint(0); ; shift += 7 {
   478  			if shift >= 64 {
   479  				return ErrIntOverflowRpctransact
   480  			}
   481  			if iNdEx >= l {
   482  				return io.ErrUnexpectedEOF
   483  			}
   484  			b := dAtA[iNdEx]
   485  			iNdEx++
   486  			wire |= uint64(b&0x7F) << shift
   487  			if b < 0x80 {
   488  				break
   489  			}
   490  		}
   491  		fieldNum := int32(wire >> 3)
   492  		wireType := int(wire & 0x7)
   493  		if wireType == 4 {
   494  			return fmt.Errorf("proto: CallCodeParam: wiretype end group for non-group")
   495  		}
   496  		if fieldNum <= 0 {
   497  			return fmt.Errorf("proto: CallCodeParam: illegal tag %d (wire type %d)", fieldNum, wire)
   498  		}
   499  		switch fieldNum {
   500  		case 1:
   501  			if wireType != 2 {
   502  				return fmt.Errorf("proto: wrong wireType = %d for field FromAddress", wireType)
   503  			}
   504  			var byteLen int
   505  			for shift := uint(0); ; shift += 7 {
   506  				if shift >= 64 {
   507  					return ErrIntOverflowRpctransact
   508  				}
   509  				if iNdEx >= l {
   510  					return io.ErrUnexpectedEOF
   511  				}
   512  				b := dAtA[iNdEx]
   513  				iNdEx++
   514  				byteLen |= int(b&0x7F) << shift
   515  				if b < 0x80 {
   516  					break
   517  				}
   518  			}
   519  			if byteLen < 0 {
   520  				return ErrInvalidLengthRpctransact
   521  			}
   522  			postIndex := iNdEx + byteLen
   523  			if postIndex < 0 {
   524  				return ErrInvalidLengthRpctransact
   525  			}
   526  			if postIndex > l {
   527  				return io.ErrUnexpectedEOF
   528  			}
   529  			if err := m.FromAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   530  				return err
   531  			}
   532  			iNdEx = postIndex
   533  		case 2:
   534  			if wireType != 2 {
   535  				return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
   536  			}
   537  			var byteLen int
   538  			for shift := uint(0); ; shift += 7 {
   539  				if shift >= 64 {
   540  					return ErrIntOverflowRpctransact
   541  				}
   542  				if iNdEx >= l {
   543  					return io.ErrUnexpectedEOF
   544  				}
   545  				b := dAtA[iNdEx]
   546  				iNdEx++
   547  				byteLen |= int(b&0x7F) << shift
   548  				if b < 0x80 {
   549  					break
   550  				}
   551  			}
   552  			if byteLen < 0 {
   553  				return ErrInvalidLengthRpctransact
   554  			}
   555  			postIndex := iNdEx + byteLen
   556  			if postIndex < 0 {
   557  				return ErrInvalidLengthRpctransact
   558  			}
   559  			if postIndex > l {
   560  				return io.ErrUnexpectedEOF
   561  			}
   562  			m.Code = append(m.Code[:0], dAtA[iNdEx:postIndex]...)
   563  			if m.Code == nil {
   564  				m.Code = []byte{}
   565  			}
   566  			iNdEx = postIndex
   567  		case 3:
   568  			if wireType != 2 {
   569  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
   570  			}
   571  			var byteLen int
   572  			for shift := uint(0); ; shift += 7 {
   573  				if shift >= 64 {
   574  					return ErrIntOverflowRpctransact
   575  				}
   576  				if iNdEx >= l {
   577  					return io.ErrUnexpectedEOF
   578  				}
   579  				b := dAtA[iNdEx]
   580  				iNdEx++
   581  				byteLen |= int(b&0x7F) << shift
   582  				if b < 0x80 {
   583  					break
   584  				}
   585  			}
   586  			if byteLen < 0 {
   587  				return ErrInvalidLengthRpctransact
   588  			}
   589  			postIndex := iNdEx + byteLen
   590  			if postIndex < 0 {
   591  				return ErrInvalidLengthRpctransact
   592  			}
   593  			if postIndex > l {
   594  				return io.ErrUnexpectedEOF
   595  			}
   596  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
   597  			if m.Data == nil {
   598  				m.Data = []byte{}
   599  			}
   600  			iNdEx = postIndex
   601  		default:
   602  			iNdEx = preIndex
   603  			skippy, err := skipRpctransact(dAtA[iNdEx:])
   604  			if err != nil {
   605  				return err
   606  			}
   607  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   608  				return ErrInvalidLengthRpctransact
   609  			}
   610  			if (iNdEx + skippy) > l {
   611  				return io.ErrUnexpectedEOF
   612  			}
   613  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   614  			iNdEx += skippy
   615  		}
   616  	}
   617  
   618  	if iNdEx > l {
   619  		return io.ErrUnexpectedEOF
   620  	}
   621  	return nil
   622  }
   623  func (m *TxEnvelope) Unmarshal(dAtA []byte) error {
   624  	l := len(dAtA)
   625  	iNdEx := 0
   626  	for iNdEx < l {
   627  		preIndex := iNdEx
   628  		var wire uint64
   629  		for shift := uint(0); ; shift += 7 {
   630  			if shift >= 64 {
   631  				return ErrIntOverflowRpctransact
   632  			}
   633  			if iNdEx >= l {
   634  				return io.ErrUnexpectedEOF
   635  			}
   636  			b := dAtA[iNdEx]
   637  			iNdEx++
   638  			wire |= uint64(b&0x7F) << shift
   639  			if b < 0x80 {
   640  				break
   641  			}
   642  		}
   643  		fieldNum := int32(wire >> 3)
   644  		wireType := int(wire & 0x7)
   645  		if wireType == 4 {
   646  			return fmt.Errorf("proto: TxEnvelope: wiretype end group for non-group")
   647  		}
   648  		if fieldNum <= 0 {
   649  			return fmt.Errorf("proto: TxEnvelope: illegal tag %d (wire type %d)", fieldNum, wire)
   650  		}
   651  		switch fieldNum {
   652  		case 1:
   653  			if wireType != 2 {
   654  				return fmt.Errorf("proto: wrong wireType = %d for field Envelope", wireType)
   655  			}
   656  			var msglen int
   657  			for shift := uint(0); ; shift += 7 {
   658  				if shift >= 64 {
   659  					return ErrIntOverflowRpctransact
   660  				}
   661  				if iNdEx >= l {
   662  					return io.ErrUnexpectedEOF
   663  				}
   664  				b := dAtA[iNdEx]
   665  				iNdEx++
   666  				msglen |= int(b&0x7F) << shift
   667  				if b < 0x80 {
   668  					break
   669  				}
   670  			}
   671  			if msglen < 0 {
   672  				return ErrInvalidLengthRpctransact
   673  			}
   674  			postIndex := iNdEx + msglen
   675  			if postIndex < 0 {
   676  				return ErrInvalidLengthRpctransact
   677  			}
   678  			if postIndex > l {
   679  				return io.ErrUnexpectedEOF
   680  			}
   681  			if m.Envelope == nil {
   682  				m.Envelope = &github_com_hyperledger_burrow_txs.Envelope{}
   683  			}
   684  			if err := m.Envelope.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   685  				return err
   686  			}
   687  			iNdEx = postIndex
   688  		default:
   689  			iNdEx = preIndex
   690  			skippy, err := skipRpctransact(dAtA[iNdEx:])
   691  			if err != nil {
   692  				return err
   693  			}
   694  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   695  				return ErrInvalidLengthRpctransact
   696  			}
   697  			if (iNdEx + skippy) > l {
   698  				return io.ErrUnexpectedEOF
   699  			}
   700  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   701  			iNdEx += skippy
   702  		}
   703  	}
   704  
   705  	if iNdEx > l {
   706  		return io.ErrUnexpectedEOF
   707  	}
   708  	return nil
   709  }
   710  func (m *TxEnvelopeParam) Unmarshal(dAtA []byte) error {
   711  	l := len(dAtA)
   712  	iNdEx := 0
   713  	for iNdEx < l {
   714  		preIndex := iNdEx
   715  		var wire uint64
   716  		for shift := uint(0); ; shift += 7 {
   717  			if shift >= 64 {
   718  				return ErrIntOverflowRpctransact
   719  			}
   720  			if iNdEx >= l {
   721  				return io.ErrUnexpectedEOF
   722  			}
   723  			b := dAtA[iNdEx]
   724  			iNdEx++
   725  			wire |= uint64(b&0x7F) << shift
   726  			if b < 0x80 {
   727  				break
   728  			}
   729  		}
   730  		fieldNum := int32(wire >> 3)
   731  		wireType := int(wire & 0x7)
   732  		if wireType == 4 {
   733  			return fmt.Errorf("proto: TxEnvelopeParam: wiretype end group for non-group")
   734  		}
   735  		if fieldNum <= 0 {
   736  			return fmt.Errorf("proto: TxEnvelopeParam: illegal tag %d (wire type %d)", fieldNum, wire)
   737  		}
   738  		switch fieldNum {
   739  		case 1:
   740  			if wireType != 2 {
   741  				return fmt.Errorf("proto: wrong wireType = %d for field Envelope", wireType)
   742  			}
   743  			var msglen int
   744  			for shift := uint(0); ; shift += 7 {
   745  				if shift >= 64 {
   746  					return ErrIntOverflowRpctransact
   747  				}
   748  				if iNdEx >= l {
   749  					return io.ErrUnexpectedEOF
   750  				}
   751  				b := dAtA[iNdEx]
   752  				iNdEx++
   753  				msglen |= int(b&0x7F) << shift
   754  				if b < 0x80 {
   755  					break
   756  				}
   757  			}
   758  			if msglen < 0 {
   759  				return ErrInvalidLengthRpctransact
   760  			}
   761  			postIndex := iNdEx + msglen
   762  			if postIndex < 0 {
   763  				return ErrInvalidLengthRpctransact
   764  			}
   765  			if postIndex > l {
   766  				return io.ErrUnexpectedEOF
   767  			}
   768  			if m.Envelope == nil {
   769  				m.Envelope = &github_com_hyperledger_burrow_txs.Envelope{}
   770  			}
   771  			if err := m.Envelope.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   772  				return err
   773  			}
   774  			iNdEx = postIndex
   775  		case 2:
   776  			if wireType != 2 {
   777  				return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType)
   778  			}
   779  			var msglen int
   780  			for shift := uint(0); ; shift += 7 {
   781  				if shift >= 64 {
   782  					return ErrIntOverflowRpctransact
   783  				}
   784  				if iNdEx >= l {
   785  					return io.ErrUnexpectedEOF
   786  				}
   787  				b := dAtA[iNdEx]
   788  				iNdEx++
   789  				msglen |= int(b&0x7F) << shift
   790  				if b < 0x80 {
   791  					break
   792  				}
   793  			}
   794  			if msglen < 0 {
   795  				return ErrInvalidLengthRpctransact
   796  			}
   797  			postIndex := iNdEx + msglen
   798  			if postIndex < 0 {
   799  				return ErrInvalidLengthRpctransact
   800  			}
   801  			if postIndex > l {
   802  				return io.ErrUnexpectedEOF
   803  			}
   804  			if m.Payload == nil {
   805  				m.Payload = &payload.Any{}
   806  			}
   807  			if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   808  				return err
   809  			}
   810  			iNdEx = postIndex
   811  		case 3:
   812  			if wireType != 2 {
   813  				return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType)
   814  			}
   815  			var msglen int
   816  			for shift := uint(0); ; shift += 7 {
   817  				if shift >= 64 {
   818  					return ErrIntOverflowRpctransact
   819  				}
   820  				if iNdEx >= l {
   821  					return io.ErrUnexpectedEOF
   822  				}
   823  				b := dAtA[iNdEx]
   824  				iNdEx++
   825  				msglen |= int(b&0x7F) << shift
   826  				if b < 0x80 {
   827  					break
   828  				}
   829  			}
   830  			if msglen < 0 {
   831  				return ErrInvalidLengthRpctransact
   832  			}
   833  			postIndex := iNdEx + msglen
   834  			if postIndex < 0 {
   835  				return ErrInvalidLengthRpctransact
   836  			}
   837  			if postIndex > l {
   838  				return io.ErrUnexpectedEOF
   839  			}
   840  			if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.Timeout, dAtA[iNdEx:postIndex]); err != nil {
   841  				return err
   842  			}
   843  			iNdEx = postIndex
   844  		default:
   845  			iNdEx = preIndex
   846  			skippy, err := skipRpctransact(dAtA[iNdEx:])
   847  			if err != nil {
   848  				return err
   849  			}
   850  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   851  				return ErrInvalidLengthRpctransact
   852  			}
   853  			if (iNdEx + skippy) > l {
   854  				return io.ErrUnexpectedEOF
   855  			}
   856  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   857  			iNdEx += skippy
   858  		}
   859  	}
   860  
   861  	if iNdEx > l {
   862  		return io.ErrUnexpectedEOF
   863  	}
   864  	return nil
   865  }
   866  func skipRpctransact(dAtA []byte) (n int, err error) {
   867  	l := len(dAtA)
   868  	iNdEx := 0
   869  	depth := 0
   870  	for iNdEx < l {
   871  		var wire uint64
   872  		for shift := uint(0); ; shift += 7 {
   873  			if shift >= 64 {
   874  				return 0, ErrIntOverflowRpctransact
   875  			}
   876  			if iNdEx >= l {
   877  				return 0, io.ErrUnexpectedEOF
   878  			}
   879  			b := dAtA[iNdEx]
   880  			iNdEx++
   881  			wire |= (uint64(b) & 0x7F) << shift
   882  			if b < 0x80 {
   883  				break
   884  			}
   885  		}
   886  		wireType := int(wire & 0x7)
   887  		switch wireType {
   888  		case 0:
   889  			for shift := uint(0); ; shift += 7 {
   890  				if shift >= 64 {
   891  					return 0, ErrIntOverflowRpctransact
   892  				}
   893  				if iNdEx >= l {
   894  					return 0, io.ErrUnexpectedEOF
   895  				}
   896  				iNdEx++
   897  				if dAtA[iNdEx-1] < 0x80 {
   898  					break
   899  				}
   900  			}
   901  		case 1:
   902  			iNdEx += 8
   903  		case 2:
   904  			var length int
   905  			for shift := uint(0); ; shift += 7 {
   906  				if shift >= 64 {
   907  					return 0, ErrIntOverflowRpctransact
   908  				}
   909  				if iNdEx >= l {
   910  					return 0, io.ErrUnexpectedEOF
   911  				}
   912  				b := dAtA[iNdEx]
   913  				iNdEx++
   914  				length |= (int(b) & 0x7F) << shift
   915  				if b < 0x80 {
   916  					break
   917  				}
   918  			}
   919  			if length < 0 {
   920  				return 0, ErrInvalidLengthRpctransact
   921  			}
   922  			iNdEx += length
   923  		case 3:
   924  			depth++
   925  		case 4:
   926  			if depth == 0 {
   927  				return 0, ErrUnexpectedEndOfGroupRpctransact
   928  			}
   929  			depth--
   930  		case 5:
   931  			iNdEx += 4
   932  		default:
   933  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   934  		}
   935  		if iNdEx < 0 {
   936  			return 0, ErrInvalidLengthRpctransact
   937  		}
   938  		if depth == 0 {
   939  			return iNdEx, nil
   940  		}
   941  	}
   942  	return 0, io.ErrUnexpectedEOF
   943  }
   944  
   945  var (
   946  	ErrInvalidLengthRpctransact        = fmt.Errorf("proto: negative length found during unmarshaling")
   947  	ErrIntOverflowRpctransact          = fmt.Errorf("proto: integer overflow")
   948  	ErrUnexpectedEndOfGroupRpctransact = fmt.Errorf("proto: unexpected end of group")
   949  )