Debian Codegraph @

channel/apiv1/channelpb/reports_service_grpc.pb.go

raw
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/cloud/channel/v1/reports_service.proto
20
21 package channelpb
22
23 import (
24 longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
25 context "context"
26 grpc "google.golang.org/grpc"
27 codes "google.golang.org/grpc/codes"
28 status "google.golang.org/grpc/status"
29 )
30
31 // This is a compile-time assertion to ensure that this generated file
32 // is compatible with the grpc package it is being compiled against.
33 // Requires gRPC-Go v1.32.0 or later.
34 const _ = grpc.SupportPackageIsVersion7
35
36 const (
37 CloudChannelReportsService_RunReportJob_FullMethodName = "/google.cloud.channel.v1.CloudChannelReportsService/RunReportJob"
38 CloudChannelReportsService_FetchReportResults_FullMethodName = "/google.cloud.channel.v1.CloudChannelReportsService/FetchReportResults"
39 CloudChannelReportsService_ListReports_FullMethodName = "/google.cloud.channel.v1.CloudChannelReportsService/ListReports"
40 )
41
42 // CloudChannelReportsServiceClient is the client API for CloudChannelReportsService service.
43 //
44 // 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.
45 //
46 // Deprecated: Do not use.
47 type CloudChannelReportsServiceClient interface {
48 // Deprecated: Do not use.
49 // Begins generation of data for a given report. The report
50 // identifier is a UID (for example, `613bf59q`).
51 //
52 // Possible error codes:
53 //
54 // - PERMISSION_DENIED: The user doesn't have access to this report.
55 // - INVALID_ARGUMENT: Required request parameters are missing
56 // or invalid.
57 // - NOT_FOUND: The report identifier was not found.
58 // - INTERNAL: Any non-user error related to a technical issue
59 // in the backend. Contact Cloud Channel support.
60 // - UNKNOWN: Any non-user error related to a technical issue
61 // in the backend. Contact Cloud Channel support.
62 //
63 // Return value:
64 // The ID of a long-running operation.
65 //
66 // To get the results of the operation, call the GetOperation method of
67 // CloudChannelOperationsService. The Operation metadata contains an
68 // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
69 //
70 // To get the results of report generation, call
71 // [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults]
72 // with the
73 // [RunReportJobResponse.report_job][google.cloud.channel.v1.RunReportJobResponse.report_job].
74 //
75 // Deprecated: Please use [Export Channel Services data to
76 // BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery)
77 // instead.
78 RunReportJob(ctx context.Context, in *RunReportJobRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
79 // Deprecated: Do not use.
80 // Retrieves data generated by
81 // [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob].
82 //
83 // Deprecated: Please use [Export Channel Services data to
84 // BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery)
85 // instead.
86 FetchReportResults(ctx context.Context, in *FetchReportResultsRequest, opts ...grpc.CallOption) (*FetchReportResultsResponse, error)
87 // Deprecated: Do not use.
88 // Lists the reports that RunReportJob can run. These reports include an ID,
89 // a description, and the list of columns that will be in the result.
90 //
91 // Deprecated: Please use [Export Channel Services data to
92 // BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery)
93 // instead.
94 ListReports(ctx context.Context, in *ListReportsRequest, opts ...grpc.CallOption) (*ListReportsResponse, error)
95 }
96
97 type cloudChannelReportsServiceClient struct {
98 cc grpc.ClientConnInterface
99 }
100
101 // Deprecated: Do not use.
102 func NewCloudChannelReportsServiceClient(cc grpc.ClientConnInterface) CloudChannelReportsServiceClient {
103 return &cloudChannelReportsServiceClient{cc}
104 }
105
106 // Deprecated: Do not use.
107 func (c *cloudChannelReportsServiceClient) RunReportJob(ctx context.Context, in *RunReportJobRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
108 out := new(longrunningpb.Operation)
109 err := c.cc.Invoke(ctx, CloudChannelReportsService_RunReportJob_FullMethodName, in, out, opts...)
110 if err != nil {
111 return nil, err
112 }
113 return out, nil
114 }
115
116 // Deprecated: Do not use.
117 func (c *cloudChannelReportsServiceClient) FetchReportResults(ctx context.Context, in *FetchReportResultsRequest, opts ...grpc.CallOption) (*FetchReportResultsResponse, error) {
118 out := new(FetchReportResultsResponse)
119 err := c.cc.Invoke(ctx, CloudChannelReportsService_FetchReportResults_FullMethodName, in, out, opts...)
120 if err != nil {
121 return nil, err
122 }
123 return out, nil
124 }
125
126 // Deprecated: Do not use.
127 func (c *cloudChannelReportsServiceClient) ListReports(ctx context.Context, in *ListReportsRequest, opts ...grpc.CallOption) (*ListReportsResponse, error) {
128 out := new(ListReportsResponse)
129 err := c.cc.Invoke(ctx, CloudChannelReportsService_ListReports_FullMethodName, in, out, opts...)
130 if err != nil {
131 return nil, err
132 }
133 return out, nil
134 }
135
136 // CloudChannelReportsServiceServer is the server API for CloudChannelReportsService service.
137 // All implementations should embed UnimplementedCloudChannelReportsServiceServer
138 // for forward compatibility
139 //
140 // Deprecated: Do not use.
141 type CloudChannelReportsServiceServer interface {
142 // Deprecated: Do not use.
143 // Begins generation of data for a given report. The report
144 // identifier is a UID (for example, `613bf59q`).
145 //
146 // Possible error codes:
147 //
148 // - PERMISSION_DENIED: The user doesn't have access to this report.
149 // - INVALID_ARGUMENT: Required request parameters are missing
150 // or invalid.
151 // - NOT_FOUND: The report identifier was not found.
152 // - INTERNAL: Any non-user error related to a technical issue
153 // in the backend. Contact Cloud Channel support.
154 // - UNKNOWN: Any non-user error related to a technical issue
155 // in the backend. Contact Cloud Channel support.
156 //
157 // Return value:
158 // The ID of a long-running operation.
159 //
160 // To get the results of the operation, call the GetOperation method of
161 // CloudChannelOperationsService. The Operation metadata contains an
162 // instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
163 //
164 // To get the results of report generation, call
165 // [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults]
166 // with the
167 // [RunReportJobResponse.report_job][google.cloud.channel.v1.RunReportJobResponse.report_job].
168 //
169 // Deprecated: Please use [Export Channel Services data to
170 // BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery)
171 // instead.
172 RunReportJob(context.Context, *RunReportJobRequest) (*longrunningpb.Operation, error)
173 // Deprecated: Do not use.
174 // Retrieves data generated by
175 // [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob].
176 //
177 // Deprecated: Please use [Export Channel Services data to
178 // BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery)
179 // instead.
180 FetchReportResults(context.Context, *FetchReportResultsRequest) (*FetchReportResultsResponse, error)
181 // Deprecated: Do not use.
182 // Lists the reports that RunReportJob can run. These reports include an ID,
183 // a description, and the list of columns that will be in the result.
184 //
185 // Deprecated: Please use [Export Channel Services data to
186 // BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery)
187 // instead.
188 ListReports(context.Context, *ListReportsRequest) (*ListReportsResponse, error)
189 }
190
191 // UnimplementedCloudChannelReportsServiceServer should be embedded to have forward compatible implementations.
192 type UnimplementedCloudChannelReportsServiceServer struct {
193 }
194
195 func (UnimplementedCloudChannelReportsServiceServer) RunReportJob(context.Context, *RunReportJobRequest) (*longrunningpb.Operation, error) {
196 return nil, status.Errorf(codes.Unimplemented, "method RunReportJob not implemented")
197 }
198 func (UnimplementedCloudChannelReportsServiceServer) FetchReportResults(context.Context, *FetchReportResultsRequest) (*FetchReportResultsResponse, error) {
199 return nil, status.Errorf(codes.Unimplemented, "method FetchReportResults not implemented")
200 }
201 func (UnimplementedCloudChannelReportsServiceServer) ListReports(context.Context, *ListReportsRequest) (*ListReportsResponse, error) {
202 return nil, status.Errorf(codes.Unimplemented, "method ListReports not implemented")
203 }
204
205 // UnsafeCloudChannelReportsServiceServer may be embedded to opt out of forward compatibility for this service.
206 // Use of this interface is not recommended, as added methods to CloudChannelReportsServiceServer will
207 // result in compilation errors.
208 type UnsafeCloudChannelReportsServiceServer interface {
209 mustEmbedUnimplementedCloudChannelReportsServiceServer()
210 }
211
212 // Deprecated: Do not use.
213 func RegisterCloudChannelReportsServiceServer(s grpc.ServiceRegistrar, srv CloudChannelReportsServiceServer) {
214 s.RegisterService(&CloudChannelReportsService_ServiceDesc, srv)
215 }
216
217 func _CloudChannelReportsService_RunReportJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
218 in := new(RunReportJobRequest)
219 if err := dec(in); err != nil {
220 return nil, err
221 }
222 if interceptor == nil {
223 return srv.(CloudChannelReportsServiceServer).RunReportJob(ctx, in)
224 }
225 info := &grpc.UnaryServerInfo{
226 Server: srv,
227 FullMethod: CloudChannelReportsService_RunReportJob_FullMethodName,
228 }
229 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
230 return srv.(CloudChannelReportsServiceServer).RunReportJob(ctx, req.(*RunReportJobRequest))
231 }
232 return interceptor(ctx, in, info, handler)
233 }
234
235 func _CloudChannelReportsService_FetchReportResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
236 in := new(FetchReportResultsRequest)
237 if err := dec(in); err != nil {
238 return nil, err
239 }
240 if interceptor == nil {
241 return srv.(CloudChannelReportsServiceServer).FetchReportResults(ctx, in)
242 }
243 info := &grpc.UnaryServerInfo{
244 Server: srv,
245 FullMethod: CloudChannelReportsService_FetchReportResults_FullMethodName,
246 }
247 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
248 return srv.(CloudChannelReportsServiceServer).FetchReportResults(ctx, req.(*FetchReportResultsRequest))
249 }
250 return interceptor(ctx, in, info, handler)
251 }
252
253 func _CloudChannelReportsService_ListReports_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
254 in := new(ListReportsRequest)
255 if err := dec(in); err != nil {
256 return nil, err
257 }
258 if interceptor == nil {
259 return srv.(CloudChannelReportsServiceServer).ListReports(ctx, in)
260 }
261 info := &grpc.UnaryServerInfo{
262 Server: srv,
263 FullMethod: CloudChannelReportsService_ListReports_FullMethodName,
264 }
265 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
266 return srv.(CloudChannelReportsServiceServer).ListReports(ctx, req.(*ListReportsRequest))
267 }
268 return interceptor(ctx, in, info, handler)
269 }
270
271 // CloudChannelReportsService_ServiceDesc is the grpc.ServiceDesc for CloudChannelReportsService service.
272 // It's only intended for direct use with grpc.RegisterService,
273 // and not to be introspected or modified (even as a copy)
274 var CloudChannelReportsService_ServiceDesc = grpc.ServiceDesc{
275 ServiceName: "google.cloud.channel.v1.CloudChannelReportsService",
276 HandlerType: (*CloudChannelReportsServiceServer)(nil),
277 Methods: []grpc.MethodDesc{
278 {
279 MethodName: "RunReportJob",
280 Handler: _CloudChannelReportsService_RunReportJob_Handler,
281 },
282 {
283 MethodName: "FetchReportResults",
284 Handler: _CloudChannelReportsService_FetchReportResults_Handler,
285 },
286 {
287 MethodName: "ListReports",
288 Handler: _CloudChannelReportsService_ListReports_Handler,
289 },
290 },
291 Streams: []grpc.StreamDesc{},
292 Metadata: "google/cloud/channel/v1/reports_service.proto",
293 }