1// Copyright 2021 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. DO NOT EDIT. 16// versions: 17// protoc-gen-go v1.26.0 18// protoc v3.12.2 19// source: google/api/serviceusage/v1/serviceusage.proto 20 21package serviceusage 22 23import ( 24 context "context" 25 reflect "reflect" 26 sync "sync" 27 28 _ "google.golang.org/genproto/googleapis/api/annotations" 29 longrunning "google.golang.org/genproto/googleapis/longrunning" 30 grpc "google.golang.org/grpc" 31 codes "google.golang.org/grpc/codes" 32 status "google.golang.org/grpc/status" 33 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 34 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 35) 36 37const ( 38 // Verify that this generated code is sufficiently up-to-date. 39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 40 // Verify that runtime/protoimpl is sufficiently up-to-date. 41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 42) 43 44// Enum to determine if service usage should be checked when disabling a 45// service. 46type DisableServiceRequest_CheckIfServiceHasUsage int32 47 48const ( 49 // When unset, the default behavior is used, which is SKIP. 50 DisableServiceRequest_CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED DisableServiceRequest_CheckIfServiceHasUsage = 0 51 // If set, skip checking service usage when disabling a service. 52 DisableServiceRequest_SKIP DisableServiceRequest_CheckIfServiceHasUsage = 1 53 // If set, service usage is checked when disabling the service. If a 54 // service, or its dependents, has usage in the last 30 days, the request 55 // returns a FAILED_PRECONDITION error. 56 DisableServiceRequest_CHECK DisableServiceRequest_CheckIfServiceHasUsage = 2 57) 58 59// Enum value maps for DisableServiceRequest_CheckIfServiceHasUsage. 60var ( 61 DisableServiceRequest_CheckIfServiceHasUsage_name = map[int32]string{ 62 0: "CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED", 63 1: "SKIP", 64 2: "CHECK", 65 } 66 DisableServiceRequest_CheckIfServiceHasUsage_value = map[string]int32{ 67 "CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED": 0, 68 "SKIP": 1, 69 "CHECK": 2, 70 } 71) 72 73func (x DisableServiceRequest_CheckIfServiceHasUsage) Enum() *DisableServiceRequest_CheckIfServiceHasUsage { 74 p := new(DisableServiceRequest_CheckIfServiceHasUsage) 75 *p = x 76 return p 77} 78 79func (x DisableServiceRequest_CheckIfServiceHasUsage) String() string { 80 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 81} 82 83func (DisableServiceRequest_CheckIfServiceHasUsage) Descriptor() protoreflect.EnumDescriptor { 84 return file_google_api_serviceusage_v1_serviceusage_proto_enumTypes[0].Descriptor() 85} 86 87func (DisableServiceRequest_CheckIfServiceHasUsage) Type() protoreflect.EnumType { 88 return &file_google_api_serviceusage_v1_serviceusage_proto_enumTypes[0] 89} 90 91func (x DisableServiceRequest_CheckIfServiceHasUsage) Number() protoreflect.EnumNumber { 92 return protoreflect.EnumNumber(x) 93} 94 95// Deprecated: Use DisableServiceRequest_CheckIfServiceHasUsage.Descriptor instead. 96func (DisableServiceRequest_CheckIfServiceHasUsage) EnumDescriptor() ([]byte, []int) { 97 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{2, 0} 98} 99 100// Request message for the `EnableService` method. 101type EnableServiceRequest struct { 102 state protoimpl.MessageState 103 sizeCache protoimpl.SizeCache 104 unknownFields protoimpl.UnknownFields 105 106 // Name of the consumer and service to enable the service on. 107 // 108 // The `EnableService` and `DisableService` methods currently only support 109 // projects. 110 // 111 // Enabling a service requires that the service is public or is shared with 112 // the user enabling the service. 113 // 114 // An example name would be: 115 // `projects/123/services/serviceusage.googleapis.com` where `123` is the 116 // project number. 117 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 118} 119 120func (x *EnableServiceRequest) Reset() { 121 *x = EnableServiceRequest{} 122 if protoimpl.UnsafeEnabled { 123 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[0] 124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 125 ms.StoreMessageInfo(mi) 126 } 127} 128 129func (x *EnableServiceRequest) String() string { 130 return protoimpl.X.MessageStringOf(x) 131} 132 133func (*EnableServiceRequest) ProtoMessage() {} 134 135func (x *EnableServiceRequest) ProtoReflect() protoreflect.Message { 136 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[0] 137 if protoimpl.UnsafeEnabled && x != nil { 138 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 139 if ms.LoadMessageInfo() == nil { 140 ms.StoreMessageInfo(mi) 141 } 142 return ms 143 } 144 return mi.MessageOf(x) 145} 146 147// Deprecated: Use EnableServiceRequest.ProtoReflect.Descriptor instead. 148func (*EnableServiceRequest) Descriptor() ([]byte, []int) { 149 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{0} 150} 151 152func (x *EnableServiceRequest) GetName() string { 153 if x != nil { 154 return x.Name 155 } 156 return "" 157} 158 159// Response message for the `EnableService` method. 160// This response message is assigned to the `response` field of the returned 161// Operation when that operation is done. 162type EnableServiceResponse struct { 163 state protoimpl.MessageState 164 sizeCache protoimpl.SizeCache 165 unknownFields protoimpl.UnknownFields 166 167 // The new state of the service after enabling. 168 Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 169} 170 171func (x *EnableServiceResponse) Reset() { 172 *x = EnableServiceResponse{} 173 if protoimpl.UnsafeEnabled { 174 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[1] 175 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 176 ms.StoreMessageInfo(mi) 177 } 178} 179 180func (x *EnableServiceResponse) String() string { 181 return protoimpl.X.MessageStringOf(x) 182} 183 184func (*EnableServiceResponse) ProtoMessage() {} 185 186func (x *EnableServiceResponse) ProtoReflect() protoreflect.Message { 187 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[1] 188 if protoimpl.UnsafeEnabled && x != nil { 189 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 190 if ms.LoadMessageInfo() == nil { 191 ms.StoreMessageInfo(mi) 192 } 193 return ms 194 } 195 return mi.MessageOf(x) 196} 197 198// Deprecated: Use EnableServiceResponse.ProtoReflect.Descriptor instead. 199func (*EnableServiceResponse) Descriptor() ([]byte, []int) { 200 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{1} 201} 202 203func (x *EnableServiceResponse) GetService() *Service { 204 if x != nil { 205 return x.Service 206 } 207 return nil 208} 209 210// Request message for the `DisableService` method. 211type DisableServiceRequest struct { 212 state protoimpl.MessageState 213 sizeCache protoimpl.SizeCache 214 unknownFields protoimpl.UnknownFields 215 216 // Name of the consumer and service to disable the service on. 217 // 218 // The enable and disable methods currently only support projects. 219 // 220 // An example name would be: 221 // `projects/123/services/serviceusage.googleapis.com` where `123` is the 222 // project number. 223 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 224 // Indicates if services that are enabled and which depend on this service 225 // should also be disabled. If not set, an error will be generated if any 226 // enabled services depend on the service to be disabled. When set, the 227 // service, and any enabled services that depend on it, will be disabled 228 // together. 229 DisableDependentServices bool `protobuf:"varint,2,opt,name=disable_dependent_services,json=disableDependentServices,proto3" json:"disable_dependent_services,omitempty"` 230 // Defines the behavior for checking service usage when disabling a service. 231 CheckIfServiceHasUsage DisableServiceRequest_CheckIfServiceHasUsage `protobuf:"varint,3,opt,name=check_if_service_has_usage,json=checkIfServiceHasUsage,proto3,enum=google.api.serviceusage.v1.DisableServiceRequest_CheckIfServiceHasUsage" json:"check_if_service_has_usage,omitempty"` 232} 233 234func (x *DisableServiceRequest) Reset() { 235 *x = DisableServiceRequest{} 236 if protoimpl.UnsafeEnabled { 237 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[2] 238 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 239 ms.StoreMessageInfo(mi) 240 } 241} 242 243func (x *DisableServiceRequest) String() string { 244 return protoimpl.X.MessageStringOf(x) 245} 246 247func (*DisableServiceRequest) ProtoMessage() {} 248 249func (x *DisableServiceRequest) ProtoReflect() protoreflect.Message { 250 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[2] 251 if protoimpl.UnsafeEnabled && x != nil { 252 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 253 if ms.LoadMessageInfo() == nil { 254 ms.StoreMessageInfo(mi) 255 } 256 return ms 257 } 258 return mi.MessageOf(x) 259} 260 261// Deprecated: Use DisableServiceRequest.ProtoReflect.Descriptor instead. 262func (*DisableServiceRequest) Descriptor() ([]byte, []int) { 263 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{2} 264} 265 266func (x *DisableServiceRequest) GetName() string { 267 if x != nil { 268 return x.Name 269 } 270 return "" 271} 272 273func (x *DisableServiceRequest) GetDisableDependentServices() bool { 274 if x != nil { 275 return x.DisableDependentServices 276 } 277 return false 278} 279 280func (x *DisableServiceRequest) GetCheckIfServiceHasUsage() DisableServiceRequest_CheckIfServiceHasUsage { 281 if x != nil { 282 return x.CheckIfServiceHasUsage 283 } 284 return DisableServiceRequest_CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED 285} 286 287// Response message for the `DisableService` method. 288// This response message is assigned to the `response` field of the returned 289// Operation when that operation is done. 290type DisableServiceResponse struct { 291 state protoimpl.MessageState 292 sizeCache protoimpl.SizeCache 293 unknownFields protoimpl.UnknownFields 294 295 // The new state of the service after disabling. 296 Service *Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 297} 298 299func (x *DisableServiceResponse) Reset() { 300 *x = DisableServiceResponse{} 301 if protoimpl.UnsafeEnabled { 302 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[3] 303 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 304 ms.StoreMessageInfo(mi) 305 } 306} 307 308func (x *DisableServiceResponse) String() string { 309 return protoimpl.X.MessageStringOf(x) 310} 311 312func (*DisableServiceResponse) ProtoMessage() {} 313 314func (x *DisableServiceResponse) ProtoReflect() protoreflect.Message { 315 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[3] 316 if protoimpl.UnsafeEnabled && x != nil { 317 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 318 if ms.LoadMessageInfo() == nil { 319 ms.StoreMessageInfo(mi) 320 } 321 return ms 322 } 323 return mi.MessageOf(x) 324} 325 326// Deprecated: Use DisableServiceResponse.ProtoReflect.Descriptor instead. 327func (*DisableServiceResponse) Descriptor() ([]byte, []int) { 328 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{3} 329} 330 331func (x *DisableServiceResponse) GetService() *Service { 332 if x != nil { 333 return x.Service 334 } 335 return nil 336} 337 338// Request message for the `GetService` method. 339type GetServiceRequest struct { 340 state protoimpl.MessageState 341 sizeCache protoimpl.SizeCache 342 unknownFields protoimpl.UnknownFields 343 344 // Name of the consumer and service to get the `ConsumerState` for. 345 // 346 // An example name would be: 347 // `projects/123/services/serviceusage.googleapis.com` where `123` is the 348 // project number. 349 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 350} 351 352func (x *GetServiceRequest) Reset() { 353 *x = GetServiceRequest{} 354 if protoimpl.UnsafeEnabled { 355 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[4] 356 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 357 ms.StoreMessageInfo(mi) 358 } 359} 360 361func (x *GetServiceRequest) String() string { 362 return protoimpl.X.MessageStringOf(x) 363} 364 365func (*GetServiceRequest) ProtoMessage() {} 366 367func (x *GetServiceRequest) ProtoReflect() protoreflect.Message { 368 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[4] 369 if protoimpl.UnsafeEnabled && x != nil { 370 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 371 if ms.LoadMessageInfo() == nil { 372 ms.StoreMessageInfo(mi) 373 } 374 return ms 375 } 376 return mi.MessageOf(x) 377} 378 379// Deprecated: Use GetServiceRequest.ProtoReflect.Descriptor instead. 380func (*GetServiceRequest) Descriptor() ([]byte, []int) { 381 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{4} 382} 383 384func (x *GetServiceRequest) GetName() string { 385 if x != nil { 386 return x.Name 387 } 388 return "" 389} 390 391// Request message for the `ListServices` method. 392type ListServicesRequest struct { 393 state protoimpl.MessageState 394 sizeCache protoimpl.SizeCache 395 unknownFields protoimpl.UnknownFields 396 397 // Parent to search for services on. 398 // 399 // An example name would be: 400 // `projects/123` where `123` is the project number. 401 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 402 // Requested size of the next page of data. 403 // Requested page size cannot exceed 200. 404 // If not set, the default page size is 50. 405 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 406 // Token identifying which result to start with, which is returned by a 407 // previous list call. 408 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 409 // Only list services that conform to the given filter. 410 // The allowed filter strings are `state:ENABLED` and `state:DISABLED`. 411 Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` 412} 413 414func (x *ListServicesRequest) Reset() { 415 *x = ListServicesRequest{} 416 if protoimpl.UnsafeEnabled { 417 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[5] 418 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 419 ms.StoreMessageInfo(mi) 420 } 421} 422 423func (x *ListServicesRequest) String() string { 424 return protoimpl.X.MessageStringOf(x) 425} 426 427func (*ListServicesRequest) ProtoMessage() {} 428 429func (x *ListServicesRequest) ProtoReflect() protoreflect.Message { 430 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[5] 431 if protoimpl.UnsafeEnabled && x != nil { 432 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 433 if ms.LoadMessageInfo() == nil { 434 ms.StoreMessageInfo(mi) 435 } 436 return ms 437 } 438 return mi.MessageOf(x) 439} 440 441// Deprecated: Use ListServicesRequest.ProtoReflect.Descriptor instead. 442func (*ListServicesRequest) Descriptor() ([]byte, []int) { 443 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{5} 444} 445 446func (x *ListServicesRequest) GetParent() string { 447 if x != nil { 448 return x.Parent 449 } 450 return "" 451} 452 453func (x *ListServicesRequest) GetPageSize() int32 { 454 if x != nil { 455 return x.PageSize 456 } 457 return 0 458} 459 460func (x *ListServicesRequest) GetPageToken() string { 461 if x != nil { 462 return x.PageToken 463 } 464 return "" 465} 466 467func (x *ListServicesRequest) GetFilter() string { 468 if x != nil { 469 return x.Filter 470 } 471 return "" 472} 473 474// Response message for the `ListServices` method. 475type ListServicesResponse struct { 476 state protoimpl.MessageState 477 sizeCache protoimpl.SizeCache 478 unknownFields protoimpl.UnknownFields 479 480 // The available services for the requested project. 481 Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` 482 // Token that can be passed to `ListServices` to resume a paginated 483 // query. 484 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 485} 486 487func (x *ListServicesResponse) Reset() { 488 *x = ListServicesResponse{} 489 if protoimpl.UnsafeEnabled { 490 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[6] 491 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 492 ms.StoreMessageInfo(mi) 493 } 494} 495 496func (x *ListServicesResponse) String() string { 497 return protoimpl.X.MessageStringOf(x) 498} 499 500func (*ListServicesResponse) ProtoMessage() {} 501 502func (x *ListServicesResponse) ProtoReflect() protoreflect.Message { 503 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[6] 504 if protoimpl.UnsafeEnabled && x != nil { 505 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 506 if ms.LoadMessageInfo() == nil { 507 ms.StoreMessageInfo(mi) 508 } 509 return ms 510 } 511 return mi.MessageOf(x) 512} 513 514// Deprecated: Use ListServicesResponse.ProtoReflect.Descriptor instead. 515func (*ListServicesResponse) Descriptor() ([]byte, []int) { 516 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{6} 517} 518 519func (x *ListServicesResponse) GetServices() []*Service { 520 if x != nil { 521 return x.Services 522 } 523 return nil 524} 525 526func (x *ListServicesResponse) GetNextPageToken() string { 527 if x != nil { 528 return x.NextPageToken 529 } 530 return "" 531} 532 533// Request message for the `BatchEnableServices` method. 534type BatchEnableServicesRequest struct { 535 state protoimpl.MessageState 536 sizeCache protoimpl.SizeCache 537 unknownFields protoimpl.UnknownFields 538 539 // Parent to enable services on. 540 // 541 // An example name would be: 542 // `projects/123` where `123` is the project number. 543 // 544 // The `BatchEnableServices` method currently only supports projects. 545 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 546 // The identifiers of the services to enable on the project. 547 // 548 // A valid identifier would be: 549 // serviceusage.googleapis.com 550 // 551 // Enabling services requires that each service is public or is shared with 552 // the user enabling the service. 553 // 554 // A single request can enable a maximum of 20 services at a time. If more 555 // than 20 services are specified, the request will fail, and no state changes 556 // will occur. 557 ServiceIds []string `protobuf:"bytes,2,rep,name=service_ids,json=serviceIds,proto3" json:"service_ids,omitempty"` 558} 559 560func (x *BatchEnableServicesRequest) Reset() { 561 *x = BatchEnableServicesRequest{} 562 if protoimpl.UnsafeEnabled { 563 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[7] 564 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 565 ms.StoreMessageInfo(mi) 566 } 567} 568 569func (x *BatchEnableServicesRequest) String() string { 570 return protoimpl.X.MessageStringOf(x) 571} 572 573func (*BatchEnableServicesRequest) ProtoMessage() {} 574 575func (x *BatchEnableServicesRequest) ProtoReflect() protoreflect.Message { 576 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[7] 577 if protoimpl.UnsafeEnabled && x != nil { 578 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 579 if ms.LoadMessageInfo() == nil { 580 ms.StoreMessageInfo(mi) 581 } 582 return ms 583 } 584 return mi.MessageOf(x) 585} 586 587// Deprecated: Use BatchEnableServicesRequest.ProtoReflect.Descriptor instead. 588func (*BatchEnableServicesRequest) Descriptor() ([]byte, []int) { 589 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{7} 590} 591 592func (x *BatchEnableServicesRequest) GetParent() string { 593 if x != nil { 594 return x.Parent 595 } 596 return "" 597} 598 599func (x *BatchEnableServicesRequest) GetServiceIds() []string { 600 if x != nil { 601 return x.ServiceIds 602 } 603 return nil 604} 605 606// Response message for the `BatchEnableServices` method. 607// This response message is assigned to the `response` field of the returned 608// Operation when that operation is done. 609type BatchEnableServicesResponse struct { 610 state protoimpl.MessageState 611 sizeCache protoimpl.SizeCache 612 unknownFields protoimpl.UnknownFields 613 614 // The new state of the services after enabling. 615 Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` 616 // If allow_partial_success is true, and one or more services could not be 617 // enabled, this field contains the details about each failure. 618 Failures []*BatchEnableServicesResponse_EnableFailure `protobuf:"bytes,2,rep,name=failures,proto3" json:"failures,omitempty"` 619} 620 621func (x *BatchEnableServicesResponse) Reset() { 622 *x = BatchEnableServicesResponse{} 623 if protoimpl.UnsafeEnabled { 624 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[8] 625 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 626 ms.StoreMessageInfo(mi) 627 } 628} 629 630func (x *BatchEnableServicesResponse) String() string { 631 return protoimpl.X.MessageStringOf(x) 632} 633 634func (*BatchEnableServicesResponse) ProtoMessage() {} 635 636func (x *BatchEnableServicesResponse) ProtoReflect() protoreflect.Message { 637 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[8] 638 if protoimpl.UnsafeEnabled && x != nil { 639 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 640 if ms.LoadMessageInfo() == nil { 641 ms.StoreMessageInfo(mi) 642 } 643 return ms 644 } 645 return mi.MessageOf(x) 646} 647 648// Deprecated: Use BatchEnableServicesResponse.ProtoReflect.Descriptor instead. 649func (*BatchEnableServicesResponse) Descriptor() ([]byte, []int) { 650 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{8} 651} 652 653func (x *BatchEnableServicesResponse) GetServices() []*Service { 654 if x != nil { 655 return x.Services 656 } 657 return nil 658} 659 660func (x *BatchEnableServicesResponse) GetFailures() []*BatchEnableServicesResponse_EnableFailure { 661 if x != nil { 662 return x.Failures 663 } 664 return nil 665} 666 667// Request message for the `BatchGetServices` method. 668type BatchGetServicesRequest struct { 669 state protoimpl.MessageState 670 sizeCache protoimpl.SizeCache 671 unknownFields protoimpl.UnknownFields 672 673 // Parent to retrieve services from. 674 // If this is set, the parent of all of the services specified in `names` must 675 // match this field. An example name would be: `projects/123` where `123` is 676 // the project number. The `BatchGetServices` method currently only supports 677 // projects. 678 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 679 // Names of the services to retrieve. 680 // 681 // An example name would be: 682 // `projects/123/services/serviceusage.googleapis.com` where `123` is the 683 // project number. 684 // A single request can get a maximum of 30 services at a time. 685 Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"` 686} 687 688func (x *BatchGetServicesRequest) Reset() { 689 *x = BatchGetServicesRequest{} 690 if protoimpl.UnsafeEnabled { 691 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[9] 692 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 693 ms.StoreMessageInfo(mi) 694 } 695} 696 697func (x *BatchGetServicesRequest) String() string { 698 return protoimpl.X.MessageStringOf(x) 699} 700 701func (*BatchGetServicesRequest) ProtoMessage() {} 702 703func (x *BatchGetServicesRequest) ProtoReflect() protoreflect.Message { 704 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[9] 705 if protoimpl.UnsafeEnabled && x != nil { 706 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 707 if ms.LoadMessageInfo() == nil { 708 ms.StoreMessageInfo(mi) 709 } 710 return ms 711 } 712 return mi.MessageOf(x) 713} 714 715// Deprecated: Use BatchGetServicesRequest.ProtoReflect.Descriptor instead. 716func (*BatchGetServicesRequest) Descriptor() ([]byte, []int) { 717 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{9} 718} 719 720func (x *BatchGetServicesRequest) GetParent() string { 721 if x != nil { 722 return x.Parent 723 } 724 return "" 725} 726 727func (x *BatchGetServicesRequest) GetNames() []string { 728 if x != nil { 729 return x.Names 730 } 731 return nil 732} 733 734// Response message for the `BatchGetServices` method. 735type BatchGetServicesResponse struct { 736 state protoimpl.MessageState 737 sizeCache protoimpl.SizeCache 738 unknownFields protoimpl.UnknownFields 739 740 // The requested Service states. 741 Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` 742} 743 744func (x *BatchGetServicesResponse) Reset() { 745 *x = BatchGetServicesResponse{} 746 if protoimpl.UnsafeEnabled { 747 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[10] 748 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 749 ms.StoreMessageInfo(mi) 750 } 751} 752 753func (x *BatchGetServicesResponse) String() string { 754 return protoimpl.X.MessageStringOf(x) 755} 756 757func (*BatchGetServicesResponse) ProtoMessage() {} 758 759func (x *BatchGetServicesResponse) ProtoReflect() protoreflect.Message { 760 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[10] 761 if protoimpl.UnsafeEnabled && x != nil { 762 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 763 if ms.LoadMessageInfo() == nil { 764 ms.StoreMessageInfo(mi) 765 } 766 return ms 767 } 768 return mi.MessageOf(x) 769} 770 771// Deprecated: Use BatchGetServicesResponse.ProtoReflect.Descriptor instead. 772func (*BatchGetServicesResponse) Descriptor() ([]byte, []int) { 773 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{10} 774} 775 776func (x *BatchGetServicesResponse) GetServices() []*Service { 777 if x != nil { 778 return x.Services 779 } 780 return nil 781} 782 783// Provides error messages for the failing services. 784type BatchEnableServicesResponse_EnableFailure struct { 785 state protoimpl.MessageState 786 sizeCache protoimpl.SizeCache 787 unknownFields protoimpl.UnknownFields 788 789 // The service id of a service that could not be enabled. 790 ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` 791 // An error message describing why the service could not be enabled. 792 ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` 793} 794 795func (x *BatchEnableServicesResponse_EnableFailure) Reset() { 796 *x = BatchEnableServicesResponse_EnableFailure{} 797 if protoimpl.UnsafeEnabled { 798 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[11] 799 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 800 ms.StoreMessageInfo(mi) 801 } 802} 803 804func (x *BatchEnableServicesResponse_EnableFailure) String() string { 805 return protoimpl.X.MessageStringOf(x) 806} 807 808func (*BatchEnableServicesResponse_EnableFailure) ProtoMessage() {} 809 810func (x *BatchEnableServicesResponse_EnableFailure) ProtoReflect() protoreflect.Message { 811 mi := &file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[11] 812 if protoimpl.UnsafeEnabled && x != nil { 813 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 814 if ms.LoadMessageInfo() == nil { 815 ms.StoreMessageInfo(mi) 816 } 817 return ms 818 } 819 return mi.MessageOf(x) 820} 821 822// Deprecated: Use BatchEnableServicesResponse_EnableFailure.ProtoReflect.Descriptor instead. 823func (*BatchEnableServicesResponse_EnableFailure) Descriptor() ([]byte, []int) { 824 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP(), []int{8, 0} 825} 826 827func (x *BatchEnableServicesResponse_EnableFailure) GetServiceId() string { 828 if x != nil { 829 return x.ServiceId 830 } 831 return "" 832} 833 834func (x *BatchEnableServicesResponse_EnableFailure) GetErrorMessage() string { 835 if x != nil { 836 return x.ErrorMessage 837 } 838 return "" 839} 840 841var File_google_api_serviceusage_v1_serviceusage_proto protoreflect.FileDescriptor 842 843var file_google_api_serviceusage_v1_serviceusage_proto_rawDesc = []byte{ 844 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 845 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 846 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 847 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 848 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 849 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 850 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 851 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 852 0x67, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 853 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 854 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 855 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 856 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 857 0x6f, 0x74, 0x6f, 0x22, 0x2a, 0x0a, 0x14, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 858 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 859 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 860 0x56, 0x0a, 0x15, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 861 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 862 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 863 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 864 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 865 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0xcb, 0x02, 0x0a, 0x15, 0x44, 0x69, 0x73, 0x61, 866 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 867 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 868 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 869 0x5f, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 870 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x64, 0x69, 0x73, 0x61, 0x62, 871 0x6c, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 872 0x63, 0x65, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x1a, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x69, 0x66, 873 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x5f, 0x75, 0x73, 0x61, 874 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 875 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 876 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 877 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 878 0x6b, 0x49, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x61, 0x73, 0x55, 0x73, 0x61, 879 0x67, 0x65, 0x52, 0x16, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 880 0x63, 0x65, 0x48, 0x61, 0x73, 0x55, 0x73, 0x61, 0x67, 0x65, 0x22, 0x59, 0x0a, 0x16, 0x43, 0x68, 881 0x65, 0x63, 0x6b, 0x49, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x61, 0x73, 0x55, 882 0x73, 0x61, 0x67, 0x65, 0x12, 0x2a, 0x0a, 0x26, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x5f, 0x49, 0x46, 883 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x48, 0x41, 0x53, 0x5f, 0x55, 0x53, 0x41, 884 0x47, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 885 0x12, 0x08, 0x0a, 0x04, 0x53, 0x4b, 0x49, 0x50, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x43, 0x48, 886 0x45, 0x43, 0x4b, 0x10, 0x02, 0x22, 0x57, 0x0a, 0x16, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 887 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 888 0x3d, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 889 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 890 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 891 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x27, 892 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 893 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 894 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x81, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 895 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 896 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 897 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 898 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 899 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 900 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 901 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 902 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x7f, 0x0a, 0x14, 0x4c, 903 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 904 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 905 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 906 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 907 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 908 0x69, 0x63, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 909 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 910 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x55, 0x0a, 0x1a, 911 0x42, 0x61, 0x74, 0x63, 0x68, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 912 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 913 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 914 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 915 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 916 0x49, 0x64, 0x73, 0x22, 0x96, 0x02, 0x0a, 0x1b, 0x42, 0x61, 0x74, 0x63, 0x68, 0x45, 0x6e, 0x61, 917 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 918 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 919 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 920 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 921 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 922 0x69, 0x63, 0x65, 0x73, 0x12, 0x61, 0x0a, 0x08, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 923 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 924 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 925 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 926 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 927 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x08, 0x66, 928 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 0x1a, 0x53, 0x0a, 0x0d, 0x45, 0x6e, 0x61, 0x62, 0x6c, 929 0x65, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 930 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 931 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 932 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 933 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x47, 0x0a, 0x17, 934 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 935 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 936 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 937 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 938 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x5b, 0x0a, 0x18, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 939 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 940 0x65, 0x12, 0x3f, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 941 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 942 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 943 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 944 0x65, 0x73, 0x32, 0xe8, 0x09, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x55, 0x73, 945 0x61, 0x67, 0x65, 0x12, 0xba, 0x01, 0x0a, 0x0d, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 946 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 947 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 948 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 949 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 950 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 951 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x58, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 952 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x2a, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 953 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 954 0x3a, 0x01, 0x2a, 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 955 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 0x4f, 956 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 957 0x12, 0xbe, 0x01, 0x0a, 0x0e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 958 0x69, 0x63, 0x65, 0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 959 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 960 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 961 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 962 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 963 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x22, 0x21, 0x2f, 964 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x2a, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x72, 965 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 966 0x3a, 0x01, 0x2a, 0xca, 0x41, 0x2b, 0x0a, 0x16, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 967 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x11, 968 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 969 0x61, 0x12, 0x83, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 970 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 971 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 972 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 973 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 974 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 975 0x76, 0x69, 0x63, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 976 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x2a, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x72, 0x76, 977 0x69, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x94, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 978 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 979 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 980 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 981 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 982 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 983 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 984 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 985 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 986 0x3d, 0x2a, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0xd1, 987 0x01, 0x0a, 0x13, 0x42, 0x61, 0x74, 0x63, 0x68, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 988 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 989 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 990 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 991 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 992 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 993 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x63, 0x82, 994 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x22, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 995 0x6e, 0x74, 0x3d, 0x2a, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 996 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x3a, 0x01, 0x2a, 0xca, 997 0x41, 0x30, 0x0a, 0x1b, 0x42, 0x61, 0x74, 0x63, 0x68, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 998 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 999 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 1000 0x74, 0x61, 0x12, 0xa9, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x53, 1001 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 1002 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 1003 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 1004 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x67, 1005 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 1006 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 1007 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 1008 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 1009 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x2a, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x72, 1010 0x76, 0x69, 0x63, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x1a, 0xbc, 1011 0x01, 0xca, 0x41, 0x1b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 1012 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 1013 0x41, 0x9a, 0x01, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 1014 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 1015 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 1016 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 1017 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 1018 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 1019 0x2e, 0x72, 0x65, 0x61, 0x64, 0x2d, 0x6f, 0x6e, 0x6c, 0x79, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 1020 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 1021 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 1022 0x63, 0x65, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0xdd, 0x01, 1023 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 1024 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 1025 0x42, 0x11, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 1026 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 1027 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 1028 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 1029 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 1030 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x75, 0x73, 0x61, 0x67, 0x65, 0xaa, 0x02, 0x1c, 1031 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x72, 1032 0x76, 0x69, 0x63, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1c, 0x47, 1033 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x72, 0x76, 1034 0x69, 0x63, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1f, 0x47, 0x6f, 1035 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x72, 1036 0x76, 0x69, 0x63, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 1037 0x72, 0x6f, 0x74, 0x6f, 0x33, 1038} 1039 1040var ( 1041 file_google_api_serviceusage_v1_serviceusage_proto_rawDescOnce sync.Once 1042 file_google_api_serviceusage_v1_serviceusage_proto_rawDescData = file_google_api_serviceusage_v1_serviceusage_proto_rawDesc 1043) 1044 1045func file_google_api_serviceusage_v1_serviceusage_proto_rawDescGZIP() []byte { 1046 file_google_api_serviceusage_v1_serviceusage_proto_rawDescOnce.Do(func() { 1047 file_google_api_serviceusage_v1_serviceusage_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_serviceusage_v1_serviceusage_proto_rawDescData) 1048 }) 1049 return file_google_api_serviceusage_v1_serviceusage_proto_rawDescData 1050} 1051 1052var file_google_api_serviceusage_v1_serviceusage_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 1053var file_google_api_serviceusage_v1_serviceusage_proto_msgTypes = make([]protoimpl.MessageInfo, 12) 1054var file_google_api_serviceusage_v1_serviceusage_proto_goTypes = []interface{}{ 1055 (DisableServiceRequest_CheckIfServiceHasUsage)(0), // 0: google.api.serviceusage.v1.DisableServiceRequest.CheckIfServiceHasUsage 1056 (*EnableServiceRequest)(nil), // 1: google.api.serviceusage.v1.EnableServiceRequest 1057 (*EnableServiceResponse)(nil), // 2: google.api.serviceusage.v1.EnableServiceResponse 1058 (*DisableServiceRequest)(nil), // 3: google.api.serviceusage.v1.DisableServiceRequest 1059 (*DisableServiceResponse)(nil), // 4: google.api.serviceusage.v1.DisableServiceResponse 1060 (*GetServiceRequest)(nil), // 5: google.api.serviceusage.v1.GetServiceRequest 1061 (*ListServicesRequest)(nil), // 6: google.api.serviceusage.v1.ListServicesRequest 1062 (*ListServicesResponse)(nil), // 7: google.api.serviceusage.v1.ListServicesResponse 1063 (*BatchEnableServicesRequest)(nil), // 8: google.api.serviceusage.v1.BatchEnableServicesRequest 1064 (*BatchEnableServicesResponse)(nil), // 9: google.api.serviceusage.v1.BatchEnableServicesResponse 1065 (*BatchGetServicesRequest)(nil), // 10: google.api.serviceusage.v1.BatchGetServicesRequest 1066 (*BatchGetServicesResponse)(nil), // 11: google.api.serviceusage.v1.BatchGetServicesResponse 1067 (*BatchEnableServicesResponse_EnableFailure)(nil), // 12: google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure 1068 (*Service)(nil), // 13: google.api.serviceusage.v1.Service 1069 (*longrunning.Operation)(nil), // 14: google.longrunning.Operation 1070} 1071var file_google_api_serviceusage_v1_serviceusage_proto_depIdxs = []int32{ 1072 13, // 0: google.api.serviceusage.v1.EnableServiceResponse.service:type_name -> google.api.serviceusage.v1.Service 1073 0, // 1: google.api.serviceusage.v1.DisableServiceRequest.check_if_service_has_usage:type_name -> google.api.serviceusage.v1.DisableServiceRequest.CheckIfServiceHasUsage 1074 13, // 2: google.api.serviceusage.v1.DisableServiceResponse.service:type_name -> google.api.serviceusage.v1.Service 1075 13, // 3: google.api.serviceusage.v1.ListServicesResponse.services:type_name -> google.api.serviceusage.v1.Service 1076 13, // 4: google.api.serviceusage.v1.BatchEnableServicesResponse.services:type_name -> google.api.serviceusage.v1.Service 1077 12, // 5: google.api.serviceusage.v1.BatchEnableServicesResponse.failures:type_name -> google.api.serviceusage.v1.BatchEnableServicesResponse.EnableFailure 1078 13, // 6: google.api.serviceusage.v1.BatchGetServicesResponse.services:type_name -> google.api.serviceusage.v1.Service 1079 1, // 7: google.api.serviceusage.v1.ServiceUsage.EnableService:input_type -> google.api.serviceusage.v1.EnableServiceRequest 1080 3, // 8: google.api.serviceusage.v1.ServiceUsage.DisableService:input_type -> google.api.serviceusage.v1.DisableServiceRequest 1081 5, // 9: google.api.serviceusage.v1.ServiceUsage.GetService:input_type -> google.api.serviceusage.v1.GetServiceRequest 1082 6, // 10: google.api.serviceusage.v1.ServiceUsage.ListServices:input_type -> google.api.serviceusage.v1.ListServicesRequest 1083 8, // 11: google.api.serviceusage.v1.ServiceUsage.BatchEnableServices:input_type -> google.api.serviceusage.v1.BatchEnableServicesRequest 1084 10, // 12: google.api.serviceusage.v1.ServiceUsage.BatchGetServices:input_type -> google.api.serviceusage.v1.BatchGetServicesRequest 1085 14, // 13: google.api.serviceusage.v1.ServiceUsage.EnableService:output_type -> google.longrunning.Operation 1086 14, // 14: google.api.serviceusage.v1.ServiceUsage.DisableService:output_type -> google.longrunning.Operation 1087 13, // 15: google.api.serviceusage.v1.ServiceUsage.GetService:output_type -> google.api.serviceusage.v1.Service 1088 7, // 16: google.api.serviceusage.v1.ServiceUsage.ListServices:output_type -> google.api.serviceusage.v1.ListServicesResponse 1089 14, // 17: google.api.serviceusage.v1.ServiceUsage.BatchEnableServices:output_type -> google.longrunning.Operation 1090 11, // 18: google.api.serviceusage.v1.ServiceUsage.BatchGetServices:output_type -> google.api.serviceusage.v1.BatchGetServicesResponse 1091 13, // [13:19] is the sub-list for method output_type 1092 7, // [7:13] is the sub-list for method input_type 1093 7, // [7:7] is the sub-list for extension type_name 1094 7, // [7:7] is the sub-list for extension extendee 1095 0, // [0:7] is the sub-list for field type_name 1096} 1097 1098func init() { file_google_api_serviceusage_v1_serviceusage_proto_init() } 1099func file_google_api_serviceusage_v1_serviceusage_proto_init() { 1100 if File_google_api_serviceusage_v1_serviceusage_proto != nil { 1101 return 1102 } 1103 file_google_api_serviceusage_v1_resources_proto_init() 1104 if !protoimpl.UnsafeEnabled { 1105 file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1106 switch v := v.(*EnableServiceRequest); i { 1107 case 0: 1108 return &v.state 1109 case 1: 1110 return &v.sizeCache 1111 case 2: 1112 return &v.unknownFields 1113 default: 1114 return nil 1115 } 1116 } 1117 file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1118 switch v := v.(*EnableServiceResponse); i { 1119 case 0: 1120 return &v.state 1121 case 1: 1122 return &v.sizeCache 1123 case 2: 1124 return &v.unknownFields 1125 default: 1126 return nil 1127 } 1128 } 1129 file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1130 switch v := v.(*DisableServiceRequest); i { 1131 case 0: 1132 return &v.state 1133 case 1: 1134 return &v.sizeCache 1135 case 2: 1136 return &v.unknownFields 1137 default: 1138 return nil 1139 } 1140 } 1141 file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1142 switch v := v.(*DisableServiceResponse); i { 1143 case 0: 1144 return &v.state 1145 case 1: 1146 return &v.sizeCache 1147 case 2: 1148 return &v.unknownFields 1149 default: 1150 return nil 1151 } 1152 } 1153 file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1154 switch v := v.(*GetServiceRequest); i { 1155 case 0: 1156 return &v.state 1157 case 1: 1158 return &v.sizeCache 1159 case 2: 1160 return &v.unknownFields 1161 default: 1162 return nil 1163 } 1164 } 1165 file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1166 switch v := v.(*ListServicesRequest); i { 1167 case 0: 1168 return &v.state 1169 case 1: 1170 return &v.sizeCache 1171 case 2: 1172 return &v.unknownFields 1173 default: 1174 return nil 1175 } 1176 } 1177 file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1178 switch v := v.(*ListServicesResponse); i { 1179 case 0: 1180 return &v.state 1181 case 1: 1182 return &v.sizeCache 1183 case 2: 1184 return &v.unknownFields 1185 default: 1186 return nil 1187 } 1188 } 1189 file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1190 switch v := v.(*BatchEnableServicesRequest); i { 1191 case 0: 1192 return &v.state 1193 case 1: 1194 return &v.sizeCache 1195 case 2: 1196 return &v.unknownFields 1197 default: 1198 return nil 1199 } 1200 } 1201 file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1202 switch v := v.(*BatchEnableServicesResponse); i { 1203 case 0: 1204 return &v.state 1205 case 1: 1206 return &v.sizeCache 1207 case 2: 1208 return &v.unknownFields 1209 default: 1210 return nil 1211 } 1212 } 1213 file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1214 switch v := v.(*BatchGetServicesRequest); i { 1215 case 0: 1216 return &v.state 1217 case 1: 1218 return &v.sizeCache 1219 case 2: 1220 return &v.unknownFields 1221 default: 1222 return nil 1223 } 1224 } 1225 file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1226 switch v := v.(*BatchGetServicesResponse); i { 1227 case 0: 1228 return &v.state 1229 case 1: 1230 return &v.sizeCache 1231 case 2: 1232 return &v.unknownFields 1233 default: 1234 return nil 1235 } 1236 } 1237 file_google_api_serviceusage_v1_serviceusage_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1238 switch v := v.(*BatchEnableServicesResponse_EnableFailure); i { 1239 case 0: 1240 return &v.state 1241 case 1: 1242 return &v.sizeCache 1243 case 2: 1244 return &v.unknownFields 1245 default: 1246 return nil 1247 } 1248 } 1249 } 1250 type x struct{} 1251 out := protoimpl.TypeBuilder{ 1252 File: protoimpl.DescBuilder{ 1253 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1254 RawDescriptor: file_google_api_serviceusage_v1_serviceusage_proto_rawDesc, 1255 NumEnums: 1, 1256 NumMessages: 12, 1257 NumExtensions: 0, 1258 NumServices: 1, 1259 }, 1260 GoTypes: file_google_api_serviceusage_v1_serviceusage_proto_goTypes, 1261 DependencyIndexes: file_google_api_serviceusage_v1_serviceusage_proto_depIdxs, 1262 EnumInfos: file_google_api_serviceusage_v1_serviceusage_proto_enumTypes, 1263 MessageInfos: file_google_api_serviceusage_v1_serviceusage_proto_msgTypes, 1264 }.Build() 1265 File_google_api_serviceusage_v1_serviceusage_proto = out.File 1266 file_google_api_serviceusage_v1_serviceusage_proto_rawDesc = nil 1267 file_google_api_serviceusage_v1_serviceusage_proto_goTypes = nil 1268 file_google_api_serviceusage_v1_serviceusage_proto_depIdxs = nil 1269} 1270 1271// Reference imports to suppress errors if they are not otherwise used. 1272var _ context.Context 1273var _ grpc.ClientConnInterface 1274 1275// This is a compile-time assertion to ensure that this generated file 1276// is compatible with the grpc package it is being compiled against. 1277const _ = grpc.SupportPackageIsVersion6 1278 1279// ServiceUsageClient is the client API for ServiceUsage service. 1280// 1281// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1282type ServiceUsageClient interface { 1283 // Enable a service so that it can be used with a project. 1284 EnableService(ctx context.Context, in *EnableServiceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1285 // Disable a service so that it can no longer be used with a project. 1286 // This prevents unintended usage that may cause unexpected billing 1287 // charges or security leaks. 1288 // 1289 // It is not valid to call the disable method on a service that is not 1290 // currently enabled. Callers will receive a `FAILED_PRECONDITION` status if 1291 // the target service is not currently enabled. 1292 DisableService(ctx context.Context, in *DisableServiceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1293 // Returns the service configuration and enabled state for a given service. 1294 GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*Service, error) 1295 // List all services available to the specified project, and the current 1296 // state of those services with respect to the project. The list includes 1297 // all public services, all services for which the calling user has the 1298 // `servicemanagement.services.bind` permission, and all services that have 1299 // already been enabled on the project. The list can be filtered to 1300 // only include services in a specific state, for example to only include 1301 // services enabled on the project. 1302 // 1303 // WARNING: If you need to query enabled services frequently or across 1304 // an organization, you should use 1305 // [Cloud Asset Inventory 1306 // API](https://cloud.google.com/asset-inventory/docs/apis), which provides 1307 // higher throughput and richer filtering capability. 1308 ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error) 1309 // Enable multiple services on a project. The operation is atomic: if enabling 1310 // any service fails, then the entire batch fails, and no state changes occur. 1311 // To enable a single service, use the `EnableService` method instead. 1312 BatchEnableServices(ctx context.Context, in *BatchEnableServicesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1313 // Returns the service configurations and enabled states for a given list of 1314 // services. 1315 BatchGetServices(ctx context.Context, in *BatchGetServicesRequest, opts ...grpc.CallOption) (*BatchGetServicesResponse, error) 1316} 1317 1318type serviceUsageClient struct { 1319 cc grpc.ClientConnInterface 1320} 1321 1322func NewServiceUsageClient(cc grpc.ClientConnInterface) ServiceUsageClient { 1323 return &serviceUsageClient{cc} 1324} 1325 1326func (c *serviceUsageClient) EnableService(ctx context.Context, in *EnableServiceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1327 out := new(longrunning.Operation) 1328 err := c.cc.Invoke(ctx, "/google.api.serviceusage.v1.ServiceUsage/EnableService", in, out, opts...) 1329 if err != nil { 1330 return nil, err 1331 } 1332 return out, nil 1333} 1334 1335func (c *serviceUsageClient) DisableService(ctx context.Context, in *DisableServiceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1336 out := new(longrunning.Operation) 1337 err := c.cc.Invoke(ctx, "/google.api.serviceusage.v1.ServiceUsage/DisableService", in, out, opts...) 1338 if err != nil { 1339 return nil, err 1340 } 1341 return out, nil 1342} 1343 1344func (c *serviceUsageClient) GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*Service, error) { 1345 out := new(Service) 1346 err := c.cc.Invoke(ctx, "/google.api.serviceusage.v1.ServiceUsage/GetService", in, out, opts...) 1347 if err != nil { 1348 return nil, err 1349 } 1350 return out, nil 1351} 1352 1353func (c *serviceUsageClient) ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error) { 1354 out := new(ListServicesResponse) 1355 err := c.cc.Invoke(ctx, "/google.api.serviceusage.v1.ServiceUsage/ListServices", in, out, opts...) 1356 if err != nil { 1357 return nil, err 1358 } 1359 return out, nil 1360} 1361 1362func (c *serviceUsageClient) BatchEnableServices(ctx context.Context, in *BatchEnableServicesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1363 out := new(longrunning.Operation) 1364 err := c.cc.Invoke(ctx, "/google.api.serviceusage.v1.ServiceUsage/BatchEnableServices", in, out, opts...) 1365 if err != nil { 1366 return nil, err 1367 } 1368 return out, nil 1369} 1370 1371func (c *serviceUsageClient) BatchGetServices(ctx context.Context, in *BatchGetServicesRequest, opts ...grpc.CallOption) (*BatchGetServicesResponse, error) { 1372 out := new(BatchGetServicesResponse) 1373 err := c.cc.Invoke(ctx, "/google.api.serviceusage.v1.ServiceUsage/BatchGetServices", in, out, opts...) 1374 if err != nil { 1375 return nil, err 1376 } 1377 return out, nil 1378} 1379 1380// ServiceUsageServer is the server API for ServiceUsage service. 1381type ServiceUsageServer interface { 1382 // Enable a service so that it can be used with a project. 1383 EnableService(context.Context, *EnableServiceRequest) (*longrunning.Operation, error) 1384 // Disable a service so that it can no longer be used with a project. 1385 // This prevents unintended usage that may cause unexpected billing 1386 // charges or security leaks. 1387 // 1388 // It is not valid to call the disable method on a service that is not 1389 // currently enabled. Callers will receive a `FAILED_PRECONDITION` status if 1390 // the target service is not currently enabled. 1391 DisableService(context.Context, *DisableServiceRequest) (*longrunning.Operation, error) 1392 // Returns the service configuration and enabled state for a given service. 1393 GetService(context.Context, *GetServiceRequest) (*Service, error) 1394 // List all services available to the specified project, and the current 1395 // state of those services with respect to the project. The list includes 1396 // all public services, all services for which the calling user has the 1397 // `servicemanagement.services.bind` permission, and all services that have 1398 // already been enabled on the project. The list can be filtered to 1399 // only include services in a specific state, for example to only include 1400 // services enabled on the project. 1401 // 1402 // WARNING: If you need to query enabled services frequently or across 1403 // an organization, you should use 1404 // [Cloud Asset Inventory 1405 // API](https://cloud.google.com/asset-inventory/docs/apis), which provides 1406 // higher throughput and richer filtering capability. 1407 ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) 1408 // Enable multiple services on a project. The operation is atomic: if enabling 1409 // any service fails, then the entire batch fails, and no state changes occur. 1410 // To enable a single service, use the `EnableService` method instead. 1411 BatchEnableServices(context.Context, *BatchEnableServicesRequest) (*longrunning.Operation, error) 1412 // Returns the service configurations and enabled states for a given list of 1413 // services. 1414 BatchGetServices(context.Context, *BatchGetServicesRequest) (*BatchGetServicesResponse, error) 1415} 1416 1417// UnimplementedServiceUsageServer can be embedded to have forward compatible implementations. 1418type UnimplementedServiceUsageServer struct { 1419} 1420 1421func (*UnimplementedServiceUsageServer) EnableService(context.Context, *EnableServiceRequest) (*longrunning.Operation, error) { 1422 return nil, status.Errorf(codes.Unimplemented, "method EnableService not implemented") 1423} 1424func (*UnimplementedServiceUsageServer) DisableService(context.Context, *DisableServiceRequest) (*longrunning.Operation, error) { 1425 return nil, status.Errorf(codes.Unimplemented, "method DisableService not implemented") 1426} 1427func (*UnimplementedServiceUsageServer) GetService(context.Context, *GetServiceRequest) (*Service, error) { 1428 return nil, status.Errorf(codes.Unimplemented, "method GetService not implemented") 1429} 1430func (*UnimplementedServiceUsageServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error) { 1431 return nil, status.Errorf(codes.Unimplemented, "method ListServices not implemented") 1432} 1433func (*UnimplementedServiceUsageServer) BatchEnableServices(context.Context, *BatchEnableServicesRequest) (*longrunning.Operation, error) { 1434 return nil, status.Errorf(codes.Unimplemented, "method BatchEnableServices not implemented") 1435} 1436func (*UnimplementedServiceUsageServer) BatchGetServices(context.Context, *BatchGetServicesRequest) (*BatchGetServicesResponse, error) { 1437 return nil, status.Errorf(codes.Unimplemented, "method BatchGetServices not implemented") 1438} 1439 1440func RegisterServiceUsageServer(s *grpc.Server, srv ServiceUsageServer) { 1441 s.RegisterService(&_ServiceUsage_serviceDesc, srv) 1442} 1443 1444func _ServiceUsage_EnableService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1445 in := new(EnableServiceRequest) 1446 if err := dec(in); err != nil { 1447 return nil, err 1448 } 1449 if interceptor == nil { 1450 return srv.(ServiceUsageServer).EnableService(ctx, in) 1451 } 1452 info := &grpc.UnaryServerInfo{ 1453 Server: srv, 1454 FullMethod: "/google.api.serviceusage.v1.ServiceUsage/EnableService", 1455 } 1456 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1457 return srv.(ServiceUsageServer).EnableService(ctx, req.(*EnableServiceRequest)) 1458 } 1459 return interceptor(ctx, in, info, handler) 1460} 1461 1462func _ServiceUsage_DisableService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1463 in := new(DisableServiceRequest) 1464 if err := dec(in); err != nil { 1465 return nil, err 1466 } 1467 if interceptor == nil { 1468 return srv.(ServiceUsageServer).DisableService(ctx, in) 1469 } 1470 info := &grpc.UnaryServerInfo{ 1471 Server: srv, 1472 FullMethod: "/google.api.serviceusage.v1.ServiceUsage/DisableService", 1473 } 1474 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1475 return srv.(ServiceUsageServer).DisableService(ctx, req.(*DisableServiceRequest)) 1476 } 1477 return interceptor(ctx, in, info, handler) 1478} 1479 1480func _ServiceUsage_GetService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1481 in := new(GetServiceRequest) 1482 if err := dec(in); err != nil { 1483 return nil, err 1484 } 1485 if interceptor == nil { 1486 return srv.(ServiceUsageServer).GetService(ctx, in) 1487 } 1488 info := &grpc.UnaryServerInfo{ 1489 Server: srv, 1490 FullMethod: "/google.api.serviceusage.v1.ServiceUsage/GetService", 1491 } 1492 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1493 return srv.(ServiceUsageServer).GetService(ctx, req.(*GetServiceRequest)) 1494 } 1495 return interceptor(ctx, in, info, handler) 1496} 1497 1498func _ServiceUsage_ListServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1499 in := new(ListServicesRequest) 1500 if err := dec(in); err != nil { 1501 return nil, err 1502 } 1503 if interceptor == nil { 1504 return srv.(ServiceUsageServer).ListServices(ctx, in) 1505 } 1506 info := &grpc.UnaryServerInfo{ 1507 Server: srv, 1508 FullMethod: "/google.api.serviceusage.v1.ServiceUsage/ListServices", 1509 } 1510 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1511 return srv.(ServiceUsageServer).ListServices(ctx, req.(*ListServicesRequest)) 1512 } 1513 return interceptor(ctx, in, info, handler) 1514} 1515 1516func _ServiceUsage_BatchEnableServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1517 in := new(BatchEnableServicesRequest) 1518 if err := dec(in); err != nil { 1519 return nil, err 1520 } 1521 if interceptor == nil { 1522 return srv.(ServiceUsageServer).BatchEnableServices(ctx, in) 1523 } 1524 info := &grpc.UnaryServerInfo{ 1525 Server: srv, 1526 FullMethod: "/google.api.serviceusage.v1.ServiceUsage/BatchEnableServices", 1527 } 1528 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1529 return srv.(ServiceUsageServer).BatchEnableServices(ctx, req.(*BatchEnableServicesRequest)) 1530 } 1531 return interceptor(ctx, in, info, handler) 1532} 1533 1534func _ServiceUsage_BatchGetServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1535 in := new(BatchGetServicesRequest) 1536 if err := dec(in); err != nil { 1537 return nil, err 1538 } 1539 if interceptor == nil { 1540 return srv.(ServiceUsageServer).BatchGetServices(ctx, in) 1541 } 1542 info := &grpc.UnaryServerInfo{ 1543 Server: srv, 1544 FullMethod: "/google.api.serviceusage.v1.ServiceUsage/BatchGetServices", 1545 } 1546 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1547 return srv.(ServiceUsageServer).BatchGetServices(ctx, req.(*BatchGetServicesRequest)) 1548 } 1549 return interceptor(ctx, in, info, handler) 1550} 1551 1552var _ServiceUsage_serviceDesc = grpc.ServiceDesc{ 1553 ServiceName: "google.api.serviceusage.v1.ServiceUsage", 1554 HandlerType: (*ServiceUsageServer)(nil), 1555 Methods: []grpc.MethodDesc{ 1556 { 1557 MethodName: "EnableService", 1558 Handler: _ServiceUsage_EnableService_Handler, 1559 }, 1560 { 1561 MethodName: "DisableService", 1562 Handler: _ServiceUsage_DisableService_Handler, 1563 }, 1564 { 1565 MethodName: "GetService", 1566 Handler: _ServiceUsage_GetService_Handler, 1567 }, 1568 { 1569 MethodName: "ListServices", 1570 Handler: _ServiceUsage_ListServices_Handler, 1571 }, 1572 { 1573 MethodName: "BatchEnableServices", 1574 Handler: _ServiceUsage_BatchEnableServices_Handler, 1575 }, 1576 { 1577 MethodName: "BatchGetServices", 1578 Handler: _ServiceUsage_BatchGetServices_Handler, 1579 }, 1580 }, 1581 Streams: []grpc.StreamDesc{}, 1582 Metadata: "google/api/serviceusage/v1/serviceusage.proto", 1583} 1584