Debian Codegraph @

shopping/merchant/quota/apiv1beta/quotapb/quota_grpc.pb.go

raw symbols SCIP
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
16 // versions:
17 // - protoc-gen-go-grpc v1.3.0
18 // - protoc v4.25.7
19 // source: google/shopping/merchant/quota/v1beta/quota.proto
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 // This is a compile-time assertion to ensure that this generated file
31 // is compatible with the grpc package it is being compiled against.
32 // Requires gRPC-Go v1.32.0 or later.
33 const _ = grpc.SupportPackageIsVersion7
34
35 const (
36 QuotaService_ListQuotaGroups_FullMethodName = "/google.shopping.merchant.quota.v1beta.QuotaService/ListQuotaGroups"
37 )
38
39 // QuotaServiceClient is the client API for QuotaService service.
40 //
41 // 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.
42 type QuotaServiceClient interface {
43 // Lists the daily call quota and usage per group for your Merchant
44 // Center account.
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 &quotaServiceClient{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 // QuotaServiceServer is the server API for QuotaService service.
66 // All implementations should embed UnimplementedQuotaServiceServer
67 // for forward compatibility
68 type QuotaServiceServer interface {
69 // Lists the daily call quota and usage per group for your Merchant
70 // Center account.
71 ListQuotaGroups(context.Context, *ListQuotaGroupsRequest) (*ListQuotaGroupsResponse, error)
72 }
73
74 // UnimplementedQuotaServiceServer should be embedded to have forward compatible implementations.
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 // UnsafeQuotaServiceServer may be embedded to opt out of forward compatibility for this service.
83 // Use of this interface is not recommended, as added methods to QuotaServiceServer will
84 // result in compilation errors.
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 // QuotaService_ServiceDesc is the grpc.ServiceDesc for QuotaService service.
112 // It's only intended for direct use with grpc.RegisterService,
113 // and not to be introspected or modified (even as a copy)
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 }