| 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/api/apikeys/v2/apikeys.proto |
| 20 |
|
| 21 |
package apikeyspb |
| 22 |
|
| 23 |
import ( |
| 24 |
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" |
| 25 |
context "context" |
| 26 |
grpc "google.golang.org/grpc" |
| 27 |
codes "google.golang.org/grpc/codes" |
| 28 |
status "google.golang.org/grpc/status" |
| 29 |
) |
| 30 |
|
| 31 |
// This is a compile-time assertion to ensure that this generated file |
| 32 |
// is compatible with the grpc package it is being compiled against. |
| 33 |
// Requires gRPC-Go v1.32.0 or later. |
| 34 |
const _ = grpc.SupportPackageIsVersion7 |
| 35 |
|
| 36 |
const ( |
| 37 |
ApiKeys_CreateKey_FullMethodName = "/google.api.apikeys.v2.ApiKeys/CreateKey" |
| 38 |
ApiKeys_ListKeys_FullMethodName = "/google.api.apikeys.v2.ApiKeys/ListKeys" |
| 39 |
ApiKeys_GetKey_FullMethodName = "/google.api.apikeys.v2.ApiKeys/GetKey" |
| 40 |
ApiKeys_GetKeyString_FullMethodName = "/google.api.apikeys.v2.ApiKeys/GetKeyString" |
| 41 |
ApiKeys_UpdateKey_FullMethodName = "/google.api.apikeys.v2.ApiKeys/UpdateKey" |
| 42 |
ApiKeys_DeleteKey_FullMethodName = "/google.api.apikeys.v2.ApiKeys/DeleteKey" |
| 43 |
ApiKeys_UndeleteKey_FullMethodName = "/google.api.apikeys.v2.ApiKeys/UndeleteKey" |
| 44 |
ApiKeys_LookupKey_FullMethodName = "/google.api.apikeys.v2.ApiKeys/LookupKey" |
| 45 |
) |
| 46 |
|
| 47 |
// ApiKeysClient is the client API for ApiKeys service. |
| 48 |
// |
| 49 |
// 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. |
| 50 |
type ApiKeysClient interface { |
| 51 |
// Creates a new API key. |
| 52 |
// |
| 53 |
// NOTE: Key is a global resource; hence the only supported value for |
| 54 |
// location is `global`. |
| 55 |
CreateKey(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 56 |
// Lists the API keys owned by a project. The key string of the API key |
| 57 |
// isn't included in the response. |
| 58 |
// |
| 59 |
// NOTE: Key is a global resource; hence the only supported value for |
| 60 |
// location is `global`. |
| 61 |
ListKeys(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error) |
| 62 |
// Gets the metadata for an API key. The key string of the API key |
| 63 |
// isn't included in the response. |
| 64 |
// |
| 65 |
// NOTE: Key is a global resource; hence the only supported value for |
| 66 |
// location is `global`. |
| 67 |
GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*Key, error) |
| 68 |
// Get the key string for an API key. |
| 69 |
// |
| 70 |
// NOTE: Key is a global resource; hence the only supported value for |
| 71 |
// location is `global`. |
| 72 |
GetKeyString(ctx context.Context, in *GetKeyStringRequest, opts ...grpc.CallOption) (*GetKeyStringResponse, error) |
| 73 |
// Patches the modifiable fields of an API key. |
| 74 |
// The key string of the API key isn't included in the response. |
| 75 |
// |
| 76 |
// NOTE: Key is a global resource; hence the only supported value for |
| 77 |
// location is `global`. |
| 78 |
UpdateKey(ctx context.Context, in *UpdateKeyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 79 |
// Deletes an API key. Deleted key can be retrieved within 30 days of |
| 80 |
// deletion. Afterward, key will be purged from the project. |
| 81 |
// |
| 82 |
// NOTE: Key is a global resource; hence the only supported value for |
| 83 |
// location is `global`. |
| 84 |
DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 85 |
// Undeletes an API key which was deleted within 30 days. |
| 86 |
// |
| 87 |
// NOTE: Key is a global resource; hence the only supported value for |
| 88 |
// location is `global`. |
| 89 |
UndeleteKey(ctx context.Context, in *UndeleteKeyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 90 |
// Find the parent project and resource name of the API |
| 91 |
// key that matches the key string in the request. If the API key has been |
| 92 |
// purged, resource name will not be set. |
| 93 |
// The service account must have the `apikeys.keys.lookup` permission |
| 94 |
// on the parent project. |
| 95 |
LookupKey(ctx context.Context, in *LookupKeyRequest, opts ...grpc.CallOption) (*LookupKeyResponse, error) |
| 96 |
} |
| 97 |
|
| 98 |
type apiKeysClient struct { |
| 99 |
cc grpc.ClientConnInterface |
| 100 |
} |
| 101 |
|
| 102 |
func NewApiKeysClient(cc grpc.ClientConnInterface) ApiKeysClient { |
| 103 |
return &apiKeysClient{cc} |
| 104 |
} |
| 105 |
|
| 106 |
func (c *apiKeysClient) CreateKey(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 107 |
out := new(longrunningpb.Operation) |
| 108 |
err := c.cc.Invoke(ctx, ApiKeys_CreateKey_FullMethodName, in, out, opts...) |
| 109 |
if err != nil { |
| 110 |
return nil, err |
| 111 |
} |
| 112 |
return out, nil |
| 113 |
} |
| 114 |
|
| 115 |
func (c *apiKeysClient) ListKeys(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error) { |
| 116 |
out := new(ListKeysResponse) |
| 117 |
err := c.cc.Invoke(ctx, ApiKeys_ListKeys_FullMethodName, in, out, opts...) |
| 118 |
if err != nil { |
| 119 |
return nil, err |
| 120 |
} |
| 121 |
return out, nil |
| 122 |
} |
| 123 |
|
| 124 |
func (c *apiKeysClient) GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*Key, error) { |
| 125 |
out := new(Key) |
| 126 |
err := c.cc.Invoke(ctx, ApiKeys_GetKey_FullMethodName, in, out, opts...) |
| 127 |
if err != nil { |
| 128 |
return nil, err |
| 129 |
} |
| 130 |
return out, nil |
| 131 |
} |
| 132 |
|
| 133 |
func (c *apiKeysClient) GetKeyString(ctx context.Context, in *GetKeyStringRequest, opts ...grpc.CallOption) (*GetKeyStringResponse, error) { |
| 134 |
out := new(GetKeyStringResponse) |
| 135 |
err := c.cc.Invoke(ctx, ApiKeys_GetKeyString_FullMethodName, in, out, opts...) |
| 136 |
if err != nil { |
| 137 |
return nil, err |
| 138 |
} |
| 139 |
return out, nil |
| 140 |
} |
| 141 |
|
| 142 |
func (c *apiKeysClient) UpdateKey(ctx context.Context, in *UpdateKeyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 143 |
out := new(longrunningpb.Operation) |
| 144 |
err := c.cc.Invoke(ctx, ApiKeys_UpdateKey_FullMethodName, in, out, opts...) |
| 145 |
if err != nil { |
| 146 |
return nil, err |
| 147 |
} |
| 148 |
return out, nil |
| 149 |
} |
| 150 |
|
| 151 |
func (c *apiKeysClient) DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 152 |
out := new(longrunningpb.Operation) |
| 153 |
err := c.cc.Invoke(ctx, ApiKeys_DeleteKey_FullMethodName, in, out, opts...) |
| 154 |
if err != nil { |
| 155 |
return nil, err |
| 156 |
} |
| 157 |
return out, nil |
| 158 |
} |
| 159 |
|
| 160 |
func (c *apiKeysClient) UndeleteKey(ctx context.Context, in *UndeleteKeyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 161 |
out := new(longrunningpb.Operation) |
| 162 |
err := c.cc.Invoke(ctx, ApiKeys_UndeleteKey_FullMethodName, in, out, opts...) |
| 163 |
if err != nil { |
| 164 |
return nil, err |
| 165 |
} |
| 166 |
return out, nil |
| 167 |
} |
| 168 |
|
| 169 |
func (c *apiKeysClient) LookupKey(ctx context.Context, in *LookupKeyRequest, opts ...grpc.CallOption) (*LookupKeyResponse, error) { |
| 170 |
out := new(LookupKeyResponse) |
| 171 |
err := c.cc.Invoke(ctx, ApiKeys_LookupKey_FullMethodName, in, out, opts...) |
| 172 |
if err != nil { |
| 173 |
return nil, err |
| 174 |
} |
| 175 |
return out, nil |
| 176 |
} |
| 177 |
|
| 178 |
// ApiKeysServer is the server API for ApiKeys service. |
| 179 |
// All implementations should embed UnimplementedApiKeysServer |
| 180 |
// for forward compatibility |
| 181 |
type ApiKeysServer interface { |
| 182 |
// Creates a new API key. |
| 183 |
// |
| 184 |
// NOTE: Key is a global resource; hence the only supported value for |
| 185 |
// location is `global`. |
| 186 |
CreateKey(context.Context, *CreateKeyRequest) (*longrunningpb.Operation, error) |
| 187 |
// Lists the API keys owned by a project. The key string of the API key |
| 188 |
// isn't included in the response. |
| 189 |
// |
| 190 |
// NOTE: Key is a global resource; hence the only supported value for |
| 191 |
// location is `global`. |
| 192 |
ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error) |
| 193 |
// Gets the metadata for an API key. The key string of the API key |
| 194 |
// isn't included in the response. |
| 195 |
// |
| 196 |
// NOTE: Key is a global resource; hence the only supported value for |
| 197 |
// location is `global`. |
| 198 |
GetKey(context.Context, *GetKeyRequest) (*Key, error) |
| 199 |
// Get the key string for an API key. |
| 200 |
// |
| 201 |
// NOTE: Key is a global resource; hence the only supported value for |
| 202 |
// location is `global`. |
| 203 |
GetKeyString(context.Context, *GetKeyStringRequest) (*GetKeyStringResponse, error) |
| 204 |
// Patches the modifiable fields of an API key. |
| 205 |
// The key string of the API key isn't included in the response. |
| 206 |
// |
| 207 |
// NOTE: Key is a global resource; hence the only supported value for |
| 208 |
// location is `global`. |
| 209 |
UpdateKey(context.Context, *UpdateKeyRequest) (*longrunningpb.Operation, error) |
| 210 |
// Deletes an API key. Deleted key can be retrieved within 30 days of |
| 211 |
// deletion. Afterward, key will be purged from the project. |
| 212 |
// |
| 213 |
// NOTE: Key is a global resource; hence the only supported value for |
| 214 |
// location is `global`. |
| 215 |
DeleteKey(context.Context, *DeleteKeyRequest) (*longrunningpb.Operation, error) |
| 216 |
// Undeletes an API key which was deleted within 30 days. |
| 217 |
// |
| 218 |
// NOTE: Key is a global resource; hence the only supported value for |
| 219 |
// location is `global`. |
| 220 |
UndeleteKey(context.Context, *UndeleteKeyRequest) (*longrunningpb.Operation, error) |
| 221 |
// Find the parent project and resource name of the API |
| 222 |
// key that matches the key string in the request. If the API key has been |
| 223 |
// purged, resource name will not be set. |
| 224 |
// The service account must have the `apikeys.keys.lookup` permission |
| 225 |
// on the parent project. |
| 226 |
LookupKey(context.Context, *LookupKeyRequest) (*LookupKeyResponse, error) |
| 227 |
} |
| 228 |
|
| 229 |
// UnimplementedApiKeysServer should be embedded to have forward compatible implementations. |
| 230 |
type UnimplementedApiKeysServer struct { |
| 231 |
} |
| 232 |
|
| 233 |
func (UnimplementedApiKeysServer) CreateKey(context.Context, *CreateKeyRequest) (*longrunningpb.Operation, error) { |
| 234 |
return nil, status.Errorf(codes.Unimplemented, "method CreateKey not implemented") |
| 235 |
} |
| 236 |
func (UnimplementedApiKeysServer) ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error) { |
| 237 |
return nil, status.Errorf(codes.Unimplemented, "method ListKeys not implemented") |
| 238 |
} |
| 239 |
func (UnimplementedApiKeysServer) GetKey(context.Context, *GetKeyRequest) (*Key, error) { |
| 240 |
return nil, status.Errorf(codes.Unimplemented, "method GetKey not implemented") |
| 241 |
} |
| 242 |
func (UnimplementedApiKeysServer) GetKeyString(context.Context, *GetKeyStringRequest) (*GetKeyStringResponse, error) { |
| 243 |
return nil, status.Errorf(codes.Unimplemented, "method GetKeyString not implemented") |
| 244 |
} |
| 245 |
func (UnimplementedApiKeysServer) UpdateKey(context.Context, *UpdateKeyRequest) (*longrunningpb.Operation, error) { |
| 246 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateKey not implemented") |
| 247 |
} |
| 248 |
func (UnimplementedApiKeysServer) DeleteKey(context.Context, *DeleteKeyRequest) (*longrunningpb.Operation, error) { |
| 249 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteKey not implemented") |
| 250 |
} |
| 251 |
func (UnimplementedApiKeysServer) UndeleteKey(context.Context, *UndeleteKeyRequest) (*longrunningpb.Operation, error) { |
| 252 |
return nil, status.Errorf(codes.Unimplemented, "method UndeleteKey not implemented") |
| 253 |
} |
| 254 |
func (UnimplementedApiKeysServer) LookupKey(context.Context, *LookupKeyRequest) (*LookupKeyResponse, error) { |
| 255 |
return nil, status.Errorf(codes.Unimplemented, "method LookupKey not implemented") |
| 256 |
} |
| 257 |
|
| 258 |
// UnsafeApiKeysServer may be embedded to opt out of forward compatibility for this service. |
| 259 |
// Use of this interface is not recommended, as added methods to ApiKeysServer will |
| 260 |
// result in compilation errors. |
| 261 |
type UnsafeApiKeysServer interface { |
| 262 |
mustEmbedUnimplementedApiKeysServer() |
| 263 |
} |
| 264 |
|
| 265 |
func RegisterApiKeysServer(s grpc.ServiceRegistrar, srv ApiKeysServer) { |
| 266 |
s.RegisterService(&ApiKeys_ServiceDesc, srv) |
| 267 |
} |
| 268 |
|
| 269 |
func _ApiKeys_CreateKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 270 |
in := new(CreateKeyRequest) |
| 271 |
if err := dec(in); err != nil { |
| 272 |
return nil, err |
| 273 |
} |
| 274 |
if interceptor == nil { |
| 275 |
return srv.(ApiKeysServer).CreateKey(ctx, in) |
| 276 |
} |
| 277 |
info := &grpc.UnaryServerInfo{ |
| 278 |
Server: srv, |
| 279 |
FullMethod: ApiKeys_CreateKey_FullMethodName, |
| 280 |
} |
| 281 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 282 |
return srv.(ApiKeysServer).CreateKey(ctx, req.(*CreateKeyRequest)) |
| 283 |
} |
| 284 |
return interceptor(ctx, in, info, handler) |
| 285 |
} |
| 286 |
|
| 287 |
func _ApiKeys_ListKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 288 |
in := new(ListKeysRequest) |
| 289 |
if err := dec(in); err != nil { |
| 290 |
return nil, err |
| 291 |
} |
| 292 |
if interceptor == nil { |
| 293 |
return srv.(ApiKeysServer).ListKeys(ctx, in) |
| 294 |
} |
| 295 |
info := &grpc.UnaryServerInfo{ |
| 296 |
Server: srv, |
| 297 |
FullMethod: ApiKeys_ListKeys_FullMethodName, |
| 298 |
} |
| 299 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 300 |
return srv.(ApiKeysServer).ListKeys(ctx, req.(*ListKeysRequest)) |
| 301 |
} |
| 302 |
return interceptor(ctx, in, info, handler) |
| 303 |
} |
| 304 |
|
| 305 |
func _ApiKeys_GetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 306 |
in := new(GetKeyRequest) |
| 307 |
if err := dec(in); err != nil { |
| 308 |
return nil, err |
| 309 |
} |
| 310 |
if interceptor == nil { |
| 311 |
return srv.(ApiKeysServer).GetKey(ctx, in) |
| 312 |
} |
| 313 |
info := &grpc.UnaryServerInfo{ |
| 314 |
Server: srv, |
| 315 |
FullMethod: ApiKeys_GetKey_FullMethodName, |
| 316 |
} |
| 317 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 318 |
return srv.(ApiKeysServer).GetKey(ctx, req.(*GetKeyRequest)) |
| 319 |
} |
| 320 |
return interceptor(ctx, in, info, handler) |
| 321 |
} |
| 322 |
|
| 323 |
func _ApiKeys_GetKeyString_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 324 |
in := new(GetKeyStringRequest) |
| 325 |
if err := dec(in); err != nil { |
| 326 |
return nil, err |
| 327 |
} |
| 328 |
if interceptor == nil { |
| 329 |
return srv.(ApiKeysServer).GetKeyString(ctx, in) |
| 330 |
} |
| 331 |
info := &grpc.UnaryServerInfo{ |
| 332 |
Server: srv, |
| 333 |
FullMethod: ApiKeys_GetKeyString_FullMethodName, |
| 334 |
} |
| 335 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 336 |
return srv.(ApiKeysServer).GetKeyString(ctx, req.(*GetKeyStringRequest)) |
| 337 |
} |
| 338 |
return interceptor(ctx, in, info, handler) |
| 339 |
} |
| 340 |
|
| 341 |
func _ApiKeys_UpdateKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 342 |
in := new(UpdateKeyRequest) |
| 343 |
if err := dec(in); err != nil { |
| 344 |
return nil, err |
| 345 |
} |
| 346 |
if interceptor == nil { |
| 347 |
return srv.(ApiKeysServer).UpdateKey(ctx, in) |
| 348 |
} |
| 349 |
info := &grpc.UnaryServerInfo{ |
| 350 |
Server: srv, |
| 351 |
FullMethod: ApiKeys_UpdateKey_FullMethodName, |
| 352 |
} |
| 353 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 354 |
return srv.(ApiKeysServer).UpdateKey(ctx, req.(*UpdateKeyRequest)) |
| 355 |
} |
| 356 |
return interceptor(ctx, in, info, handler) |
| 357 |
} |
| 358 |
|
| 359 |
func _ApiKeys_DeleteKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 360 |
in := new(DeleteKeyRequest) |
| 361 |
if err := dec(in); err != nil { |
| 362 |
return nil, err |
| 363 |
} |
| 364 |
if interceptor == nil { |
| 365 |
return srv.(ApiKeysServer).DeleteKey(ctx, in) |
| 366 |
} |
| 367 |
info := &grpc.UnaryServerInfo{ |
| 368 |
Server: srv, |
| 369 |
FullMethod: ApiKeys_DeleteKey_FullMethodName, |
| 370 |
} |
| 371 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 372 |
return srv.(ApiKeysServer).DeleteKey(ctx, req.(*DeleteKeyRequest)) |
| 373 |
} |
| 374 |
return interceptor(ctx, in, info, handler) |
| 375 |
} |
| 376 |
|
| 377 |
func _ApiKeys_UndeleteKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 378 |
in := new(UndeleteKeyRequest) |
| 379 |
if err := dec(in); err != nil { |
| 380 |
return nil, err |
| 381 |
} |
| 382 |
if interceptor == nil { |
| 383 |
return srv.(ApiKeysServer).UndeleteKey(ctx, in) |
| 384 |
} |
| 385 |
info := &grpc.UnaryServerInfo{ |
| 386 |
Server: srv, |
| 387 |
FullMethod: ApiKeys_UndeleteKey_FullMethodName, |
| 388 |
} |
| 389 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 390 |
return srv.(ApiKeysServer).UndeleteKey(ctx, req.(*UndeleteKeyRequest)) |
| 391 |
} |
| 392 |
return interceptor(ctx, in, info, handler) |
| 393 |
} |
| 394 |
|
| 395 |
func _ApiKeys_LookupKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 396 |
in := new(LookupKeyRequest) |
| 397 |
if err := dec(in); err != nil { |
| 398 |
return nil, err |
| 399 |
} |
| 400 |
if interceptor == nil { |
| 401 |
return srv.(ApiKeysServer).LookupKey(ctx, in) |
| 402 |
} |
| 403 |
info := &grpc.UnaryServerInfo{ |
| 404 |
Server: srv, |
| 405 |
FullMethod: ApiKeys_LookupKey_FullMethodName, |
| 406 |
} |
| 407 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 408 |
return srv.(ApiKeysServer).LookupKey(ctx, req.(*LookupKeyRequest)) |
| 409 |
} |
| 410 |
return interceptor(ctx, in, info, handler) |
| 411 |
} |
| 412 |
|
| 413 |
// ApiKeys_ServiceDesc is the grpc.ServiceDesc for ApiKeys service. |
| 414 |
// It's only intended for direct use with grpc.RegisterService, |
| 415 |
// and not to be introspected or modified (even as a copy) |
| 416 |
var ApiKeys_ServiceDesc = grpc.ServiceDesc{ |
| 417 |
ServiceName: "google.api.apikeys.v2.ApiKeys", |
| 418 |
HandlerType: (*ApiKeysServer)(nil), |
| 419 |
Methods: []grpc.MethodDesc{ |
| 420 |
{ |
| 421 |
MethodName: "CreateKey", |
| 422 |
Handler: _ApiKeys_CreateKey_Handler, |
| 423 |
}, |
| 424 |
{ |
| 425 |
MethodName: "ListKeys", |
| 426 |
Handler: _ApiKeys_ListKeys_Handler, |
| 427 |
}, |
| 428 |
{ |
| 429 |
MethodName: "GetKey", |
| 430 |
Handler: _ApiKeys_GetKey_Handler, |
| 431 |
}, |
| 432 |
{ |
| 433 |
MethodName: "GetKeyString", |
| 434 |
Handler: _ApiKeys_GetKeyString_Handler, |
| 435 |
}, |
| 436 |
{ |
| 437 |
MethodName: "UpdateKey", |
| 438 |
Handler: _ApiKeys_UpdateKey_Handler, |
| 439 |
}, |
| 440 |
{ |
| 441 |
MethodName: "DeleteKey", |
| 442 |
Handler: _ApiKeys_DeleteKey_Handler, |
| 443 |
}, |
| 444 |
{ |
| 445 |
MethodName: "UndeleteKey", |
| 446 |
Handler: _ApiKeys_UndeleteKey_Handler, |
| 447 |
}, |
| 448 |
{ |
| 449 |
MethodName: "LookupKey", |
| 450 |
Handler: _ApiKeys_LookupKey_Handler, |
| 451 |
}, |
| 452 |
}, |
| 453 |
Streams: []grpc.StreamDesc{}, |
| 454 |
Metadata: "google/api/apikeys/v2/apikeys.proto", |
| 455 |
} |