Debian Codegraph @

osconfig/apiv1alpha/osconfigpb/osconfig_zonal_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/osconfig/v1alpha/osconfig_zonal_service.proto
20
21 package osconfigpb
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 OsConfigZonalService_CreateOSPolicyAssignment_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/CreateOSPolicyAssignment"
38 OsConfigZonalService_UpdateOSPolicyAssignment_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/UpdateOSPolicyAssignment"
39 OsConfigZonalService_GetOSPolicyAssignment_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/GetOSPolicyAssignment"
40 OsConfigZonalService_ListOSPolicyAssignments_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/ListOSPolicyAssignments"
41 OsConfigZonalService_ListOSPolicyAssignmentRevisions_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/ListOSPolicyAssignmentRevisions"
42 OsConfigZonalService_DeleteOSPolicyAssignment_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/DeleteOSPolicyAssignment"
43 OsConfigZonalService_GetInstanceOSPoliciesCompliance_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/GetInstanceOSPoliciesCompliance"
44 OsConfigZonalService_ListInstanceOSPoliciesCompliances_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/ListInstanceOSPoliciesCompliances"
45 OsConfigZonalService_GetOSPolicyAssignmentReport_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/GetOSPolicyAssignmentReport"
46 OsConfigZonalService_ListOSPolicyAssignmentReports_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/ListOSPolicyAssignmentReports"
47 OsConfigZonalService_GetInventory_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/GetInventory"
48 OsConfigZonalService_ListInventories_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/ListInventories"
49 OsConfigZonalService_GetVulnerabilityReport_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/GetVulnerabilityReport"
50 OsConfigZonalService_ListVulnerabilityReports_FullMethodName = "/google.cloud.osconfig.v1alpha.OsConfigZonalService/ListVulnerabilityReports"
51 )
52
53 // OsConfigZonalServiceClient is the client API for OsConfigZonalService service.
54 //
55 // 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.
56 type OsConfigZonalServiceClient interface {
57 // Create an OS policy assignment.
58 //
59 // This method also creates the first revision of the OS policy assignment.
60 //
61 // This method returns a long running operation (LRO) that contains the
62 // rollout details. The rollout can be cancelled by cancelling the LRO.
63 //
64 // For more information, see [Method:
65 // projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).
66 CreateOSPolicyAssignment(ctx context.Context, in *CreateOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
67 // Update an existing OS policy assignment.
68 //
69 // This method creates a new revision of the OS policy assignment.
70 //
71 // This method returns a long running operation (LRO) that contains the
72 // rollout details. The rollout can be cancelled by cancelling the LRO.
73 //
74 // For more information, see [Method:
75 // projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).
76 UpdateOSPolicyAssignment(ctx context.Context, in *UpdateOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
77 // Retrieve an existing OS policy assignment.
78 //
79 // This method always returns the latest revision. In order to retrieve a
80 // previous revision of the assignment, also provide the revision ID in the
81 // `name` parameter.
82 GetOSPolicyAssignment(ctx context.Context, in *GetOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*OSPolicyAssignment, error)
83 // List the OS policy assignments under the parent resource.
84 //
85 // For each OS policy assignment, the latest revision is returned.
86 ListOSPolicyAssignments(ctx context.Context, in *ListOSPolicyAssignmentsRequest, opts ...grpc.CallOption) (*ListOSPolicyAssignmentsResponse, error)
87 // List the OS policy assignment revisions for a given OS policy assignment.
88 ListOSPolicyAssignmentRevisions(ctx context.Context, in *ListOSPolicyAssignmentRevisionsRequest, opts ...grpc.CallOption) (*ListOSPolicyAssignmentRevisionsResponse, error)
89 // Delete the OS policy assignment.
90 //
91 // This method creates a new revision of the OS policy assignment.
92 //
93 // This method returns a long running operation (LRO) that contains the
94 // rollout details. The rollout can be cancelled by cancelling the LRO.
95 //
96 // If the LRO completes and is not cancelled, all revisions associated with
97 // the OS policy assignment are deleted.
98 //
99 // For more information, see [Method:
100 // projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).
101 DeleteOSPolicyAssignment(ctx context.Context, in *DeleteOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
102 // Deprecated: Do not use.
103 // Get OS policies compliance data for the specified Compute Engine VM
104 // instance.
105 GetInstanceOSPoliciesCompliance(ctx context.Context, in *GetInstanceOSPoliciesComplianceRequest, opts ...grpc.CallOption) (*InstanceOSPoliciesCompliance, error)
106 // Deprecated: Do not use.
107 // List OS policies compliance data for all Compute Engine VM instances in the
108 // specified zone.
109 ListInstanceOSPoliciesCompliances(ctx context.Context, in *ListInstanceOSPoliciesCompliancesRequest, opts ...grpc.CallOption) (*ListInstanceOSPoliciesCompliancesResponse, error)
110 // Get the OS policy asssignment report for the specified Compute Engine VM
111 // instance.
112 GetOSPolicyAssignmentReport(ctx context.Context, in *GetOSPolicyAssignmentReportRequest, opts ...grpc.CallOption) (*OSPolicyAssignmentReport, error)
113 // List OS policy asssignment reports for all Compute Engine VM instances in
114 // the specified zone.
115 ListOSPolicyAssignmentReports(ctx context.Context, in *ListOSPolicyAssignmentReportsRequest, opts ...grpc.CallOption) (*ListOSPolicyAssignmentReportsResponse, error)
116 // Get inventory data for the specified VM instance. If the VM has no
117 // associated inventory, the message `NOT_FOUND` is returned.
118 GetInventory(ctx context.Context, in *GetInventoryRequest, opts ...grpc.CallOption) (*Inventory, error)
119 // List inventory data for all VM instances in the specified zone.
120 ListInventories(ctx context.Context, in *ListInventoriesRequest, opts ...grpc.CallOption) (*ListInventoriesResponse, error)
121 // Gets the vulnerability report for the specified VM instance. Only VMs with
122 // inventory data have vulnerability reports associated with them.
123 GetVulnerabilityReport(ctx context.Context, in *GetVulnerabilityReportRequest, opts ...grpc.CallOption) (*VulnerabilityReport, error)
124 // List vulnerability reports for all VM instances in the specified zone.
125 ListVulnerabilityReports(ctx context.Context, in *ListVulnerabilityReportsRequest, opts ...grpc.CallOption) (*ListVulnerabilityReportsResponse, error)
126 }
127
128 type osConfigZonalServiceClient struct {
129 cc grpc.ClientConnInterface
130 }
131
132 func NewOsConfigZonalServiceClient(cc grpc.ClientConnInterface) OsConfigZonalServiceClient {
133 return &osConfigZonalServiceClient{cc}
134 }
135
136 func (c *osConfigZonalServiceClient) CreateOSPolicyAssignment(ctx context.Context, in *CreateOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
137 out := new(longrunningpb.Operation)
138 err := c.cc.Invoke(ctx, OsConfigZonalService_CreateOSPolicyAssignment_FullMethodName, in, out, opts...)
139 if err != nil {
140 return nil, err
141 }
142 return out, nil
143 }
144
145 func (c *osConfigZonalServiceClient) UpdateOSPolicyAssignment(ctx context.Context, in *UpdateOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
146 out := new(longrunningpb.Operation)
147 err := c.cc.Invoke(ctx, OsConfigZonalService_UpdateOSPolicyAssignment_FullMethodName, in, out, opts...)
148 if err != nil {
149 return nil, err
150 }
151 return out, nil
152 }
153
154 func (c *osConfigZonalServiceClient) GetOSPolicyAssignment(ctx context.Context, in *GetOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*OSPolicyAssignment, error) {
155 out := new(OSPolicyAssignment)
156 err := c.cc.Invoke(ctx, OsConfigZonalService_GetOSPolicyAssignment_FullMethodName, in, out, opts...)
157 if err != nil {
158 return nil, err
159 }
160 return out, nil
161 }
162
163 func (c *osConfigZonalServiceClient) ListOSPolicyAssignments(ctx context.Context, in *ListOSPolicyAssignmentsRequest, opts ...grpc.CallOption) (*ListOSPolicyAssignmentsResponse, error) {
164 out := new(ListOSPolicyAssignmentsResponse)
165 err := c.cc.Invoke(ctx, OsConfigZonalService_ListOSPolicyAssignments_FullMethodName, in, out, opts...)
166 if err != nil {
167 return nil, err
168 }
169 return out, nil
170 }
171
172 func (c *osConfigZonalServiceClient) ListOSPolicyAssignmentRevisions(ctx context.Context, in *ListOSPolicyAssignmentRevisionsRequest, opts ...grpc.CallOption) (*ListOSPolicyAssignmentRevisionsResponse, error) {
173 out := new(ListOSPolicyAssignmentRevisionsResponse)
174 err := c.cc.Invoke(ctx, OsConfigZonalService_ListOSPolicyAssignmentRevisions_FullMethodName, in, out, opts...)
175 if err != nil {
176 return nil, err
177 }
178 return out, nil
179 }
180
181 func (c *osConfigZonalServiceClient) DeleteOSPolicyAssignment(ctx context.Context, in *DeleteOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
182 out := new(longrunningpb.Operation)
183 err := c.cc.Invoke(ctx, OsConfigZonalService_DeleteOSPolicyAssignment_FullMethodName, in, out, opts...)
184 if err != nil {
185 return nil, err
186 }
187 return out, nil
188 }
189
190 // Deprecated: Do not use.
191 func (c *osConfigZonalServiceClient) GetInstanceOSPoliciesCompliance(ctx context.Context, in *GetInstanceOSPoliciesComplianceRequest, opts ...grpc.CallOption) (*InstanceOSPoliciesCompliance, error) {
192 out := new(InstanceOSPoliciesCompliance)
193 err := c.cc.Invoke(ctx, OsConfigZonalService_GetInstanceOSPoliciesCompliance_FullMethodName, in, out, opts...)
194 if err != nil {
195 return nil, err
196 }
197 return out, nil
198 }
199
200 // Deprecated: Do not use.
201 func (c *osConfigZonalServiceClient) ListInstanceOSPoliciesCompliances(ctx context.Context, in *ListInstanceOSPoliciesCompliancesRequest, opts ...grpc.CallOption) (*ListInstanceOSPoliciesCompliancesResponse, error) {
202 out := new(ListInstanceOSPoliciesCompliancesResponse)
203 err := c.cc.Invoke(ctx, OsConfigZonalService_ListInstanceOSPoliciesCompliances_FullMethodName, in, out, opts...)
204 if err != nil {
205 return nil, err
206 }
207 return out, nil
208 }
209
210 func (c *osConfigZonalServiceClient) GetOSPolicyAssignmentReport(ctx context.Context, in *GetOSPolicyAssignmentReportRequest, opts ...grpc.CallOption) (*OSPolicyAssignmentReport, error) {
211 out := new(OSPolicyAssignmentReport)
212 err := c.cc.Invoke(ctx, OsConfigZonalService_GetOSPolicyAssignmentReport_FullMethodName, in, out, opts...)
213 if err != nil {
214 return nil, err
215 }
216 return out, nil
217 }
218
219 func (c *osConfigZonalServiceClient) ListOSPolicyAssignmentReports(ctx context.Context, in *ListOSPolicyAssignmentReportsRequest, opts ...grpc.CallOption) (*ListOSPolicyAssignmentReportsResponse, error) {
220 out := new(ListOSPolicyAssignmentReportsResponse)
221 err := c.cc.Invoke(ctx, OsConfigZonalService_ListOSPolicyAssignmentReports_FullMethodName, in, out, opts...)
222 if err != nil {
223 return nil, err
224 }
225 return out, nil
226 }
227
228 func (c *osConfigZonalServiceClient) GetInventory(ctx context.Context, in *GetInventoryRequest, opts ...grpc.CallOption) (*Inventory, error) {
229 out := new(Inventory)
230 err := c.cc.Invoke(ctx, OsConfigZonalService_GetInventory_FullMethodName, in, out, opts...)
231 if err != nil {
232 return nil, err
233 }
234 return out, nil
235 }
236
237 func (c *osConfigZonalServiceClient) ListInventories(ctx context.Context, in *ListInventoriesRequest, opts ...grpc.CallOption) (*ListInventoriesResponse, error) {
238 out := new(ListInventoriesResponse)
239 err := c.cc.Invoke(ctx, OsConfigZonalService_ListInventories_FullMethodName, in, out, opts...)
240 if err != nil {
241 return nil, err
242 }
243 return out, nil
244 }
245
246 func (c *osConfigZonalServiceClient) GetVulnerabilityReport(ctx context.Context, in *GetVulnerabilityReportRequest, opts ...grpc.CallOption) (*VulnerabilityReport, error) {
247 out := new(VulnerabilityReport)
248 err := c.cc.Invoke(ctx, OsConfigZonalService_GetVulnerabilityReport_FullMethodName, in, out, opts...)
249 if err != nil {
250 return nil, err
251 }
252 return out, nil
253 }
254
255 func (c *osConfigZonalServiceClient) ListVulnerabilityReports(ctx context.Context, in *ListVulnerabilityReportsRequest, opts ...grpc.CallOption) (*ListVulnerabilityReportsResponse, error) {
256 out := new(ListVulnerabilityReportsResponse)
257 err := c.cc.Invoke(ctx, OsConfigZonalService_ListVulnerabilityReports_FullMethodName, in, out, opts...)
258 if err != nil {
259 return nil, err
260 }
261 return out, nil
262 }
263
264 // OsConfigZonalServiceServer is the server API for OsConfigZonalService service.
265 // All implementations should embed UnimplementedOsConfigZonalServiceServer
266 // for forward compatibility
267 type OsConfigZonalServiceServer interface {
268 // Create an OS policy assignment.
269 //
270 // This method also creates the first revision of the OS policy assignment.
271 //
272 // This method returns a long running operation (LRO) that contains the
273 // rollout details. The rollout can be cancelled by cancelling the LRO.
274 //
275 // For more information, see [Method:
276 // projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).
277 CreateOSPolicyAssignment(context.Context, *CreateOSPolicyAssignmentRequest) (*longrunningpb.Operation, error)
278 // Update an existing OS policy assignment.
279 //
280 // This method creates a new revision of the OS policy assignment.
281 //
282 // This method returns a long running operation (LRO) that contains the
283 // rollout details. The rollout can be cancelled by cancelling the LRO.
284 //
285 // For more information, see [Method:
286 // projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).
287 UpdateOSPolicyAssignment(context.Context, *UpdateOSPolicyAssignmentRequest) (*longrunningpb.Operation, error)
288 // Retrieve an existing OS policy assignment.
289 //
290 // This method always returns the latest revision. In order to retrieve a
291 // previous revision of the assignment, also provide the revision ID in the
292 // `name` parameter.
293 GetOSPolicyAssignment(context.Context, *GetOSPolicyAssignmentRequest) (*OSPolicyAssignment, error)
294 // List the OS policy assignments under the parent resource.
295 //
296 // For each OS policy assignment, the latest revision is returned.
297 ListOSPolicyAssignments(context.Context, *ListOSPolicyAssignmentsRequest) (*ListOSPolicyAssignmentsResponse, error)
298 // List the OS policy assignment revisions for a given OS policy assignment.
299 ListOSPolicyAssignmentRevisions(context.Context, *ListOSPolicyAssignmentRevisionsRequest) (*ListOSPolicyAssignmentRevisionsResponse, error)
300 // Delete the OS policy assignment.
301 //
302 // This method creates a new revision of the OS policy assignment.
303 //
304 // This method returns a long running operation (LRO) that contains the
305 // rollout details. The rollout can be cancelled by cancelling the LRO.
306 //
307 // If the LRO completes and is not cancelled, all revisions associated with
308 // the OS policy assignment are deleted.
309 //
310 // For more information, see [Method:
311 // projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).
312 DeleteOSPolicyAssignment(context.Context, *DeleteOSPolicyAssignmentRequest) (*longrunningpb.Operation, error)
313 // Deprecated: Do not use.
314 // Get OS policies compliance data for the specified Compute Engine VM
315 // instance.
316 GetInstanceOSPoliciesCompliance(context.Context, *GetInstanceOSPoliciesComplianceRequest) (*InstanceOSPoliciesCompliance, error)
317 // Deprecated: Do not use.
318 // List OS policies compliance data for all Compute Engine VM instances in the
319 // specified zone.
320 ListInstanceOSPoliciesCompliances(context.Context, *ListInstanceOSPoliciesCompliancesRequest) (*ListInstanceOSPoliciesCompliancesResponse, error)
321 // Get the OS policy asssignment report for the specified Compute Engine VM
322 // instance.
323 GetOSPolicyAssignmentReport(context.Context, *GetOSPolicyAssignmentReportRequest) (*OSPolicyAssignmentReport, error)
324 // List OS policy asssignment reports for all Compute Engine VM instances in
325 // the specified zone.
326 ListOSPolicyAssignmentReports(context.Context, *ListOSPolicyAssignmentReportsRequest) (*ListOSPolicyAssignmentReportsResponse, error)
327 // Get inventory data for the specified VM instance. If the VM has no
328 // associated inventory, the message `NOT_FOUND` is returned.
329 GetInventory(context.Context, *GetInventoryRequest) (*Inventory, error)
330 // List inventory data for all VM instances in the specified zone.
331 ListInventories(context.Context, *ListInventoriesRequest) (*ListInventoriesResponse, error)
332 // Gets the vulnerability report for the specified VM instance. Only VMs with
333 // inventory data have vulnerability reports associated with them.
334 GetVulnerabilityReport(context.Context, *GetVulnerabilityReportRequest) (*VulnerabilityReport, error)
335 // List vulnerability reports for all VM instances in the specified zone.
336 ListVulnerabilityReports(context.Context, *ListVulnerabilityReportsRequest) (*ListVulnerabilityReportsResponse, error)
337 }
338
339 // UnimplementedOsConfigZonalServiceServer should be embedded to have forward compatible implementations.
340 type UnimplementedOsConfigZonalServiceServer struct {
341 }
342
343 func (UnimplementedOsConfigZonalServiceServer) CreateOSPolicyAssignment(context.Context, *CreateOSPolicyAssignmentRequest) (*longrunningpb.Operation, error) {
344 return nil, status.Errorf(codes.Unimplemented, "method CreateOSPolicyAssignment not implemented")
345 }
346 func (UnimplementedOsConfigZonalServiceServer) UpdateOSPolicyAssignment(context.Context, *UpdateOSPolicyAssignmentRequest) (*longrunningpb.Operation, error) {
347 return nil, status.Errorf(codes.Unimplemented, "method UpdateOSPolicyAssignment not implemented")
348 }
349 func (UnimplementedOsConfigZonalServiceServer) GetOSPolicyAssignment(context.Context, *GetOSPolicyAssignmentRequest) (*OSPolicyAssignment, error) {
350 return nil, status.Errorf(codes.Unimplemented, "method GetOSPolicyAssignment not implemented")
351 }
352 func (UnimplementedOsConfigZonalServiceServer) ListOSPolicyAssignments(context.Context, *ListOSPolicyAssignmentsRequest) (*ListOSPolicyAssignmentsResponse, error) {
353 return nil, status.Errorf(codes.Unimplemented, "method ListOSPolicyAssignments not implemented")
354 }
355 func (UnimplementedOsConfigZonalServiceServer) ListOSPolicyAssignmentRevisions(context.Context, *ListOSPolicyAssignmentRevisionsRequest) (*ListOSPolicyAssignmentRevisionsResponse, error) {
356 return nil, status.Errorf(codes.Unimplemented, "method ListOSPolicyAssignmentRevisions not implemented")
357 }
358 func (UnimplementedOsConfigZonalServiceServer) DeleteOSPolicyAssignment(context.Context, *DeleteOSPolicyAssignmentRequest) (*longrunningpb.Operation, error) {
359 return nil, status.Errorf(codes.Unimplemented, "method DeleteOSPolicyAssignment not implemented")
360 }
361 func (UnimplementedOsConfigZonalServiceServer) GetInstanceOSPoliciesCompliance(context.Context, *GetInstanceOSPoliciesComplianceRequest) (*InstanceOSPoliciesCompliance, error) {
362 return nil, status.Errorf(codes.Unimplemented, "method GetInstanceOSPoliciesCompliance not implemented")
363 }
364 func (UnimplementedOsConfigZonalServiceServer) ListInstanceOSPoliciesCompliances(context.Context, *ListInstanceOSPoliciesCompliancesRequest) (*ListInstanceOSPoliciesCompliancesResponse, error) {
365 return nil, status.Errorf(codes.Unimplemented, "method ListInstanceOSPoliciesCompliances not implemented")
366 }
367 func (UnimplementedOsConfigZonalServiceServer) GetOSPolicyAssignmentReport(context.Context, *GetOSPolicyAssignmentReportRequest) (*OSPolicyAssignmentReport, error) {
368 return nil, status.Errorf(codes.Unimplemented, "method GetOSPolicyAssignmentReport not implemented")
369 }
370 func (UnimplementedOsConfigZonalServiceServer) ListOSPolicyAssignmentReports(context.Context, *ListOSPolicyAssignmentReportsRequest) (*ListOSPolicyAssignmentReportsResponse, error) {
371 return nil, status.Errorf(codes.Unimplemented, "method ListOSPolicyAssignmentReports not implemented")
372 }
373 func (UnimplementedOsConfigZonalServiceServer) GetInventory(context.Context, *GetInventoryRequest) (*Inventory, error) {
374 return nil, status.Errorf(codes.Unimplemented, "method GetInventory not implemented")
375 }
376 func (UnimplementedOsConfigZonalServiceServer) ListInventories(context.Context, *ListInventoriesRequest) (*ListInventoriesResponse, error) {
377 return nil, status.Errorf(codes.Unimplemented, "method ListInventories not implemented")
378 }
379 func (UnimplementedOsConfigZonalServiceServer) GetVulnerabilityReport(context.Context, *GetVulnerabilityReportRequest) (*VulnerabilityReport, error) {
380 return nil, status.Errorf(codes.Unimplemented, "method GetVulnerabilityReport not implemented")
381 }
382 func (UnimplementedOsConfigZonalServiceServer) ListVulnerabilityReports(context.Context, *ListVulnerabilityReportsRequest) (*ListVulnerabilityReportsResponse, error) {
383 return nil, status.Errorf(codes.Unimplemented, "method ListVulnerabilityReports not implemented")
384 }
385
386 // UnsafeOsConfigZonalServiceServer may be embedded to opt out of forward compatibility for this service.
387 // Use of this interface is not recommended, as added methods to OsConfigZonalServiceServer will
388 // result in compilation errors.
389 type UnsafeOsConfigZonalServiceServer interface {
390 mustEmbedUnimplementedOsConfigZonalServiceServer()
391 }
392
393 func RegisterOsConfigZonalServiceServer(s grpc.ServiceRegistrar, srv OsConfigZonalServiceServer) {
394 s.RegisterService(&OsConfigZonalService_ServiceDesc, srv)
395 }
396
397 func _OsConfigZonalService_CreateOSPolicyAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
398 in := new(CreateOSPolicyAssignmentRequest)
399 if err := dec(in); err != nil {
400 return nil, err
401 }
402 if interceptor == nil {
403 return srv.(OsConfigZonalServiceServer).CreateOSPolicyAssignment(ctx, in)
404 }
405 info := &grpc.UnaryServerInfo{
406 Server: srv,
407 FullMethod: OsConfigZonalService_CreateOSPolicyAssignment_FullMethodName,
408 }
409 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
410 return srv.(OsConfigZonalServiceServer).CreateOSPolicyAssignment(ctx, req.(*CreateOSPolicyAssignmentRequest))
411 }
412 return interceptor(ctx, in, info, handler)
413 }
414
415 func _OsConfigZonalService_UpdateOSPolicyAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
416 in := new(UpdateOSPolicyAssignmentRequest)
417 if err := dec(in); err != nil {
418 return nil, err
419 }
420 if interceptor == nil {
421 return srv.(OsConfigZonalServiceServer).UpdateOSPolicyAssignment(ctx, in)
422 }
423 info := &grpc.UnaryServerInfo{
424 Server: srv,
425 FullMethod: OsConfigZonalService_UpdateOSPolicyAssignment_FullMethodName,
426 }
427 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
428 return srv.(OsConfigZonalServiceServer).UpdateOSPolicyAssignment(ctx, req.(*UpdateOSPolicyAssignmentRequest))
429 }
430 return interceptor(ctx, in, info, handler)
431 }
432
433 func _OsConfigZonalService_GetOSPolicyAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
434 in := new(GetOSPolicyAssignmentRequest)
435 if err := dec(in); err != nil {
436 return nil, err
437 }
438 if interceptor == nil {
439 return srv.(OsConfigZonalServiceServer).GetOSPolicyAssignment(ctx, in)
440 }
441 info := &grpc.UnaryServerInfo{
442 Server: srv,
443 FullMethod: OsConfigZonalService_GetOSPolicyAssignment_FullMethodName,
444 }
445 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
446 return srv.(OsConfigZonalServiceServer).GetOSPolicyAssignment(ctx, req.(*GetOSPolicyAssignmentRequest))
447 }
448 return interceptor(ctx, in, info, handler)
449 }
450
451 func _OsConfigZonalService_ListOSPolicyAssignments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
452 in := new(ListOSPolicyAssignmentsRequest)
453 if err := dec(in); err != nil {
454 return nil, err
455 }
456 if interceptor == nil {
457 return srv.(OsConfigZonalServiceServer).ListOSPolicyAssignments(ctx, in)
458 }
459 info := &grpc.UnaryServerInfo{
460 Server: srv,
461 FullMethod: OsConfigZonalService_ListOSPolicyAssignments_FullMethodName,
462 }
463 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
464 return srv.(OsConfigZonalServiceServer).ListOSPolicyAssignments(ctx, req.(*ListOSPolicyAssignmentsRequest))
465 }
466 return interceptor(ctx, in, info, handler)
467 }
468
469 func _OsConfigZonalService_ListOSPolicyAssignmentRevisions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
470 in := new(ListOSPolicyAssignmentRevisionsRequest)
471 if err := dec(in); err != nil {
472 return nil, err
473 }
474 if interceptor == nil {
475 return srv.(OsConfigZonalServiceServer).ListOSPolicyAssignmentRevisions(ctx, in)
476 }
477 info := &grpc.UnaryServerInfo{
478 Server: srv,
479 FullMethod: OsConfigZonalService_ListOSPolicyAssignmentRevisions_FullMethodName,
480 }
481 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
482 return srv.(OsConfigZonalServiceServer).ListOSPolicyAssignmentRevisions(ctx, req.(*ListOSPolicyAssignmentRevisionsRequest))
483 }
484 return interceptor(ctx, in, info, handler)
485 }
486
487 func _OsConfigZonalService_DeleteOSPolicyAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
488 in := new(DeleteOSPolicyAssignmentRequest)
489 if err := dec(in); err != nil {
490 return nil, err
491 }
492 if interceptor == nil {
493 return srv.(OsConfigZonalServiceServer).DeleteOSPolicyAssignment(ctx, in)
494 }
495 info := &grpc.UnaryServerInfo{
496 Server: srv,
497 FullMethod: OsConfigZonalService_DeleteOSPolicyAssignment_FullMethodName,
498 }
499 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
500 return srv.(OsConfigZonalServiceServer).DeleteOSPolicyAssignment(ctx, req.(*DeleteOSPolicyAssignmentRequest))
501 }
502 return interceptor(ctx, in, info, handler)
503 }
504
505 func _OsConfigZonalService_GetInstanceOSPoliciesCompliance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
506 in := new(GetInstanceOSPoliciesComplianceRequest)
507 if err := dec(in); err != nil {
508 return nil, err
509 }
510 if interceptor == nil {
511 return srv.(OsConfigZonalServiceServer).GetInstanceOSPoliciesCompliance(ctx, in)
512 }
513 info := &grpc.UnaryServerInfo{
514 Server: srv,
515 FullMethod: OsConfigZonalService_GetInstanceOSPoliciesCompliance_FullMethodName,
516 }
517 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
518 return srv.(OsConfigZonalServiceServer).GetInstanceOSPoliciesCompliance(ctx, req.(*GetInstanceOSPoliciesComplianceRequest))
519 }
520 return interceptor(ctx, in, info, handler)
521 }
522
523 func _OsConfigZonalService_ListInstanceOSPoliciesCompliances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
524 in := new(ListInstanceOSPoliciesCompliancesRequest)
525 if err := dec(in); err != nil {
526 return nil, err
527 }
528 if interceptor == nil {
529 return srv.(OsConfigZonalServiceServer).ListInstanceOSPoliciesCompliances(ctx, in)
530 }
531 info := &grpc.UnaryServerInfo{
532 Server: srv,
533 FullMethod: OsConfigZonalService_ListInstanceOSPoliciesCompliances_FullMethodName,
534 }
535 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
536 return srv.(OsConfigZonalServiceServer).ListInstanceOSPoliciesCompliances(ctx, req.(*ListInstanceOSPoliciesCompliancesRequest))
537 }
538 return interceptor(ctx, in, info, handler)
539 }
540
541 func _OsConfigZonalService_GetOSPolicyAssignmentReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
542 in := new(GetOSPolicyAssignmentReportRequest)
543 if err := dec(in); err != nil {
544 return nil, err
545 }
546 if interceptor == nil {
547 return srv.(OsConfigZonalServiceServer).GetOSPolicyAssignmentReport(ctx, in)
548 }
549 info := &grpc.UnaryServerInfo{
550 Server: srv,
551 FullMethod: OsConfigZonalService_GetOSPolicyAssignmentReport_FullMethodName,
552 }
553 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
554 return srv.(OsConfigZonalServiceServer).GetOSPolicyAssignmentReport(ctx, req.(*GetOSPolicyAssignmentReportRequest))
555 }
556 return interceptor(ctx, in, info, handler)
557 }
558
559 func _OsConfigZonalService_ListOSPolicyAssignmentReports_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
560 in := new(ListOSPolicyAssignmentReportsRequest)
561 if err := dec(in); err != nil {
562 return nil, err
563 }
564 if interceptor == nil {
565 return srv.(OsConfigZonalServiceServer).ListOSPolicyAssignmentReports(ctx, in)
566 }
567 info := &grpc.UnaryServerInfo{
568 Server: srv,
569 FullMethod: OsConfigZonalService_ListOSPolicyAssignmentReports_FullMethodName,
570 }
571 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
572 return srv.(OsConfigZonalServiceServer).ListOSPolicyAssignmentReports(ctx, req.(*ListOSPolicyAssignmentReportsRequest))
573 }
574 return interceptor(ctx, in, info, handler)
575 }
576
577 func _OsConfigZonalService_GetInventory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
578 in := new(GetInventoryRequest)
579 if err := dec(in); err != nil {
580 return nil, err
581 }
582 if interceptor == nil {
583 return srv.(OsConfigZonalServiceServer).GetInventory(ctx, in)
584 }
585 info := &grpc.UnaryServerInfo{
586 Server: srv,
587 FullMethod: OsConfigZonalService_GetInventory_FullMethodName,
588 }
589 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
590 return srv.(OsConfigZonalServiceServer).GetInventory(ctx, req.(*GetInventoryRequest))
591 }
592 return interceptor(ctx, in, info, handler)
593 }
594
595 func _OsConfigZonalService_ListInventories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
596 in := new(ListInventoriesRequest)
597 if err := dec(in); err != nil {
598 return nil, err
599 }
600 if interceptor == nil {
601 return srv.(OsConfigZonalServiceServer).ListInventories(ctx, in)
602 }
603 info := &grpc.UnaryServerInfo{
604 Server: srv,
605 FullMethod: OsConfigZonalService_ListInventories_FullMethodName,
606 }
607 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
608 return srv.(OsConfigZonalServiceServer).ListInventories(ctx, req.(*ListInventoriesRequest))
609 }
610 return interceptor(ctx, in, info, handler)
611 }
612
613 func _OsConfigZonalService_GetVulnerabilityReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
614 in := new(GetVulnerabilityReportRequest)
615 if err := dec(in); err != nil {
616 return nil, err
617 }
618 if interceptor == nil {
619 return srv.(OsConfigZonalServiceServer).GetVulnerabilityReport(ctx, in)
620 }
621 info := &grpc.UnaryServerInfo{
622 Server: srv,
623 FullMethod: OsConfigZonalService_GetVulnerabilityReport_FullMethodName,
624 }
625 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
626 return srv.(OsConfigZonalServiceServer).GetVulnerabilityReport(ctx, req.(*GetVulnerabilityReportRequest))
627 }
628 return interceptor(ctx, in, info, handler)
629 }
630
631 func _OsConfigZonalService_ListVulnerabilityReports_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
632 in := new(ListVulnerabilityReportsRequest)
633 if err := dec(in); err != nil {
634 return nil, err
635 }
636 if interceptor == nil {
637 return srv.(OsConfigZonalServiceServer).ListVulnerabilityReports(ctx, in)
638 }
639 info := &grpc.UnaryServerInfo{
640 Server: srv,
641 FullMethod: OsConfigZonalService_ListVulnerabilityReports_FullMethodName,
642 }
643 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
644 return srv.(OsConfigZonalServiceServer).ListVulnerabilityReports(ctx, req.(*ListVulnerabilityReportsRequest))
645 }
646 return interceptor(ctx, in, info, handler)
647 }
648
649 // OsConfigZonalService_ServiceDesc is the grpc.ServiceDesc for OsConfigZonalService service.
650 // It's only intended for direct use with grpc.RegisterService,
651 // and not to be introspected or modified (even as a copy)
652 var OsConfigZonalService_ServiceDesc = grpc.ServiceDesc{
653 ServiceName: "google.cloud.osconfig.v1alpha.OsConfigZonalService",
654 HandlerType: (*OsConfigZonalServiceServer)(nil),
655 Methods: []grpc.MethodDesc{
656 {
657 MethodName: "CreateOSPolicyAssignment",
658 Handler: _OsConfigZonalService_CreateOSPolicyAssignment_Handler,
659 },
660 {
661 MethodName: "UpdateOSPolicyAssignment",
662 Handler: _OsConfigZonalService_UpdateOSPolicyAssignment_Handler,
663 },
664 {
665 MethodName: "GetOSPolicyAssignment",
666 Handler: _OsConfigZonalService_GetOSPolicyAssignment_Handler,
667 },
668 {
669 MethodName: "ListOSPolicyAssignments",
670 Handler: _OsConfigZonalService_ListOSPolicyAssignments_Handler,
671 },
672 {
673 MethodName: "ListOSPolicyAssignmentRevisions",
674 Handler: _OsConfigZonalService_ListOSPolicyAssignmentRevisions_Handler,
675 },
676 {
677 MethodName: "DeleteOSPolicyAssignment",
678 Handler: _OsConfigZonalService_DeleteOSPolicyAssignment_Handler,
679 },
680 {
681 MethodName: "GetInstanceOSPoliciesCompliance",
682 Handler: _OsConfigZonalService_GetInstanceOSPoliciesCompliance_Handler,
683 },
684 {
685 MethodName: "ListInstanceOSPoliciesCompliances",
686 Handler: _OsConfigZonalService_ListInstanceOSPoliciesCompliances_Handler,
687 },
688 {
689 MethodName: "GetOSPolicyAssignmentReport",
690 Handler: _OsConfigZonalService_GetOSPolicyAssignmentReport_Handler,
691 },
692 {
693 MethodName: "ListOSPolicyAssignmentReports",
694 Handler: _OsConfigZonalService_ListOSPolicyAssignmentReports_Handler,
695 },
696 {
697 MethodName: "GetInventory",
698 Handler: _OsConfigZonalService_GetInventory_Handler,
699 },
700 {
701 MethodName: "ListInventories",
702 Handler: _OsConfigZonalService_ListInventories_Handler,
703 },
704 {
705 MethodName: "GetVulnerabilityReport",
706 Handler: _OsConfigZonalService_GetVulnerabilityReport_Handler,
707 },
708 {
709 MethodName: "ListVulnerabilityReports",
710 Handler: _OsConfigZonalService_ListVulnerabilityReports_Handler,
711 },
712 },
713 Streams: []grpc.StreamDesc{},
714 Metadata: "google/cloud/osconfig/v1alpha/osconfig_zonal_service.proto",
715 }