| 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/v1/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.v1.OsConfigService/ExecutePatchJob" |
| 38 |
OsConfigService_GetPatchJob_FullMethodName = "/google.cloud.osconfig.v1.OsConfigService/GetPatchJob" |
| 39 |
OsConfigService_CancelPatchJob_FullMethodName = "/google.cloud.osconfig.v1.OsConfigService/CancelPatchJob" |
| 40 |
OsConfigService_ListPatchJobs_FullMethodName = "/google.cloud.osconfig.v1.OsConfigService/ListPatchJobs" |
| 41 |
OsConfigService_ListPatchJobInstanceDetails_FullMethodName = "/google.cloud.osconfig.v1.OsConfigService/ListPatchJobInstanceDetails" |
| 42 |
OsConfigService_CreatePatchDeployment_FullMethodName = "/google.cloud.osconfig.v1.OsConfigService/CreatePatchDeployment" |
| 43 |
OsConfigService_GetPatchDeployment_FullMethodName = "/google.cloud.osconfig.v1.OsConfigService/GetPatchDeployment" |
| 44 |
OsConfigService_ListPatchDeployments_FullMethodName = "/google.cloud.osconfig.v1.OsConfigService/ListPatchDeployments" |
| 45 |
OsConfigService_DeletePatchDeployment_FullMethodName = "/google.cloud.osconfig.v1.OsConfigService/DeletePatchDeployment" |
| 46 |
OsConfigService_UpdatePatchDeployment_FullMethodName = "/google.cloud.osconfig.v1.OsConfigService/UpdatePatchDeployment" |
| 47 |
OsConfigService_PausePatchDeployment_FullMethodName = "/google.cloud.osconfig.v1.OsConfigService/PausePatchDeployment" |
| 48 |
OsConfigService_ResumePatchDeployment_FullMethodName = "/google.cloud.osconfig.v1.OsConfigService/ResumePatchDeployment" |
| 49 |
) |
| 50 |
|
| 51 |
// OsConfigServiceClient is the client API for OsConfigService service. |
| 52 |
// |
| 53 |
// 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. |
| 54 |
type OsConfigServiceClient interface { |
| 55 |
// Patch VM instances by creating and running a patch job. |
| 56 |
ExecutePatchJob(ctx context.Context, in *ExecutePatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error) |
| 57 |
// Get the patch job. This can be used to track the progress of an |
| 58 |
// ongoing patch job or review the details of completed jobs. |
| 59 |
GetPatchJob(ctx context.Context, in *GetPatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error) |
| 60 |
// Cancel a patch job. The patch job must be active. Canceled patch jobs |
| 61 |
// cannot be restarted. |
| 62 |
CancelPatchJob(ctx context.Context, in *CancelPatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error) |
| 63 |
// Get a list of patch jobs. |
| 64 |
ListPatchJobs(ctx context.Context, in *ListPatchJobsRequest, opts ...grpc.CallOption) (*ListPatchJobsResponse, error) |
| 65 |
// Get a list of instance details for a given patch job. |
| 66 |
ListPatchJobInstanceDetails(ctx context.Context, in *ListPatchJobInstanceDetailsRequest, opts ...grpc.CallOption) (*ListPatchJobInstanceDetailsResponse, error) |
| 67 |
// Create an OS Config patch deployment. |
| 68 |
CreatePatchDeployment(ctx context.Context, in *CreatePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) |
| 69 |
// Get an OS Config patch deployment. |
| 70 |
GetPatchDeployment(ctx context.Context, in *GetPatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) |
| 71 |
// Get a page of OS Config patch deployments. |
| 72 |
ListPatchDeployments(ctx context.Context, in *ListPatchDeploymentsRequest, opts ...grpc.CallOption) (*ListPatchDeploymentsResponse, error) |
| 73 |
// Delete an OS Config patch deployment. |
| 74 |
DeletePatchDeployment(ctx context.Context, in *DeletePatchDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) |
| 75 |
// Update an OS Config patch deployment. |
| 76 |
UpdatePatchDeployment(ctx context.Context, in *UpdatePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) |
| 77 |
// Change state of patch deployment to "PAUSED". |
| 78 |
// Patch deployment in paused state doesn't generate patch jobs. |
| 79 |
PausePatchDeployment(ctx context.Context, in *PausePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) |
| 80 |
// Change state of patch deployment back to "ACTIVE". |
| 81 |
// Patch deployment in active state continues to generate patch jobs. |
| 82 |
ResumePatchDeployment(ctx context.Context, in *ResumePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) |
| 83 |
} |
| 84 |
|
| 85 |
type osConfigServiceClient struct { |
| 86 |
cc grpc.ClientConnInterface |
| 87 |
} |
| 88 |
|
| 89 |
func NewOsConfigServiceClient(cc grpc.ClientConnInterface) OsConfigServiceClient { |
| 90 |
return &osConfigServiceClient{cc} |
| 91 |
} |
| 92 |
|
| 93 |
func (c *osConfigServiceClient) ExecutePatchJob(ctx context.Context, in *ExecutePatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error) { |
| 94 |
out := new(PatchJob) |
| 95 |
err := c.cc.Invoke(ctx, OsConfigService_ExecutePatchJob_FullMethodName, in, out, opts...) |
| 96 |
if err != nil { |
| 97 |
return nil, err |
| 98 |
} |
| 99 |
return out, nil |
| 100 |
} |
| 101 |
|
| 102 |
func (c *osConfigServiceClient) GetPatchJob(ctx context.Context, in *GetPatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error) { |
| 103 |
out := new(PatchJob) |
| 104 |
err := c.cc.Invoke(ctx, OsConfigService_GetPatchJob_FullMethodName, in, out, opts...) |
| 105 |
if err != nil { |
| 106 |
return nil, err |
| 107 |
} |
| 108 |
return out, nil |
| 109 |
} |
| 110 |
|
| 111 |
func (c *osConfigServiceClient) CancelPatchJob(ctx context.Context, in *CancelPatchJobRequest, opts ...grpc.CallOption) (*PatchJob, error) { |
| 112 |
out := new(PatchJob) |
| 113 |
err := c.cc.Invoke(ctx, OsConfigService_CancelPatchJob_FullMethodName, in, out, opts...) |
| 114 |
if err != nil { |
| 115 |
return nil, err |
| 116 |
} |
| 117 |
return out, nil |
| 118 |
} |
| 119 |
|
| 120 |
func (c *osConfigServiceClient) ListPatchJobs(ctx context.Context, in *ListPatchJobsRequest, opts ...grpc.CallOption) (*ListPatchJobsResponse, error) { |
| 121 |
out := new(ListPatchJobsResponse) |
| 122 |
err := c.cc.Invoke(ctx, OsConfigService_ListPatchJobs_FullMethodName, in, out, opts...) |
| 123 |
if err != nil { |
| 124 |
return nil, err |
| 125 |
} |
| 126 |
return out, nil |
| 127 |
} |
| 128 |
|
| 129 |
func (c *osConfigServiceClient) ListPatchJobInstanceDetails(ctx context.Context, in *ListPatchJobInstanceDetailsRequest, opts ...grpc.CallOption) (*ListPatchJobInstanceDetailsResponse, error) { |
| 130 |
out := new(ListPatchJobInstanceDetailsResponse) |
| 131 |
err := c.cc.Invoke(ctx, OsConfigService_ListPatchJobInstanceDetails_FullMethodName, in, out, opts...) |
| 132 |
if err != nil { |
| 133 |
return nil, err |
| 134 |
} |
| 135 |
return out, nil |
| 136 |
} |
| 137 |
|
| 138 |
func (c *osConfigServiceClient) CreatePatchDeployment(ctx context.Context, in *CreatePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) { |
| 139 |
out := new(PatchDeployment) |
| 140 |
err := c.cc.Invoke(ctx, OsConfigService_CreatePatchDeployment_FullMethodName, in, out, opts...) |
| 141 |
if err != nil { |
| 142 |
return nil, err |
| 143 |
} |
| 144 |
return out, nil |
| 145 |
} |
| 146 |
|
| 147 |
func (c *osConfigServiceClient) GetPatchDeployment(ctx context.Context, in *GetPatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) { |
| 148 |
out := new(PatchDeployment) |
| 149 |
err := c.cc.Invoke(ctx, OsConfigService_GetPatchDeployment_FullMethodName, in, out, opts...) |
| 150 |
if err != nil { |
| 151 |
return nil, err |
| 152 |
} |
| 153 |
return out, nil |
| 154 |
} |
| 155 |
|
| 156 |
func (c *osConfigServiceClient) ListPatchDeployments(ctx context.Context, in *ListPatchDeploymentsRequest, opts ...grpc.CallOption) (*ListPatchDeploymentsResponse, error) { |
| 157 |
out := new(ListPatchDeploymentsResponse) |
| 158 |
err := c.cc.Invoke(ctx, OsConfigService_ListPatchDeployments_FullMethodName, in, out, opts...) |
| 159 |
if err != nil { |
| 160 |
return nil, err |
| 161 |
} |
| 162 |
return out, nil |
| 163 |
} |
| 164 |
|
| 165 |
func (c *osConfigServiceClient) DeletePatchDeployment(ctx context.Context, in *DeletePatchDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { |
| 166 |
out := new(emptypb.Empty) |
| 167 |
err := c.cc.Invoke(ctx, OsConfigService_DeletePatchDeployment_FullMethodName, in, out, opts...) |
| 168 |
if err != nil { |
| 169 |
return nil, err |
| 170 |
} |
| 171 |
return out, nil |
| 172 |
} |
| 173 |
|
| 174 |
func (c *osConfigServiceClient) UpdatePatchDeployment(ctx context.Context, in *UpdatePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) { |
| 175 |
out := new(PatchDeployment) |
| 176 |
err := c.cc.Invoke(ctx, OsConfigService_UpdatePatchDeployment_FullMethodName, in, out, opts...) |
| 177 |
if err != nil { |
| 178 |
return nil, err |
| 179 |
} |
| 180 |
return out, nil |
| 181 |
} |
| 182 |
|
| 183 |
func (c *osConfigServiceClient) PausePatchDeployment(ctx context.Context, in *PausePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) { |
| 184 |
out := new(PatchDeployment) |
| 185 |
err := c.cc.Invoke(ctx, OsConfigService_PausePatchDeployment_FullMethodName, in, out, opts...) |
| 186 |
if err != nil { |
| 187 |
return nil, err |
| 188 |
} |
| 189 |
return out, nil |
| 190 |
} |
| 191 |
|
| 192 |
func (c *osConfigServiceClient) ResumePatchDeployment(ctx context.Context, in *ResumePatchDeploymentRequest, opts ...grpc.CallOption) (*PatchDeployment, error) { |
| 193 |
out := new(PatchDeployment) |
| 194 |
err := c.cc.Invoke(ctx, OsConfigService_ResumePatchDeployment_FullMethodName, in, out, opts...) |
| 195 |
if err != nil { |
| 196 |
return nil, err |
| 197 |
} |
| 198 |
return out, nil |
| 199 |
} |
| 200 |
|
| 201 |
// OsConfigServiceServer is the server API for OsConfigService service. |
| 202 |
// All implementations should embed UnimplementedOsConfigServiceServer |
| 203 |
// for forward compatibility |
| 204 |
type OsConfigServiceServer interface { |
| 205 |
// Patch VM instances by creating and running a patch job. |
| 206 |
ExecutePatchJob(context.Context, *ExecutePatchJobRequest) (*PatchJob, error) |
| 207 |
// Get the patch job. This can be used to track the progress of an |
| 208 |
// ongoing patch job or review the details of completed jobs. |
| 209 |
GetPatchJob(context.Context, *GetPatchJobRequest) (*PatchJob, error) |
| 210 |
// Cancel a patch job. The patch job must be active. Canceled patch jobs |
| 211 |
// cannot be restarted. |
| 212 |
CancelPatchJob(context.Context, *CancelPatchJobRequest) (*PatchJob, error) |
| 213 |
// Get a list of patch jobs. |
| 214 |
ListPatchJobs(context.Context, *ListPatchJobsRequest) (*ListPatchJobsResponse, error) |
| 215 |
// Get a list of instance details for a given patch job. |
| 216 |
ListPatchJobInstanceDetails(context.Context, *ListPatchJobInstanceDetailsRequest) (*ListPatchJobInstanceDetailsResponse, error) |
| 217 |
// Create an OS Config patch deployment. |
| 218 |
CreatePatchDeployment(context.Context, *CreatePatchDeploymentRequest) (*PatchDeployment, error) |
| 219 |
// Get an OS Config patch deployment. |
| 220 |
GetPatchDeployment(context.Context, *GetPatchDeploymentRequest) (*PatchDeployment, error) |
| 221 |
// Get a page of OS Config patch deployments. |
| 222 |
ListPatchDeployments(context.Context, *ListPatchDeploymentsRequest) (*ListPatchDeploymentsResponse, error) |
| 223 |
// Delete an OS Config patch deployment. |
| 224 |
DeletePatchDeployment(context.Context, *DeletePatchDeploymentRequest) (*emptypb.Empty, error) |
| 225 |
// Update an OS Config patch deployment. |
| 226 |
UpdatePatchDeployment(context.Context, *UpdatePatchDeploymentRequest) (*PatchDeployment, error) |
| 227 |
// Change state of patch deployment to "PAUSED". |
| 228 |
// Patch deployment in paused state doesn't generate patch jobs. |
| 229 |
PausePatchDeployment(context.Context, *PausePatchDeploymentRequest) (*PatchDeployment, error) |
| 230 |
// Change state of patch deployment back to "ACTIVE". |
| 231 |
// Patch deployment in active state continues to generate patch jobs. |
| 232 |
ResumePatchDeployment(context.Context, *ResumePatchDeploymentRequest) (*PatchDeployment, error) |
| 233 |
} |
| 234 |
|
| 235 |
// UnimplementedOsConfigServiceServer should be embedded to have forward compatible implementations. |
| 236 |
type UnimplementedOsConfigServiceServer struct { |
| 237 |
} |
| 238 |
|
| 239 |
func (UnimplementedOsConfigServiceServer) ExecutePatchJob(context.Context, *ExecutePatchJobRequest) (*PatchJob, error) { |
| 240 |
return nil, status.Errorf(codes.Unimplemented, "method ExecutePatchJob not implemented") |
| 241 |
} |
| 242 |
func (UnimplementedOsConfigServiceServer) GetPatchJob(context.Context, *GetPatchJobRequest) (*PatchJob, error) { |
| 243 |
return nil, status.Errorf(codes.Unimplemented, "method GetPatchJob not implemented") |
| 244 |
} |
| 245 |
func (UnimplementedOsConfigServiceServer) CancelPatchJob(context.Context, *CancelPatchJobRequest) (*PatchJob, error) { |
| 246 |
return nil, status.Errorf(codes.Unimplemented, "method CancelPatchJob not implemented") |
| 247 |
} |
| 248 |
func (UnimplementedOsConfigServiceServer) ListPatchJobs(context.Context, *ListPatchJobsRequest) (*ListPatchJobsResponse, error) { |
| 249 |
return nil, status.Errorf(codes.Unimplemented, "method ListPatchJobs not implemented") |
| 250 |
} |
| 251 |
func (UnimplementedOsConfigServiceServer) ListPatchJobInstanceDetails(context.Context, *ListPatchJobInstanceDetailsRequest) (*ListPatchJobInstanceDetailsResponse, error) { |
| 252 |
return nil, status.Errorf(codes.Unimplemented, "method ListPatchJobInstanceDetails not implemented") |
| 253 |
} |
| 254 |
func (UnimplementedOsConfigServiceServer) CreatePatchDeployment(context.Context, *CreatePatchDeploymentRequest) (*PatchDeployment, error) { |
| 255 |
return nil, status.Errorf(codes.Unimplemented, "method CreatePatchDeployment not implemented") |
| 256 |
} |
| 257 |
func (UnimplementedOsConfigServiceServer) GetPatchDeployment(context.Context, *GetPatchDeploymentRequest) (*PatchDeployment, error) { |
| 258 |
return nil, status.Errorf(codes.Unimplemented, "method GetPatchDeployment not implemented") |
| 259 |
} |
| 260 |
func (UnimplementedOsConfigServiceServer) ListPatchDeployments(context.Context, *ListPatchDeploymentsRequest) (*ListPatchDeploymentsResponse, error) { |
| 261 |
return nil, status.Errorf(codes.Unimplemented, "method ListPatchDeployments not implemented") |
| 262 |
} |
| 263 |
func (UnimplementedOsConfigServiceServer) DeletePatchDeployment(context.Context, *DeletePatchDeploymentRequest) (*emptypb.Empty, error) { |
| 264 |
return nil, status.Errorf(codes.Unimplemented, "method DeletePatchDeployment not implemented") |
| 265 |
} |
| 266 |
func (UnimplementedOsConfigServiceServer) UpdatePatchDeployment(context.Context, *UpdatePatchDeploymentRequest) (*PatchDeployment, error) { |
| 267 |
return nil, status.Errorf(codes.Unimplemented, "method UpdatePatchDeployment not implemented") |
| 268 |
} |
| 269 |
func (UnimplementedOsConfigServiceServer) PausePatchDeployment(context.Context, *PausePatchDeploymentRequest) (*PatchDeployment, error) { |
| 270 |
return nil, status.Errorf(codes.Unimplemented, "method PausePatchDeployment not implemented") |
| 271 |
} |
| 272 |
func (UnimplementedOsConfigServiceServer) ResumePatchDeployment(context.Context, *ResumePatchDeploymentRequest) (*PatchDeployment, error) { |
| 273 |
return nil, status.Errorf(codes.Unimplemented, "method ResumePatchDeployment not implemented") |
| 274 |
} |
| 275 |
|
| 276 |
// UnsafeOsConfigServiceServer may be embedded to opt out of forward compatibility for this service. |
| 277 |
// Use of this interface is not recommended, as added methods to OsConfigServiceServer will |
| 278 |
// result in compilation errors. |
| 279 |
type UnsafeOsConfigServiceServer interface { |
| 280 |
mustEmbedUnimplementedOsConfigServiceServer() |
| 281 |
} |
| 282 |
|
| 283 |
func RegisterOsConfigServiceServer(s grpc.ServiceRegistrar, srv OsConfigServiceServer) { |
| 284 |
s.RegisterService(&OsConfigService_ServiceDesc, srv) |
| 285 |
} |
| 286 |
|
| 287 |
func _OsConfigService_ExecutePatchJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 288 |
in := new(ExecutePatchJobRequest) |
| 289 |
if err := dec(in); err != nil { |
| 290 |
return nil, err |
| 291 |
} |
| 292 |
if interceptor == nil { |
| 293 |
return srv.(OsConfigServiceServer).ExecutePatchJob(ctx, in) |
| 294 |
} |
| 295 |
info := &grpc.UnaryServerInfo{ |
| 296 |
Server: srv, |
| 297 |
FullMethod: OsConfigService_ExecutePatchJob_FullMethodName, |
| 298 |
} |
| 299 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 300 |
return srv.(OsConfigServiceServer).ExecutePatchJob(ctx, req.(*ExecutePatchJobRequest)) |
| 301 |
} |
| 302 |
return interceptor(ctx, in, info, handler) |
| 303 |
} |
| 304 |
|
| 305 |
func _OsConfigService_GetPatchJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 306 |
in := new(GetPatchJobRequest) |
| 307 |
if err := dec(in); err != nil { |
| 308 |
return nil, err |
| 309 |
} |
| 310 |
if interceptor == nil { |
| 311 |
return srv.(OsConfigServiceServer).GetPatchJob(ctx, in) |
| 312 |
} |
| 313 |
info := &grpc.UnaryServerInfo{ |
| 314 |
Server: srv, |
| 315 |
FullMethod: OsConfigService_GetPatchJob_FullMethodName, |
| 316 |
} |
| 317 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 318 |
return srv.(OsConfigServiceServer).GetPatchJob(ctx, req.(*GetPatchJobRequest)) |
| 319 |
} |
| 320 |
return interceptor(ctx, in, info, handler) |
| 321 |
} |
| 322 |
|
| 323 |
func _OsConfigService_CancelPatchJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 324 |
in := new(CancelPatchJobRequest) |
| 325 |
if err := dec(in); err != nil { |
| 326 |
return nil, err |
| 327 |
} |
| 328 |
if interceptor == nil { |
| 329 |
return srv.(OsConfigServiceServer).CancelPatchJob(ctx, in) |
| 330 |
} |
| 331 |
info := &grpc.UnaryServerInfo{ |
| 332 |
Server: srv, |
| 333 |
FullMethod: OsConfigService_CancelPatchJob_FullMethodName, |
| 334 |
} |
| 335 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 336 |
return srv.(OsConfigServiceServer).CancelPatchJob(ctx, req.(*CancelPatchJobRequest)) |
| 337 |
} |
| 338 |
return interceptor(ctx, in, info, handler) |
| 339 |
} |
| 340 |
|
| 341 |
func _OsConfigService_ListPatchJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 342 |
in := new(ListPatchJobsRequest) |
| 343 |
if err := dec(in); err != nil { |
| 344 |
return nil, err |
| 345 |
} |
| 346 |
if interceptor == nil { |
| 347 |
return srv.(OsConfigServiceServer).ListPatchJobs(ctx, in) |
| 348 |
} |
| 349 |
info := &grpc.UnaryServerInfo{ |
| 350 |
Server: srv, |
| 351 |
FullMethod: OsConfigService_ListPatchJobs_FullMethodName, |
| 352 |
} |
| 353 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 354 |
return srv.(OsConfigServiceServer).ListPatchJobs(ctx, req.(*ListPatchJobsRequest)) |
| 355 |
} |
| 356 |
return interceptor(ctx, in, info, handler) |
| 357 |
} |
| 358 |
|
| 359 |
func _OsConfigService_ListPatchJobInstanceDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 360 |
in := new(ListPatchJobInstanceDetailsRequest) |
| 361 |
if err := dec(in); err != nil { |
| 362 |
return nil, err |
| 363 |
} |
| 364 |
if interceptor == nil { |
| 365 |
return srv.(OsConfigServiceServer).ListPatchJobInstanceDetails(ctx, in) |
| 366 |
} |
| 367 |
info := &grpc.UnaryServerInfo{ |
| 368 |
Server: srv, |
| 369 |
FullMethod: OsConfigService_ListPatchJobInstanceDetails_FullMethodName, |
| 370 |
} |
| 371 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 372 |
return srv.(OsConfigServiceServer).ListPatchJobInstanceDetails(ctx, req.(*ListPatchJobInstanceDetailsRequest)) |
| 373 |
} |
| 374 |
return interceptor(ctx, in, info, handler) |
| 375 |
} |
| 376 |
|
| 377 |
func _OsConfigService_CreatePatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 378 |
in := new(CreatePatchDeploymentRequest) |
| 379 |
if err := dec(in); err != nil { |
| 380 |
return nil, err |
| 381 |
} |
| 382 |
if interceptor == nil { |
| 383 |
return srv.(OsConfigServiceServer).CreatePatchDeployment(ctx, in) |
| 384 |
} |
| 385 |
info := &grpc.UnaryServerInfo{ |
| 386 |
Server: srv, |
| 387 |
FullMethod: OsConfigService_CreatePatchDeployment_FullMethodName, |
| 388 |
} |
| 389 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 390 |
return srv.(OsConfigServiceServer).CreatePatchDeployment(ctx, req.(*CreatePatchDeploymentRequest)) |
| 391 |
} |
| 392 |
return interceptor(ctx, in, info, handler) |
| 393 |
} |
| 394 |
|
| 395 |
func _OsConfigService_GetPatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 396 |
in := new(GetPatchDeploymentRequest) |
| 397 |
if err := dec(in); err != nil { |
| 398 |
return nil, err |
| 399 |
} |
| 400 |
if interceptor == nil { |
| 401 |
return srv.(OsConfigServiceServer).GetPatchDeployment(ctx, in) |
| 402 |
} |
| 403 |
info := &grpc.UnaryServerInfo{ |
| 404 |
Server: srv, |
| 405 |
FullMethod: OsConfigService_GetPatchDeployment_FullMethodName, |
| 406 |
} |
| 407 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 408 |
return srv.(OsConfigServiceServer).GetPatchDeployment(ctx, req.(*GetPatchDeploymentRequest)) |
| 409 |
} |
| 410 |
return interceptor(ctx, in, info, handler) |
| 411 |
} |
| 412 |
|
| 413 |
func _OsConfigService_ListPatchDeployments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 414 |
in := new(ListPatchDeploymentsRequest) |
| 415 |
if err := dec(in); err != nil { |
| 416 |
return nil, err |
| 417 |
} |
| 418 |
if interceptor == nil { |
| 419 |
return srv.(OsConfigServiceServer).ListPatchDeployments(ctx, in) |
| 420 |
} |
| 421 |
info := &grpc.UnaryServerInfo{ |
| 422 |
Server: srv, |
| 423 |
FullMethod: OsConfigService_ListPatchDeployments_FullMethodName, |
| 424 |
} |
| 425 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 426 |
return srv.(OsConfigServiceServer).ListPatchDeployments(ctx, req.(*ListPatchDeploymentsRequest)) |
| 427 |
} |
| 428 |
return interceptor(ctx, in, info, handler) |
| 429 |
} |
| 430 |
|
| 431 |
func _OsConfigService_DeletePatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 432 |
in := new(DeletePatchDeploymentRequest) |
| 433 |
if err := dec(in); err != nil { |
| 434 |
return nil, err |
| 435 |
} |
| 436 |
if interceptor == nil { |
| 437 |
return srv.(OsConfigServiceServer).DeletePatchDeployment(ctx, in) |
| 438 |
} |
| 439 |
info := &grpc.UnaryServerInfo{ |
| 440 |
Server: srv, |
| 441 |
FullMethod: OsConfigService_DeletePatchDeployment_FullMethodName, |
| 442 |
} |
| 443 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 444 |
return srv.(OsConfigServiceServer).DeletePatchDeployment(ctx, req.(*DeletePatchDeploymentRequest)) |
| 445 |
} |
| 446 |
return interceptor(ctx, in, info, handler) |
| 447 |
} |
| 448 |
|
| 449 |
func _OsConfigService_UpdatePatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 450 |
in := new(UpdatePatchDeploymentRequest) |
| 451 |
if err := dec(in); err != nil { |
| 452 |
return nil, err |
| 453 |
} |
| 454 |
if interceptor == nil { |
| 455 |
return srv.(OsConfigServiceServer).UpdatePatchDeployment(ctx, in) |
| 456 |
} |
| 457 |
info := &grpc.UnaryServerInfo{ |
| 458 |
Server: srv, |
| 459 |
FullMethod: OsConfigService_UpdatePatchDeployment_FullMethodName, |
| 460 |
} |
| 461 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 462 |
return srv.(OsConfigServiceServer).UpdatePatchDeployment(ctx, req.(*UpdatePatchDeploymentRequest)) |
| 463 |
} |
| 464 |
return interceptor(ctx, in, info, handler) |
| 465 |
} |
| 466 |
|
| 467 |
func _OsConfigService_PausePatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 468 |
in := new(PausePatchDeploymentRequest) |
| 469 |
if err := dec(in); err != nil { |
| 470 |
return nil, err |
| 471 |
} |
| 472 |
if interceptor == nil { |
| 473 |
return srv.(OsConfigServiceServer).PausePatchDeployment(ctx, in) |
| 474 |
} |
| 475 |
info := &grpc.UnaryServerInfo{ |
| 476 |
Server: srv, |
| 477 |
FullMethod: OsConfigService_PausePatchDeployment_FullMethodName, |
| 478 |
} |
| 479 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 480 |
return srv.(OsConfigServiceServer).PausePatchDeployment(ctx, req.(*PausePatchDeploymentRequest)) |
| 481 |
} |
| 482 |
return interceptor(ctx, in, info, handler) |
| 483 |
} |
| 484 |
|
| 485 |
func _OsConfigService_ResumePatchDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 486 |
in := new(ResumePatchDeploymentRequest) |
| 487 |
if err := dec(in); err != nil { |
| 488 |
return nil, err |
| 489 |
} |
| 490 |
if interceptor == nil { |
| 491 |
return srv.(OsConfigServiceServer).ResumePatchDeployment(ctx, in) |
| 492 |
} |
| 493 |
info := &grpc.UnaryServerInfo{ |
| 494 |
Server: srv, |
| 495 |
FullMethod: OsConfigService_ResumePatchDeployment_FullMethodName, |
| 496 |
} |
| 497 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 498 |
return srv.(OsConfigServiceServer).ResumePatchDeployment(ctx, req.(*ResumePatchDeploymentRequest)) |
| 499 |
} |
| 500 |
return interceptor(ctx, in, info, handler) |
| 501 |
} |
| 502 |
|
| 503 |
// OsConfigService_ServiceDesc is the grpc.ServiceDesc for OsConfigService service. |
| 504 |
// It's only intended for direct use with grpc.RegisterService, |
| 505 |
// and not to be introspected or modified (even as a copy) |
| 506 |
var OsConfigService_ServiceDesc = grpc.ServiceDesc{ |
| 507 |
ServiceName: "google.cloud.osconfig.v1.OsConfigService", |
| 508 |
HandlerType: (*OsConfigServiceServer)(nil), |
| 509 |
Methods: []grpc.MethodDesc{ |
| 510 |
{ |
| 511 |
MethodName: "ExecutePatchJob", |
| 512 |
Handler: _OsConfigService_ExecutePatchJob_Handler, |
| 513 |
}, |
| 514 |
{ |
| 515 |
MethodName: "GetPatchJob", |
| 516 |
Handler: _OsConfigService_GetPatchJob_Handler, |
| 517 |
}, |
| 518 |
{ |
| 519 |
MethodName: "CancelPatchJob", |
| 520 |
Handler: _OsConfigService_CancelPatchJob_Handler, |
| 521 |
}, |
| 522 |
{ |
| 523 |
MethodName: "ListPatchJobs", |
| 524 |
Handler: _OsConfigService_ListPatchJobs_Handler, |
| 525 |
}, |
| 526 |
{ |
| 527 |
MethodName: "ListPatchJobInstanceDetails", |
| 528 |
Handler: _OsConfigService_ListPatchJobInstanceDetails_Handler, |
| 529 |
}, |
| 530 |
{ |
| 531 |
MethodName: "CreatePatchDeployment", |
| 532 |
Handler: _OsConfigService_CreatePatchDeployment_Handler, |
| 533 |
}, |
| 534 |
{ |
| 535 |
MethodName: "GetPatchDeployment", |
| 536 |
Handler: _OsConfigService_GetPatchDeployment_Handler, |
| 537 |
}, |
| 538 |
{ |
| 539 |
MethodName: "ListPatchDeployments", |
| 540 |
Handler: _OsConfigService_ListPatchDeployments_Handler, |
| 541 |
}, |
| 542 |
{ |
| 543 |
MethodName: "DeletePatchDeployment", |
| 544 |
Handler: _OsConfigService_DeletePatchDeployment_Handler, |
| 545 |
}, |
| 546 |
{ |
| 547 |
MethodName: "UpdatePatchDeployment", |
| 548 |
Handler: _OsConfigService_UpdatePatchDeployment_Handler, |
| 549 |
}, |
| 550 |
{ |
| 551 |
MethodName: "PausePatchDeployment", |
| 552 |
Handler: _OsConfigService_PausePatchDeployment_Handler, |
| 553 |
}, |
| 554 |
{ |
| 555 |
MethodName: "ResumePatchDeployment", |
| 556 |
Handler: _OsConfigService_ResumePatchDeployment_Handler, |
| 557 |
}, |
| 558 |
}, |
| 559 |
Streams: []grpc.StreamDesc{}, |
| 560 |
Metadata: "google/cloud/osconfig/v1/osconfig_service.proto", |
| 561 |
} |