Debian Codegraph @

osconfig/apiv1beta/osconfigpb/osconfig_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/v1beta/osconfig_service.proto
20
21 package osconfigpb
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 emptypb "google.golang.org/protobuf/types/known/emptypb"
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 OsConfigService_ExecutePatchJob_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/ExecutePatchJob"
38 OsConfigService_GetPatchJob_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/GetPatchJob"
39 OsConfigService_CancelPatchJob_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/CancelPatchJob"
40 OsConfigService_ListPatchJobs_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/ListPatchJobs"
41 OsConfigService_ListPatchJobInstanceDetails_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/ListPatchJobInstanceDetails"
42 OsConfigService_CreatePatchDeployment_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/CreatePatchDeployment"
43 OsConfigService_GetPatchDeployment_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/GetPatchDeployment"
44 OsConfigService_ListPatchDeployments_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/ListPatchDeployments"
45 OsConfigService_DeletePatchDeployment_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/DeletePatchDeployment"
46 OsConfigService_UpdatePatchDeployment_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/UpdatePatchDeployment"
47 OsConfigService_PausePatchDeployment_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/PausePatchDeployment"
48 OsConfigService_ResumePatchDeployment_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/ResumePatchDeployment"
49 OsConfigService_CreateGuestPolicy_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/CreateGuestPolicy"
50 OsConfigService_GetGuestPolicy_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/GetGuestPolicy"
51 OsConfigService_ListGuestPolicies_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/ListGuestPolicies"
52 OsConfigService_UpdateGuestPolicy_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/UpdateGuestPolicy"
53 OsConfigService_DeleteGuestPolicy_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/DeleteGuestPolicy"
54 OsConfigService_LookupEffectiveGuestPolicy_FullMethodName = "/google.cloud.osconfig.v1beta.OsConfigService/LookupEffectiveGuestPolicy"
55 )
56
57 // OsConfigServiceClient is the client API for OsConfigService service.
58 //
59 // 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.
60 type OsConfigServiceClient interface {
61 // Patch VM instances by creating and running a patch job.
62 ExecutePatchJob(ctx context.Context, in *ExecutePatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error)
63 // Get the patch job. This can be used to track the progress of an
64 // ongoing patch job or review the details of completed jobs.
65 GetPatchJob(ctx context.Context, in *GetPatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error)
66 // Cancel a patch job. The patch job must be active. Canceled patch jobs
67 // cannot be restarted.
68 CancelPatchJob(ctx context.Context, in *CancelPatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error)
69 // Get a list of patch jobs.
70 ListPatchJobs(ctx context.Context, in *ListPatchJobsRequest, opts ...grpc.CallOption) (*ListPatchJobsResponse, error)
71 // Get a list of instance details for a given patch job.
72 ListPatchJobInstanceDetails(ctx context.Context, in *ListPatchJobInstanceDetailsRequest, opts ...grpc.CallOption) (*ListPatchJobInstanceDetailsResponse, error)
73 // Create an OS Config patch deployment.
74 CreatePatchDeployment(ctx context.Context, in *CreatePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error)
75 // Get an OS Config patch deployment.
76 GetPatchDeployment(ctx context.Context, in *GetPatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error)
77 // Get a page of OS Config patch deployments.
78 ListPatchDeployments(ctx context.Context, in *ListPatchDeploymentsRequest, opts ...grpc.CallOption) (*ListPatchDeploymentsResponse, error)
79 // Delete an OS Config patch deployment.
80 DeletePatchDeployment(ctx context.Context, in *DeletePatchDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
81 // Update an OS Config patch deployment.
82 UpdatePatchDeployment(ctx context.Context, in *UpdatePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error)
83 // Change state of patch deployment to "PAUSED".
84 // Patch deployment in paused state doesn't generate patch jobs.
85 PausePatchDeployment(ctx context.Context, in *PausePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error)
86 // Change state of patch deployment back to "ACTIVE".
87 // Patch deployment in active state continues to generate patch jobs.
88 ResumePatchDeployment(ctx context.Context, in *ResumePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error)
89 // Create an OS Config guest policy.
90 CreateGuestPolicy(ctx context.Context, in *CreateGuestPolicyRequest, opts ...grpc.CallOption) (*GuestPolicy, error)
91 // Get an OS Config guest policy.
92 GetGuestPolicy(ctx context.Context, in *GetGuestPolicyRequest, opts ...grpc.CallOption) (*GuestPolicy, error)
93 // Get a page of OS Config guest policies.
94 ListGuestPolicies(ctx context.Context, in *ListGuestPoliciesRequest, opts ...grpc.CallOption) (*ListGuestPoliciesResponse, error)
95 // Update an OS Config guest policy.
96 UpdateGuestPolicy(ctx context.Context, in *UpdateGuestPolicyRequest, opts ...grpc.CallOption) (*GuestPolicy, error)
97 // Delete an OS Config guest policy.
98 DeleteGuestPolicy(ctx context.Context, in *DeleteGuestPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
99 // Lookup the effective guest policy that applies to a VM instance. This
100 // lookup merges all policies that are assigned to the instance ancestry.
101 LookupEffectiveGuestPolicy(ctx context.Context, in *LookupEffectiveGuestPolicyRequest, opts ...grpc.CallOption) (*EffectiveGuestPolicy, error)
102 }
103
104 type osConfigServiceClient struct {
105 cc grpc.ClientConnInterface
106 }
107
108 func NewOsConfigServiceClient(cc grpc.ClientConnInterface) OsConfigServiceClient {
109 return &osConfigServiceClient{cc}
110 }
111
112 func (c *osConfigServiceClient) ExecutePatchJob(ctx context.Context, in *ExecutePatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error) {
113 out := new(PatchJob)
114 err := c.cc.Invoke(ctx, OsConfigService_ExecutePatchJob_FullMethodName, in, out, opts...)
115 if err != nil {
116 return nil, err
117 }
118 return out, nil
119 }
120
121 func (c *osConfigServiceClient) GetPatchJob(ctx context.Context, in *GetPatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error) {
122 out := new(PatchJob)
123 err := c.cc.Invoke(ctx, OsConfigService_GetPatchJob_FullMethodName, in, out, opts...)
124 if err != nil {
125 return nil, err
126 }
127 return out, nil
128 }
129
130 func (c *osConfigServiceClient) CancelPatchJob(ctx context.Context, in *CancelPatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error) {
131 out := new(PatchJob)
132 err := c.cc.Invoke(ctx, OsConfigService_CancelPatchJob_FullMethodName, in, out, opts...)
133 if err != nil {
134 return nil, err
135 }
136 return out, nil
137 }
138
139 func (c *osConfigServiceClient) ListPatchJobs(ctx context.Context, in *ListPatchJobsRequest, opts ...grpc.CallOption) (*ListPatchJobsResponse, error) {
140 out := new(ListPatchJobsResponse)
141 err := c.cc.Invoke(ctx, OsConfigService_ListPatchJobs_FullMethodName, in, out, opts...)
142 if err != nil {
143 return nil, err
144 }
145 return out, nil
146 }
147
148 func (c *osConfigServiceClient) ListPatchJobInstanceDetails(ctx context.Context, in *ListPatchJobInstanceDetailsRequest, opts ...grpc.CallOption) (*ListPatchJobInstanceDetailsResponse, error) {
149 out := new(ListPatchJobInstanceDetailsResponse)
150 err := c.cc.Invoke(ctx, OsConfigService_ListPatchJobInstanceDetails_FullMethodName, in, out, opts...)
151 if err != nil {
152 return nil, err
153 }
154 return out, nil
155 }
156
157 func (c *osConfigServiceClient) CreatePatchDeployment(ctx context.Context, in *CreatePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) {
158 out := new(PatchDeployment)
159 err := c.cc.Invoke(ctx, OsConfigService_CreatePatchDeployment_FullMethodName, in, out, opts...)
160 if err != nil {
161 return nil, err
162 }
163 return out, nil
164 }
165
166 func (c *osConfigServiceClient) GetPatchDeployment(ctx context.Context, in *GetPatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) {
167 out := new(PatchDeployment)
168 err := c.cc.Invoke(ctx, OsConfigService_GetPatchDeployment_FullMethodName, in, out, opts...)
169 if err != nil {
170 return nil, err
171 }
172 return out, nil
173 }
174
175 func (c *osConfigServiceClient) ListPatchDeployments(ctx context.Context, in *ListPatchDeploymentsRequest, opts ...grpc.CallOption) (*ListPatchDeploymentsResponse, error) {
176 out := new(ListPatchDeploymentsResponse)
177 err := c.cc.Invoke(ctx, OsConfigService_ListPatchDeployments_FullMethodName, in, out, opts...)
178 if err != nil {
179 return nil, err
180 }
181 return out, nil
182 }
183
184 func (c *osConfigServiceClient) DeletePatchDeployment(ctx context.Context, in *DeletePatchDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
185 out := new(emptypb.Empty)
186 err := c.cc.Invoke(ctx, OsConfigService_DeletePatchDeployment_FullMethodName, in, out, opts...)
187 if err != nil {
188 return nil, err
189 }
190 return out, nil
191 }
192
193 func (c *osConfigServiceClient) UpdatePatchDeployment(ctx context.Context, in *UpdatePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) {
194 out := new(PatchDeployment)
195 err := c.cc.Invoke(ctx, OsConfigService_UpdatePatchDeployment_FullMethodName, in, out, opts...)
196 if err != nil {
197 return nil, err
198 }
199 return out, nil
200 }
201
202 func (c *osConfigServiceClient) PausePatchDeployment(ctx context.Context, in *PausePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) {
203 out := new(PatchDeployment)
204 err := c.cc.Invoke(ctx, OsConfigService_PausePatchDeployment_FullMethodName, in, out, opts...)
205 if err != nil {
206 return nil, err
207 }
208 return out, nil
209 }
210
211 func (c *osConfigServiceClient) ResumePatchDeployment(ctx context.Context, in *ResumePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) {
212 out := new(PatchDeployment)
213 err := c.cc.Invoke(ctx, OsConfigService_ResumePatchDeployment_FullMethodName, in, out, opts...)
214 if err != nil {
215 return nil, err
216 }
217 return out, nil
218 }
219
220 func (c *osConfigServiceClient) CreateGuestPolicy(ctx context.Context, in *CreateGuestPolicyRequest, opts ...grpc.CallOption) (*GuestPolicy, error) {
221 out := new(GuestPolicy)
222 err := c.cc.Invoke(ctx, OsConfigService_CreateGuestPolicy_FullMethodName, in, out, opts...)
223 if err != nil {
224 return nil, err
225 }
226 return out, nil
227 }
228
229 func (c *osConfigServiceClient) GetGuestPolicy(ctx context.Context, in *GetGuestPolicyRequest, opts ...grpc.CallOption) (*GuestPolicy, error) {
230 out := new(GuestPolicy)
231 err := c.cc.Invoke(ctx, OsConfigService_GetGuestPolicy_FullMethodName, in, out, opts...)
232 if err != nil {
233 return nil, err
234 }
235 return out, nil
236 }
237
238 func (c *osConfigServiceClient) ListGuestPolicies(ctx context.Context, in *ListGuestPoliciesRequest, opts ...grpc.CallOption) (*ListGuestPoliciesResponse, error) {
239 out := new(ListGuestPoliciesResponse)
240 err := c.cc.Invoke(ctx, OsConfigService_ListGuestPolicies_FullMethodName, in, out, opts...)
241 if err != nil {
242 return nil, err
243 }
244 return out, nil
245 }
246
247 func (c *osConfigServiceClient) UpdateGuestPolicy(ctx context.Context, in *UpdateGuestPolicyRequest, opts ...grpc.CallOption) (*GuestPolicy, error) {
248 out := new(GuestPolicy)
249 err := c.cc.Invoke(ctx, OsConfigService_UpdateGuestPolicy_FullMethodName, in, out, opts...)
250 if err != nil {
251 return nil, err
252 }
253 return out, nil
254 }
255
256 func (c *osConfigServiceClient) DeleteGuestPolicy(ctx context.Context, in *DeleteGuestPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
257 out := new(emptypb.Empty)
258 err := c.cc.Invoke(ctx, OsConfigService_DeleteGuestPolicy_FullMethodName, in, out, opts...)
259 if err != nil {
260 return nil, err
261 }
262 return out, nil
263 }
264
265 func (c *osConfigServiceClient) LookupEffectiveGuestPolicy(ctx context.Context, in *LookupEffectiveGuestPolicyRequest, opts ...grpc.CallOption) (*EffectiveGuestPolicy, error) {
266 out := new(EffectiveGuestPolicy)
267 err := c.cc.Invoke(ctx, OsConfigService_LookupEffectiveGuestPolicy_FullMethodName, in, out, opts...)
268 if err != nil {
269 return nil, err
270 }
271 return out, nil
272 }
273
274 // OsConfigServiceServer is the server API for OsConfigService service.
275 // All implementations should embed UnimplementedOsConfigServiceServer
276 // for forward compatibility
277 type OsConfigServiceServer interface {
278 // Patch VM instances by creating and running a patch job.
279 ExecutePatchJob(context.Context, *ExecutePatchJobRequest) (*PatchJob, error)
280 // Get the patch job. This can be used to track the progress of an
281 // ongoing patch job or review the details of completed jobs.
282 GetPatchJob(context.Context, *GetPatchJobRequest) (*PatchJob, error)
283 // Cancel a patch job. The patch job must be active. Canceled patch jobs
284 // cannot be restarted.
285 CancelPatchJob(context.Context, *CancelPatchJobRequest) (*PatchJob, error)
286 // Get a list of patch jobs.
287 ListPatchJobs(context.Context, *ListPatchJobsRequest) (*ListPatchJobsResponse, error)
288 // Get a list of instance details for a given patch job.
289 ListPatchJobInstanceDetails(context.Context, *ListPatchJobInstanceDetailsRequest) (*ListPatchJobInstanceDetailsResponse, error)
290 // Create an OS Config patch deployment.
291 CreatePatchDeployment(context.Context, *CreatePatchDeploymentRequest) (*PatchDeployment, error)
292 // Get an OS Config patch deployment.
293 GetPatchDeployment(context.Context, *GetPatchDeploymentRequest) (*PatchDeployment, error)
294 // Get a page of OS Config patch deployments.
295 ListPatchDeployments(context.Context, *ListPatchDeploymentsRequest) (*ListPatchDeploymentsResponse, error)
296 // Delete an OS Config patch deployment.
297 DeletePatchDeployment(context.Context, *DeletePatchDeploymentRequest) (*emptypb.Empty, error)
298 // Update an OS Config patch deployment.
299 UpdatePatchDeployment(context.Context, *UpdatePatchDeploymentRequest) (*PatchDeployment, error)
300 // Change state of patch deployment to "PAUSED".
301 // Patch deployment in paused state doesn't generate patch jobs.
302 PausePatchDeployment(context.Context, *PausePatchDeploymentRequest) (*PatchDeployment, error)
303 // Change state of patch deployment back to "ACTIVE".
304 // Patch deployment in active state continues to generate patch jobs.
305 ResumePatchDeployment(context.Context, *ResumePatchDeploymentRequest) (*PatchDeployment, error)
306 // Create an OS Config guest policy.
307 CreateGuestPolicy(context.Context, *CreateGuestPolicyRequest) (*GuestPolicy, error)
308 // Get an OS Config guest policy.
309 GetGuestPolicy(context.Context, *GetGuestPolicyRequest) (*GuestPolicy, error)
310 // Get a page of OS Config guest policies.
311 ListGuestPolicies(context.Context, *ListGuestPoliciesRequest) (*ListGuestPoliciesResponse, error)
312 // Update an OS Config guest policy.
313 UpdateGuestPolicy(context.Context, *UpdateGuestPolicyRequest) (*GuestPolicy, error)
314 // Delete an OS Config guest policy.
315 DeleteGuestPolicy(context.Context, *DeleteGuestPolicyRequest) (*emptypb.Empty, error)
316 // Lookup the effective guest policy that applies to a VM instance. This
317 // lookup merges all policies that are assigned to the instance ancestry.
318 LookupEffectiveGuestPolicy(context.Context, *LookupEffectiveGuestPolicyRequest) (*EffectiveGuestPolicy, error)
319 }
320
321 // UnimplementedOsConfigServiceServer should be embedded to have forward compatible implementations.
322 type UnimplementedOsConfigServiceServer struct {
323 }
324
325 func (UnimplementedOsConfigServiceServer) ExecutePatchJob(context.Context, *ExecutePatchJobRequest) (*PatchJob, error) {
326 return nil, status.Errorf(codes.Unimplemented, "method ExecutePatchJob not implemented")
327 }
328 func (UnimplementedOsConfigServiceServer) GetPatchJob(context.Context, *GetPatchJobRequest) (*PatchJob, error) {
329 return nil, status.Errorf(codes.Unimplemented, "method GetPatchJob not implemented")
330 }
331 func (UnimplementedOsConfigServiceServer) CancelPatchJob(context.Context, *CancelPatchJobRequest) (*PatchJob, error) {
332 return nil, status.Errorf(codes.Unimplemented, "method CancelPatchJob not implemented")
333 }
334 func (UnimplementedOsConfigServiceServer) ListPatchJobs(context.Context, *ListPatchJobsRequest) (*ListPatchJobsResponse, error) {
335 return nil, status.Errorf(codes.Unimplemented, "method ListPatchJobs not implemented")
336 }
337 func (UnimplementedOsConfigServiceServer) ListPatchJobInstanceDetails(context.Context, *ListPatchJobInstanceDetailsRequest) (*ListPatchJobInstanceDetailsResponse, error) {
338 return nil, status.Errorf(codes.Unimplemented, "method ListPatchJobInstanceDetails not implemented")
339 }
340 func (UnimplementedOsConfigServiceServer) CreatePatchDeployment(context.Context, *CreatePatchDeploymentRequest) (*PatchDeployment, error) {
341 return nil, status.Errorf(codes.Unimplemented, "method CreatePatchDeployment not implemented")
342 }
343 func (UnimplementedOsConfigServiceServer) GetPatchDeployment(context.Context, *GetPatchDeploymentRequest) (*PatchDeployment, error) {
344 return nil, status.Errorf(codes.Unimplemented, "method GetPatchDeployment not implemented")
345 }
346 func (UnimplementedOsConfigServiceServer) ListPatchDeployments(context.Context, *ListPatchDeploymentsRequest) (*ListPatchDeploymentsResponse, error) {
347 return nil, status.Errorf(codes.Unimplemented, "method ListPatchDeployments not implemented")
348 }
349 func (UnimplementedOsConfigServiceServer) DeletePatchDeployment(context.Context, *DeletePatchDeploymentRequest) (*emptypb.Empty, error) {
350 return nil, status.Errorf(codes.Unimplemented, "method DeletePatchDeployment not implemented")
351 }
352 func (UnimplementedOsConfigServiceServer) UpdatePatchDeployment(context.Context, *UpdatePatchDeploymentRequest) (*PatchDeployment, error) {
353 return nil, status.Errorf(codes.Unimplemented, "method UpdatePatchDeployment not implemented")
354 }
355 func (UnimplementedOsConfigServiceServer) PausePatchDeployment(context.Context, *PausePatchDeploymentRequest) (*PatchDeployment, error) {
356 return nil, status.Errorf(codes.Unimplemented, "method PausePatchDeployment not implemented")
357 }
358 func (UnimplementedOsConfigServiceServer) ResumePatchDeployment(context.Context, *ResumePatchDeploymentRequest) (*PatchDeployment, error) {
359 return nil, status.Errorf(codes.Unimplemented, "method ResumePatchDeployment not implemented")
360 }
361 func (UnimplementedOsConfigServiceServer) CreateGuestPolicy(context.Context, *CreateGuestPolicyRequest) (*GuestPolicy, error) {
362 return nil, status.Errorf(codes.Unimplemented, "method CreateGuestPolicy not implemented")
363 }
364 func (UnimplementedOsConfigServiceServer) GetGuestPolicy(context.Context, *GetGuestPolicyRequest) (*GuestPolicy, error) {
365 return nil, status.Errorf(codes.Unimplemented, "method GetGuestPolicy not implemented")
366 }
367 func (UnimplementedOsConfigServiceServer) ListGuestPolicies(context.Context, *ListGuestPoliciesRequest) (*ListGuestPoliciesResponse, error) {
368 return nil, status.Errorf(codes.Unimplemented, "method ListGuestPolicies not implemented")
369 }
370 func (UnimplementedOsConfigServiceServer) UpdateGuestPolicy(context.Context, *UpdateGuestPolicyRequest) (*GuestPolicy, error) {
371 return nil, status.Errorf(codes.Unimplemented, "method UpdateGuestPolicy not implemented")
372 }
373 func (UnimplementedOsConfigServiceServer) DeleteGuestPolicy(context.Context, *DeleteGuestPolicyRequest) (*emptypb.Empty, error) {
374 return nil, status.Errorf(codes.Unimplemented, "method DeleteGuestPolicy not implemented")
375 }
376 func (UnimplementedOsConfigServiceServer) LookupEffectiveGuestPolicy(context.Context, *LookupEffectiveGuestPolicyRequest) (*EffectiveGuestPolicy, error) {
377 return nil, status.Errorf(codes.Unimplemented, "method LookupEffectiveGuestPolicy not implemented")
378 }
379
380 // UnsafeOsConfigServiceServer may be embedded to opt out of forward compatibility for this service.
381 // Use of this interface is not recommended, as added methods to OsConfigServiceServer will
382 // result in compilation errors.
383 type UnsafeOsConfigServiceServer interface {
384 mustEmbedUnimplementedOsConfigServiceServer()
385 }
386
387 func RegisterOsConfigServiceServer(s grpc.ServiceRegistrar, srv OsConfigServiceServer) {
388 s.RegisterService(&OsConfigService_ServiceDesc, srv)
389 }
390
391 func _OsConfigService_ExecutePatchJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
392 in := new(ExecutePatchJobRequest)
393 if err := dec(in); err != nil {
394 return nil, err
395 }
396 if interceptor == nil {
397 return srv.(OsConfigServiceServer).ExecutePatchJob(ctx, in)
398 }
399 info := &grpc.UnaryServerInfo{
400 Server: srv,
401 FullMethod: OsConfigService_ExecutePatchJob_FullMethodName,
402 }
403 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
404 return srv.(OsConfigServiceServer).ExecutePatchJob(ctx, req.(*ExecutePatchJobRequest))
405 }
406 return interceptor(ctx, in, info, handler)
407 }
408
409 func _OsConfigService_GetPatchJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
410 in := new(GetPatchJobRequest)
411 if err := dec(in); err != nil {
412 return nil, err
413 }
414 if interceptor == nil {
415 return srv.(OsConfigServiceServer).GetPatchJob(ctx, in)
416 }
417 info := &grpc.UnaryServerInfo{
418 Server: srv,
419 FullMethod: OsConfigService_GetPatchJob_FullMethodName,
420 }
421 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
422 return srv.(OsConfigServiceServer).GetPatchJob(ctx, req.(*GetPatchJobRequest))
423 }
424 return interceptor(ctx, in, info, handler)
425 }
426
427 func _OsConfigService_CancelPatchJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
428 in := new(CancelPatchJobRequest)
429 if err := dec(in); err != nil {
430 return nil, err
431 }
432 if interceptor == nil {
433 return srv.(OsConfigServiceServer).CancelPatchJob(ctx, in)
434 }
435 info := &grpc.UnaryServerInfo{
436 Server: srv,
437 FullMethod: OsConfigService_CancelPatchJob_FullMethodName,
438 }
439 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
440 return srv.(OsConfigServiceServer).CancelPatchJob(ctx, req.(*CancelPatchJobRequest))
441 }
442 return interceptor(ctx, in, info, handler)
443 }
444
445 func _OsConfigService_ListPatchJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
446 in := new(ListPatchJobsRequest)
447 if err := dec(in); err != nil {
448 return nil, err
449 }
450 if interceptor == nil {
451 return srv.(OsConfigServiceServer).ListPatchJobs(ctx, in)
452 }
453 info := &grpc.UnaryServerInfo{
454 Server: srv,
455 FullMethod: OsConfigService_ListPatchJobs_FullMethodName,
456 }
457 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
458 return srv.(OsConfigServiceServer).ListPatchJobs(ctx, req.(*ListPatchJobsRequest))
459 }
460 return interceptor(ctx, in, info, handler)
461 }
462
463 func _OsConfigService_ListPatchJobInstanceDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
464 in := new(ListPatchJobInstanceDetailsRequest)
465 if err := dec(in); err != nil {
466 return nil, err
467 }
468 if interceptor == nil {
469 return srv.(OsConfigServiceServer).ListPatchJobInstanceDetails(ctx, in)
470 }
471 info := &grpc.UnaryServerInfo{
472 Server: srv,
473 FullMethod: OsConfigService_ListPatchJobInstanceDetails_FullMethodName,
474 }
475 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
476 return srv.(OsConfigServiceServer).ListPatchJobInstanceDetails(ctx, req.(*ListPatchJobInstanceDetailsRequest))
477 }
478 return interceptor(ctx, in, info, handler)
479 }
480
481 func _OsConfigService_CreatePatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
482 in := new(CreatePatchDeploymentRequest)
483 if err := dec(in); err != nil {
484 return nil, err
485 }
486 if interceptor == nil {
487 return srv.(OsConfigServiceServer).CreatePatchDeployment(ctx, in)
488 }
489 info := &grpc.UnaryServerInfo{
490 Server: srv,
491 FullMethod: OsConfigService_CreatePatchDeployment_FullMethodName,
492 }
493 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
494 return srv.(OsConfigServiceServer).CreatePatchDeployment(ctx, req.(*CreatePatchDeploymentRequest))
495 }
496 return interceptor(ctx, in, info, handler)
497 }
498
499 func _OsConfigService_GetPatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
500 in := new(GetPatchDeploymentRequest)
501 if err := dec(in); err != nil {
502 return nil, err
503 }
504 if interceptor == nil {
505 return srv.(OsConfigServiceServer).GetPatchDeployment(ctx, in)
506 }
507 info := &grpc.UnaryServerInfo{
508 Server: srv,
509 FullMethod: OsConfigService_GetPatchDeployment_FullMethodName,
510 }
511 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
512 return srv.(OsConfigServiceServer).GetPatchDeployment(ctx, req.(*GetPatchDeploymentRequest))
513 }
514 return interceptor(ctx, in, info, handler)
515 }
516
517 func _OsConfigService_ListPatchDeployments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
518 in := new(ListPatchDeploymentsRequest)
519 if err := dec(in); err != nil {
520 return nil, err
521 }
522 if interceptor == nil {
523 return srv.(OsConfigServiceServer).ListPatchDeployments(ctx, in)
524 }
525 info := &grpc.UnaryServerInfo{
526 Server: srv,
527 FullMethod: OsConfigService_ListPatchDeployments_FullMethodName,
528 }
529 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
530 return srv.(OsConfigServiceServer).ListPatchDeployments(ctx, req.(*ListPatchDeploymentsRequest))
531 }
532 return interceptor(ctx, in, info, handler)
533 }
534
535 func _OsConfigService_DeletePatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
536 in := new(DeletePatchDeploymentRequest)
537 if err := dec(in); err != nil {
538 return nil, err
539 }
540 if interceptor == nil {
541 return srv.(OsConfigServiceServer).DeletePatchDeployment(ctx, in)
542 }
543 info := &grpc.UnaryServerInfo{
544 Server: srv,
545 FullMethod: OsConfigService_DeletePatchDeployment_FullMethodName,
546 }
547 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
548 return srv.(OsConfigServiceServer).DeletePatchDeployment(ctx, req.(*DeletePatchDeploymentRequest))
549 }
550 return interceptor(ctx, in, info, handler)
551 }
552
553 func _OsConfigService_UpdatePatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
554 in := new(UpdatePatchDeploymentRequest)
555 if err := dec(in); err != nil {
556 return nil, err
557 }
558 if interceptor == nil {
559 return srv.(OsConfigServiceServer).UpdatePatchDeployment(ctx, in)
560 }
561 info := &grpc.UnaryServerInfo{
562 Server: srv,
563 FullMethod: OsConfigService_UpdatePatchDeployment_FullMethodName,
564 }
565 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
566 return srv.(OsConfigServiceServer).UpdatePatchDeployment(ctx, req.(*UpdatePatchDeploymentRequest))
567 }
568 return interceptor(ctx, in, info, handler)
569 }
570
571 func _OsConfigService_PausePatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
572 in := new(PausePatchDeploymentRequest)
573 if err := dec(in); err != nil {
574 return nil, err
575 }
576 if interceptor == nil {
577 return srv.(OsConfigServiceServer).PausePatchDeployment(ctx, in)
578 }
579 info := &grpc.UnaryServerInfo{
580 Server: srv,
581 FullMethod: OsConfigService_PausePatchDeployment_FullMethodName,
582 }
583 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
584 return srv.(OsConfigServiceServer).PausePatchDeployment(ctx, req.(*PausePatchDeploymentRequest))
585 }
586 return interceptor(ctx, in, info, handler)
587 }
588
589 func _OsConfigService_ResumePatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
590 in := new(ResumePatchDeploymentRequest)
591 if err := dec(in); err != nil {
592 return nil, err
593 }
594 if interceptor == nil {
595 return srv.(OsConfigServiceServer).ResumePatchDeployment(ctx, in)
596 }
597 info := &grpc.UnaryServerInfo{
598 Server: srv,
599 FullMethod: OsConfigService_ResumePatchDeployment_FullMethodName,
600 }
601 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
602 return srv.(OsConfigServiceServer).ResumePatchDeployment(ctx, req.(*ResumePatchDeploymentRequest))
603 }
604 return interceptor(ctx, in, info, handler)
605 }
606
607 func _OsConfigService_CreateGuestPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
608 in := new(CreateGuestPolicyRequest)
609 if err := dec(in); err != nil {
610 return nil, err
611 }
612 if interceptor == nil {
613 return srv.(OsConfigServiceServer).CreateGuestPolicy(ctx, in)
614 }
615 info := &grpc.UnaryServerInfo{
616 Server: srv,
617 FullMethod: OsConfigService_CreateGuestPolicy_FullMethodName,
618 }
619 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
620 return srv.(OsConfigServiceServer).CreateGuestPolicy(ctx, req.(*CreateGuestPolicyRequest))
621 }
622 return interceptor(ctx, in, info, handler)
623 }
624
625 func _OsConfigService_GetGuestPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
626 in := new(GetGuestPolicyRequest)
627 if err := dec(in); err != nil {
628 return nil, err
629 }
630 if interceptor == nil {
631 return srv.(OsConfigServiceServer).GetGuestPolicy(ctx, in)
632 }
633 info := &grpc.UnaryServerInfo{
634 Server: srv,
635 FullMethod: OsConfigService_GetGuestPolicy_FullMethodName,
636 }
637 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
638 return srv.(OsConfigServiceServer).GetGuestPolicy(ctx, req.(*GetGuestPolicyRequest))
639 }
640 return interceptor(ctx, in, info, handler)
641 }
642
643 func _OsConfigService_ListGuestPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
644 in := new(ListGuestPoliciesRequest)
645 if err := dec(in); err != nil {
646 return nil, err
647 }
648 if interceptor == nil {
649 return srv.(OsConfigServiceServer).ListGuestPolicies(ctx, in)
650 }
651 info := &grpc.UnaryServerInfo{
652 Server: srv,
653 FullMethod: OsConfigService_ListGuestPolicies_FullMethodName,
654 }
655 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
656 return srv.(OsConfigServiceServer).ListGuestPolicies(ctx, req.(*ListGuestPoliciesRequest))
657 }
658 return interceptor(ctx, in, info, handler)
659 }
660
661 func _OsConfigService_UpdateGuestPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
662 in := new(UpdateGuestPolicyRequest)
663 if err := dec(in); err != nil {
664 return nil, err
665 }
666 if interceptor == nil {
667 return srv.(OsConfigServiceServer).UpdateGuestPolicy(ctx, in)
668 }
669 info := &grpc.UnaryServerInfo{
670 Server: srv,
671 FullMethod: OsConfigService_UpdateGuestPolicy_FullMethodName,
672 }
673 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
674 return srv.(OsConfigServiceServer).UpdateGuestPolicy(ctx, req.(*UpdateGuestPolicyRequest))
675 }
676 return interceptor(ctx, in, info, handler)
677 }
678
679 func _OsConfigService_DeleteGuestPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
680 in := new(DeleteGuestPolicyRequest)
681 if err := dec(in); err != nil {
682 return nil, err
683 }
684 if interceptor == nil {
685 return srv.(OsConfigServiceServer).DeleteGuestPolicy(ctx, in)
686 }
687 info := &grpc.UnaryServerInfo{
688 Server: srv,
689 FullMethod: OsConfigService_DeleteGuestPolicy_FullMethodName,
690 }
691 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
692 return srv.(OsConfigServiceServer).DeleteGuestPolicy(ctx, req.(*DeleteGuestPolicyRequest))
693 }
694 return interceptor(ctx, in, info, handler)
695 }
696
697 func _OsConfigService_LookupEffectiveGuestPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
698 in := new(LookupEffectiveGuestPolicyRequest)
699 if err := dec(in); err != nil {
700 return nil, err
701 }
702 if interceptor == nil {
703 return srv.(OsConfigServiceServer).LookupEffectiveGuestPolicy(ctx, in)
704 }
705 info := &grpc.UnaryServerInfo{
706 Server: srv,
707 FullMethod: OsConfigService_LookupEffectiveGuestPolicy_FullMethodName,
708 }
709 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
710 return srv.(OsConfigServiceServer).LookupEffectiveGuestPolicy(ctx, req.(*LookupEffectiveGuestPolicyRequest))
711 }
712 return interceptor(ctx, in, info, handler)
713 }
714
715 // OsConfigService_ServiceDesc is the grpc.ServiceDesc for OsConfigService service.
716 // It's only intended for direct use with grpc.RegisterService,
717 // and not to be introspected or modified (even as a copy)
718 var OsConfigService_ServiceDesc = grpc.ServiceDesc{
719 ServiceName: "google.cloud.osconfig.v1beta.OsConfigService",
720 HandlerType: (*OsConfigServiceServer)(nil),
721 Methods: []grpc.MethodDesc{
722 {
723 MethodName: "ExecutePatchJob",
724 Handler: _OsConfigService_ExecutePatchJob_Handler,
725 },
726 {
727 MethodName: "GetPatchJob",
728 Handler: _OsConfigService_GetPatchJob_Handler,
729 },
730 {
731 MethodName: "CancelPatchJob",
732 Handler: _OsConfigService_CancelPatchJob_Handler,
733 },
734 {
735 MethodName: "ListPatchJobs",
736 Handler: _OsConfigService_ListPatchJobs_Handler,
737 },
738 {
739 MethodName: "ListPatchJobInstanceDetails",
740 Handler: _OsConfigService_ListPatchJobInstanceDetails_Handler,
741 },
742 {
743 MethodName: "CreatePatchDeployment",
744 Handler: _OsConfigService_CreatePatchDeployment_Handler,
745 },
746 {
747 MethodName: "GetPatchDeployment",
748 Handler: _OsConfigService_GetPatchDeployment_Handler,
749 },
750 {
751 MethodName: "ListPatchDeployments",
752 Handler: _OsConfigService_ListPatchDeployments_Handler,
753 },
754 {
755 MethodName: "DeletePatchDeployment",
756 Handler: _OsConfigService_DeletePatchDeployment_Handler,
757 },
758 {
759 MethodName: "UpdatePatchDeployment",
760 Handler: _OsConfigService_UpdatePatchDeployment_Handler,
761 },
762 {
763 MethodName: "PausePatchDeployment",
764 Handler: _OsConfigService_PausePatchDeployment_Handler,
765 },
766 {
767 MethodName: "ResumePatchDeployment",
768 Handler: _OsConfigService_ResumePatchDeployment_Handler,
769 },
770 {
771 MethodName: "CreateGuestPolicy",
772 Handler: _OsConfigService_CreateGuestPolicy_Handler,
773 },
774 {
775 MethodName: "GetGuestPolicy",
776 Handler: _OsConfigService_GetGuestPolicy_Handler,
777 },
778 {
779 MethodName: "ListGuestPolicies",
780 Handler: _OsConfigService_ListGuestPolicies_Handler,
781 },
782 {
783 MethodName: "UpdateGuestPolicy",
784 Handler: _OsConfigService_UpdateGuestPolicy_Handler,
785 },
786 {
787 MethodName: "DeleteGuestPolicy",
788 Handler: _OsConfigService_DeleteGuestPolicy_Handler,
789 },
790 {
791 MethodName: "LookupEffectiveGuestPolicy",
792 Handler: _OsConfigService_LookupEffectiveGuestPolicy_Handler,
793 },
794 },
795 Streams: []grpc.StreamDesc{},
796 Metadata: "google/cloud/osconfig/v1beta/osconfig_service.proto",
797 }