| 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/functions/v1/functions.proto |
| 20 |
|
| 21 |
package functionspb |
| 22 |
|
| 23 |
import ( |
| 24 |
iampb "cloud.google.com/go/iam/apiv1/iampb" |
| 25 |
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" |
| 26 |
context "context" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
codes "google.golang.org/grpc/codes" |
| 29 |
status "google.golang.org/grpc/status" |
| 30 |
) |
| 31 |
|
| 32 |
// This is a compile-time assertion to ensure that this generated file |
| 33 |
// is compatible with the grpc package it is being compiled against. |
| 34 |
// Requires gRPC-Go v1.32.0 or later. |
| 35 |
const _ = grpc.SupportPackageIsVersion7 |
| 36 |
|
| 37 |
const ( |
| 38 |
CloudFunctionsService_ListFunctions_FullMethodName = "/google.cloud.functions.v1.CloudFunctionsService/ListFunctions" |
| 39 |
CloudFunctionsService_GetFunction_FullMethodName = "/google.cloud.functions.v1.CloudFunctionsService/GetFunction" |
| 40 |
CloudFunctionsService_CreateFunction_FullMethodName = "/google.cloud.functions.v1.CloudFunctionsService/CreateFunction" |
| 41 |
CloudFunctionsService_UpdateFunction_FullMethodName = "/google.cloud.functions.v1.CloudFunctionsService/UpdateFunction" |
| 42 |
CloudFunctionsService_DeleteFunction_FullMethodName = "/google.cloud.functions.v1.CloudFunctionsService/DeleteFunction" |
| 43 |
CloudFunctionsService_CallFunction_FullMethodName = "/google.cloud.functions.v1.CloudFunctionsService/CallFunction" |
| 44 |
CloudFunctionsService_GenerateUploadUrl_FullMethodName = "/google.cloud.functions.v1.CloudFunctionsService/GenerateUploadUrl" |
| 45 |
CloudFunctionsService_GenerateDownloadUrl_FullMethodName = "/google.cloud.functions.v1.CloudFunctionsService/GenerateDownloadUrl" |
| 46 |
CloudFunctionsService_SetIamPolicy_FullMethodName = "/google.cloud.functions.v1.CloudFunctionsService/SetIamPolicy" |
| 47 |
CloudFunctionsService_GetIamPolicy_FullMethodName = "/google.cloud.functions.v1.CloudFunctionsService/GetIamPolicy" |
| 48 |
CloudFunctionsService_TestIamPermissions_FullMethodName = "/google.cloud.functions.v1.CloudFunctionsService/TestIamPermissions" |
| 49 |
) |
| 50 |
|
| 51 |
// CloudFunctionsServiceClient is the client API for CloudFunctionsService 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 CloudFunctionsServiceClient interface { |
| 55 |
// Returns a list of functions that belong to the requested project. |
| 56 |
ListFunctions(ctx context.Context, in *ListFunctionsRequest, opts ...grpc.CallOption) (*ListFunctionsResponse, error) |
| 57 |
// Returns a function with the given name from the requested project. |
| 58 |
GetFunction(ctx context.Context, in *GetFunctionRequest, opts ...grpc.CallOption) (*CloudFunction, error) |
| 59 |
// Creates a new function. If a function with the given name already exists in |
| 60 |
// the specified project, the long running operation will return |
| 61 |
// `ALREADY_EXISTS` error. |
| 62 |
CreateFunction(ctx context.Context, in *CreateFunctionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 63 |
// Updates existing function. |
| 64 |
UpdateFunction(ctx context.Context, in *UpdateFunctionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 65 |
// Deletes a function with the given name from the specified project. If the |
| 66 |
// given function is used by some trigger, the trigger will be updated to |
| 67 |
// remove this function. |
| 68 |
DeleteFunction(ctx context.Context, in *DeleteFunctionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 69 |
// Synchronously invokes a deployed Cloud Function. To be used for testing |
| 70 |
// purposes as very limited traffic is allowed. For more information on |
| 71 |
// the actual limits, refer to |
| 72 |
// [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits). |
| 73 |
CallFunction(ctx context.Context, in *CallFunctionRequest, opts ...grpc.CallOption) (*CallFunctionResponse, error) |
| 74 |
// Returns a signed URL for uploading a function source code. |
| 75 |
// For more information about the signed URL usage see: |
| 76 |
// https://cloud.google.com/storage/docs/access-control/signed-urls. |
| 77 |
// Once the function source code upload is complete, the used signed |
| 78 |
// URL should be provided in CreateFunction or UpdateFunction request |
| 79 |
// as a reference to the function source code. |
| 80 |
// |
| 81 |
// When uploading source code to the generated signed URL, please follow |
| 82 |
// these restrictions: |
| 83 |
// |
| 84 |
// - Source file type should be a zip file. |
| 85 |
// - Source file size should not exceed 100MB limit. |
| 86 |
// - No credentials should be attached - the signed URLs provide access to the |
| 87 |
// target bucket using internal service identity; if credentials were |
| 88 |
// attached, the identity from the credentials would be used, but that |
| 89 |
// identity does not have permissions to upload files to the URL. |
| 90 |
// |
| 91 |
// When making a HTTP PUT request, these two headers need to be specified: |
| 92 |
// |
| 93 |
// * `content-type: application/zip` |
| 94 |
// * `x-goog-content-length-range: 0,104857600` |
| 95 |
// |
| 96 |
// And this header SHOULD NOT be specified: |
| 97 |
// |
| 98 |
// * `Authorization: Bearer YOUR_TOKEN` |
| 99 |
GenerateUploadUrl(ctx context.Context, in *GenerateUploadUrlRequest, opts ...grpc.CallOption) (*GenerateUploadUrlResponse, error) |
| 100 |
// Returns a signed URL for downloading deployed function source code. |
| 101 |
// The URL is only valid for a limited period and should be used within |
| 102 |
// minutes after generation. |
| 103 |
// For more information about the signed URL usage see: |
| 104 |
// https://cloud.google.com/storage/docs/access-control/signed-urls |
| 105 |
GenerateDownloadUrl(ctx context.Context, in *GenerateDownloadUrlRequest, opts ...grpc.CallOption) (*GenerateDownloadUrlResponse, error) |
| 106 |
// Sets the IAM access control policy on the specified function. |
| 107 |
// Replaces any existing policy. |
| 108 |
SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error) |
| 109 |
// Gets the IAM access control policy for a function. |
| 110 |
// Returns an empty policy if the function exists and does not have a policy |
| 111 |
// set. |
| 112 |
GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error) |
| 113 |
// Tests the specified permissions against the IAM access control policy |
| 114 |
// for a function. |
| 115 |
// If the function does not exist, this will return an empty set of |
| 116 |
// permissions, not a NOT_FOUND error. |
| 117 |
TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error) |
| 118 |
} |
| 119 |
|
| 120 |
type cloudFunctionsServiceClient struct { |
| 121 |
cc grpc.ClientConnInterface |
| 122 |
} |
| 123 |
|
| 124 |
func NewCloudFunctionsServiceClient(cc grpc.ClientConnInterface) CloudFunctionsServiceClient { |
| 125 |
return &cloudFunctionsServiceClient{cc} |
| 126 |
} |
| 127 |
|
| 128 |
func (c *cloudFunctionsServiceClient) ListFunctions(ctx context.Context, in *ListFunctionsRequest, opts ...grpc.CallOption) (*ListFunctionsResponse, error) { |
| 129 |
out := new(ListFunctionsResponse) |
| 130 |
err := c.cc.Invoke(ctx, CloudFunctionsService_ListFunctions_FullMethodName, in, out, opts...) |
| 131 |
if err != nil { |
| 132 |
return nil, err |
| 133 |
} |
| 134 |
return out, nil |
| 135 |
} |
| 136 |
|
| 137 |
func (c *cloudFunctionsServiceClient) GetFunction(ctx context.Context, in *GetFunctionRequest, opts ...grpc.CallOption) (*CloudFunction, error) { |
| 138 |
out := new(CloudFunction) |
| 139 |
err := c.cc.Invoke(ctx, CloudFunctionsService_GetFunction_FullMethodName, in, out, opts...) |
| 140 |
if err != nil { |
| 141 |
return nil, err |
| 142 |
} |
| 143 |
return out, nil |
| 144 |
} |
| 145 |
|
| 146 |
func (c *cloudFunctionsServiceClient) CreateFunction(ctx context.Context, in *CreateFunctionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 147 |
out := new(longrunningpb.Operation) |
| 148 |
err := c.cc.Invoke(ctx, CloudFunctionsService_CreateFunction_FullMethodName, in, out, opts...) |
| 149 |
if err != nil { |
| 150 |
return nil, err |
| 151 |
} |
| 152 |
return out, nil |
| 153 |
} |
| 154 |
|
| 155 |
func (c *cloudFunctionsServiceClient) UpdateFunction(ctx context.Context, in *UpdateFunctionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 156 |
out := new(longrunningpb.Operation) |
| 157 |
err := c.cc.Invoke(ctx, CloudFunctionsService_UpdateFunction_FullMethodName, in, out, opts...) |
| 158 |
if err != nil { |
| 159 |
return nil, err |
| 160 |
} |
| 161 |
return out, nil |
| 162 |
} |
| 163 |
|
| 164 |
func (c *cloudFunctionsServiceClient) DeleteFunction(ctx context.Context, in *DeleteFunctionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 165 |
out := new(longrunningpb.Operation) |
| 166 |
err := c.cc.Invoke(ctx, CloudFunctionsService_DeleteFunction_FullMethodName, in, out, opts...) |
| 167 |
if err != nil { |
| 168 |
return nil, err |
| 169 |
} |
| 170 |
return out, nil |
| 171 |
} |
| 172 |
|
| 173 |
func (c *cloudFunctionsServiceClient) CallFunction(ctx context.Context, in *CallFunctionRequest, opts ...grpc.CallOption) (*CallFunctionResponse, error) { |
| 174 |
out := new(CallFunctionResponse) |
| 175 |
err := c.cc.Invoke(ctx, CloudFunctionsService_CallFunction_FullMethodName, in, out, opts...) |
| 176 |
if err != nil { |
| 177 |
return nil, err |
| 178 |
} |
| 179 |
return out, nil |
| 180 |
} |
| 181 |
|
| 182 |
func (c *cloudFunctionsServiceClient) GenerateUploadUrl(ctx context.Context, in *GenerateUploadUrlRequest, opts ...grpc.CallOption) (*GenerateUploadUrlResponse, error) { |
| 183 |
out := new(GenerateUploadUrlResponse) |
| 184 |
err := c.cc.Invoke(ctx, CloudFunctionsService_GenerateUploadUrl_FullMethodName, in, out, opts...) |
| 185 |
if err != nil { |
| 186 |
return nil, err |
| 187 |
} |
| 188 |
return out, nil |
| 189 |
} |
| 190 |
|
| 191 |
func (c *cloudFunctionsServiceClient) GenerateDownloadUrl(ctx context.Context, in *GenerateDownloadUrlRequest, opts ...grpc.CallOption) (*GenerateDownloadUrlResponse, error) { |
| 192 |
out := new(GenerateDownloadUrlResponse) |
| 193 |
err := c.cc.Invoke(ctx, CloudFunctionsService_GenerateDownloadUrl_FullMethodName, in, out, opts...) |
| 194 |
if err != nil { |
| 195 |
return nil, err |
| 196 |
} |
| 197 |
return out, nil |
| 198 |
} |
| 199 |
|
| 200 |
func (c *cloudFunctionsServiceClient) SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error) { |
| 201 |
out := new(iampb.Policy) |
| 202 |
err := c.cc.Invoke(ctx, CloudFunctionsService_SetIamPolicy_FullMethodName, in, out, opts...) |
| 203 |
if err != nil { |
| 204 |
return nil, err |
| 205 |
} |
| 206 |
return out, nil |
| 207 |
} |
| 208 |
|
| 209 |
func (c *cloudFunctionsServiceClient) GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error) { |
| 210 |
out := new(iampb.Policy) |
| 211 |
err := c.cc.Invoke(ctx, CloudFunctionsService_GetIamPolicy_FullMethodName, in, out, opts...) |
| 212 |
if err != nil { |
| 213 |
return nil, err |
| 214 |
} |
| 215 |
return out, nil |
| 216 |
} |
| 217 |
|
| 218 |
func (c *cloudFunctionsServiceClient) TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error) { |
| 219 |
out := new(iampb.TestIamPermissionsResponse) |
| 220 |
err := c.cc.Invoke(ctx, CloudFunctionsService_TestIamPermissions_FullMethodName, in, out, opts...) |
| 221 |
if err != nil { |
| 222 |
return nil, err |
| 223 |
} |
| 224 |
return out, nil |
| 225 |
} |
| 226 |
|
| 227 |
// CloudFunctionsServiceServer is the server API for CloudFunctionsService service. |
| 228 |
// All implementations should embed UnimplementedCloudFunctionsServiceServer |
| 229 |
// for forward compatibility |
| 230 |
type CloudFunctionsServiceServer interface { |
| 231 |
// Returns a list of functions that belong to the requested project. |
| 232 |
ListFunctions(context.Context, *ListFunctionsRequest) (*ListFunctionsResponse, error) |
| 233 |
// Returns a function with the given name from the requested project. |
| 234 |
GetFunction(context.Context, *GetFunctionRequest) (*CloudFunction, error) |
| 235 |
// Creates a new function. If a function with the given name already exists in |
| 236 |
// the specified project, the long running operation will return |
| 237 |
// `ALREADY_EXISTS` error. |
| 238 |
CreateFunction(context.Context, *CreateFunctionRequest) (*longrunningpb.Operation, error) |
| 239 |
// Updates existing function. |
| 240 |
UpdateFunction(context.Context, *UpdateFunctionRequest) (*longrunningpb.Operation, error) |
| 241 |
// Deletes a function with the given name from the specified project. If the |
| 242 |
// given function is used by some trigger, the trigger will be updated to |
| 243 |
// remove this function. |
| 244 |
DeleteFunction(context.Context, *DeleteFunctionRequest) (*longrunningpb.Operation, error) |
| 245 |
// Synchronously invokes a deployed Cloud Function. To be used for testing |
| 246 |
// purposes as very limited traffic is allowed. For more information on |
| 247 |
// the actual limits, refer to |
| 248 |
// [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits). |
| 249 |
CallFunction(context.Context, *CallFunctionRequest) (*CallFunctionResponse, error) |
| 250 |
// Returns a signed URL for uploading a function source code. |
| 251 |
// For more information about the signed URL usage see: |
| 252 |
// https://cloud.google.com/storage/docs/access-control/signed-urls. |
| 253 |
// Once the function source code upload is complete, the used signed |
| 254 |
// URL should be provided in CreateFunction or UpdateFunction request |
| 255 |
// as a reference to the function source code. |
| 256 |
// |
| 257 |
// When uploading source code to the generated signed URL, please follow |
| 258 |
// these restrictions: |
| 259 |
// |
| 260 |
// - Source file type should be a zip file. |
| 261 |
// - Source file size should not exceed 100MB limit. |
| 262 |
// - No credentials should be attached - the signed URLs provide access to the |
| 263 |
// target bucket using internal service identity; if credentials were |
| 264 |
// attached, the identity from the credentials would be used, but that |
| 265 |
// identity does not have permissions to upload files to the URL. |
| 266 |
// |
| 267 |
// When making a HTTP PUT request, these two headers need to be specified: |
| 268 |
// |
| 269 |
// * `content-type: application/zip` |
| 270 |
// * `x-goog-content-length-range: 0,104857600` |
| 271 |
// |
| 272 |
// And this header SHOULD NOT be specified: |
| 273 |
// |
| 274 |
// * `Authorization: Bearer YOUR_TOKEN` |
| 275 |
GenerateUploadUrl(context.Context, *GenerateUploadUrlRequest) (*GenerateUploadUrlResponse, error) |
| 276 |
// Returns a signed URL for downloading deployed function source code. |
| 277 |
// The URL is only valid for a limited period and should be used within |
| 278 |
// minutes after generation. |
| 279 |
// For more information about the signed URL usage see: |
| 280 |
// https://cloud.google.com/storage/docs/access-control/signed-urls |
| 281 |
GenerateDownloadUrl(context.Context, *GenerateDownloadUrlRequest) (*GenerateDownloadUrlResponse, error) |
| 282 |
// Sets the IAM access control policy on the specified function. |
| 283 |
// Replaces any existing policy. |
| 284 |
SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error) |
| 285 |
// Gets the IAM access control policy for a function. |
| 286 |
// Returns an empty policy if the function exists and does not have a policy |
| 287 |
// set. |
| 288 |
GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error) |
| 289 |
// Tests the specified permissions against the IAM access control policy |
| 290 |
// for a function. |
| 291 |
// If the function does not exist, this will return an empty set of |
| 292 |
// permissions, not a NOT_FOUND error. |
| 293 |
TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error) |
| 294 |
} |
| 295 |
|
| 296 |
// UnimplementedCloudFunctionsServiceServer should be embedded to have forward compatible implementations. |
| 297 |
type UnimplementedCloudFunctionsServiceServer struct { |
| 298 |
} |
| 299 |
|
| 300 |
func (UnimplementedCloudFunctionsServiceServer) ListFunctions(context.Context, *ListFunctionsRequest) (*ListFunctionsResponse, error) { |
| 301 |
return nil, status.Errorf(codes.Unimplemented, "method ListFunctions not implemented") |
| 302 |
} |
| 303 |
func (UnimplementedCloudFunctionsServiceServer) GetFunction(context.Context, *GetFunctionRequest) (*CloudFunction, error) { |
| 304 |
return nil, status.Errorf(codes.Unimplemented, "method GetFunction not implemented") |
| 305 |
} |
| 306 |
func (UnimplementedCloudFunctionsServiceServer) CreateFunction(context.Context, *CreateFunctionRequest) (*longrunningpb.Operation, error) { |
| 307 |
return nil, status.Errorf(codes.Unimplemented, "method CreateFunction not implemented") |
| 308 |
} |
| 309 |
func (UnimplementedCloudFunctionsServiceServer) UpdateFunction(context.Context, *UpdateFunctionRequest) (*longrunningpb.Operation, error) { |
| 310 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateFunction not implemented") |
| 311 |
} |
| 312 |
func (UnimplementedCloudFunctionsServiceServer) DeleteFunction(context.Context, *DeleteFunctionRequest) (*longrunningpb.Operation, error) { |
| 313 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteFunction not implemented") |
| 314 |
} |
| 315 |
func (UnimplementedCloudFunctionsServiceServer) CallFunction(context.Context, *CallFunctionRequest) (*CallFunctionResponse, error) { |
| 316 |
return nil, status.Errorf(codes.Unimplemented, "method CallFunction not implemented") |
| 317 |
} |
| 318 |
func (UnimplementedCloudFunctionsServiceServer) GenerateUploadUrl(context.Context, *GenerateUploadUrlRequest) (*GenerateUploadUrlResponse, error) { |
| 319 |
return nil, status.Errorf(codes.Unimplemented, "method GenerateUploadUrl not implemented") |
| 320 |
} |
| 321 |
func (UnimplementedCloudFunctionsServiceServer) GenerateDownloadUrl(context.Context, *GenerateDownloadUrlRequest) (*GenerateDownloadUrlResponse, error) { |
| 322 |
return nil, status.Errorf(codes.Unimplemented, "method GenerateDownloadUrl not implemented") |
| 323 |
} |
| 324 |
func (UnimplementedCloudFunctionsServiceServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error) { |
| 325 |
return nil, status.Errorf(codes.Unimplemented, "method SetIamPolicy not implemented") |
| 326 |
} |
| 327 |
func (UnimplementedCloudFunctionsServiceServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error) { |
| 328 |
return nil, status.Errorf(codes.Unimplemented, "method GetIamPolicy not implemented") |
| 329 |
} |
| 330 |
func (UnimplementedCloudFunctionsServiceServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error) { |
| 331 |
return nil, status.Errorf(codes.Unimplemented, "method TestIamPermissions not implemented") |
| 332 |
} |
| 333 |
|
| 334 |
// UnsafeCloudFunctionsServiceServer may be embedded to opt out of forward compatibility for this service. |
| 335 |
// Use of this interface is not recommended, as added methods to CloudFunctionsServiceServer will |
| 336 |
// result in compilation errors. |
| 337 |
type UnsafeCloudFunctionsServiceServer interface { |
| 338 |
mustEmbedUnimplementedCloudFunctionsServiceServer() |
| 339 |
} |
| 340 |
|
| 341 |
func RegisterCloudFunctionsServiceServer(s grpc.ServiceRegistrar, srv CloudFunctionsServiceServer) { |
| 342 |
s.RegisterService(&CloudFunctionsService_ServiceDesc, srv) |
| 343 |
} |
| 344 |
|
| 345 |
func _CloudFunctionsService_ListFunctions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 346 |
in := new(ListFunctionsRequest) |
| 347 |
if err := dec(in); err != nil { |
| 348 |
return nil, err |
| 349 |
} |
| 350 |
if interceptor == nil { |
| 351 |
return srv.(CloudFunctionsServiceServer).ListFunctions(ctx, in) |
| 352 |
} |
| 353 |
info := &grpc.UnaryServerInfo{ |
| 354 |
Server: srv, |
| 355 |
FullMethod: CloudFunctionsService_ListFunctions_FullMethodName, |
| 356 |
} |
| 357 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 358 |
return srv.(CloudFunctionsServiceServer).ListFunctions(ctx, req.(*ListFunctionsRequest)) |
| 359 |
} |
| 360 |
return interceptor(ctx, in, info, handler) |
| 361 |
} |
| 362 |
|
| 363 |
func _CloudFunctionsService_GetFunction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 364 |
in := new(GetFunctionRequest) |
| 365 |
if err := dec(in); err != nil { |
| 366 |
return nil, err |
| 367 |
} |
| 368 |
if interceptor == nil { |
| 369 |
return srv.(CloudFunctionsServiceServer).GetFunction(ctx, in) |
| 370 |
} |
| 371 |
info := &grpc.UnaryServerInfo{ |
| 372 |
Server: srv, |
| 373 |
FullMethod: CloudFunctionsService_GetFunction_FullMethodName, |
| 374 |
} |
| 375 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 376 |
return srv.(CloudFunctionsServiceServer).GetFunction(ctx, req.(*GetFunctionRequest)) |
| 377 |
} |
| 378 |
return interceptor(ctx, in, info, handler) |
| 379 |
} |
| 380 |
|
| 381 |
func _CloudFunctionsService_CreateFunction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 382 |
in := new(CreateFunctionRequest) |
| 383 |
if err := dec(in); err != nil { |
| 384 |
return nil, err |
| 385 |
} |
| 386 |
if interceptor == nil { |
| 387 |
return srv.(CloudFunctionsServiceServer).CreateFunction(ctx, in) |
| 388 |
} |
| 389 |
info := &grpc.UnaryServerInfo{ |
| 390 |
Server: srv, |
| 391 |
FullMethod: CloudFunctionsService_CreateFunction_FullMethodName, |
| 392 |
} |
| 393 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 394 |
return srv.(CloudFunctionsServiceServer).CreateFunction(ctx, req.(*CreateFunctionRequest)) |
| 395 |
} |
| 396 |
return interceptor(ctx, in, info, handler) |
| 397 |
} |
| 398 |
|
| 399 |
func _CloudFunctionsService_UpdateFunction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 400 |
in := new(UpdateFunctionRequest) |
| 401 |
if err := dec(in); err != nil { |
| 402 |
return nil, err |
| 403 |
} |
| 404 |
if interceptor == nil { |
| 405 |
return srv.(CloudFunctionsServiceServer).UpdateFunction(ctx, in) |
| 406 |
} |
| 407 |
info := &grpc.UnaryServerInfo{ |
| 408 |
Server: srv, |
| 409 |
FullMethod: CloudFunctionsService_UpdateFunction_FullMethodName, |
| 410 |
} |
| 411 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 412 |
return srv.(CloudFunctionsServiceServer).UpdateFunction(ctx, req.(*UpdateFunctionRequest)) |
| 413 |
} |
| 414 |
return interceptor(ctx, in, info, handler) |
| 415 |
} |
| 416 |
|
| 417 |
func _CloudFunctionsService_DeleteFunction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 418 |
in := new(DeleteFunctionRequest) |
| 419 |
if err := dec(in); err != nil { |
| 420 |
return nil, err |
| 421 |
} |
| 422 |
if interceptor == nil { |
| 423 |
return srv.(CloudFunctionsServiceServer).DeleteFunction(ctx, in) |
| 424 |
} |
| 425 |
info := &grpc.UnaryServerInfo{ |
| 426 |
Server: srv, |
| 427 |
FullMethod: CloudFunctionsService_DeleteFunction_FullMethodName, |
| 428 |
} |
| 429 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 430 |
return srv.(CloudFunctionsServiceServer).DeleteFunction(ctx, req.(*DeleteFunctionRequest)) |
| 431 |
} |
| 432 |
return interceptor(ctx, in, info, handler) |
| 433 |
} |
| 434 |
|
| 435 |
func _CloudFunctionsService_CallFunction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 436 |
in := new(CallFunctionRequest) |
| 437 |
if err := dec(in); err != nil { |
| 438 |
return nil, err |
| 439 |
} |
| 440 |
if interceptor == nil { |
| 441 |
return srv.(CloudFunctionsServiceServer).CallFunction(ctx, in) |
| 442 |
} |
| 443 |
info := &grpc.UnaryServerInfo{ |
| 444 |
Server: srv, |
| 445 |
FullMethod: CloudFunctionsService_CallFunction_FullMethodName, |
| 446 |
} |
| 447 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 448 |
return srv.(CloudFunctionsServiceServer).CallFunction(ctx, req.(*CallFunctionRequest)) |
| 449 |
} |
| 450 |
return interceptor(ctx, in, info, handler) |
| 451 |
} |
| 452 |
|
| 453 |
func _CloudFunctionsService_GenerateUploadUrl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 454 |
in := new(GenerateUploadUrlRequest) |
| 455 |
if err := dec(in); err != nil { |
| 456 |
return nil, err |
| 457 |
} |
| 458 |
if interceptor == nil { |
| 459 |
return srv.(CloudFunctionsServiceServer).GenerateUploadUrl(ctx, in) |
| 460 |
} |
| 461 |
info := &grpc.UnaryServerInfo{ |
| 462 |
Server: srv, |
| 463 |
FullMethod: CloudFunctionsService_GenerateUploadUrl_FullMethodName, |
| 464 |
} |
| 465 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 466 |
return srv.(CloudFunctionsServiceServer).GenerateUploadUrl(ctx, req.(*GenerateUploadUrlRequest)) |
| 467 |
} |
| 468 |
return interceptor(ctx, in, info, handler) |
| 469 |
} |
| 470 |
|
| 471 |
func _CloudFunctionsService_GenerateDownloadUrl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 472 |
in := new(GenerateDownloadUrlRequest) |
| 473 |
if err := dec(in); err != nil { |
| 474 |
return nil, err |
| 475 |
} |
| 476 |
if interceptor == nil { |
| 477 |
return srv.(CloudFunctionsServiceServer).GenerateDownloadUrl(ctx, in) |
| 478 |
} |
| 479 |
info := &grpc.UnaryServerInfo{ |
| 480 |
Server: srv, |
| 481 |
FullMethod: CloudFunctionsService_GenerateDownloadUrl_FullMethodName, |
| 482 |
} |
| 483 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 484 |
return srv.(CloudFunctionsServiceServer).GenerateDownloadUrl(ctx, req.(*GenerateDownloadUrlRequest)) |
| 485 |
} |
| 486 |
return interceptor(ctx, in, info, handler) |
| 487 |
} |
| 488 |
|
| 489 |
func _CloudFunctionsService_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 490 |
in := new(iampb.SetIamPolicyRequest) |
| 491 |
if err := dec(in); err != nil { |
| 492 |
return nil, err |
| 493 |
} |
| 494 |
if interceptor == nil { |
| 495 |
return srv.(CloudFunctionsServiceServer).SetIamPolicy(ctx, in) |
| 496 |
} |
| 497 |
info := &grpc.UnaryServerInfo{ |
| 498 |
Server: srv, |
| 499 |
FullMethod: CloudFunctionsService_SetIamPolicy_FullMethodName, |
| 500 |
} |
| 501 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 502 |
return srv.(CloudFunctionsServiceServer).SetIamPolicy(ctx, req.(*iampb.SetIamPolicyRequest)) |
| 503 |
} |
| 504 |
return interceptor(ctx, in, info, handler) |
| 505 |
} |
| 506 |
|
| 507 |
func _CloudFunctionsService_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 508 |
in := new(iampb.GetIamPolicyRequest) |
| 509 |
if err := dec(in); err != nil { |
| 510 |
return nil, err |
| 511 |
} |
| 512 |
if interceptor == nil { |
| 513 |
return srv.(CloudFunctionsServiceServer).GetIamPolicy(ctx, in) |
| 514 |
} |
| 515 |
info := &grpc.UnaryServerInfo{ |
| 516 |
Server: srv, |
| 517 |
FullMethod: CloudFunctionsService_GetIamPolicy_FullMethodName, |
| 518 |
} |
| 519 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 520 |
return srv.(CloudFunctionsServiceServer).GetIamPolicy(ctx, req.(*iampb.GetIamPolicyRequest)) |
| 521 |
} |
| 522 |
return interceptor(ctx, in, info, handler) |
| 523 |
} |
| 524 |
|
| 525 |
func _CloudFunctionsService_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 526 |
in := new(iampb.TestIamPermissionsRequest) |
| 527 |
if err := dec(in); err != nil { |
| 528 |
return nil, err |
| 529 |
} |
| 530 |
if interceptor == nil { |
| 531 |
return srv.(CloudFunctionsServiceServer).TestIamPermissions(ctx, in) |
| 532 |
} |
| 533 |
info := &grpc.UnaryServerInfo{ |
| 534 |
Server: srv, |
| 535 |
FullMethod: CloudFunctionsService_TestIamPermissions_FullMethodName, |
| 536 |
} |
| 537 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 538 |
return srv.(CloudFunctionsServiceServer).TestIamPermissions(ctx, req.(*iampb.TestIamPermissionsRequest)) |
| 539 |
} |
| 540 |
return interceptor(ctx, in, info, handler) |
| 541 |
} |
| 542 |
|
| 543 |
// CloudFunctionsService_ServiceDesc is the grpc.ServiceDesc for CloudFunctionsService service. |
| 544 |
// It's only intended for direct use with grpc.RegisterService, |
| 545 |
// and not to be introspected or modified (even as a copy) |
| 546 |
var CloudFunctionsService_ServiceDesc = grpc.ServiceDesc{ |
| 547 |
ServiceName: "google.cloud.functions.v1.CloudFunctionsService", |
| 548 |
HandlerType: (*CloudFunctionsServiceServer)(nil), |
| 549 |
Methods: []grpc.MethodDesc{ |
| 550 |
{ |
| 551 |
MethodName: "ListFunctions", |
| 552 |
Handler: _CloudFunctionsService_ListFunctions_Handler, |
| 553 |
}, |
| 554 |
{ |
| 555 |
MethodName: "GetFunction", |
| 556 |
Handler: _CloudFunctionsService_GetFunction_Handler, |
| 557 |
}, |
| 558 |
{ |
| 559 |
MethodName: "CreateFunction", |
| 560 |
Handler: _CloudFunctionsService_CreateFunction_Handler, |
| 561 |
}, |
| 562 |
{ |
| 563 |
MethodName: "UpdateFunction", |
| 564 |
Handler: _CloudFunctionsService_UpdateFunction_Handler, |
| 565 |
}, |
| 566 |
{ |
| 567 |
MethodName: "DeleteFunction", |
| 568 |
Handler: _CloudFunctionsService_DeleteFunction_Handler, |
| 569 |
}, |
| 570 |
{ |
| 571 |
MethodName: "CallFunction", |
| 572 |
Handler: _CloudFunctionsService_CallFunction_Handler, |
| 573 |
}, |
| 574 |
{ |
| 575 |
MethodName: "GenerateUploadUrl", |
| 576 |
Handler: _CloudFunctionsService_GenerateUploadUrl_Handler, |
| 577 |
}, |
| 578 |
{ |
| 579 |
MethodName: "GenerateDownloadUrl", |
| 580 |
Handler: _CloudFunctionsService_GenerateDownloadUrl_Handler, |
| 581 |
}, |
| 582 |
{ |
| 583 |
MethodName: "SetIamPolicy", |
| 584 |
Handler: _CloudFunctionsService_SetIamPolicy_Handler, |
| 585 |
}, |
| 586 |
{ |
| 587 |
MethodName: "GetIamPolicy", |
| 588 |
Handler: _CloudFunctionsService_GetIamPolicy_Handler, |
| 589 |
}, |
| 590 |
{ |
| 591 |
MethodName: "TestIamPermissions", |
| 592 |
Handler: _CloudFunctionsService_TestIamPermissions_Handler, |
| 593 |
}, |
| 594 |
}, |
| 595 |
Streams: []grpc.StreamDesc{}, |
| 596 |
Metadata: "google/cloud/functions/v1/functions.proto", |
| 597 |
} |