github.com/litesolutions/justifay-api@v1.0.0-2.0.20220707114139-46f28a909481/proto/user/streetaddress_grpc.pb.go (about)

     1  // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
     2  
     3  package user
     4  
     5  import (
     6  	context "context"
     7  	grpc "google.golang.org/grpc"
     8  	codes "google.golang.org/grpc/codes"
     9  	status "google.golang.org/grpc/status"
    10  )
    11  
    12  // This is a compile-time assertion to ensure that this generated file
    13  // is compatible with the grpc package it is being compiled against.
    14  const _ = grpc.SupportPackageIsVersion7
    15  
    16  // StreetAdressServiceClient is the client API for StreetAdressService service.
    17  //
    18  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
    19  type StreetAdressServiceClient interface {
    20  	SearchStreetAddress(ctx context.Context, in *Query, opts ...grpc.CallOption) (*StreetAddress, error)
    21  }
    22  
    23  type streetAdressServiceClient struct {
    24  	cc grpc.ClientConnInterface
    25  }
    26  
    27  func NewStreetAdressServiceClient(cc grpc.ClientConnInterface) StreetAdressServiceClient {
    28  	return &streetAdressServiceClient{cc}
    29  }
    30  
    31  func (c *streetAdressServiceClient) SearchStreetAddress(ctx context.Context, in *Query, opts ...grpc.CallOption) (*StreetAddress, error) {
    32  	out := new(StreetAddress)
    33  	err := c.cc.Invoke(ctx, "/user.StreetAdressService/SearchStreetAddress", in, out, opts...)
    34  	if err != nil {
    35  		return nil, err
    36  	}
    37  	return out, nil
    38  }
    39  
    40  // StreetAdressServiceServer is the server API for StreetAdressService service.
    41  // All implementations should embed UnimplementedStreetAdressServiceServer
    42  // for forward compatibility
    43  type StreetAdressServiceServer interface {
    44  	SearchStreetAddress(context.Context, *Query) (*StreetAddress, error)
    45  }
    46  
    47  // UnimplementedStreetAdressServiceServer should be embedded to have forward compatible implementations.
    48  type UnimplementedStreetAdressServiceServer struct {
    49  }
    50  
    51  func (UnimplementedStreetAdressServiceServer) SearchStreetAddress(context.Context, *Query) (*StreetAddress, error) {
    52  	return nil, status.Errorf(codes.Unimplemented, "method SearchStreetAddress not implemented")
    53  }
    54  
    55  // UnsafeStreetAdressServiceServer may be embedded to opt out of forward compatibility for this service.
    56  // Use of this interface is not recommended, as added methods to StreetAdressServiceServer will
    57  // result in compilation errors.
    58  type UnsafeStreetAdressServiceServer interface {
    59  	mustEmbedUnimplementedStreetAdressServiceServer()
    60  }
    61  
    62  func RegisterStreetAdressServiceServer(s grpc.ServiceRegistrar, srv StreetAdressServiceServer) {
    63  	s.RegisterService(&_StreetAdressService_serviceDesc, srv)
    64  }
    65  
    66  func _StreetAdressService_SearchStreetAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
    67  	in := new(Query)
    68  	if err := dec(in); err != nil {
    69  		return nil, err
    70  	}
    71  	if interceptor == nil {
    72  		return srv.(StreetAdressServiceServer).SearchStreetAddress(ctx, in)
    73  	}
    74  	info := &grpc.UnaryServerInfo{
    75  		Server:     srv,
    76  		FullMethod: "/user.StreetAdressService/SearchStreetAddress",
    77  	}
    78  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
    79  		return srv.(StreetAdressServiceServer).SearchStreetAddress(ctx, req.(*Query))
    80  	}
    81  	return interceptor(ctx, in, info, handler)
    82  }
    83  
    84  var _StreetAdressService_serviceDesc = grpc.ServiceDesc{
    85  	ServiceName: "user.StreetAdressService",
    86  	HandlerType: (*StreetAdressServiceServer)(nil),
    87  	Methods: []grpc.MethodDesc{
    88  		{
    89  			MethodName: "SearchStreetAddress",
    90  			Handler:    _StreetAdressService_SearchStreetAddress_Handler,
    91  		},
    92  	},
    93  	Streams:  []grpc.StreamDesc{},
    94  	Metadata: "user/streetaddress.proto",
    95  }