github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/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  	// 395 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, 0xf9, 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, 0x71, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72,
   242  	0x7e, 0x2e, 0xcc, 0x42, 0x08, 0xa5, 0x5b, 0x9c, 0x92, 0xad, 0x9f, 0x9c, 0x93, 0x99, 0x9a, 0x57,
   243  	0xa2, 0x9f, 0x5e, 0x54, 0x90, 0x8c, 0xe4, 0x84, 0x24, 0x36, 0x70, 0xc6, 0x30, 0x06, 0x04, 0x00,
   244  	0x00, 0xff, 0xff, 0x32, 0x5b, 0x2b, 0x51, 0x89, 0x03, 0x00, 0x00,
   245  }
   246  
   247  // Reference imports to suppress errors if they are not otherwise used.
   248  var _ context.Context
   249  var _ grpc.ClientConn
   250  
   251  // This is a compile-time assertion to ensure that this generated file
   252  // is compatible with the grpc package it is being compiled against.
   253  const _ = grpc.SupportPackageIsVersion4
   254  
   255  // ReflectionServiceClient is the client API for ReflectionService service.
   256  //
   257  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   258  type ReflectionServiceClient interface {
   259  	// ListAllInterfaces lists all the interfaces registered in the interface
   260  	// registry.
   261  	ListAllInterfaces(ctx context.Context, in *ListAllInterfacesRequest, opts ...grpc.CallOption) (*ListAllInterfacesResponse, error)
   262  	// ListImplementations list all the concrete types that implement a given
   263  	// interface.
   264  	ListImplementations(ctx context.Context, in *ListImplementationsRequest, opts ...grpc.CallOption) (*ListImplementationsResponse, error)
   265  }
   266  
   267  type reflectionServiceClient struct {
   268  	cc grpc1.ClientConn
   269  }
   270  
   271  func NewReflectionServiceClient(cc grpc1.ClientConn) ReflectionServiceClient {
   272  	return &reflectionServiceClient{cc}
   273  }
   274  
   275  func (c *reflectionServiceClient) ListAllInterfaces(ctx context.Context, in *ListAllInterfacesRequest, opts ...grpc.CallOption) (*ListAllInterfacesResponse, error) {
   276  	out := new(ListAllInterfacesResponse)
   277  	err := c.cc.Invoke(ctx, "/cosmos.base.reflection.v1beta1.ReflectionService/ListAllInterfaces", in, out, opts...)
   278  	if err != nil {
   279  		return nil, err
   280  	}
   281  	return out, nil
   282  }
   283  
   284  func (c *reflectionServiceClient) ListImplementations(ctx context.Context, in *ListImplementationsRequest, opts ...grpc.CallOption) (*ListImplementationsResponse, error) {
   285  	out := new(ListImplementationsResponse)
   286  	err := c.cc.Invoke(ctx, "/cosmos.base.reflection.v1beta1.ReflectionService/ListImplementations", in, out, opts...)
   287  	if err != nil {
   288  		return nil, err
   289  	}
   290  	return out, nil
   291  }
   292  
   293  // ReflectionServiceServer is the server API for ReflectionService service.
   294  type ReflectionServiceServer interface {
   295  	// ListAllInterfaces lists all the interfaces registered in the interface
   296  	// registry.
   297  	ListAllInterfaces(context.Context, *ListAllInterfacesRequest) (*ListAllInterfacesResponse, error)
   298  	// ListImplementations list all the concrete types that implement a given
   299  	// interface.
   300  	ListImplementations(context.Context, *ListImplementationsRequest) (*ListImplementationsResponse, error)
   301  }
   302  
   303  // UnimplementedReflectionServiceServer can be embedded to have forward compatible implementations.
   304  type UnimplementedReflectionServiceServer struct {
   305  }
   306  
   307  func (*UnimplementedReflectionServiceServer) ListAllInterfaces(ctx context.Context, req *ListAllInterfacesRequest) (*ListAllInterfacesResponse, error) {
   308  	return nil, status.Errorf(codes.Unimplemented, "method ListAllInterfaces not implemented")
   309  }
   310  func (*UnimplementedReflectionServiceServer) ListImplementations(ctx context.Context, req *ListImplementationsRequest) (*ListImplementationsResponse, error) {
   311  	return nil, status.Errorf(codes.Unimplemented, "method ListImplementations not implemented")
   312  }
   313  
   314  func RegisterReflectionServiceServer(s grpc1.Server, srv ReflectionServiceServer) {
   315  	s.RegisterService(&_ReflectionService_serviceDesc, srv)
   316  }
   317  
   318  func _ReflectionService_ListAllInterfaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   319  	in := new(ListAllInterfacesRequest)
   320  	if err := dec(in); err != nil {
   321  		return nil, err
   322  	}
   323  	if interceptor == nil {
   324  		return srv.(ReflectionServiceServer).ListAllInterfaces(ctx, in)
   325  	}
   326  	info := &grpc.UnaryServerInfo{
   327  		Server:     srv,
   328  		FullMethod: "/cosmos.base.reflection.v1beta1.ReflectionService/ListAllInterfaces",
   329  	}
   330  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   331  		return srv.(ReflectionServiceServer).ListAllInterfaces(ctx, req.(*ListAllInterfacesRequest))
   332  	}
   333  	return interceptor(ctx, in, info, handler)
   334  }
   335  
   336  func _ReflectionService_ListImplementations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   337  	in := new(ListImplementationsRequest)
   338  	if err := dec(in); err != nil {
   339  		return nil, err
   340  	}
   341  	if interceptor == nil {
   342  		return srv.(ReflectionServiceServer).ListImplementations(ctx, in)
   343  	}
   344  	info := &grpc.UnaryServerInfo{
   345  		Server:     srv,
   346  		FullMethod: "/cosmos.base.reflection.v1beta1.ReflectionService/ListImplementations",
   347  	}
   348  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   349  		return srv.(ReflectionServiceServer).ListImplementations(ctx, req.(*ListImplementationsRequest))
   350  	}
   351  	return interceptor(ctx, in, info, handler)
   352  }
   353  
   354  var _ReflectionService_serviceDesc = grpc.ServiceDesc{
   355  	ServiceName: "cosmos.base.reflection.v1beta1.ReflectionService",
   356  	HandlerType: (*ReflectionServiceServer)(nil),
   357  	Methods: []grpc.MethodDesc{
   358  		{
   359  			MethodName: "ListAllInterfaces",
   360  			Handler:    _ReflectionService_ListAllInterfaces_Handler,
   361  		},
   362  		{
   363  			MethodName: "ListImplementations",
   364  			Handler:    _ReflectionService_ListImplementations_Handler,
   365  		},
   366  	},
   367  	Streams:  []grpc.StreamDesc{},
   368  	Metadata: "cosmos/base/reflection/v1beta1/reflection.proto",
   369  }
   370  
   371  func (m *ListAllInterfacesRequest) Marshal() (dAtA []byte, err error) {
   372  	size := m.Size()
   373  	dAtA = make([]byte, size)
   374  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   375  	if err != nil {
   376  		return nil, err
   377  	}
   378  	return dAtA[:n], nil
   379  }
   380  
   381  func (m *ListAllInterfacesRequest) MarshalTo(dAtA []byte) (int, error) {
   382  	size := m.Size()
   383  	return m.MarshalToSizedBuffer(dAtA[:size])
   384  }
   385  
   386  func (m *ListAllInterfacesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   387  	i := len(dAtA)
   388  	_ = i
   389  	var l int
   390  	_ = l
   391  	return len(dAtA) - i, nil
   392  }
   393  
   394  func (m *ListAllInterfacesResponse) Marshal() (dAtA []byte, err error) {
   395  	size := m.Size()
   396  	dAtA = make([]byte, size)
   397  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   398  	if err != nil {
   399  		return nil, err
   400  	}
   401  	return dAtA[:n], nil
   402  }
   403  
   404  func (m *ListAllInterfacesResponse) MarshalTo(dAtA []byte) (int, error) {
   405  	size := m.Size()
   406  	return m.MarshalToSizedBuffer(dAtA[:size])
   407  }
   408  
   409  func (m *ListAllInterfacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   410  	i := len(dAtA)
   411  	_ = i
   412  	var l int
   413  	_ = l
   414  	if len(m.InterfaceNames) > 0 {
   415  		for iNdEx := len(m.InterfaceNames) - 1; iNdEx >= 0; iNdEx-- {
   416  			i -= len(m.InterfaceNames[iNdEx])
   417  			copy(dAtA[i:], m.InterfaceNames[iNdEx])
   418  			i = encodeVarintReflection(dAtA, i, uint64(len(m.InterfaceNames[iNdEx])))
   419  			i--
   420  			dAtA[i] = 0xa
   421  		}
   422  	}
   423  	return len(dAtA) - i, nil
   424  }
   425  
   426  func (m *ListImplementationsRequest) Marshal() (dAtA []byte, err error) {
   427  	size := m.Size()
   428  	dAtA = make([]byte, size)
   429  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   430  	if err != nil {
   431  		return nil, err
   432  	}
   433  	return dAtA[:n], nil
   434  }
   435  
   436  func (m *ListImplementationsRequest) MarshalTo(dAtA []byte) (int, error) {
   437  	size := m.Size()
   438  	return m.MarshalToSizedBuffer(dAtA[:size])
   439  }
   440  
   441  func (m *ListImplementationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   442  	i := len(dAtA)
   443  	_ = i
   444  	var l int
   445  	_ = l
   446  	if len(m.InterfaceName) > 0 {
   447  		i -= len(m.InterfaceName)
   448  		copy(dAtA[i:], m.InterfaceName)
   449  		i = encodeVarintReflection(dAtA, i, uint64(len(m.InterfaceName)))
   450  		i--
   451  		dAtA[i] = 0xa
   452  	}
   453  	return len(dAtA) - i, nil
   454  }
   455  
   456  func (m *ListImplementationsResponse) 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 *ListImplementationsResponse) MarshalTo(dAtA []byte) (int, error) {
   467  	size := m.Size()
   468  	return m.MarshalToSizedBuffer(dAtA[:size])
   469  }
   470  
   471  func (m *ListImplementationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   472  	i := len(dAtA)
   473  	_ = i
   474  	var l int
   475  	_ = l
   476  	if len(m.ImplementationMessageNames) > 0 {
   477  		for iNdEx := len(m.ImplementationMessageNames) - 1; iNdEx >= 0; iNdEx-- {
   478  			i -= len(m.ImplementationMessageNames[iNdEx])
   479  			copy(dAtA[i:], m.ImplementationMessageNames[iNdEx])
   480  			i = encodeVarintReflection(dAtA, i, uint64(len(m.ImplementationMessageNames[iNdEx])))
   481  			i--
   482  			dAtA[i] = 0xa
   483  		}
   484  	}
   485  	return len(dAtA) - i, nil
   486  }
   487  
   488  func encodeVarintReflection(dAtA []byte, offset int, v uint64) int {
   489  	offset -= sovReflection(v)
   490  	base := offset
   491  	for v >= 1<<7 {
   492  		dAtA[offset] = uint8(v&0x7f | 0x80)
   493  		v >>= 7
   494  		offset++
   495  	}
   496  	dAtA[offset] = uint8(v)
   497  	return base
   498  }
   499  func (m *ListAllInterfacesRequest) Size() (n int) {
   500  	if m == nil {
   501  		return 0
   502  	}
   503  	var l int
   504  	_ = l
   505  	return n
   506  }
   507  
   508  func (m *ListAllInterfacesResponse) Size() (n int) {
   509  	if m == nil {
   510  		return 0
   511  	}
   512  	var l int
   513  	_ = l
   514  	if len(m.InterfaceNames) > 0 {
   515  		for _, s := range m.InterfaceNames {
   516  			l = len(s)
   517  			n += 1 + l + sovReflection(uint64(l))
   518  		}
   519  	}
   520  	return n
   521  }
   522  
   523  func (m *ListImplementationsRequest) Size() (n int) {
   524  	if m == nil {
   525  		return 0
   526  	}
   527  	var l int
   528  	_ = l
   529  	l = len(m.InterfaceName)
   530  	if l > 0 {
   531  		n += 1 + l + sovReflection(uint64(l))
   532  	}
   533  	return n
   534  }
   535  
   536  func (m *ListImplementationsResponse) Size() (n int) {
   537  	if m == nil {
   538  		return 0
   539  	}
   540  	var l int
   541  	_ = l
   542  	if len(m.ImplementationMessageNames) > 0 {
   543  		for _, s := range m.ImplementationMessageNames {
   544  			l = len(s)
   545  			n += 1 + l + sovReflection(uint64(l))
   546  		}
   547  	}
   548  	return n
   549  }
   550  
   551  func sovReflection(x uint64) (n int) {
   552  	return (math_bits.Len64(x|1) + 6) / 7
   553  }
   554  func sozReflection(x uint64) (n int) {
   555  	return sovReflection(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   556  }
   557  func (m *ListAllInterfacesRequest) Unmarshal(dAtA []byte) error {
   558  	l := len(dAtA)
   559  	iNdEx := 0
   560  	for iNdEx < l {
   561  		preIndex := iNdEx
   562  		var wire uint64
   563  		for shift := uint(0); ; shift += 7 {
   564  			if shift >= 64 {
   565  				return ErrIntOverflowReflection
   566  			}
   567  			if iNdEx >= l {
   568  				return io.ErrUnexpectedEOF
   569  			}
   570  			b := dAtA[iNdEx]
   571  			iNdEx++
   572  			wire |= uint64(b&0x7F) << shift
   573  			if b < 0x80 {
   574  				break
   575  			}
   576  		}
   577  		fieldNum := int32(wire >> 3)
   578  		wireType := int(wire & 0x7)
   579  		if wireType == 4 {
   580  			return fmt.Errorf("proto: ListAllInterfacesRequest: wiretype end group for non-group")
   581  		}
   582  		if fieldNum <= 0 {
   583  			return fmt.Errorf("proto: ListAllInterfacesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   584  		}
   585  		switch fieldNum {
   586  		default:
   587  			iNdEx = preIndex
   588  			skippy, err := skipReflection(dAtA[iNdEx:])
   589  			if err != nil {
   590  				return err
   591  			}
   592  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   593  				return ErrInvalidLengthReflection
   594  			}
   595  			if (iNdEx + skippy) > l {
   596  				return io.ErrUnexpectedEOF
   597  			}
   598  			iNdEx += skippy
   599  		}
   600  	}
   601  
   602  	if iNdEx > l {
   603  		return io.ErrUnexpectedEOF
   604  	}
   605  	return nil
   606  }
   607  func (m *ListAllInterfacesResponse) Unmarshal(dAtA []byte) error {
   608  	l := len(dAtA)
   609  	iNdEx := 0
   610  	for iNdEx < l {
   611  		preIndex := iNdEx
   612  		var wire uint64
   613  		for shift := uint(0); ; shift += 7 {
   614  			if shift >= 64 {
   615  				return ErrIntOverflowReflection
   616  			}
   617  			if iNdEx >= l {
   618  				return io.ErrUnexpectedEOF
   619  			}
   620  			b := dAtA[iNdEx]
   621  			iNdEx++
   622  			wire |= uint64(b&0x7F) << shift
   623  			if b < 0x80 {
   624  				break
   625  			}
   626  		}
   627  		fieldNum := int32(wire >> 3)
   628  		wireType := int(wire & 0x7)
   629  		if wireType == 4 {
   630  			return fmt.Errorf("proto: ListAllInterfacesResponse: wiretype end group for non-group")
   631  		}
   632  		if fieldNum <= 0 {
   633  			return fmt.Errorf("proto: ListAllInterfacesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   634  		}
   635  		switch fieldNum {
   636  		case 1:
   637  			if wireType != 2 {
   638  				return fmt.Errorf("proto: wrong wireType = %d for field InterfaceNames", wireType)
   639  			}
   640  			var stringLen uint64
   641  			for shift := uint(0); ; shift += 7 {
   642  				if shift >= 64 {
   643  					return ErrIntOverflowReflection
   644  				}
   645  				if iNdEx >= l {
   646  					return io.ErrUnexpectedEOF
   647  				}
   648  				b := dAtA[iNdEx]
   649  				iNdEx++
   650  				stringLen |= uint64(b&0x7F) << shift
   651  				if b < 0x80 {
   652  					break
   653  				}
   654  			}
   655  			intStringLen := int(stringLen)
   656  			if intStringLen < 0 {
   657  				return ErrInvalidLengthReflection
   658  			}
   659  			postIndex := iNdEx + intStringLen
   660  			if postIndex < 0 {
   661  				return ErrInvalidLengthReflection
   662  			}
   663  			if postIndex > l {
   664  				return io.ErrUnexpectedEOF
   665  			}
   666  			m.InterfaceNames = append(m.InterfaceNames, string(dAtA[iNdEx:postIndex]))
   667  			iNdEx = postIndex
   668  		default:
   669  			iNdEx = preIndex
   670  			skippy, err := skipReflection(dAtA[iNdEx:])
   671  			if err != nil {
   672  				return err
   673  			}
   674  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   675  				return ErrInvalidLengthReflection
   676  			}
   677  			if (iNdEx + skippy) > l {
   678  				return io.ErrUnexpectedEOF
   679  			}
   680  			iNdEx += skippy
   681  		}
   682  	}
   683  
   684  	if iNdEx > l {
   685  		return io.ErrUnexpectedEOF
   686  	}
   687  	return nil
   688  }
   689  func (m *ListImplementationsRequest) Unmarshal(dAtA []byte) error {
   690  	l := len(dAtA)
   691  	iNdEx := 0
   692  	for iNdEx < l {
   693  		preIndex := iNdEx
   694  		var wire uint64
   695  		for shift := uint(0); ; shift += 7 {
   696  			if shift >= 64 {
   697  				return ErrIntOverflowReflection
   698  			}
   699  			if iNdEx >= l {
   700  				return io.ErrUnexpectedEOF
   701  			}
   702  			b := dAtA[iNdEx]
   703  			iNdEx++
   704  			wire |= uint64(b&0x7F) << shift
   705  			if b < 0x80 {
   706  				break
   707  			}
   708  		}
   709  		fieldNum := int32(wire >> 3)
   710  		wireType := int(wire & 0x7)
   711  		if wireType == 4 {
   712  			return fmt.Errorf("proto: ListImplementationsRequest: wiretype end group for non-group")
   713  		}
   714  		if fieldNum <= 0 {
   715  			return fmt.Errorf("proto: ListImplementationsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   716  		}
   717  		switch fieldNum {
   718  		case 1:
   719  			if wireType != 2 {
   720  				return fmt.Errorf("proto: wrong wireType = %d for field InterfaceName", wireType)
   721  			}
   722  			var stringLen uint64
   723  			for shift := uint(0); ; shift += 7 {
   724  				if shift >= 64 {
   725  					return ErrIntOverflowReflection
   726  				}
   727  				if iNdEx >= l {
   728  					return io.ErrUnexpectedEOF
   729  				}
   730  				b := dAtA[iNdEx]
   731  				iNdEx++
   732  				stringLen |= uint64(b&0x7F) << shift
   733  				if b < 0x80 {
   734  					break
   735  				}
   736  			}
   737  			intStringLen := int(stringLen)
   738  			if intStringLen < 0 {
   739  				return ErrInvalidLengthReflection
   740  			}
   741  			postIndex := iNdEx + intStringLen
   742  			if postIndex < 0 {
   743  				return ErrInvalidLengthReflection
   744  			}
   745  			if postIndex > l {
   746  				return io.ErrUnexpectedEOF
   747  			}
   748  			m.InterfaceName = string(dAtA[iNdEx:postIndex])
   749  			iNdEx = postIndex
   750  		default:
   751  			iNdEx = preIndex
   752  			skippy, err := skipReflection(dAtA[iNdEx:])
   753  			if err != nil {
   754  				return err
   755  			}
   756  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   757  				return ErrInvalidLengthReflection
   758  			}
   759  			if (iNdEx + skippy) > l {
   760  				return io.ErrUnexpectedEOF
   761  			}
   762  			iNdEx += skippy
   763  		}
   764  	}
   765  
   766  	if iNdEx > l {
   767  		return io.ErrUnexpectedEOF
   768  	}
   769  	return nil
   770  }
   771  func (m *ListImplementationsResponse) Unmarshal(dAtA []byte) error {
   772  	l := len(dAtA)
   773  	iNdEx := 0
   774  	for iNdEx < l {
   775  		preIndex := iNdEx
   776  		var wire uint64
   777  		for shift := uint(0); ; shift += 7 {
   778  			if shift >= 64 {
   779  				return ErrIntOverflowReflection
   780  			}
   781  			if iNdEx >= l {
   782  				return io.ErrUnexpectedEOF
   783  			}
   784  			b := dAtA[iNdEx]
   785  			iNdEx++
   786  			wire |= uint64(b&0x7F) << shift
   787  			if b < 0x80 {
   788  				break
   789  			}
   790  		}
   791  		fieldNum := int32(wire >> 3)
   792  		wireType := int(wire & 0x7)
   793  		if wireType == 4 {
   794  			return fmt.Errorf("proto: ListImplementationsResponse: wiretype end group for non-group")
   795  		}
   796  		if fieldNum <= 0 {
   797  			return fmt.Errorf("proto: ListImplementationsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   798  		}
   799  		switch fieldNum {
   800  		case 1:
   801  			if wireType != 2 {
   802  				return fmt.Errorf("proto: wrong wireType = %d for field ImplementationMessageNames", wireType)
   803  			}
   804  			var stringLen uint64
   805  			for shift := uint(0); ; shift += 7 {
   806  				if shift >= 64 {
   807  					return ErrIntOverflowReflection
   808  				}
   809  				if iNdEx >= l {
   810  					return io.ErrUnexpectedEOF
   811  				}
   812  				b := dAtA[iNdEx]
   813  				iNdEx++
   814  				stringLen |= uint64(b&0x7F) << shift
   815  				if b < 0x80 {
   816  					break
   817  				}
   818  			}
   819  			intStringLen := int(stringLen)
   820  			if intStringLen < 0 {
   821  				return ErrInvalidLengthReflection
   822  			}
   823  			postIndex := iNdEx + intStringLen
   824  			if postIndex < 0 {
   825  				return ErrInvalidLengthReflection
   826  			}
   827  			if postIndex > l {
   828  				return io.ErrUnexpectedEOF
   829  			}
   830  			m.ImplementationMessageNames = append(m.ImplementationMessageNames, string(dAtA[iNdEx:postIndex]))
   831  			iNdEx = postIndex
   832  		default:
   833  			iNdEx = preIndex
   834  			skippy, err := skipReflection(dAtA[iNdEx:])
   835  			if err != nil {
   836  				return err
   837  			}
   838  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   839  				return ErrInvalidLengthReflection
   840  			}
   841  			if (iNdEx + skippy) > l {
   842  				return io.ErrUnexpectedEOF
   843  			}
   844  			iNdEx += skippy
   845  		}
   846  	}
   847  
   848  	if iNdEx > l {
   849  		return io.ErrUnexpectedEOF
   850  	}
   851  	return nil
   852  }
   853  func skipReflection(dAtA []byte) (n int, err error) {
   854  	l := len(dAtA)
   855  	iNdEx := 0
   856  	depth := 0
   857  	for iNdEx < l {
   858  		var wire uint64
   859  		for shift := uint(0); ; shift += 7 {
   860  			if shift >= 64 {
   861  				return 0, ErrIntOverflowReflection
   862  			}
   863  			if iNdEx >= l {
   864  				return 0, io.ErrUnexpectedEOF
   865  			}
   866  			b := dAtA[iNdEx]
   867  			iNdEx++
   868  			wire |= (uint64(b) & 0x7F) << shift
   869  			if b < 0x80 {
   870  				break
   871  			}
   872  		}
   873  		wireType := int(wire & 0x7)
   874  		switch wireType {
   875  		case 0:
   876  			for shift := uint(0); ; shift += 7 {
   877  				if shift >= 64 {
   878  					return 0, ErrIntOverflowReflection
   879  				}
   880  				if iNdEx >= l {
   881  					return 0, io.ErrUnexpectedEOF
   882  				}
   883  				iNdEx++
   884  				if dAtA[iNdEx-1] < 0x80 {
   885  					break
   886  				}
   887  			}
   888  		case 1:
   889  			iNdEx += 8
   890  		case 2:
   891  			var length int
   892  			for shift := uint(0); ; shift += 7 {
   893  				if shift >= 64 {
   894  					return 0, ErrIntOverflowReflection
   895  				}
   896  				if iNdEx >= l {
   897  					return 0, io.ErrUnexpectedEOF
   898  				}
   899  				b := dAtA[iNdEx]
   900  				iNdEx++
   901  				length |= (int(b) & 0x7F) << shift
   902  				if b < 0x80 {
   903  					break
   904  				}
   905  			}
   906  			if length < 0 {
   907  				return 0, ErrInvalidLengthReflection
   908  			}
   909  			iNdEx += length
   910  		case 3:
   911  			depth++
   912  		case 4:
   913  			if depth == 0 {
   914  				return 0, ErrUnexpectedEndOfGroupReflection
   915  			}
   916  			depth--
   917  		case 5:
   918  			iNdEx += 4
   919  		default:
   920  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   921  		}
   922  		if iNdEx < 0 {
   923  			return 0, ErrInvalidLengthReflection
   924  		}
   925  		if depth == 0 {
   926  			return iNdEx, nil
   927  		}
   928  	}
   929  	return 0, io.ErrUnexpectedEOF
   930  }
   931  
   932  var (
   933  	ErrInvalidLengthReflection        = fmt.Errorf("proto: negative length found during unmarshaling")
   934  	ErrIntOverflowReflection          = fmt.Errorf("proto: integer overflow")
   935  	ErrUnexpectedEndOfGroupReflection = fmt.Errorf("proto: unexpected end of group")
   936  )