github.com/Finschia/finschia-sdk@v0.48.1/client/grpc/reflection/reflection.pb.go (about)

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