github.com/franono/tendermint@v0.32.2-0.20200527150959-749313264ce9/rpc/grpc/types.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: rpc/grpc/types.proto
     3  
     4  package coregrpc
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	golang_proto "github.com/golang/protobuf/proto"
    12  	types "github.com/franono/tendermint/abci/types"
    13  	grpc "google.golang.org/grpc"
    14  	codes "google.golang.org/grpc/codes"
    15  	status "google.golang.org/grpc/status"
    16  	io "io"
    17  	math "math"
    18  	math_bits "math/bits"
    19  )
    20  
    21  // Reference imports to suppress errors if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = golang_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 RequestPing struct {
    34  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    35  	XXX_unrecognized     []byte   `json:"-"`
    36  	XXX_sizecache        int32    `json:"-"`
    37  }
    38  
    39  func (m *RequestPing) Reset()         { *m = RequestPing{} }
    40  func (m *RequestPing) String() string { return proto.CompactTextString(m) }
    41  func (*RequestPing) ProtoMessage()    {}
    42  func (*RequestPing) Descriptor() ([]byte, []int) {
    43  	return fileDescriptor_15f63baabf91876a, []int{0}
    44  }
    45  func (m *RequestPing) XXX_Unmarshal(b []byte) error {
    46  	return m.Unmarshal(b)
    47  }
    48  func (m *RequestPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    49  	if deterministic {
    50  		return xxx_messageInfo_RequestPing.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 *RequestPing) XXX_Merge(src proto.Message) {
    61  	xxx_messageInfo_RequestPing.Merge(m, src)
    62  }
    63  func (m *RequestPing) XXX_Size() int {
    64  	return m.Size()
    65  }
    66  func (m *RequestPing) XXX_DiscardUnknown() {
    67  	xxx_messageInfo_RequestPing.DiscardUnknown(m)
    68  }
    69  
    70  var xxx_messageInfo_RequestPing proto.InternalMessageInfo
    71  
    72  type RequestBroadcastTx struct {
    73  	Tx                   []byte   `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
    74  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    75  	XXX_unrecognized     []byte   `json:"-"`
    76  	XXX_sizecache        int32    `json:"-"`
    77  }
    78  
    79  func (m *RequestBroadcastTx) Reset()         { *m = RequestBroadcastTx{} }
    80  func (m *RequestBroadcastTx) String() string { return proto.CompactTextString(m) }
    81  func (*RequestBroadcastTx) ProtoMessage()    {}
    82  func (*RequestBroadcastTx) Descriptor() ([]byte, []int) {
    83  	return fileDescriptor_15f63baabf91876a, []int{1}
    84  }
    85  func (m *RequestBroadcastTx) XXX_Unmarshal(b []byte) error {
    86  	return m.Unmarshal(b)
    87  }
    88  func (m *RequestBroadcastTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    89  	if deterministic {
    90  		return xxx_messageInfo_RequestBroadcastTx.Marshal(b, m, deterministic)
    91  	} else {
    92  		b = b[:cap(b)]
    93  		n, err := m.MarshalToSizedBuffer(b)
    94  		if err != nil {
    95  			return nil, err
    96  		}
    97  		return b[:n], nil
    98  	}
    99  }
   100  func (m *RequestBroadcastTx) XXX_Merge(src proto.Message) {
   101  	xxx_messageInfo_RequestBroadcastTx.Merge(m, src)
   102  }
   103  func (m *RequestBroadcastTx) XXX_Size() int {
   104  	return m.Size()
   105  }
   106  func (m *RequestBroadcastTx) XXX_DiscardUnknown() {
   107  	xxx_messageInfo_RequestBroadcastTx.DiscardUnknown(m)
   108  }
   109  
   110  var xxx_messageInfo_RequestBroadcastTx proto.InternalMessageInfo
   111  
   112  func (m *RequestBroadcastTx) GetTx() []byte {
   113  	if m != nil {
   114  		return m.Tx
   115  	}
   116  	return nil
   117  }
   118  
   119  type ResponsePing struct {
   120  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   121  	XXX_unrecognized     []byte   `json:"-"`
   122  	XXX_sizecache        int32    `json:"-"`
   123  }
   124  
   125  func (m *ResponsePing) Reset()         { *m = ResponsePing{} }
   126  func (m *ResponsePing) String() string { return proto.CompactTextString(m) }
   127  func (*ResponsePing) ProtoMessage()    {}
   128  func (*ResponsePing) Descriptor() ([]byte, []int) {
   129  	return fileDescriptor_15f63baabf91876a, []int{2}
   130  }
   131  func (m *ResponsePing) XXX_Unmarshal(b []byte) error {
   132  	return m.Unmarshal(b)
   133  }
   134  func (m *ResponsePing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   135  	if deterministic {
   136  		return xxx_messageInfo_ResponsePing.Marshal(b, m, deterministic)
   137  	} else {
   138  		b = b[:cap(b)]
   139  		n, err := m.MarshalToSizedBuffer(b)
   140  		if err != nil {
   141  			return nil, err
   142  		}
   143  		return b[:n], nil
   144  	}
   145  }
   146  func (m *ResponsePing) XXX_Merge(src proto.Message) {
   147  	xxx_messageInfo_ResponsePing.Merge(m, src)
   148  }
   149  func (m *ResponsePing) XXX_Size() int {
   150  	return m.Size()
   151  }
   152  func (m *ResponsePing) XXX_DiscardUnknown() {
   153  	xxx_messageInfo_ResponsePing.DiscardUnknown(m)
   154  }
   155  
   156  var xxx_messageInfo_ResponsePing proto.InternalMessageInfo
   157  
   158  type ResponseBroadcastTx struct {
   159  	CheckTx              *types.ResponseCheckTx   `protobuf:"bytes,1,opt,name=check_tx,json=checkTx,proto3" json:"check_tx,omitempty"`
   160  	DeliverTx            *types.ResponseDeliverTx `protobuf:"bytes,2,opt,name=deliver_tx,json=deliverTx,proto3" json:"deliver_tx,omitempty"`
   161  	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
   162  	XXX_unrecognized     []byte                   `json:"-"`
   163  	XXX_sizecache        int32                    `json:"-"`
   164  }
   165  
   166  func (m *ResponseBroadcastTx) Reset()         { *m = ResponseBroadcastTx{} }
   167  func (m *ResponseBroadcastTx) String() string { return proto.CompactTextString(m) }
   168  func (*ResponseBroadcastTx) ProtoMessage()    {}
   169  func (*ResponseBroadcastTx) Descriptor() ([]byte, []int) {
   170  	return fileDescriptor_15f63baabf91876a, []int{3}
   171  }
   172  func (m *ResponseBroadcastTx) XXX_Unmarshal(b []byte) error {
   173  	return m.Unmarshal(b)
   174  }
   175  func (m *ResponseBroadcastTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   176  	if deterministic {
   177  		return xxx_messageInfo_ResponseBroadcastTx.Marshal(b, m, deterministic)
   178  	} else {
   179  		b = b[:cap(b)]
   180  		n, err := m.MarshalToSizedBuffer(b)
   181  		if err != nil {
   182  			return nil, err
   183  		}
   184  		return b[:n], nil
   185  	}
   186  }
   187  func (m *ResponseBroadcastTx) XXX_Merge(src proto.Message) {
   188  	xxx_messageInfo_ResponseBroadcastTx.Merge(m, src)
   189  }
   190  func (m *ResponseBroadcastTx) XXX_Size() int {
   191  	return m.Size()
   192  }
   193  func (m *ResponseBroadcastTx) XXX_DiscardUnknown() {
   194  	xxx_messageInfo_ResponseBroadcastTx.DiscardUnknown(m)
   195  }
   196  
   197  var xxx_messageInfo_ResponseBroadcastTx proto.InternalMessageInfo
   198  
   199  func (m *ResponseBroadcastTx) GetCheckTx() *types.ResponseCheckTx {
   200  	if m != nil {
   201  		return m.CheckTx
   202  	}
   203  	return nil
   204  }
   205  
   206  func (m *ResponseBroadcastTx) GetDeliverTx() *types.ResponseDeliverTx {
   207  	if m != nil {
   208  		return m.DeliverTx
   209  	}
   210  	return nil
   211  }
   212  
   213  func init() {
   214  	proto.RegisterType((*RequestPing)(nil), "tendermint.rpc.grpc.RequestPing")
   215  	golang_proto.RegisterType((*RequestPing)(nil), "tendermint.rpc.grpc.RequestPing")
   216  	proto.RegisterType((*RequestBroadcastTx)(nil), "tendermint.rpc.grpc.RequestBroadcastTx")
   217  	golang_proto.RegisterType((*RequestBroadcastTx)(nil), "tendermint.rpc.grpc.RequestBroadcastTx")
   218  	proto.RegisterType((*ResponsePing)(nil), "tendermint.rpc.grpc.ResponsePing")
   219  	golang_proto.RegisterType((*ResponsePing)(nil), "tendermint.rpc.grpc.ResponsePing")
   220  	proto.RegisterType((*ResponseBroadcastTx)(nil), "tendermint.rpc.grpc.ResponseBroadcastTx")
   221  	golang_proto.RegisterType((*ResponseBroadcastTx)(nil), "tendermint.rpc.grpc.ResponseBroadcastTx")
   222  }
   223  
   224  func init() { proto.RegisterFile("rpc/grpc/types.proto", fileDescriptor_15f63baabf91876a) }
   225  func init() { golang_proto.RegisterFile("rpc/grpc/types.proto", fileDescriptor_15f63baabf91876a) }
   226  
   227  var fileDescriptor_15f63baabf91876a = []byte{
   228  	// 330 bytes of a gzipped FileDescriptorProto
   229  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x4f, 0x4b, 0xc3, 0x30,
   230  	0x18, 0xc6, 0xc9, 0x10, 0xff, 0xbc, 0x9b, 0x3b, 0x64, 0x22, 0xd2, 0x43, 0x99, 0x43, 0xe6, 0x4e,
   231  	0x29, 0xcc, 0xa3, 0xa7, 0xcd, 0x81, 0x88, 0x97, 0x51, 0x76, 0xf2, 0x32, 0xbb, 0x34, 0xb4, 0x41,
   232  	0xd7, 0xc4, 0x34, 0x93, 0xee, 0xe3, 0xf8, 0x41, 0x04, 0x8f, 0x1e, 0xfd, 0x08, 0x52, 0xbf, 0x88,
   233  	0xa4, 0x5d, 0x6d, 0x0e, 0x3a, 0x2f, 0xe5, 0x69, 0x78, 0x9e, 0x1f, 0xcf, 0xfb, 0x26, 0x70, 0xa4,
   234  	0x24, 0xf5, 0x22, 0xf3, 0xd1, 0x6b, 0xc9, 0x52, 0x22, 0x95, 0xd0, 0x02, 0x77, 0x34, 0x4b, 0x42,
   235  	0xa6, 0x96, 0x3c, 0xd1, 0x44, 0x49, 0x4a, 0x8c, 0xc1, 0xe9, 0xeb, 0x98, 0xab, 0x70, 0x2e, 0x03,
   236  	0xa5, 0xd7, 0x5e, 0xe1, 0xf3, 0x22, 0x11, 0x89, 0x5a, 0x95, 0x61, 0xe7, 0x38, 0x58, 0x50, 0x5e,
   237  	0xe2, 0x6c, 0x68, 0xef, 0x10, 0x9a, 0x3e, 0x7b, 0x5a, 0xb1, 0x54, 0x4f, 0x79, 0x12, 0xf5, 0xce,
   238  	0x00, 0x6f, 0x7e, 0xc7, 0x4a, 0x04, 0x21, 0x0d, 0x52, 0x3d, 0xcb, 0x70, 0x1b, 0x1a, 0x3a, 0x3b,
   239  	0x41, 0x5d, 0x34, 0x68, 0xf9, 0x0d, 0x9d, 0xf5, 0xda, 0xd0, 0xf2, 0x59, 0x2a, 0x45, 0x92, 0xb2,
   240  	0x22, 0xf5, 0x82, 0xa0, 0x53, 0x1d, 0xd8, 0xb9, 0x11, 0xec, 0xd3, 0x98, 0xd1, 0x87, 0xf9, 0x26,
   241  	0xdd, 0x1c, 0xf6, 0x89, 0x35, 0x84, 0xa9, 0x44, 0xca, 0x32, 0x55, 0xfa, 0xca, 0xd8, 0x67, 0x99,
   242  	0xbf, 0x47, 0x4b, 0x81, 0xaf, 0x01, 0x42, 0xf6, 0xc8, 0x9f, 0x99, 0x32, 0x90, 0x46, 0x01, 0x19,
   243  	0xfc, 0x03, 0x99, 0x94, 0x81, 0x59, 0xe6, 0x1f, 0x84, 0x95, 0x1c, 0xbe, 0x22, 0x68, 0xfd, 0x74,
   244  	0x1b, 0x4d, 0x6f, 0xf0, 0x2d, 0xec, 0x98, 0xf2, 0xb8, 0x4b, 0x7e, 0xd9, 0x2b, 0xb1, 0x96, 0xe2,
   245  	0x9c, 0xfe, 0xe1, 0xa8, 0x37, 0x80, 0xef, 0xa1, 0x69, 0x0f, 0x7e, 0xbe, 0x8d, 0x69, 0x19, 0x9d,
   246  	0xc1, 0x56, 0xb4, 0xe5, 0x1c, 0x4f, 0xde, 0x73, 0x17, 0x7d, 0xe4, 0x2e, 0xfa, 0xcc, 0x5d, 0xf4,
   247  	0xf6, 0xe5, 0xa2, 0xbb, 0x61, 0xc4, 0x75, 0xbc, 0x5a, 0x10, 0x2a, 0x96, 0x5e, 0x4d, 0xb1, 0x65,
   248  	0xf5, 0x8c, 0x2e, 0xa9, 0x50, 0xcc, 0x88, 0xc5, 0x6e, 0x71, 0xeb, 0x17, 0xdf, 0x01, 0x00, 0x00,
   249  	0xff, 0xff, 0x67, 0x85, 0x6c, 0xf2, 0x62, 0x02, 0x00, 0x00,
   250  }
   251  
   252  // Reference imports to suppress errors if they are not otherwise used.
   253  var _ context.Context
   254  var _ grpc.ClientConn
   255  
   256  // This is a compile-time assertion to ensure that this generated file
   257  // is compatible with the grpc package it is being compiled against.
   258  const _ = grpc.SupportPackageIsVersion4
   259  
   260  // BroadcastAPIClient is the client API for BroadcastAPI service.
   261  //
   262  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   263  type BroadcastAPIClient interface {
   264  	Ping(ctx context.Context, in *RequestPing, opts ...grpc.CallOption) (*ResponsePing, error)
   265  	BroadcastTx(ctx context.Context, in *RequestBroadcastTx, opts ...grpc.CallOption) (*ResponseBroadcastTx, error)
   266  }
   267  
   268  type broadcastAPIClient struct {
   269  	cc *grpc.ClientConn
   270  }
   271  
   272  func NewBroadcastAPIClient(cc *grpc.ClientConn) BroadcastAPIClient {
   273  	return &broadcastAPIClient{cc}
   274  }
   275  
   276  func (c *broadcastAPIClient) Ping(ctx context.Context, in *RequestPing, opts ...grpc.CallOption) (*ResponsePing, error) {
   277  	out := new(ResponsePing)
   278  	err := c.cc.Invoke(ctx, "/tendermint.rpc.grpc.BroadcastAPI/Ping", in, out, opts...)
   279  	if err != nil {
   280  		return nil, err
   281  	}
   282  	return out, nil
   283  }
   284  
   285  func (c *broadcastAPIClient) BroadcastTx(ctx context.Context, in *RequestBroadcastTx, opts ...grpc.CallOption) (*ResponseBroadcastTx, error) {
   286  	out := new(ResponseBroadcastTx)
   287  	err := c.cc.Invoke(ctx, "/tendermint.rpc.grpc.BroadcastAPI/BroadcastTx", in, out, opts...)
   288  	if err != nil {
   289  		return nil, err
   290  	}
   291  	return out, nil
   292  }
   293  
   294  // BroadcastAPIServer is the server API for BroadcastAPI service.
   295  type BroadcastAPIServer interface {
   296  	Ping(context.Context, *RequestPing) (*ResponsePing, error)
   297  	BroadcastTx(context.Context, *RequestBroadcastTx) (*ResponseBroadcastTx, error)
   298  }
   299  
   300  // UnimplementedBroadcastAPIServer can be embedded to have forward compatible implementations.
   301  type UnimplementedBroadcastAPIServer struct {
   302  }
   303  
   304  func (*UnimplementedBroadcastAPIServer) Ping(ctx context.Context, req *RequestPing) (*ResponsePing, error) {
   305  	return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
   306  }
   307  func (*UnimplementedBroadcastAPIServer) BroadcastTx(ctx context.Context, req *RequestBroadcastTx) (*ResponseBroadcastTx, error) {
   308  	return nil, status.Errorf(codes.Unimplemented, "method BroadcastTx not implemented")
   309  }
   310  
   311  func RegisterBroadcastAPIServer(s *grpc.Server, srv BroadcastAPIServer) {
   312  	s.RegisterService(&_BroadcastAPI_serviceDesc, srv)
   313  }
   314  
   315  func _BroadcastAPI_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   316  	in := new(RequestPing)
   317  	if err := dec(in); err != nil {
   318  		return nil, err
   319  	}
   320  	if interceptor == nil {
   321  		return srv.(BroadcastAPIServer).Ping(ctx, in)
   322  	}
   323  	info := &grpc.UnaryServerInfo{
   324  		Server:     srv,
   325  		FullMethod: "/tendermint.rpc.grpc.BroadcastAPI/Ping",
   326  	}
   327  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   328  		return srv.(BroadcastAPIServer).Ping(ctx, req.(*RequestPing))
   329  	}
   330  	return interceptor(ctx, in, info, handler)
   331  }
   332  
   333  func _BroadcastAPI_BroadcastTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   334  	in := new(RequestBroadcastTx)
   335  	if err := dec(in); err != nil {
   336  		return nil, err
   337  	}
   338  	if interceptor == nil {
   339  		return srv.(BroadcastAPIServer).BroadcastTx(ctx, in)
   340  	}
   341  	info := &grpc.UnaryServerInfo{
   342  		Server:     srv,
   343  		FullMethod: "/tendermint.rpc.grpc.BroadcastAPI/BroadcastTx",
   344  	}
   345  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   346  		return srv.(BroadcastAPIServer).BroadcastTx(ctx, req.(*RequestBroadcastTx))
   347  	}
   348  	return interceptor(ctx, in, info, handler)
   349  }
   350  
   351  var _BroadcastAPI_serviceDesc = grpc.ServiceDesc{
   352  	ServiceName: "tendermint.rpc.grpc.BroadcastAPI",
   353  	HandlerType: (*BroadcastAPIServer)(nil),
   354  	Methods: []grpc.MethodDesc{
   355  		{
   356  			MethodName: "Ping",
   357  			Handler:    _BroadcastAPI_Ping_Handler,
   358  		},
   359  		{
   360  			MethodName: "BroadcastTx",
   361  			Handler:    _BroadcastAPI_BroadcastTx_Handler,
   362  		},
   363  	},
   364  	Streams:  []grpc.StreamDesc{},
   365  	Metadata: "rpc/grpc/types.proto",
   366  }
   367  
   368  func (m *RequestPing) Marshal() (dAtA []byte, err error) {
   369  	size := m.Size()
   370  	dAtA = make([]byte, size)
   371  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   372  	if err != nil {
   373  		return nil, err
   374  	}
   375  	return dAtA[:n], nil
   376  }
   377  
   378  func (m *RequestPing) MarshalTo(dAtA []byte) (int, error) {
   379  	size := m.Size()
   380  	return m.MarshalToSizedBuffer(dAtA[:size])
   381  }
   382  
   383  func (m *RequestPing) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   384  	i := len(dAtA)
   385  	_ = i
   386  	var l int
   387  	_ = l
   388  	if m.XXX_unrecognized != nil {
   389  		i -= len(m.XXX_unrecognized)
   390  		copy(dAtA[i:], m.XXX_unrecognized)
   391  	}
   392  	return len(dAtA) - i, nil
   393  }
   394  
   395  func (m *RequestBroadcastTx) Marshal() (dAtA []byte, err error) {
   396  	size := m.Size()
   397  	dAtA = make([]byte, size)
   398  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   399  	if err != nil {
   400  		return nil, err
   401  	}
   402  	return dAtA[:n], nil
   403  }
   404  
   405  func (m *RequestBroadcastTx) MarshalTo(dAtA []byte) (int, error) {
   406  	size := m.Size()
   407  	return m.MarshalToSizedBuffer(dAtA[:size])
   408  }
   409  
   410  func (m *RequestBroadcastTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   411  	i := len(dAtA)
   412  	_ = i
   413  	var l int
   414  	_ = l
   415  	if m.XXX_unrecognized != nil {
   416  		i -= len(m.XXX_unrecognized)
   417  		copy(dAtA[i:], m.XXX_unrecognized)
   418  	}
   419  	if len(m.Tx) > 0 {
   420  		i -= len(m.Tx)
   421  		copy(dAtA[i:], m.Tx)
   422  		i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx)))
   423  		i--
   424  		dAtA[i] = 0xa
   425  	}
   426  	return len(dAtA) - i, nil
   427  }
   428  
   429  func (m *ResponsePing) Marshal() (dAtA []byte, err error) {
   430  	size := m.Size()
   431  	dAtA = make([]byte, size)
   432  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   433  	if err != nil {
   434  		return nil, err
   435  	}
   436  	return dAtA[:n], nil
   437  }
   438  
   439  func (m *ResponsePing) MarshalTo(dAtA []byte) (int, error) {
   440  	size := m.Size()
   441  	return m.MarshalToSizedBuffer(dAtA[:size])
   442  }
   443  
   444  func (m *ResponsePing) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   445  	i := len(dAtA)
   446  	_ = i
   447  	var l int
   448  	_ = l
   449  	if m.XXX_unrecognized != nil {
   450  		i -= len(m.XXX_unrecognized)
   451  		copy(dAtA[i:], m.XXX_unrecognized)
   452  	}
   453  	return len(dAtA) - i, nil
   454  }
   455  
   456  func (m *ResponseBroadcastTx) Marshal() (dAtA []byte, err error) {
   457  	size := m.Size()
   458  	dAtA = make([]byte, size)
   459  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   460  	if err != nil {
   461  		return nil, err
   462  	}
   463  	return dAtA[:n], nil
   464  }
   465  
   466  func (m *ResponseBroadcastTx) MarshalTo(dAtA []byte) (int, error) {
   467  	size := m.Size()
   468  	return m.MarshalToSizedBuffer(dAtA[:size])
   469  }
   470  
   471  func (m *ResponseBroadcastTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   472  	i := len(dAtA)
   473  	_ = i
   474  	var l int
   475  	_ = l
   476  	if m.XXX_unrecognized != nil {
   477  		i -= len(m.XXX_unrecognized)
   478  		copy(dAtA[i:], m.XXX_unrecognized)
   479  	}
   480  	if m.DeliverTx != nil {
   481  		{
   482  			size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i])
   483  			if err != nil {
   484  				return 0, err
   485  			}
   486  			i -= size
   487  			i = encodeVarintTypes(dAtA, i, uint64(size))
   488  		}
   489  		i--
   490  		dAtA[i] = 0x12
   491  	}
   492  	if m.CheckTx != nil {
   493  		{
   494  			size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i])
   495  			if err != nil {
   496  				return 0, err
   497  			}
   498  			i -= size
   499  			i = encodeVarintTypes(dAtA, i, uint64(size))
   500  		}
   501  		i--
   502  		dAtA[i] = 0xa
   503  	}
   504  	return len(dAtA) - i, nil
   505  }
   506  
   507  func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
   508  	offset -= sovTypes(v)
   509  	base := offset
   510  	for v >= 1<<7 {
   511  		dAtA[offset] = uint8(v&0x7f | 0x80)
   512  		v >>= 7
   513  		offset++
   514  	}
   515  	dAtA[offset] = uint8(v)
   516  	return base
   517  }
   518  func (m *RequestPing) Size() (n int) {
   519  	if m == nil {
   520  		return 0
   521  	}
   522  	var l int
   523  	_ = l
   524  	if m.XXX_unrecognized != nil {
   525  		n += len(m.XXX_unrecognized)
   526  	}
   527  	return n
   528  }
   529  
   530  func (m *RequestBroadcastTx) Size() (n int) {
   531  	if m == nil {
   532  		return 0
   533  	}
   534  	var l int
   535  	_ = l
   536  	l = len(m.Tx)
   537  	if l > 0 {
   538  		n += 1 + l + sovTypes(uint64(l))
   539  	}
   540  	if m.XXX_unrecognized != nil {
   541  		n += len(m.XXX_unrecognized)
   542  	}
   543  	return n
   544  }
   545  
   546  func (m *ResponsePing) Size() (n int) {
   547  	if m == nil {
   548  		return 0
   549  	}
   550  	var l int
   551  	_ = l
   552  	if m.XXX_unrecognized != nil {
   553  		n += len(m.XXX_unrecognized)
   554  	}
   555  	return n
   556  }
   557  
   558  func (m *ResponseBroadcastTx) Size() (n int) {
   559  	if m == nil {
   560  		return 0
   561  	}
   562  	var l int
   563  	_ = l
   564  	if m.CheckTx != nil {
   565  		l = m.CheckTx.Size()
   566  		n += 1 + l + sovTypes(uint64(l))
   567  	}
   568  	if m.DeliverTx != nil {
   569  		l = m.DeliverTx.Size()
   570  		n += 1 + l + sovTypes(uint64(l))
   571  	}
   572  	if m.XXX_unrecognized != nil {
   573  		n += len(m.XXX_unrecognized)
   574  	}
   575  	return n
   576  }
   577  
   578  func sovTypes(x uint64) (n int) {
   579  	return (math_bits.Len64(x|1) + 6) / 7
   580  }
   581  func sozTypes(x uint64) (n int) {
   582  	return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   583  }
   584  func (m *RequestPing) Unmarshal(dAtA []byte) error {
   585  	l := len(dAtA)
   586  	iNdEx := 0
   587  	for iNdEx < l {
   588  		preIndex := iNdEx
   589  		var wire uint64
   590  		for shift := uint(0); ; shift += 7 {
   591  			if shift >= 64 {
   592  				return ErrIntOverflowTypes
   593  			}
   594  			if iNdEx >= l {
   595  				return io.ErrUnexpectedEOF
   596  			}
   597  			b := dAtA[iNdEx]
   598  			iNdEx++
   599  			wire |= uint64(b&0x7F) << shift
   600  			if b < 0x80 {
   601  				break
   602  			}
   603  		}
   604  		fieldNum := int32(wire >> 3)
   605  		wireType := int(wire & 0x7)
   606  		if wireType == 4 {
   607  			return fmt.Errorf("proto: RequestPing: wiretype end group for non-group")
   608  		}
   609  		if fieldNum <= 0 {
   610  			return fmt.Errorf("proto: RequestPing: illegal tag %d (wire type %d)", fieldNum, wire)
   611  		}
   612  		switch fieldNum {
   613  		default:
   614  			iNdEx = preIndex
   615  			skippy, err := skipTypes(dAtA[iNdEx:])
   616  			if err != nil {
   617  				return err
   618  			}
   619  			if skippy < 0 {
   620  				return ErrInvalidLengthTypes
   621  			}
   622  			if (iNdEx + skippy) < 0 {
   623  				return ErrInvalidLengthTypes
   624  			}
   625  			if (iNdEx + skippy) > l {
   626  				return io.ErrUnexpectedEOF
   627  			}
   628  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   629  			iNdEx += skippy
   630  		}
   631  	}
   632  
   633  	if iNdEx > l {
   634  		return io.ErrUnexpectedEOF
   635  	}
   636  	return nil
   637  }
   638  func (m *RequestBroadcastTx) Unmarshal(dAtA []byte) error {
   639  	l := len(dAtA)
   640  	iNdEx := 0
   641  	for iNdEx < l {
   642  		preIndex := iNdEx
   643  		var wire uint64
   644  		for shift := uint(0); ; shift += 7 {
   645  			if shift >= 64 {
   646  				return ErrIntOverflowTypes
   647  			}
   648  			if iNdEx >= l {
   649  				return io.ErrUnexpectedEOF
   650  			}
   651  			b := dAtA[iNdEx]
   652  			iNdEx++
   653  			wire |= uint64(b&0x7F) << shift
   654  			if b < 0x80 {
   655  				break
   656  			}
   657  		}
   658  		fieldNum := int32(wire >> 3)
   659  		wireType := int(wire & 0x7)
   660  		if wireType == 4 {
   661  			return fmt.Errorf("proto: RequestBroadcastTx: wiretype end group for non-group")
   662  		}
   663  		if fieldNum <= 0 {
   664  			return fmt.Errorf("proto: RequestBroadcastTx: illegal tag %d (wire type %d)", fieldNum, wire)
   665  		}
   666  		switch fieldNum {
   667  		case 1:
   668  			if wireType != 2 {
   669  				return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType)
   670  			}
   671  			var byteLen int
   672  			for shift := uint(0); ; shift += 7 {
   673  				if shift >= 64 {
   674  					return ErrIntOverflowTypes
   675  				}
   676  				if iNdEx >= l {
   677  					return io.ErrUnexpectedEOF
   678  				}
   679  				b := dAtA[iNdEx]
   680  				iNdEx++
   681  				byteLen |= int(b&0x7F) << shift
   682  				if b < 0x80 {
   683  					break
   684  				}
   685  			}
   686  			if byteLen < 0 {
   687  				return ErrInvalidLengthTypes
   688  			}
   689  			postIndex := iNdEx + byteLen
   690  			if postIndex < 0 {
   691  				return ErrInvalidLengthTypes
   692  			}
   693  			if postIndex > l {
   694  				return io.ErrUnexpectedEOF
   695  			}
   696  			m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...)
   697  			if m.Tx == nil {
   698  				m.Tx = []byte{}
   699  			}
   700  			iNdEx = postIndex
   701  		default:
   702  			iNdEx = preIndex
   703  			skippy, err := skipTypes(dAtA[iNdEx:])
   704  			if err != nil {
   705  				return err
   706  			}
   707  			if skippy < 0 {
   708  				return ErrInvalidLengthTypes
   709  			}
   710  			if (iNdEx + skippy) < 0 {
   711  				return ErrInvalidLengthTypes
   712  			}
   713  			if (iNdEx + skippy) > l {
   714  				return io.ErrUnexpectedEOF
   715  			}
   716  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   717  			iNdEx += skippy
   718  		}
   719  	}
   720  
   721  	if iNdEx > l {
   722  		return io.ErrUnexpectedEOF
   723  	}
   724  	return nil
   725  }
   726  func (m *ResponsePing) Unmarshal(dAtA []byte) error {
   727  	l := len(dAtA)
   728  	iNdEx := 0
   729  	for iNdEx < l {
   730  		preIndex := iNdEx
   731  		var wire uint64
   732  		for shift := uint(0); ; shift += 7 {
   733  			if shift >= 64 {
   734  				return ErrIntOverflowTypes
   735  			}
   736  			if iNdEx >= l {
   737  				return io.ErrUnexpectedEOF
   738  			}
   739  			b := dAtA[iNdEx]
   740  			iNdEx++
   741  			wire |= uint64(b&0x7F) << shift
   742  			if b < 0x80 {
   743  				break
   744  			}
   745  		}
   746  		fieldNum := int32(wire >> 3)
   747  		wireType := int(wire & 0x7)
   748  		if wireType == 4 {
   749  			return fmt.Errorf("proto: ResponsePing: wiretype end group for non-group")
   750  		}
   751  		if fieldNum <= 0 {
   752  			return fmt.Errorf("proto: ResponsePing: illegal tag %d (wire type %d)", fieldNum, wire)
   753  		}
   754  		switch fieldNum {
   755  		default:
   756  			iNdEx = preIndex
   757  			skippy, err := skipTypes(dAtA[iNdEx:])
   758  			if err != nil {
   759  				return err
   760  			}
   761  			if skippy < 0 {
   762  				return ErrInvalidLengthTypes
   763  			}
   764  			if (iNdEx + skippy) < 0 {
   765  				return ErrInvalidLengthTypes
   766  			}
   767  			if (iNdEx + skippy) > l {
   768  				return io.ErrUnexpectedEOF
   769  			}
   770  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   771  			iNdEx += skippy
   772  		}
   773  	}
   774  
   775  	if iNdEx > l {
   776  		return io.ErrUnexpectedEOF
   777  	}
   778  	return nil
   779  }
   780  func (m *ResponseBroadcastTx) Unmarshal(dAtA []byte) error {
   781  	l := len(dAtA)
   782  	iNdEx := 0
   783  	for iNdEx < l {
   784  		preIndex := iNdEx
   785  		var wire uint64
   786  		for shift := uint(0); ; shift += 7 {
   787  			if shift >= 64 {
   788  				return ErrIntOverflowTypes
   789  			}
   790  			if iNdEx >= l {
   791  				return io.ErrUnexpectedEOF
   792  			}
   793  			b := dAtA[iNdEx]
   794  			iNdEx++
   795  			wire |= uint64(b&0x7F) << shift
   796  			if b < 0x80 {
   797  				break
   798  			}
   799  		}
   800  		fieldNum := int32(wire >> 3)
   801  		wireType := int(wire & 0x7)
   802  		if wireType == 4 {
   803  			return fmt.Errorf("proto: ResponseBroadcastTx: wiretype end group for non-group")
   804  		}
   805  		if fieldNum <= 0 {
   806  			return fmt.Errorf("proto: ResponseBroadcastTx: illegal tag %d (wire type %d)", fieldNum, wire)
   807  		}
   808  		switch fieldNum {
   809  		case 1:
   810  			if wireType != 2 {
   811  				return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType)
   812  			}
   813  			var msglen int
   814  			for shift := uint(0); ; shift += 7 {
   815  				if shift >= 64 {
   816  					return ErrIntOverflowTypes
   817  				}
   818  				if iNdEx >= l {
   819  					return io.ErrUnexpectedEOF
   820  				}
   821  				b := dAtA[iNdEx]
   822  				iNdEx++
   823  				msglen |= int(b&0x7F) << shift
   824  				if b < 0x80 {
   825  					break
   826  				}
   827  			}
   828  			if msglen < 0 {
   829  				return ErrInvalidLengthTypes
   830  			}
   831  			postIndex := iNdEx + msglen
   832  			if postIndex < 0 {
   833  				return ErrInvalidLengthTypes
   834  			}
   835  			if postIndex > l {
   836  				return io.ErrUnexpectedEOF
   837  			}
   838  			if m.CheckTx == nil {
   839  				m.CheckTx = &types.ResponseCheckTx{}
   840  			}
   841  			if err := m.CheckTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   842  				return err
   843  			}
   844  			iNdEx = postIndex
   845  		case 2:
   846  			if wireType != 2 {
   847  				return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType)
   848  			}
   849  			var msglen int
   850  			for shift := uint(0); ; shift += 7 {
   851  				if shift >= 64 {
   852  					return ErrIntOverflowTypes
   853  				}
   854  				if iNdEx >= l {
   855  					return io.ErrUnexpectedEOF
   856  				}
   857  				b := dAtA[iNdEx]
   858  				iNdEx++
   859  				msglen |= int(b&0x7F) << shift
   860  				if b < 0x80 {
   861  					break
   862  				}
   863  			}
   864  			if msglen < 0 {
   865  				return ErrInvalidLengthTypes
   866  			}
   867  			postIndex := iNdEx + msglen
   868  			if postIndex < 0 {
   869  				return ErrInvalidLengthTypes
   870  			}
   871  			if postIndex > l {
   872  				return io.ErrUnexpectedEOF
   873  			}
   874  			if m.DeliverTx == nil {
   875  				m.DeliverTx = &types.ResponseDeliverTx{}
   876  			}
   877  			if err := m.DeliverTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   878  				return err
   879  			}
   880  			iNdEx = postIndex
   881  		default:
   882  			iNdEx = preIndex
   883  			skippy, err := skipTypes(dAtA[iNdEx:])
   884  			if err != nil {
   885  				return err
   886  			}
   887  			if skippy < 0 {
   888  				return ErrInvalidLengthTypes
   889  			}
   890  			if (iNdEx + skippy) < 0 {
   891  				return ErrInvalidLengthTypes
   892  			}
   893  			if (iNdEx + skippy) > l {
   894  				return io.ErrUnexpectedEOF
   895  			}
   896  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   897  			iNdEx += skippy
   898  		}
   899  	}
   900  
   901  	if iNdEx > l {
   902  		return io.ErrUnexpectedEOF
   903  	}
   904  	return nil
   905  }
   906  func skipTypes(dAtA []byte) (n int, err error) {
   907  	l := len(dAtA)
   908  	iNdEx := 0
   909  	depth := 0
   910  	for iNdEx < l {
   911  		var wire uint64
   912  		for shift := uint(0); ; shift += 7 {
   913  			if shift >= 64 {
   914  				return 0, ErrIntOverflowTypes
   915  			}
   916  			if iNdEx >= l {
   917  				return 0, io.ErrUnexpectedEOF
   918  			}
   919  			b := dAtA[iNdEx]
   920  			iNdEx++
   921  			wire |= (uint64(b) & 0x7F) << shift
   922  			if b < 0x80 {
   923  				break
   924  			}
   925  		}
   926  		wireType := int(wire & 0x7)
   927  		switch wireType {
   928  		case 0:
   929  			for shift := uint(0); ; shift += 7 {
   930  				if shift >= 64 {
   931  					return 0, ErrIntOverflowTypes
   932  				}
   933  				if iNdEx >= l {
   934  					return 0, io.ErrUnexpectedEOF
   935  				}
   936  				iNdEx++
   937  				if dAtA[iNdEx-1] < 0x80 {
   938  					break
   939  				}
   940  			}
   941  		case 1:
   942  			iNdEx += 8
   943  		case 2:
   944  			var length int
   945  			for shift := uint(0); ; shift += 7 {
   946  				if shift >= 64 {
   947  					return 0, ErrIntOverflowTypes
   948  				}
   949  				if iNdEx >= l {
   950  					return 0, io.ErrUnexpectedEOF
   951  				}
   952  				b := dAtA[iNdEx]
   953  				iNdEx++
   954  				length |= (int(b) & 0x7F) << shift
   955  				if b < 0x80 {
   956  					break
   957  				}
   958  			}
   959  			if length < 0 {
   960  				return 0, ErrInvalidLengthTypes
   961  			}
   962  			iNdEx += length
   963  		case 3:
   964  			depth++
   965  		case 4:
   966  			if depth == 0 {
   967  				return 0, ErrUnexpectedEndOfGroupTypes
   968  			}
   969  			depth--
   970  		case 5:
   971  			iNdEx += 4
   972  		default:
   973  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   974  		}
   975  		if iNdEx < 0 {
   976  			return 0, ErrInvalidLengthTypes
   977  		}
   978  		if depth == 0 {
   979  			return iNdEx, nil
   980  		}
   981  	}
   982  	return 0, io.ErrUnexpectedEOF
   983  }
   984  
   985  var (
   986  	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
   987  	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
   988  	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
   989  )