| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
package lfppb |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
grpc "google.golang.org/grpc" |
| 26 |
codes "google.golang.org/grpc/codes" |
| 27 |
status "google.golang.org/grpc/status" |
| 28 |
) |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
const _ = grpc.SupportPackageIsVersion7 |
| 34 |
|
| 35 |
const ( |
| 36 |
LfpMerchantStateService_GetLfpMerchantState_FullMethodName = "/google.shopping.merchant.lfp.v1beta.LfpMerchantStateService/GetLfpMerchantState" |
| 37 |
) |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
type LfpMerchantStateServiceClient interface { |
| 43 |
|
| 44 |
GetLfpMerchantState(ctx context.Context, in *GetLfpMerchantStateRequest, opts ...grpc.CallOption) (*LfpMerchantState, error) |
| 45 |
} |
| 46 |
|
| 47 |
type lfpMerchantStateServiceClient struct { |
| 48 |
cc grpc.ClientConnInterface |
| 49 |
} |
| 50 |
|
| 51 |
func NewLfpMerchantStateServiceClient(cc grpc.ClientConnInterface) LfpMerchantStateServiceClient { |
| 52 |
return &lfpMerchantStateServiceClient{cc} |
| 53 |
} |
| 54 |
|
| 55 |
func (c *lfpMerchantStateServiceClient) GetLfpMerchantState(ctx context.Context, in *GetLfpMerchantStateRequest, opts ...grpc.CallOption) (*LfpMerchantState, error) { |
| 56 |
out := new(LfpMerchantState) |
| 57 |
err := c.cc.Invoke(ctx, LfpMerchantStateService_GetLfpMerchantState_FullMethodName, in, out, opts...) |
| 58 |
if err != nil { |
| 59 |
return nil, err |
| 60 |
} |
| 61 |
return out, nil |
| 62 |
} |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
type LfpMerchantStateServiceServer interface { |
| 68 |
|
| 69 |
GetLfpMerchantState(context.Context, *GetLfpMerchantStateRequest) (*LfpMerchantState, error) |
| 70 |
} |
| 71 |
|
| 72 |
|
| 73 |
type UnimplementedLfpMerchantStateServiceServer struct { |
| 74 |
} |
| 75 |
|
| 76 |
func (UnimplementedLfpMerchantStateServiceServer) GetLfpMerchantState(context.Context, *GetLfpMerchantStateRequest) (*LfpMerchantState, error) { |
| 77 |
return nil, status.Errorf(codes.Unimplemented, "method GetLfpMerchantState not implemented") |
| 78 |
} |
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
type UnsafeLfpMerchantStateServiceServer interface { |
| 84 |
mustEmbedUnimplementedLfpMerchantStateServiceServer() |
| 85 |
} |
| 86 |
|
| 87 |
func RegisterLfpMerchantStateServiceServer(s grpc.ServiceRegistrar, srv LfpMerchantStateServiceServer) { |
| 88 |
s.RegisterService(&LfpMerchantStateService_ServiceDesc, srv) |
| 89 |
} |
| 90 |
|
| 91 |
func _LfpMerchantStateService_GetLfpMerchantState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 92 |
in := new(GetLfpMerchantStateRequest) |
| 93 |
if err := dec(in); err != nil { |
| 94 |
return nil, err |
| 95 |
} |
| 96 |
if interceptor == nil { |
| 97 |
return srv.(LfpMerchantStateServiceServer).GetLfpMerchantState(ctx, in) |
| 98 |
} |
| 99 |
info := &grpc.UnaryServerInfo{ |
| 100 |
Server: srv, |
| 101 |
FullMethod: LfpMerchantStateService_GetLfpMerchantState_FullMethodName, |
| 102 |
} |
| 103 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 104 |
return srv.(LfpMerchantStateServiceServer).GetLfpMerchantState(ctx, req.(*GetLfpMerchantStateRequest)) |
| 105 |
} |
| 106 |
return interceptor(ctx, in, info, handler) |
| 107 |
} |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
var LfpMerchantStateService_ServiceDesc = grpc.ServiceDesc{ |
| 113 |
ServiceName: "google.shopping.merchant.lfp.v1beta.LfpMerchantStateService", |
| 114 |
HandlerType: (*LfpMerchantStateServiceServer)(nil), |
| 115 |
Methods: []grpc.MethodDesc{ |
| 116 |
{ |
| 117 |
MethodName: "GetLfpMerchantState", |
| 118 |
Handler: _LfpMerchantStateService_GetLfpMerchantState_Handler, |
| 119 |
}, |
| 120 |
}, |
| 121 |
Streams: []grpc.StreamDesc{}, |
| 122 |
Metadata: "google/shopping/merchant/lfp/v1beta/lfpmerchantstate.proto", |
| 123 |
} |