github.com/Finschia/finschia-sdk@v0.48.1/baseapp/testutil/messages.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: messages.proto
     3  
     4  package testutil
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	grpc1 "github.com/gogo/protobuf/grpc"
    11  	proto "github.com/gogo/protobuf/proto"
    12  	_ "github.com/Finschia/finschia-sdk/codec/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 _ = fmt.Errorf
    24  var _ = math.Inf
    25  
    26  // This is a compile-time assertion to ensure that this generated file
    27  // is compatible with the proto package it is being compiled against.
    28  // A compilation error at this line likely means your copy of the
    29  // proto package needs to be updated.
    30  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    31  
    32  type MsgCounter struct {
    33  	Counter       int64 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"`
    34  	FailOnHandler bool  `protobuf:"varint,2,opt,name=fail_on_handler,json=failOnHandler,proto3" json:"fail_on_handler,omitempty"`
    35  }
    36  
    37  func (m *MsgCounter) Reset()         { *m = MsgCounter{} }
    38  func (m *MsgCounter) String() string { return proto.CompactTextString(m) }
    39  func (*MsgCounter) ProtoMessage()    {}
    40  func (*MsgCounter) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_4dc296cbfe5ffcd5, []int{0}
    42  }
    43  func (m *MsgCounter) XXX_Unmarshal(b []byte) error {
    44  	return m.Unmarshal(b)
    45  }
    46  func (m *MsgCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    47  	if deterministic {
    48  		return xxx_messageInfo_MsgCounter.Marshal(b, m, deterministic)
    49  	} else {
    50  		b = b[:cap(b)]
    51  		n, err := m.MarshalToSizedBuffer(b)
    52  		if err != nil {
    53  			return nil, err
    54  		}
    55  		return b[:n], nil
    56  	}
    57  }
    58  func (m *MsgCounter) XXX_Merge(src proto.Message) {
    59  	xxx_messageInfo_MsgCounter.Merge(m, src)
    60  }
    61  func (m *MsgCounter) XXX_Size() int {
    62  	return m.Size()
    63  }
    64  func (m *MsgCounter) XXX_DiscardUnknown() {
    65  	xxx_messageInfo_MsgCounter.DiscardUnknown(m)
    66  }
    67  
    68  var xxx_messageInfo_MsgCounter proto.InternalMessageInfo
    69  
    70  func (m *MsgCounter) GetCounter() int64 {
    71  	if m != nil {
    72  		return m.Counter
    73  	}
    74  	return 0
    75  }
    76  
    77  func (m *MsgCounter) GetFailOnHandler() bool {
    78  	if m != nil {
    79  		return m.FailOnHandler
    80  	}
    81  	return false
    82  }
    83  
    84  type MsgCounter2 struct {
    85  	Counter       int64 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"`
    86  	FailOnHandler bool  `protobuf:"varint,2,opt,name=fail_on_handler,json=failOnHandler,proto3" json:"fail_on_handler,omitempty"`
    87  }
    88  
    89  func (m *MsgCounter2) Reset()         { *m = MsgCounter2{} }
    90  func (m *MsgCounter2) String() string { return proto.CompactTextString(m) }
    91  func (*MsgCounter2) ProtoMessage()    {}
    92  func (*MsgCounter2) Descriptor() ([]byte, []int) {
    93  	return fileDescriptor_4dc296cbfe5ffcd5, []int{1}
    94  }
    95  func (m *MsgCounter2) XXX_Unmarshal(b []byte) error {
    96  	return m.Unmarshal(b)
    97  }
    98  func (m *MsgCounter2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    99  	if deterministic {
   100  		return xxx_messageInfo_MsgCounter2.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 *MsgCounter2) XXX_Merge(src proto.Message) {
   111  	xxx_messageInfo_MsgCounter2.Merge(m, src)
   112  }
   113  func (m *MsgCounter2) XXX_Size() int {
   114  	return m.Size()
   115  }
   116  func (m *MsgCounter2) XXX_DiscardUnknown() {
   117  	xxx_messageInfo_MsgCounter2.DiscardUnknown(m)
   118  }
   119  
   120  var xxx_messageInfo_MsgCounter2 proto.InternalMessageInfo
   121  
   122  func (m *MsgCounter2) GetCounter() int64 {
   123  	if m != nil {
   124  		return m.Counter
   125  	}
   126  	return 0
   127  }
   128  
   129  func (m *MsgCounter2) GetFailOnHandler() bool {
   130  	if m != nil {
   131  		return m.FailOnHandler
   132  	}
   133  	return false
   134  }
   135  
   136  type MsgCreateCounterResponse struct {
   137  }
   138  
   139  func (m *MsgCreateCounterResponse) Reset()         { *m = MsgCreateCounterResponse{} }
   140  func (m *MsgCreateCounterResponse) String() string { return proto.CompactTextString(m) }
   141  func (*MsgCreateCounterResponse) ProtoMessage()    {}
   142  func (*MsgCreateCounterResponse) Descriptor() ([]byte, []int) {
   143  	return fileDescriptor_4dc296cbfe5ffcd5, []int{2}
   144  }
   145  func (m *MsgCreateCounterResponse) XXX_Unmarshal(b []byte) error {
   146  	return m.Unmarshal(b)
   147  }
   148  func (m *MsgCreateCounterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   149  	if deterministic {
   150  		return xxx_messageInfo_MsgCreateCounterResponse.Marshal(b, m, deterministic)
   151  	} else {
   152  		b = b[:cap(b)]
   153  		n, err := m.MarshalToSizedBuffer(b)
   154  		if err != nil {
   155  			return nil, err
   156  		}
   157  		return b[:n], nil
   158  	}
   159  }
   160  func (m *MsgCreateCounterResponse) XXX_Merge(src proto.Message) {
   161  	xxx_messageInfo_MsgCreateCounterResponse.Merge(m, src)
   162  }
   163  func (m *MsgCreateCounterResponse) XXX_Size() int {
   164  	return m.Size()
   165  }
   166  func (m *MsgCreateCounterResponse) XXX_DiscardUnknown() {
   167  	xxx_messageInfo_MsgCreateCounterResponse.DiscardUnknown(m)
   168  }
   169  
   170  var xxx_messageInfo_MsgCreateCounterResponse proto.InternalMessageInfo
   171  
   172  type MsgKeyValue struct {
   173  	Key    []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
   174  	Value  []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
   175  	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
   176  }
   177  
   178  func (m *MsgKeyValue) Reset()         { *m = MsgKeyValue{} }
   179  func (m *MsgKeyValue) String() string { return proto.CompactTextString(m) }
   180  func (*MsgKeyValue) ProtoMessage()    {}
   181  func (*MsgKeyValue) Descriptor() ([]byte, []int) {
   182  	return fileDescriptor_4dc296cbfe5ffcd5, []int{3}
   183  }
   184  func (m *MsgKeyValue) XXX_Unmarshal(b []byte) error {
   185  	return m.Unmarshal(b)
   186  }
   187  func (m *MsgKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   188  	if deterministic {
   189  		return xxx_messageInfo_MsgKeyValue.Marshal(b, m, deterministic)
   190  	} else {
   191  		b = b[:cap(b)]
   192  		n, err := m.MarshalToSizedBuffer(b)
   193  		if err != nil {
   194  			return nil, err
   195  		}
   196  		return b[:n], nil
   197  	}
   198  }
   199  func (m *MsgKeyValue) XXX_Merge(src proto.Message) {
   200  	xxx_messageInfo_MsgKeyValue.Merge(m, src)
   201  }
   202  func (m *MsgKeyValue) XXX_Size() int {
   203  	return m.Size()
   204  }
   205  func (m *MsgKeyValue) XXX_DiscardUnknown() {
   206  	xxx_messageInfo_MsgKeyValue.DiscardUnknown(m)
   207  }
   208  
   209  var xxx_messageInfo_MsgKeyValue proto.InternalMessageInfo
   210  
   211  func (m *MsgKeyValue) GetKey() []byte {
   212  	if m != nil {
   213  		return m.Key
   214  	}
   215  	return nil
   216  }
   217  
   218  func (m *MsgKeyValue) GetValue() []byte {
   219  	if m != nil {
   220  		return m.Value
   221  	}
   222  	return nil
   223  }
   224  
   225  func (m *MsgKeyValue) GetSigner() string {
   226  	if m != nil {
   227  		return m.Signer
   228  	}
   229  	return ""
   230  }
   231  
   232  type MsgCreateKeyValueResponse struct {
   233  }
   234  
   235  func (m *MsgCreateKeyValueResponse) Reset()         { *m = MsgCreateKeyValueResponse{} }
   236  func (m *MsgCreateKeyValueResponse) String() string { return proto.CompactTextString(m) }
   237  func (*MsgCreateKeyValueResponse) ProtoMessage()    {}
   238  func (*MsgCreateKeyValueResponse) Descriptor() ([]byte, []int) {
   239  	return fileDescriptor_4dc296cbfe5ffcd5, []int{4}
   240  }
   241  func (m *MsgCreateKeyValueResponse) XXX_Unmarshal(b []byte) error {
   242  	return m.Unmarshal(b)
   243  }
   244  func (m *MsgCreateKeyValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   245  	if deterministic {
   246  		return xxx_messageInfo_MsgCreateKeyValueResponse.Marshal(b, m, deterministic)
   247  	} else {
   248  		b = b[:cap(b)]
   249  		n, err := m.MarshalToSizedBuffer(b)
   250  		if err != nil {
   251  			return nil, err
   252  		}
   253  		return b[:n], nil
   254  	}
   255  }
   256  func (m *MsgCreateKeyValueResponse) XXX_Merge(src proto.Message) {
   257  	xxx_messageInfo_MsgCreateKeyValueResponse.Merge(m, src)
   258  }
   259  func (m *MsgCreateKeyValueResponse) XXX_Size() int {
   260  	return m.Size()
   261  }
   262  func (m *MsgCreateKeyValueResponse) XXX_DiscardUnknown() {
   263  	xxx_messageInfo_MsgCreateKeyValueResponse.DiscardUnknown(m)
   264  }
   265  
   266  var xxx_messageInfo_MsgCreateKeyValueResponse proto.InternalMessageInfo
   267  
   268  func init() {
   269  	proto.RegisterType((*MsgCounter)(nil), "testdata.MsgCounter")
   270  	proto.RegisterType((*MsgCounter2)(nil), "testdata.MsgCounter2")
   271  	proto.RegisterType((*MsgCreateCounterResponse)(nil), "testdata.MsgCreateCounterResponse")
   272  	proto.RegisterType((*MsgKeyValue)(nil), "testdata.MsgKeyValue")
   273  	proto.RegisterType((*MsgCreateKeyValueResponse)(nil), "testdata.MsgCreateKeyValueResponse")
   274  }
   275  
   276  func init() { proto.RegisterFile("messages.proto", fileDescriptor_4dc296cbfe5ffcd5) }
   277  
   278  var fileDescriptor_4dc296cbfe5ffcd5 = []byte{
   279  	// 378 bytes of a gzipped FileDescriptorProto
   280  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xc1, 0x8a, 0x9b, 0x50,
   281  	0x14, 0x86, 0x63, 0xa5, 0x89, 0x3d, 0x4d, 0xdb, 0x20, 0x69, 0x31, 0x16, 0x24, 0x58, 0x28, 0xd9,
   282  	0x44, 0xc1, 0x3e, 0x41, 0xdb, 0x45, 0x5b, 0x5a, 0x1b, 0xb0, 0xd0, 0x61, 0x66, 0x13, 0xae, 0xe6,
   283  	0xe4, 0x46, 0xa2, 0xf7, 0x8a, 0xf7, 0x3a, 0x90, 0xb7, 0x98, 0xc7, 0x9a, 0x65, 0x96, 0xb3, 0x1c,
   284  	0x92, 0x17, 0x19, 0xd4, 0x98, 0x30, 0xc1, 0xc5, 0x2c, 0x66, 0xe5, 0x39, 0xff, 0x0f, 0xdf, 0xcf,
   285  	0xf9, 0xbd, 0xf0, 0x36, 0x45, 0x21, 0x08, 0x45, 0xe1, 0x64, 0x39, 0x97, 0x5c, 0xd7, 0x24, 0x0a,
   286  	0xb9, 0x20, 0x92, 0x98, 0x43, 0xca, 0x29, 0xaf, 0x44, 0xb7, 0x9c, 0x6a, 0xdf, 0x1c, 0x51, 0xce,
   287  	0x69, 0x82, 0x6e, 0xb5, 0x85, 0xc5, 0xd2, 0x25, 0x6c, 0x53, 0x5b, 0xf6, 0x5f, 0x00, 0x5f, 0xd0,
   288  	0xef, 0xbc, 0x60, 0x12, 0x73, 0xdd, 0x80, 0x5e, 0x54, 0x8f, 0x86, 0x32, 0x56, 0x26, 0x6a, 0xd0,
   289  	0xac, 0xfa, 0x67, 0x78, 0xb7, 0x24, 0x71, 0x32, 0xe7, 0x6c, 0xbe, 0x22, 0x6c, 0x91, 0x60, 0x6e,
   290  	0xbc, 0x18, 0x2b, 0x13, 0x2d, 0x78, 0x53, 0xca, 0x33, 0xf6, 0xb3, 0x16, 0xed, 0x19, 0xbc, 0x3e,
   291  	0xf1, 0xbc, 0x67, 0x00, 0x9a, 0x60, 0x94, 0xc0, 0x1c, 0x89, 0xc4, 0x03, 0x36, 0x40, 0x91, 0x71,
   292  	0x26, 0xd0, 0xf6, 0xab, 0xb0, 0xdf, 0xb8, 0xf9, 0x4f, 0x92, 0x02, 0xf5, 0x01, 0xa8, 0x6b, 0xdc,
   293  	0x54, 0x41, 0xfd, 0xa0, 0x1c, 0xf5, 0x21, 0xbc, 0xbc, 0x2e, 0xad, 0x0a, 0xdd, 0x0f, 0xea, 0x45,
   294  	0xff, 0x00, 0x5d, 0x11, 0x53, 0x86, 0xb9, 0xa1, 0x8e, 0x95, 0xc9, 0xab, 0xe0, 0xb0, 0xd9, 0x1f,
   295  	0x61, 0x74, 0x8c, 0x6a, 0xa0, 0x4d, 0x96, 0x77, 0x01, 0xbd, 0xa6, 0xa5, 0x3f, 0x30, 0xf8, 0xc5,
   296  	0xa2, 0x1c, 0x53, 0x64, 0xb2, 0xd1, 0x86, 0x4e, 0xf3, 0x0f, 0x9c, 0xd3, 0xfd, 0xa6, 0xfd, 0x58,
   297  	0x6d, 0x3b, 0xc2, 0xbb, 0x04, 0xed, 0x58, 0x97, 0xdf, 0x42, 0x7e, 0xdf, 0x46, 0xf6, 0x9e, 0x84,
   298  	0xf6, 0x41, 0x3b, 0x96, 0xf3, 0x15, 0xd4, 0x7f, 0x28, 0xcf, 0x68, 0x8d, 0x6b, 0x7e, 0x6a, 0xa1,
   299  	0x9d, 0x57, 0xf0, 0xed, 0xc7, 0xed, 0xce, 0x52, 0xb6, 0x3b, 0x4b, 0xb9, 0xdf, 0x59, 0xca, 0xcd,
   300  	0xde, 0xea, 0x6c, 0xf7, 0x56, 0xe7, 0x6e, 0x6f, 0x75, 0xae, 0xa6, 0x34, 0x96, 0xab, 0x22, 0x74,
   301  	0x22, 0x9e, 0xba, 0x11, 0x17, 0x29, 0x17, 0x87, 0xcf, 0x54, 0x2c, 0xd6, 0x6e, 0x48, 0x04, 0x92,
   302  	0x2c, 0x73, 0xcb, 0x88, 0x42, 0xc6, 0x49, 0xd8, 0xad, 0xde, 0xde, 0x97, 0x87, 0x00, 0x00, 0x00,
   303  	0xff, 0xff, 0x63, 0x31, 0xab, 0xcc, 0xc8, 0x02, 0x00, 0x00,
   304  }
   305  
   306  // Reference imports to suppress errors if they are not otherwise used.
   307  var _ context.Context
   308  var _ grpc.ClientConn
   309  
   310  // This is a compile-time assertion to ensure that this generated file
   311  // is compatible with the grpc package it is being compiled against.
   312  const _ = grpc.SupportPackageIsVersion4
   313  
   314  // CounterClient is the client API for Counter service.
   315  //
   316  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   317  type CounterClient interface {
   318  	IncrementCounter(ctx context.Context, in *MsgCounter, opts ...grpc.CallOption) (*MsgCreateCounterResponse, error)
   319  }
   320  
   321  type counterClient struct {
   322  	cc grpc1.ClientConn
   323  }
   324  
   325  func NewCounterClient(cc grpc1.ClientConn) CounterClient {
   326  	return &counterClient{cc}
   327  }
   328  
   329  func (c *counterClient) IncrementCounter(ctx context.Context, in *MsgCounter, opts ...grpc.CallOption) (*MsgCreateCounterResponse, error) {
   330  	out := new(MsgCreateCounterResponse)
   331  	err := c.cc.Invoke(ctx, "/testdata.Counter/IncrementCounter", in, out, opts...)
   332  	if err != nil {
   333  		return nil, err
   334  	}
   335  	return out, nil
   336  }
   337  
   338  // CounterServer is the server API for Counter service.
   339  type CounterServer interface {
   340  	IncrementCounter(context.Context, *MsgCounter) (*MsgCreateCounterResponse, error)
   341  }
   342  
   343  // UnimplementedCounterServer can be embedded to have forward compatible implementations.
   344  type UnimplementedCounterServer struct {
   345  }
   346  
   347  func (*UnimplementedCounterServer) IncrementCounter(ctx context.Context, req *MsgCounter) (*MsgCreateCounterResponse, error) {
   348  	return nil, status.Errorf(codes.Unimplemented, "method IncrementCounter not implemented")
   349  }
   350  
   351  func RegisterCounterServer(s grpc1.Server, srv CounterServer) {
   352  	s.RegisterService(&_Counter_serviceDesc, srv)
   353  }
   354  
   355  func _Counter_IncrementCounter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   356  	in := new(MsgCounter)
   357  	if err := dec(in); err != nil {
   358  		return nil, err
   359  	}
   360  	if interceptor == nil {
   361  		return srv.(CounterServer).IncrementCounter(ctx, in)
   362  	}
   363  	info := &grpc.UnaryServerInfo{
   364  		Server:     srv,
   365  		FullMethod: "/testdata.Counter/IncrementCounter",
   366  	}
   367  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   368  		return srv.(CounterServer).IncrementCounter(ctx, req.(*MsgCounter))
   369  	}
   370  	return interceptor(ctx, in, info, handler)
   371  }
   372  
   373  var _Counter_serviceDesc = grpc.ServiceDesc{
   374  	ServiceName: "testdata.Counter",
   375  	HandlerType: (*CounterServer)(nil),
   376  	Methods: []grpc.MethodDesc{
   377  		{
   378  			MethodName: "IncrementCounter",
   379  			Handler:    _Counter_IncrementCounter_Handler,
   380  		},
   381  	},
   382  	Streams:  []grpc.StreamDesc{},
   383  	Metadata: "messages.proto",
   384  }
   385  
   386  // Counter2Client is the client API for Counter2 service.
   387  //
   388  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   389  type Counter2Client interface {
   390  	IncrementCounter(ctx context.Context, in *MsgCounter2, opts ...grpc.CallOption) (*MsgCreateCounterResponse, error)
   391  }
   392  
   393  type counter2Client struct {
   394  	cc grpc1.ClientConn
   395  }
   396  
   397  func NewCounter2Client(cc grpc1.ClientConn) Counter2Client {
   398  	return &counter2Client{cc}
   399  }
   400  
   401  func (c *counter2Client) IncrementCounter(ctx context.Context, in *MsgCounter2, opts ...grpc.CallOption) (*MsgCreateCounterResponse, error) {
   402  	out := new(MsgCreateCounterResponse)
   403  	err := c.cc.Invoke(ctx, "/testdata.Counter2/IncrementCounter", in, out, opts...)
   404  	if err != nil {
   405  		return nil, err
   406  	}
   407  	return out, nil
   408  }
   409  
   410  // Counter2Server is the server API for Counter2 service.
   411  type Counter2Server interface {
   412  	IncrementCounter(context.Context, *MsgCounter2) (*MsgCreateCounterResponse, error)
   413  }
   414  
   415  // UnimplementedCounter2Server can be embedded to have forward compatible implementations.
   416  type UnimplementedCounter2Server struct {
   417  }
   418  
   419  func (*UnimplementedCounter2Server) IncrementCounter(ctx context.Context, req *MsgCounter2) (*MsgCreateCounterResponse, error) {
   420  	return nil, status.Errorf(codes.Unimplemented, "method IncrementCounter not implemented")
   421  }
   422  
   423  func RegisterCounter2Server(s grpc1.Server, srv Counter2Server) {
   424  	s.RegisterService(&_Counter2_serviceDesc, srv)
   425  }
   426  
   427  func _Counter2_IncrementCounter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   428  	in := new(MsgCounter2)
   429  	if err := dec(in); err != nil {
   430  		return nil, err
   431  	}
   432  	if interceptor == nil {
   433  		return srv.(Counter2Server).IncrementCounter(ctx, in)
   434  	}
   435  	info := &grpc.UnaryServerInfo{
   436  		Server:     srv,
   437  		FullMethod: "/testdata.Counter2/IncrementCounter",
   438  	}
   439  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   440  		return srv.(Counter2Server).IncrementCounter(ctx, req.(*MsgCounter2))
   441  	}
   442  	return interceptor(ctx, in, info, handler)
   443  }
   444  
   445  var _Counter2_serviceDesc = grpc.ServiceDesc{
   446  	ServiceName: "testdata.Counter2",
   447  	HandlerType: (*Counter2Server)(nil),
   448  	Methods: []grpc.MethodDesc{
   449  		{
   450  			MethodName: "IncrementCounter",
   451  			Handler:    _Counter2_IncrementCounter_Handler,
   452  		},
   453  	},
   454  	Streams:  []grpc.StreamDesc{},
   455  	Metadata: "messages.proto",
   456  }
   457  
   458  // KeyValueClient is the client API for KeyValue service.
   459  //
   460  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   461  type KeyValueClient interface {
   462  	Set(ctx context.Context, in *MsgKeyValue, opts ...grpc.CallOption) (*MsgCreateKeyValueResponse, error)
   463  }
   464  
   465  type keyValueClient struct {
   466  	cc grpc1.ClientConn
   467  }
   468  
   469  func NewKeyValueClient(cc grpc1.ClientConn) KeyValueClient {
   470  	return &keyValueClient{cc}
   471  }
   472  
   473  func (c *keyValueClient) Set(ctx context.Context, in *MsgKeyValue, opts ...grpc.CallOption) (*MsgCreateKeyValueResponse, error) {
   474  	out := new(MsgCreateKeyValueResponse)
   475  	err := c.cc.Invoke(ctx, "/testdata.KeyValue/Set", in, out, opts...)
   476  	if err != nil {
   477  		return nil, err
   478  	}
   479  	return out, nil
   480  }
   481  
   482  // KeyValueServer is the server API for KeyValue service.
   483  type KeyValueServer interface {
   484  	Set(context.Context, *MsgKeyValue) (*MsgCreateKeyValueResponse, error)
   485  }
   486  
   487  // UnimplementedKeyValueServer can be embedded to have forward compatible implementations.
   488  type UnimplementedKeyValueServer struct {
   489  }
   490  
   491  func (*UnimplementedKeyValueServer) Set(ctx context.Context, req *MsgKeyValue) (*MsgCreateKeyValueResponse, error) {
   492  	return nil, status.Errorf(codes.Unimplemented, "method Set not implemented")
   493  }
   494  
   495  func RegisterKeyValueServer(s grpc1.Server, srv KeyValueServer) {
   496  	s.RegisterService(&_KeyValue_serviceDesc, srv)
   497  }
   498  
   499  func _KeyValue_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   500  	in := new(MsgKeyValue)
   501  	if err := dec(in); err != nil {
   502  		return nil, err
   503  	}
   504  	if interceptor == nil {
   505  		return srv.(KeyValueServer).Set(ctx, in)
   506  	}
   507  	info := &grpc.UnaryServerInfo{
   508  		Server:     srv,
   509  		FullMethod: "/testdata.KeyValue/Set",
   510  	}
   511  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   512  		return srv.(KeyValueServer).Set(ctx, req.(*MsgKeyValue))
   513  	}
   514  	return interceptor(ctx, in, info, handler)
   515  }
   516  
   517  var _KeyValue_serviceDesc = grpc.ServiceDesc{
   518  	ServiceName: "testdata.KeyValue",
   519  	HandlerType: (*KeyValueServer)(nil),
   520  	Methods: []grpc.MethodDesc{
   521  		{
   522  			MethodName: "Set",
   523  			Handler:    _KeyValue_Set_Handler,
   524  		},
   525  	},
   526  	Streams:  []grpc.StreamDesc{},
   527  	Metadata: "messages.proto",
   528  }
   529  
   530  func (m *MsgCounter) Marshal() (dAtA []byte, err error) {
   531  	size := m.Size()
   532  	dAtA = make([]byte, size)
   533  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   534  	if err != nil {
   535  		return nil, err
   536  	}
   537  	return dAtA[:n], nil
   538  }
   539  
   540  func (m *MsgCounter) MarshalTo(dAtA []byte) (int, error) {
   541  	size := m.Size()
   542  	return m.MarshalToSizedBuffer(dAtA[:size])
   543  }
   544  
   545  func (m *MsgCounter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   546  	i := len(dAtA)
   547  	_ = i
   548  	var l int
   549  	_ = l
   550  	if m.FailOnHandler {
   551  		i--
   552  		if m.FailOnHandler {
   553  			dAtA[i] = 1
   554  		} else {
   555  			dAtA[i] = 0
   556  		}
   557  		i--
   558  		dAtA[i] = 0x10
   559  	}
   560  	if m.Counter != 0 {
   561  		i = encodeVarintMessages(dAtA, i, uint64(m.Counter))
   562  		i--
   563  		dAtA[i] = 0x8
   564  	}
   565  	return len(dAtA) - i, nil
   566  }
   567  
   568  func (m *MsgCounter2) Marshal() (dAtA []byte, err error) {
   569  	size := m.Size()
   570  	dAtA = make([]byte, size)
   571  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   572  	if err != nil {
   573  		return nil, err
   574  	}
   575  	return dAtA[:n], nil
   576  }
   577  
   578  func (m *MsgCounter2) MarshalTo(dAtA []byte) (int, error) {
   579  	size := m.Size()
   580  	return m.MarshalToSizedBuffer(dAtA[:size])
   581  }
   582  
   583  func (m *MsgCounter2) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   584  	i := len(dAtA)
   585  	_ = i
   586  	var l int
   587  	_ = l
   588  	if m.FailOnHandler {
   589  		i--
   590  		if m.FailOnHandler {
   591  			dAtA[i] = 1
   592  		} else {
   593  			dAtA[i] = 0
   594  		}
   595  		i--
   596  		dAtA[i] = 0x10
   597  	}
   598  	if m.Counter != 0 {
   599  		i = encodeVarintMessages(dAtA, i, uint64(m.Counter))
   600  		i--
   601  		dAtA[i] = 0x8
   602  	}
   603  	return len(dAtA) - i, nil
   604  }
   605  
   606  func (m *MsgCreateCounterResponse) Marshal() (dAtA []byte, err error) {
   607  	size := m.Size()
   608  	dAtA = make([]byte, size)
   609  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   610  	if err != nil {
   611  		return nil, err
   612  	}
   613  	return dAtA[:n], nil
   614  }
   615  
   616  func (m *MsgCreateCounterResponse) MarshalTo(dAtA []byte) (int, error) {
   617  	size := m.Size()
   618  	return m.MarshalToSizedBuffer(dAtA[:size])
   619  }
   620  
   621  func (m *MsgCreateCounterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   622  	i := len(dAtA)
   623  	_ = i
   624  	var l int
   625  	_ = l
   626  	return len(dAtA) - i, nil
   627  }
   628  
   629  func (m *MsgKeyValue) Marshal() (dAtA []byte, err error) {
   630  	size := m.Size()
   631  	dAtA = make([]byte, size)
   632  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   633  	if err != nil {
   634  		return nil, err
   635  	}
   636  	return dAtA[:n], nil
   637  }
   638  
   639  func (m *MsgKeyValue) MarshalTo(dAtA []byte) (int, error) {
   640  	size := m.Size()
   641  	return m.MarshalToSizedBuffer(dAtA[:size])
   642  }
   643  
   644  func (m *MsgKeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   645  	i := len(dAtA)
   646  	_ = i
   647  	var l int
   648  	_ = l
   649  	if len(m.Signer) > 0 {
   650  		i -= len(m.Signer)
   651  		copy(dAtA[i:], m.Signer)
   652  		i = encodeVarintMessages(dAtA, i, uint64(len(m.Signer)))
   653  		i--
   654  		dAtA[i] = 0x1a
   655  	}
   656  	if len(m.Value) > 0 {
   657  		i -= len(m.Value)
   658  		copy(dAtA[i:], m.Value)
   659  		i = encodeVarintMessages(dAtA, i, uint64(len(m.Value)))
   660  		i--
   661  		dAtA[i] = 0x12
   662  	}
   663  	if len(m.Key) > 0 {
   664  		i -= len(m.Key)
   665  		copy(dAtA[i:], m.Key)
   666  		i = encodeVarintMessages(dAtA, i, uint64(len(m.Key)))
   667  		i--
   668  		dAtA[i] = 0xa
   669  	}
   670  	return len(dAtA) - i, nil
   671  }
   672  
   673  func (m *MsgCreateKeyValueResponse) Marshal() (dAtA []byte, err error) {
   674  	size := m.Size()
   675  	dAtA = make([]byte, size)
   676  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   677  	if err != nil {
   678  		return nil, err
   679  	}
   680  	return dAtA[:n], nil
   681  }
   682  
   683  func (m *MsgCreateKeyValueResponse) MarshalTo(dAtA []byte) (int, error) {
   684  	size := m.Size()
   685  	return m.MarshalToSizedBuffer(dAtA[:size])
   686  }
   687  
   688  func (m *MsgCreateKeyValueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   689  	i := len(dAtA)
   690  	_ = i
   691  	var l int
   692  	_ = l
   693  	return len(dAtA) - i, nil
   694  }
   695  
   696  func encodeVarintMessages(dAtA []byte, offset int, v uint64) int {
   697  	offset -= sovMessages(v)
   698  	base := offset
   699  	for v >= 1<<7 {
   700  		dAtA[offset] = uint8(v&0x7f | 0x80)
   701  		v >>= 7
   702  		offset++
   703  	}
   704  	dAtA[offset] = uint8(v)
   705  	return base
   706  }
   707  func (m *MsgCounter) Size() (n int) {
   708  	if m == nil {
   709  		return 0
   710  	}
   711  	var l int
   712  	_ = l
   713  	if m.Counter != 0 {
   714  		n += 1 + sovMessages(uint64(m.Counter))
   715  	}
   716  	if m.FailOnHandler {
   717  		n += 2
   718  	}
   719  	return n
   720  }
   721  
   722  func (m *MsgCounter2) Size() (n int) {
   723  	if m == nil {
   724  		return 0
   725  	}
   726  	var l int
   727  	_ = l
   728  	if m.Counter != 0 {
   729  		n += 1 + sovMessages(uint64(m.Counter))
   730  	}
   731  	if m.FailOnHandler {
   732  		n += 2
   733  	}
   734  	return n
   735  }
   736  
   737  func (m *MsgCreateCounterResponse) Size() (n int) {
   738  	if m == nil {
   739  		return 0
   740  	}
   741  	var l int
   742  	_ = l
   743  	return n
   744  }
   745  
   746  func (m *MsgKeyValue) Size() (n int) {
   747  	if m == nil {
   748  		return 0
   749  	}
   750  	var l int
   751  	_ = l
   752  	l = len(m.Key)
   753  	if l > 0 {
   754  		n += 1 + l + sovMessages(uint64(l))
   755  	}
   756  	l = len(m.Value)
   757  	if l > 0 {
   758  		n += 1 + l + sovMessages(uint64(l))
   759  	}
   760  	l = len(m.Signer)
   761  	if l > 0 {
   762  		n += 1 + l + sovMessages(uint64(l))
   763  	}
   764  	return n
   765  }
   766  
   767  func (m *MsgCreateKeyValueResponse) Size() (n int) {
   768  	if m == nil {
   769  		return 0
   770  	}
   771  	var l int
   772  	_ = l
   773  	return n
   774  }
   775  
   776  func sovMessages(x uint64) (n int) {
   777  	return (math_bits.Len64(x|1) + 6) / 7
   778  }
   779  func sozMessages(x uint64) (n int) {
   780  	return sovMessages(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   781  }
   782  func (m *MsgCounter) Unmarshal(dAtA []byte) error {
   783  	l := len(dAtA)
   784  	iNdEx := 0
   785  	for iNdEx < l {
   786  		preIndex := iNdEx
   787  		var wire uint64
   788  		for shift := uint(0); ; shift += 7 {
   789  			if shift >= 64 {
   790  				return ErrIntOverflowMessages
   791  			}
   792  			if iNdEx >= l {
   793  				return io.ErrUnexpectedEOF
   794  			}
   795  			b := dAtA[iNdEx]
   796  			iNdEx++
   797  			wire |= uint64(b&0x7F) << shift
   798  			if b < 0x80 {
   799  				break
   800  			}
   801  		}
   802  		fieldNum := int32(wire >> 3)
   803  		wireType := int(wire & 0x7)
   804  		if wireType == 4 {
   805  			return fmt.Errorf("proto: MsgCounter: wiretype end group for non-group")
   806  		}
   807  		if fieldNum <= 0 {
   808  			return fmt.Errorf("proto: MsgCounter: illegal tag %d (wire type %d)", fieldNum, wire)
   809  		}
   810  		switch fieldNum {
   811  		case 1:
   812  			if wireType != 0 {
   813  				return fmt.Errorf("proto: wrong wireType = %d for field Counter", wireType)
   814  			}
   815  			m.Counter = 0
   816  			for shift := uint(0); ; shift += 7 {
   817  				if shift >= 64 {
   818  					return ErrIntOverflowMessages
   819  				}
   820  				if iNdEx >= l {
   821  					return io.ErrUnexpectedEOF
   822  				}
   823  				b := dAtA[iNdEx]
   824  				iNdEx++
   825  				m.Counter |= int64(b&0x7F) << shift
   826  				if b < 0x80 {
   827  					break
   828  				}
   829  			}
   830  		case 2:
   831  			if wireType != 0 {
   832  				return fmt.Errorf("proto: wrong wireType = %d for field FailOnHandler", wireType)
   833  			}
   834  			var v int
   835  			for shift := uint(0); ; shift += 7 {
   836  				if shift >= 64 {
   837  					return ErrIntOverflowMessages
   838  				}
   839  				if iNdEx >= l {
   840  					return io.ErrUnexpectedEOF
   841  				}
   842  				b := dAtA[iNdEx]
   843  				iNdEx++
   844  				v |= int(b&0x7F) << shift
   845  				if b < 0x80 {
   846  					break
   847  				}
   848  			}
   849  			m.FailOnHandler = bool(v != 0)
   850  		default:
   851  			iNdEx = preIndex
   852  			skippy, err := skipMessages(dAtA[iNdEx:])
   853  			if err != nil {
   854  				return err
   855  			}
   856  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   857  				return ErrInvalidLengthMessages
   858  			}
   859  			if (iNdEx + skippy) > l {
   860  				return io.ErrUnexpectedEOF
   861  			}
   862  			iNdEx += skippy
   863  		}
   864  	}
   865  
   866  	if iNdEx > l {
   867  		return io.ErrUnexpectedEOF
   868  	}
   869  	return nil
   870  }
   871  func (m *MsgCounter2) Unmarshal(dAtA []byte) error {
   872  	l := len(dAtA)
   873  	iNdEx := 0
   874  	for iNdEx < l {
   875  		preIndex := iNdEx
   876  		var wire uint64
   877  		for shift := uint(0); ; shift += 7 {
   878  			if shift >= 64 {
   879  				return ErrIntOverflowMessages
   880  			}
   881  			if iNdEx >= l {
   882  				return io.ErrUnexpectedEOF
   883  			}
   884  			b := dAtA[iNdEx]
   885  			iNdEx++
   886  			wire |= uint64(b&0x7F) << shift
   887  			if b < 0x80 {
   888  				break
   889  			}
   890  		}
   891  		fieldNum := int32(wire >> 3)
   892  		wireType := int(wire & 0x7)
   893  		if wireType == 4 {
   894  			return fmt.Errorf("proto: MsgCounter2: wiretype end group for non-group")
   895  		}
   896  		if fieldNum <= 0 {
   897  			return fmt.Errorf("proto: MsgCounter2: illegal tag %d (wire type %d)", fieldNum, wire)
   898  		}
   899  		switch fieldNum {
   900  		case 1:
   901  			if wireType != 0 {
   902  				return fmt.Errorf("proto: wrong wireType = %d for field Counter", wireType)
   903  			}
   904  			m.Counter = 0
   905  			for shift := uint(0); ; shift += 7 {
   906  				if shift >= 64 {
   907  					return ErrIntOverflowMessages
   908  				}
   909  				if iNdEx >= l {
   910  					return io.ErrUnexpectedEOF
   911  				}
   912  				b := dAtA[iNdEx]
   913  				iNdEx++
   914  				m.Counter |= int64(b&0x7F) << shift
   915  				if b < 0x80 {
   916  					break
   917  				}
   918  			}
   919  		case 2:
   920  			if wireType != 0 {
   921  				return fmt.Errorf("proto: wrong wireType = %d for field FailOnHandler", wireType)
   922  			}
   923  			var v int
   924  			for shift := uint(0); ; shift += 7 {
   925  				if shift >= 64 {
   926  					return ErrIntOverflowMessages
   927  				}
   928  				if iNdEx >= l {
   929  					return io.ErrUnexpectedEOF
   930  				}
   931  				b := dAtA[iNdEx]
   932  				iNdEx++
   933  				v |= int(b&0x7F) << shift
   934  				if b < 0x80 {
   935  					break
   936  				}
   937  			}
   938  			m.FailOnHandler = bool(v != 0)
   939  		default:
   940  			iNdEx = preIndex
   941  			skippy, err := skipMessages(dAtA[iNdEx:])
   942  			if err != nil {
   943  				return err
   944  			}
   945  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   946  				return ErrInvalidLengthMessages
   947  			}
   948  			if (iNdEx + skippy) > l {
   949  				return io.ErrUnexpectedEOF
   950  			}
   951  			iNdEx += skippy
   952  		}
   953  	}
   954  
   955  	if iNdEx > l {
   956  		return io.ErrUnexpectedEOF
   957  	}
   958  	return nil
   959  }
   960  func (m *MsgCreateCounterResponse) Unmarshal(dAtA []byte) error {
   961  	l := len(dAtA)
   962  	iNdEx := 0
   963  	for iNdEx < l {
   964  		preIndex := iNdEx
   965  		var wire uint64
   966  		for shift := uint(0); ; shift += 7 {
   967  			if shift >= 64 {
   968  				return ErrIntOverflowMessages
   969  			}
   970  			if iNdEx >= l {
   971  				return io.ErrUnexpectedEOF
   972  			}
   973  			b := dAtA[iNdEx]
   974  			iNdEx++
   975  			wire |= uint64(b&0x7F) << shift
   976  			if b < 0x80 {
   977  				break
   978  			}
   979  		}
   980  		fieldNum := int32(wire >> 3)
   981  		wireType := int(wire & 0x7)
   982  		if wireType == 4 {
   983  			return fmt.Errorf("proto: MsgCreateCounterResponse: wiretype end group for non-group")
   984  		}
   985  		if fieldNum <= 0 {
   986  			return fmt.Errorf("proto: MsgCreateCounterResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   987  		}
   988  		switch fieldNum {
   989  		default:
   990  			iNdEx = preIndex
   991  			skippy, err := skipMessages(dAtA[iNdEx:])
   992  			if err != nil {
   993  				return err
   994  			}
   995  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   996  				return ErrInvalidLengthMessages
   997  			}
   998  			if (iNdEx + skippy) > l {
   999  				return io.ErrUnexpectedEOF
  1000  			}
  1001  			iNdEx += skippy
  1002  		}
  1003  	}
  1004  
  1005  	if iNdEx > l {
  1006  		return io.ErrUnexpectedEOF
  1007  	}
  1008  	return nil
  1009  }
  1010  func (m *MsgKeyValue) Unmarshal(dAtA []byte) error {
  1011  	l := len(dAtA)
  1012  	iNdEx := 0
  1013  	for iNdEx < l {
  1014  		preIndex := iNdEx
  1015  		var wire uint64
  1016  		for shift := uint(0); ; shift += 7 {
  1017  			if shift >= 64 {
  1018  				return ErrIntOverflowMessages
  1019  			}
  1020  			if iNdEx >= l {
  1021  				return io.ErrUnexpectedEOF
  1022  			}
  1023  			b := dAtA[iNdEx]
  1024  			iNdEx++
  1025  			wire |= uint64(b&0x7F) << shift
  1026  			if b < 0x80 {
  1027  				break
  1028  			}
  1029  		}
  1030  		fieldNum := int32(wire >> 3)
  1031  		wireType := int(wire & 0x7)
  1032  		if wireType == 4 {
  1033  			return fmt.Errorf("proto: MsgKeyValue: wiretype end group for non-group")
  1034  		}
  1035  		if fieldNum <= 0 {
  1036  			return fmt.Errorf("proto: MsgKeyValue: illegal tag %d (wire type %d)", fieldNum, wire)
  1037  		}
  1038  		switch fieldNum {
  1039  		case 1:
  1040  			if wireType != 2 {
  1041  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  1042  			}
  1043  			var byteLen int
  1044  			for shift := uint(0); ; shift += 7 {
  1045  				if shift >= 64 {
  1046  					return ErrIntOverflowMessages
  1047  				}
  1048  				if iNdEx >= l {
  1049  					return io.ErrUnexpectedEOF
  1050  				}
  1051  				b := dAtA[iNdEx]
  1052  				iNdEx++
  1053  				byteLen |= int(b&0x7F) << shift
  1054  				if b < 0x80 {
  1055  					break
  1056  				}
  1057  			}
  1058  			if byteLen < 0 {
  1059  				return ErrInvalidLengthMessages
  1060  			}
  1061  			postIndex := iNdEx + byteLen
  1062  			if postIndex < 0 {
  1063  				return ErrInvalidLengthMessages
  1064  			}
  1065  			if postIndex > l {
  1066  				return io.ErrUnexpectedEOF
  1067  			}
  1068  			m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
  1069  			if m.Key == nil {
  1070  				m.Key = []byte{}
  1071  			}
  1072  			iNdEx = postIndex
  1073  		case 2:
  1074  			if wireType != 2 {
  1075  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  1076  			}
  1077  			var byteLen int
  1078  			for shift := uint(0); ; shift += 7 {
  1079  				if shift >= 64 {
  1080  					return ErrIntOverflowMessages
  1081  				}
  1082  				if iNdEx >= l {
  1083  					return io.ErrUnexpectedEOF
  1084  				}
  1085  				b := dAtA[iNdEx]
  1086  				iNdEx++
  1087  				byteLen |= int(b&0x7F) << shift
  1088  				if b < 0x80 {
  1089  					break
  1090  				}
  1091  			}
  1092  			if byteLen < 0 {
  1093  				return ErrInvalidLengthMessages
  1094  			}
  1095  			postIndex := iNdEx + byteLen
  1096  			if postIndex < 0 {
  1097  				return ErrInvalidLengthMessages
  1098  			}
  1099  			if postIndex > l {
  1100  				return io.ErrUnexpectedEOF
  1101  			}
  1102  			m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
  1103  			if m.Value == nil {
  1104  				m.Value = []byte{}
  1105  			}
  1106  			iNdEx = postIndex
  1107  		case 3:
  1108  			if wireType != 2 {
  1109  				return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType)
  1110  			}
  1111  			var stringLen uint64
  1112  			for shift := uint(0); ; shift += 7 {
  1113  				if shift >= 64 {
  1114  					return ErrIntOverflowMessages
  1115  				}
  1116  				if iNdEx >= l {
  1117  					return io.ErrUnexpectedEOF
  1118  				}
  1119  				b := dAtA[iNdEx]
  1120  				iNdEx++
  1121  				stringLen |= uint64(b&0x7F) << shift
  1122  				if b < 0x80 {
  1123  					break
  1124  				}
  1125  			}
  1126  			intStringLen := int(stringLen)
  1127  			if intStringLen < 0 {
  1128  				return ErrInvalidLengthMessages
  1129  			}
  1130  			postIndex := iNdEx + intStringLen
  1131  			if postIndex < 0 {
  1132  				return ErrInvalidLengthMessages
  1133  			}
  1134  			if postIndex > l {
  1135  				return io.ErrUnexpectedEOF
  1136  			}
  1137  			m.Signer = string(dAtA[iNdEx:postIndex])
  1138  			iNdEx = postIndex
  1139  		default:
  1140  			iNdEx = preIndex
  1141  			skippy, err := skipMessages(dAtA[iNdEx:])
  1142  			if err != nil {
  1143  				return err
  1144  			}
  1145  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1146  				return ErrInvalidLengthMessages
  1147  			}
  1148  			if (iNdEx + skippy) > l {
  1149  				return io.ErrUnexpectedEOF
  1150  			}
  1151  			iNdEx += skippy
  1152  		}
  1153  	}
  1154  
  1155  	if iNdEx > l {
  1156  		return io.ErrUnexpectedEOF
  1157  	}
  1158  	return nil
  1159  }
  1160  func (m *MsgCreateKeyValueResponse) Unmarshal(dAtA []byte) error {
  1161  	l := len(dAtA)
  1162  	iNdEx := 0
  1163  	for iNdEx < l {
  1164  		preIndex := iNdEx
  1165  		var wire uint64
  1166  		for shift := uint(0); ; shift += 7 {
  1167  			if shift >= 64 {
  1168  				return ErrIntOverflowMessages
  1169  			}
  1170  			if iNdEx >= l {
  1171  				return io.ErrUnexpectedEOF
  1172  			}
  1173  			b := dAtA[iNdEx]
  1174  			iNdEx++
  1175  			wire |= uint64(b&0x7F) << shift
  1176  			if b < 0x80 {
  1177  				break
  1178  			}
  1179  		}
  1180  		fieldNum := int32(wire >> 3)
  1181  		wireType := int(wire & 0x7)
  1182  		if wireType == 4 {
  1183  			return fmt.Errorf("proto: MsgCreateKeyValueResponse: wiretype end group for non-group")
  1184  		}
  1185  		if fieldNum <= 0 {
  1186  			return fmt.Errorf("proto: MsgCreateKeyValueResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1187  		}
  1188  		switch fieldNum {
  1189  		default:
  1190  			iNdEx = preIndex
  1191  			skippy, err := skipMessages(dAtA[iNdEx:])
  1192  			if err != nil {
  1193  				return err
  1194  			}
  1195  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1196  				return ErrInvalidLengthMessages
  1197  			}
  1198  			if (iNdEx + skippy) > l {
  1199  				return io.ErrUnexpectedEOF
  1200  			}
  1201  			iNdEx += skippy
  1202  		}
  1203  	}
  1204  
  1205  	if iNdEx > l {
  1206  		return io.ErrUnexpectedEOF
  1207  	}
  1208  	return nil
  1209  }
  1210  func skipMessages(dAtA []byte) (n int, err error) {
  1211  	l := len(dAtA)
  1212  	iNdEx := 0
  1213  	depth := 0
  1214  	for iNdEx < l {
  1215  		var wire uint64
  1216  		for shift := uint(0); ; shift += 7 {
  1217  			if shift >= 64 {
  1218  				return 0, ErrIntOverflowMessages
  1219  			}
  1220  			if iNdEx >= l {
  1221  				return 0, io.ErrUnexpectedEOF
  1222  			}
  1223  			b := dAtA[iNdEx]
  1224  			iNdEx++
  1225  			wire |= (uint64(b) & 0x7F) << shift
  1226  			if b < 0x80 {
  1227  				break
  1228  			}
  1229  		}
  1230  		wireType := int(wire & 0x7)
  1231  		switch wireType {
  1232  		case 0:
  1233  			for shift := uint(0); ; shift += 7 {
  1234  				if shift >= 64 {
  1235  					return 0, ErrIntOverflowMessages
  1236  				}
  1237  				if iNdEx >= l {
  1238  					return 0, io.ErrUnexpectedEOF
  1239  				}
  1240  				iNdEx++
  1241  				if dAtA[iNdEx-1] < 0x80 {
  1242  					break
  1243  				}
  1244  			}
  1245  		case 1:
  1246  			iNdEx += 8
  1247  		case 2:
  1248  			var length int
  1249  			for shift := uint(0); ; shift += 7 {
  1250  				if shift >= 64 {
  1251  					return 0, ErrIntOverflowMessages
  1252  				}
  1253  				if iNdEx >= l {
  1254  					return 0, io.ErrUnexpectedEOF
  1255  				}
  1256  				b := dAtA[iNdEx]
  1257  				iNdEx++
  1258  				length |= (int(b) & 0x7F) << shift
  1259  				if b < 0x80 {
  1260  					break
  1261  				}
  1262  			}
  1263  			if length < 0 {
  1264  				return 0, ErrInvalidLengthMessages
  1265  			}
  1266  			iNdEx += length
  1267  		case 3:
  1268  			depth++
  1269  		case 4:
  1270  			if depth == 0 {
  1271  				return 0, ErrUnexpectedEndOfGroupMessages
  1272  			}
  1273  			depth--
  1274  		case 5:
  1275  			iNdEx += 4
  1276  		default:
  1277  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1278  		}
  1279  		if iNdEx < 0 {
  1280  			return 0, ErrInvalidLengthMessages
  1281  		}
  1282  		if depth == 0 {
  1283  			return iNdEx, nil
  1284  		}
  1285  	}
  1286  	return 0, io.ErrUnexpectedEOF
  1287  }
  1288  
  1289  var (
  1290  	ErrInvalidLengthMessages        = fmt.Errorf("proto: negative length found during unmarshaling")
  1291  	ErrIntOverflowMessages          = fmt.Errorf("proto: integer overflow")
  1292  	ErrUnexpectedEndOfGroupMessages = fmt.Errorf("proto: unexpected end of group")
  1293  )