| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
package quotapb |
| 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 |
QuotaService_ListQuotaGroups_FullMethodName = "/google.shopping.merchant.quota.v1beta.QuotaService/ListQuotaGroups" |
| 37 |
) |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
type QuotaServiceClient interface { |
| 43 |
|
| 44 |
|
| 45 |
ListQuotaGroups(ctx context.Context, in *ListQuotaGroupsRequest, opts ...grpc.CallOption) (*ListQuotaGroupsResponse, error) |
| 46 |
} |
| 47 |
|
| 48 |
type quotaServiceClient struct { |
| 49 |
cc grpc.ClientConnInterface |
| 50 |
} |
| 51 |
|
| 52 |
func NewQuotaServiceClient(cc grpc.ClientConnInterface) QuotaServiceClient { |
| 53 |
return "aServiceClient{cc} |
| 54 |
} |
| 55 |
|
| 56 |
func (c *quotaServiceClient) ListQuotaGroups(ctx context.Context, in *ListQuotaGroupsRequest, opts ...grpc.CallOption) (*ListQuotaGroupsResponse, error) { |
| 57 |
out := new(ListQuotaGroupsResponse) |
| 58 |
err := c.cc.Invoke(ctx, QuotaService_ListQuotaGroups_FullMethodName, in, out, opts...) |
| 59 |
if err != nil { |
| 60 |
return nil, err |
| 61 |
} |
| 62 |
return out, nil |
| 63 |
} |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
type QuotaServiceServer interface { |
| 69 |
|
| 70 |
|
| 71 |
ListQuotaGroups(context.Context, *ListQuotaGroupsRequest) (*ListQuotaGroupsResponse, error) |
| 72 |
} |
| 73 |
|
| 74 |
|
| 75 |
type UnimplementedQuotaServiceServer struct { |
| 76 |
} |
| 77 |
|
| 78 |
func (UnimplementedQuotaServiceServer) ListQuotaGroups(context.Context, *ListQuotaGroupsRequest) (*ListQuotaGroupsResponse, error) { |
| 79 |
return nil, status.Errorf(codes.Unimplemented, "method ListQuotaGroups not implemented") |
| 80 |
} |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
type UnsafeQuotaServiceServer interface { |
| 86 |
mustEmbedUnimplementedQuotaServiceServer() |
| 87 |
} |
| 88 |
|
| 89 |
func RegisterQuotaServiceServer(s grpc.ServiceRegistrar, srv QuotaServiceServer) { |
| 90 |
s.RegisterService(&QuotaService_ServiceDesc, srv) |
| 91 |
} |
| 92 |
|
| 93 |
func _QuotaService_ListQuotaGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 94 |
in := new(ListQuotaGroupsRequest) |
| 95 |
if err := dec(in); err != nil { |
| 96 |
return nil, err |
| 97 |
} |
| 98 |
if interceptor == nil { |
| 99 |
return srv.(QuotaServiceServer).ListQuotaGroups(ctx, in) |
| 100 |
} |
| 101 |
info := &grpc.UnaryServerInfo{ |
| 102 |
Server: srv, |
| 103 |
FullMethod: QuotaService_ListQuotaGroups_FullMethodName, |
| 104 |
} |
| 105 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 106 |
return srv.(QuotaServiceServer).ListQuotaGroups(ctx, req.(*ListQuotaGroupsRequest)) |
| 107 |
} |
| 108 |
return interceptor(ctx, in, info, handler) |
| 109 |
} |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
var QuotaService_ServiceDesc = grpc.ServiceDesc{ |
| 115 |
ServiceName: "google.shopping.merchant.quota.v1beta.QuotaService", |
| 116 |
HandlerType: (*QuotaServiceServer)(nil), |
| 117 |
Methods: []grpc.MethodDesc{ |
| 118 |
{ |
| 119 |
MethodName: "ListQuotaGroups", |
| 120 |
Handler: _QuotaService_ListQuotaGroups_Handler, |
| 121 |
}, |
| 122 |
}, |
| 123 |
Streams: []grpc.StreamDesc{}, |
| 124 |
Metadata: "google/shopping/merchant/quota/v1beta/quota.proto", |
| 125 |
} |