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