1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/resourcemanager/v2/folders.proto 3 4package resourcemanager 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 timestamp "github.com/golang/protobuf/ptypes/timestamp" 13 _ "google.golang.org/genproto/googleapis/api/annotations" 14 v1 "google.golang.org/genproto/googleapis/iam/v1" 15 longrunning "google.golang.org/genproto/googleapis/longrunning" 16 field_mask "google.golang.org/genproto/protobuf/field_mask" 17 grpc "google.golang.org/grpc" 18) 19 20// Reference imports to suppress errors if they are not otherwise used. 21var _ = proto.Marshal 22var _ = fmt.Errorf 23var _ = math.Inf 24 25// This is a compile-time assertion to ensure that this generated file 26// is compatible with the proto package it is being compiled against. 27// A compilation error at this line likely means your copy of the 28// proto package needs to be updated. 29const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 30 31// Folder lifecycle states. 32type Folder_LifecycleState int32 33 34const ( 35 // Unspecified state. 36 Folder_LIFECYCLE_STATE_UNSPECIFIED Folder_LifecycleState = 0 37 // The normal and active state. 38 Folder_ACTIVE Folder_LifecycleState = 1 39 // The folder has been marked for deletion by the user. 40 Folder_DELETE_REQUESTED Folder_LifecycleState = 2 41) 42 43var Folder_LifecycleState_name = map[int32]string{ 44 0: "LIFECYCLE_STATE_UNSPECIFIED", 45 1: "ACTIVE", 46 2: "DELETE_REQUESTED", 47} 48 49var Folder_LifecycleState_value = map[string]int32{ 50 "LIFECYCLE_STATE_UNSPECIFIED": 0, 51 "ACTIVE": 1, 52 "DELETE_REQUESTED": 2, 53} 54 55func (x Folder_LifecycleState) String() string { 56 return proto.EnumName(Folder_LifecycleState_name, int32(x)) 57} 58 59func (Folder_LifecycleState) EnumDescriptor() ([]byte, []int) { 60 return fileDescriptor_fe78511a4713776e, []int{0, 0} 61} 62 63// The type of operation that failed. 64type FolderOperation_OperationType int32 65 66const ( 67 // Operation type not specified. 68 FolderOperation_OPERATION_TYPE_UNSPECIFIED FolderOperation_OperationType = 0 69 // A create folder operation. 70 FolderOperation_CREATE FolderOperation_OperationType = 1 71 // A move folder operation. 72 FolderOperation_MOVE FolderOperation_OperationType = 2 73) 74 75var FolderOperation_OperationType_name = map[int32]string{ 76 0: "OPERATION_TYPE_UNSPECIFIED", 77 1: "CREATE", 78 2: "MOVE", 79} 80 81var FolderOperation_OperationType_value = map[string]int32{ 82 "OPERATION_TYPE_UNSPECIFIED": 0, 83 "CREATE": 1, 84 "MOVE": 2, 85} 86 87func (x FolderOperation_OperationType) String() string { 88 return proto.EnumName(FolderOperation_OperationType_name, int32(x)) 89} 90 91func (FolderOperation_OperationType) EnumDescriptor() ([]byte, []int) { 92 return fileDescriptor_fe78511a4713776e, []int{11, 0} 93} 94 95// A Folder in an Organization's resource hierarchy, used to 96// organize that Organization's resources. 97type Folder struct { 98 // Output only. The resource name of the Folder. 99 // Its format is `folders/{folder_id}`, for example: "folders/1234". 100 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 101 // The Folder’s parent's resource name. 102 // Updates to the folder's parent must be performed via [MoveFolders]. 103 Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` 104 // The folder’s display name. 105 // A folder’s display name must be unique amongst its siblings, e.g. 106 // no two folders with the same parent can share the same display name. 107 // The display name must start and end with a letter or digit, may contain 108 // letters, digits, spaces, hyphens and underscores and can be no longer 109 // than 30 characters. This is captured by the regular expression: 110 // [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. 111 DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 112 // Output only. The lifecycle state of the folder. 113 // Updates to the lifecycle_state must be performed via 114 // [DeleteFolder] and [UndeleteFolder]. 115 LifecycleState Folder_LifecycleState `protobuf:"varint,4,opt,name=lifecycle_state,json=lifecycleState,proto3,enum=google.cloud.resourcemanager.v2.Folder_LifecycleState" json:"lifecycle_state,omitempty"` 116 // Output only. Timestamp when the Folder was created. Assigned by the server. 117 CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` 118 // Output only. Timestamp when the Folder was last modified. 119 UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` 120 XXX_NoUnkeyedLiteral struct{} `json:"-"` 121 XXX_unrecognized []byte `json:"-"` 122 XXX_sizecache int32 `json:"-"` 123} 124 125func (m *Folder) Reset() { *m = Folder{} } 126func (m *Folder) String() string { return proto.CompactTextString(m) } 127func (*Folder) ProtoMessage() {} 128func (*Folder) Descriptor() ([]byte, []int) { 129 return fileDescriptor_fe78511a4713776e, []int{0} 130} 131 132func (m *Folder) XXX_Unmarshal(b []byte) error { 133 return xxx_messageInfo_Folder.Unmarshal(m, b) 134} 135func (m *Folder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 136 return xxx_messageInfo_Folder.Marshal(b, m, deterministic) 137} 138func (m *Folder) XXX_Merge(src proto.Message) { 139 xxx_messageInfo_Folder.Merge(m, src) 140} 141func (m *Folder) XXX_Size() int { 142 return xxx_messageInfo_Folder.Size(m) 143} 144func (m *Folder) XXX_DiscardUnknown() { 145 xxx_messageInfo_Folder.DiscardUnknown(m) 146} 147 148var xxx_messageInfo_Folder proto.InternalMessageInfo 149 150func (m *Folder) GetName() string { 151 if m != nil { 152 return m.Name 153 } 154 return "" 155} 156 157func (m *Folder) GetParent() string { 158 if m != nil { 159 return m.Parent 160 } 161 return "" 162} 163 164func (m *Folder) GetDisplayName() string { 165 if m != nil { 166 return m.DisplayName 167 } 168 return "" 169} 170 171func (m *Folder) GetLifecycleState() Folder_LifecycleState { 172 if m != nil { 173 return m.LifecycleState 174 } 175 return Folder_LIFECYCLE_STATE_UNSPECIFIED 176} 177 178func (m *Folder) GetCreateTime() *timestamp.Timestamp { 179 if m != nil { 180 return m.CreateTime 181 } 182 return nil 183} 184 185func (m *Folder) GetUpdateTime() *timestamp.Timestamp { 186 if m != nil { 187 return m.UpdateTime 188 } 189 return nil 190} 191 192// The ListFolders request message. 193type ListFoldersRequest struct { 194 // The resource name of the Organization or Folder whose Folders are 195 // being listed. 196 // Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. 197 // Access to this method is controlled by checking the 198 // `resourcemanager.folders.list` permission on the `parent`. 199 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 200 // The maximum number of Folders to return in the response. 201 // This field is optional. 202 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 203 // A pagination token returned from a previous call to `ListFolders` 204 // that indicates where this listing should continue from. 205 // This field is optional. 206 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 207 // Controls whether Folders in the [DELETE_REQUESTED} state should 208 // be returned. 209 ShowDeleted bool `protobuf:"varint,4,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"` 210 XXX_NoUnkeyedLiteral struct{} `json:"-"` 211 XXX_unrecognized []byte `json:"-"` 212 XXX_sizecache int32 `json:"-"` 213} 214 215func (m *ListFoldersRequest) Reset() { *m = ListFoldersRequest{} } 216func (m *ListFoldersRequest) String() string { return proto.CompactTextString(m) } 217func (*ListFoldersRequest) ProtoMessage() {} 218func (*ListFoldersRequest) Descriptor() ([]byte, []int) { 219 return fileDescriptor_fe78511a4713776e, []int{1} 220} 221 222func (m *ListFoldersRequest) XXX_Unmarshal(b []byte) error { 223 return xxx_messageInfo_ListFoldersRequest.Unmarshal(m, b) 224} 225func (m *ListFoldersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 226 return xxx_messageInfo_ListFoldersRequest.Marshal(b, m, deterministic) 227} 228func (m *ListFoldersRequest) XXX_Merge(src proto.Message) { 229 xxx_messageInfo_ListFoldersRequest.Merge(m, src) 230} 231func (m *ListFoldersRequest) XXX_Size() int { 232 return xxx_messageInfo_ListFoldersRequest.Size(m) 233} 234func (m *ListFoldersRequest) XXX_DiscardUnknown() { 235 xxx_messageInfo_ListFoldersRequest.DiscardUnknown(m) 236} 237 238var xxx_messageInfo_ListFoldersRequest proto.InternalMessageInfo 239 240func (m *ListFoldersRequest) GetParent() string { 241 if m != nil { 242 return m.Parent 243 } 244 return "" 245} 246 247func (m *ListFoldersRequest) GetPageSize() int32 { 248 if m != nil { 249 return m.PageSize 250 } 251 return 0 252} 253 254func (m *ListFoldersRequest) GetPageToken() string { 255 if m != nil { 256 return m.PageToken 257 } 258 return "" 259} 260 261func (m *ListFoldersRequest) GetShowDeleted() bool { 262 if m != nil { 263 return m.ShowDeleted 264 } 265 return false 266} 267 268// The ListFolders response message. 269type ListFoldersResponse struct { 270 // A possibly paginated list of Folders that are direct descendants of 271 // the specified parent resource. 272 Folders []*Folder `protobuf:"bytes,1,rep,name=folders,proto3" json:"folders,omitempty"` 273 // A pagination token returned from a previous call to `ListFolders` 274 // that indicates from where listing should continue. 275 // This field is optional. 276 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 277 XXX_NoUnkeyedLiteral struct{} `json:"-"` 278 XXX_unrecognized []byte `json:"-"` 279 XXX_sizecache int32 `json:"-"` 280} 281 282func (m *ListFoldersResponse) Reset() { *m = ListFoldersResponse{} } 283func (m *ListFoldersResponse) String() string { return proto.CompactTextString(m) } 284func (*ListFoldersResponse) ProtoMessage() {} 285func (*ListFoldersResponse) Descriptor() ([]byte, []int) { 286 return fileDescriptor_fe78511a4713776e, []int{2} 287} 288 289func (m *ListFoldersResponse) XXX_Unmarshal(b []byte) error { 290 return xxx_messageInfo_ListFoldersResponse.Unmarshal(m, b) 291} 292func (m *ListFoldersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 293 return xxx_messageInfo_ListFoldersResponse.Marshal(b, m, deterministic) 294} 295func (m *ListFoldersResponse) XXX_Merge(src proto.Message) { 296 xxx_messageInfo_ListFoldersResponse.Merge(m, src) 297} 298func (m *ListFoldersResponse) XXX_Size() int { 299 return xxx_messageInfo_ListFoldersResponse.Size(m) 300} 301func (m *ListFoldersResponse) XXX_DiscardUnknown() { 302 xxx_messageInfo_ListFoldersResponse.DiscardUnknown(m) 303} 304 305var xxx_messageInfo_ListFoldersResponse proto.InternalMessageInfo 306 307func (m *ListFoldersResponse) GetFolders() []*Folder { 308 if m != nil { 309 return m.Folders 310 } 311 return nil 312} 313 314func (m *ListFoldersResponse) GetNextPageToken() string { 315 if m != nil { 316 return m.NextPageToken 317 } 318 return "" 319} 320 321// The request message for searching folders. 322type SearchFoldersRequest struct { 323 // The maximum number of folders to return in the response. 324 // This field is optional. 325 PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 326 // A pagination token returned from a previous call to `SearchFolders` 327 // that indicates from where search should continue. 328 // This field is optional. 329 PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 330 // Search criteria used to select the Folders to return. 331 // If no search criteria is specified then all accessible folders will be 332 // returned. 333 // 334 // Query expressions can be used to restrict results based upon displayName, 335 // lifecycleState and parent, where the operators `=`, `NOT`, `AND` and `OR` 336 // can be used along with the suffix wildcard symbol `*`. 337 // 338 // Some example queries are: 339 // |Query|Description| 340 // |------|-----------| 341 // |displayName=Test*|Folders whose display name starts with "Test".| 342 // |lifecycleState=ACTIVE|Folders whose lifecycleState is ACTIVE.| 343 // |parent=folders/123|Folders whose parent is "folders/123".| 344 // |parent=folders/123 AND lifecycleState=ACTIVE|Active folders whose 345 // parent is "folders/123".| 346 Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` 347 XXX_NoUnkeyedLiteral struct{} `json:"-"` 348 XXX_unrecognized []byte `json:"-"` 349 XXX_sizecache int32 `json:"-"` 350} 351 352func (m *SearchFoldersRequest) Reset() { *m = SearchFoldersRequest{} } 353func (m *SearchFoldersRequest) String() string { return proto.CompactTextString(m) } 354func (*SearchFoldersRequest) ProtoMessage() {} 355func (*SearchFoldersRequest) Descriptor() ([]byte, []int) { 356 return fileDescriptor_fe78511a4713776e, []int{3} 357} 358 359func (m *SearchFoldersRequest) XXX_Unmarshal(b []byte) error { 360 return xxx_messageInfo_SearchFoldersRequest.Unmarshal(m, b) 361} 362func (m *SearchFoldersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 363 return xxx_messageInfo_SearchFoldersRequest.Marshal(b, m, deterministic) 364} 365func (m *SearchFoldersRequest) XXX_Merge(src proto.Message) { 366 xxx_messageInfo_SearchFoldersRequest.Merge(m, src) 367} 368func (m *SearchFoldersRequest) XXX_Size() int { 369 return xxx_messageInfo_SearchFoldersRequest.Size(m) 370} 371func (m *SearchFoldersRequest) XXX_DiscardUnknown() { 372 xxx_messageInfo_SearchFoldersRequest.DiscardUnknown(m) 373} 374 375var xxx_messageInfo_SearchFoldersRequest proto.InternalMessageInfo 376 377func (m *SearchFoldersRequest) GetPageSize() int32 { 378 if m != nil { 379 return m.PageSize 380 } 381 return 0 382} 383 384func (m *SearchFoldersRequest) GetPageToken() string { 385 if m != nil { 386 return m.PageToken 387 } 388 return "" 389} 390 391func (m *SearchFoldersRequest) GetQuery() string { 392 if m != nil { 393 return m.Query 394 } 395 return "" 396} 397 398// The response message for searching folders. 399type SearchFoldersResponse struct { 400 // A possibly paginated folder search results. 401 // the specified parent resource. 402 Folders []*Folder `protobuf:"bytes,1,rep,name=folders,proto3" json:"folders,omitempty"` 403 // A pagination token returned from a previous call to `SearchFolders` 404 // that indicates from where searching should continue. 405 // This field is optional. 406 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 407 XXX_NoUnkeyedLiteral struct{} `json:"-"` 408 XXX_unrecognized []byte `json:"-"` 409 XXX_sizecache int32 `json:"-"` 410} 411 412func (m *SearchFoldersResponse) Reset() { *m = SearchFoldersResponse{} } 413func (m *SearchFoldersResponse) String() string { return proto.CompactTextString(m) } 414func (*SearchFoldersResponse) ProtoMessage() {} 415func (*SearchFoldersResponse) Descriptor() ([]byte, []int) { 416 return fileDescriptor_fe78511a4713776e, []int{4} 417} 418 419func (m *SearchFoldersResponse) XXX_Unmarshal(b []byte) error { 420 return xxx_messageInfo_SearchFoldersResponse.Unmarshal(m, b) 421} 422func (m *SearchFoldersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 423 return xxx_messageInfo_SearchFoldersResponse.Marshal(b, m, deterministic) 424} 425func (m *SearchFoldersResponse) XXX_Merge(src proto.Message) { 426 xxx_messageInfo_SearchFoldersResponse.Merge(m, src) 427} 428func (m *SearchFoldersResponse) XXX_Size() int { 429 return xxx_messageInfo_SearchFoldersResponse.Size(m) 430} 431func (m *SearchFoldersResponse) XXX_DiscardUnknown() { 432 xxx_messageInfo_SearchFoldersResponse.DiscardUnknown(m) 433} 434 435var xxx_messageInfo_SearchFoldersResponse proto.InternalMessageInfo 436 437func (m *SearchFoldersResponse) GetFolders() []*Folder { 438 if m != nil { 439 return m.Folders 440 } 441 return nil 442} 443 444func (m *SearchFoldersResponse) GetNextPageToken() string { 445 if m != nil { 446 return m.NextPageToken 447 } 448 return "" 449} 450 451// The GetFolder request message. 452type GetFolderRequest struct { 453 // The resource name of the Folder to retrieve. 454 // Must be of the form `folders/{folder_id}`. 455 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 456 XXX_NoUnkeyedLiteral struct{} `json:"-"` 457 XXX_unrecognized []byte `json:"-"` 458 XXX_sizecache int32 `json:"-"` 459} 460 461func (m *GetFolderRequest) Reset() { *m = GetFolderRequest{} } 462func (m *GetFolderRequest) String() string { return proto.CompactTextString(m) } 463func (*GetFolderRequest) ProtoMessage() {} 464func (*GetFolderRequest) Descriptor() ([]byte, []int) { 465 return fileDescriptor_fe78511a4713776e, []int{5} 466} 467 468func (m *GetFolderRequest) XXX_Unmarshal(b []byte) error { 469 return xxx_messageInfo_GetFolderRequest.Unmarshal(m, b) 470} 471func (m *GetFolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 472 return xxx_messageInfo_GetFolderRequest.Marshal(b, m, deterministic) 473} 474func (m *GetFolderRequest) XXX_Merge(src proto.Message) { 475 xxx_messageInfo_GetFolderRequest.Merge(m, src) 476} 477func (m *GetFolderRequest) XXX_Size() int { 478 return xxx_messageInfo_GetFolderRequest.Size(m) 479} 480func (m *GetFolderRequest) XXX_DiscardUnknown() { 481 xxx_messageInfo_GetFolderRequest.DiscardUnknown(m) 482} 483 484var xxx_messageInfo_GetFolderRequest proto.InternalMessageInfo 485 486func (m *GetFolderRequest) GetName() string { 487 if m != nil { 488 return m.Name 489 } 490 return "" 491} 492 493// The CreateFolder request message. 494type CreateFolderRequest struct { 495 // The resource name of the new Folder's parent. 496 // Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. 497 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 498 // The Folder being created, only the display name will be consulted. 499 // All other fields will be ignored. 500 Folder *Folder `protobuf:"bytes,2,opt,name=folder,proto3" json:"folder,omitempty"` 501 XXX_NoUnkeyedLiteral struct{} `json:"-"` 502 XXX_unrecognized []byte `json:"-"` 503 XXX_sizecache int32 `json:"-"` 504} 505 506func (m *CreateFolderRequest) Reset() { *m = CreateFolderRequest{} } 507func (m *CreateFolderRequest) String() string { return proto.CompactTextString(m) } 508func (*CreateFolderRequest) ProtoMessage() {} 509func (*CreateFolderRequest) Descriptor() ([]byte, []int) { 510 return fileDescriptor_fe78511a4713776e, []int{6} 511} 512 513func (m *CreateFolderRequest) XXX_Unmarshal(b []byte) error { 514 return xxx_messageInfo_CreateFolderRequest.Unmarshal(m, b) 515} 516func (m *CreateFolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 517 return xxx_messageInfo_CreateFolderRequest.Marshal(b, m, deterministic) 518} 519func (m *CreateFolderRequest) XXX_Merge(src proto.Message) { 520 xxx_messageInfo_CreateFolderRequest.Merge(m, src) 521} 522func (m *CreateFolderRequest) XXX_Size() int { 523 return xxx_messageInfo_CreateFolderRequest.Size(m) 524} 525func (m *CreateFolderRequest) XXX_DiscardUnknown() { 526 xxx_messageInfo_CreateFolderRequest.DiscardUnknown(m) 527} 528 529var xxx_messageInfo_CreateFolderRequest proto.InternalMessageInfo 530 531func (m *CreateFolderRequest) GetParent() string { 532 if m != nil { 533 return m.Parent 534 } 535 return "" 536} 537 538func (m *CreateFolderRequest) GetFolder() *Folder { 539 if m != nil { 540 return m.Folder 541 } 542 return nil 543} 544 545// The MoveFolder request message. 546type MoveFolderRequest struct { 547 // The resource name of the Folder to move. 548 // Must be of the form folders/{folder_id} 549 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 550 // The resource name of the Folder or Organization to reparent 551 // the folder under. 552 // Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. 553 DestinationParent string `protobuf:"bytes,2,opt,name=destination_parent,json=destinationParent,proto3" json:"destination_parent,omitempty"` 554 XXX_NoUnkeyedLiteral struct{} `json:"-"` 555 XXX_unrecognized []byte `json:"-"` 556 XXX_sizecache int32 `json:"-"` 557} 558 559func (m *MoveFolderRequest) Reset() { *m = MoveFolderRequest{} } 560func (m *MoveFolderRequest) String() string { return proto.CompactTextString(m) } 561func (*MoveFolderRequest) ProtoMessage() {} 562func (*MoveFolderRequest) Descriptor() ([]byte, []int) { 563 return fileDescriptor_fe78511a4713776e, []int{7} 564} 565 566func (m *MoveFolderRequest) XXX_Unmarshal(b []byte) error { 567 return xxx_messageInfo_MoveFolderRequest.Unmarshal(m, b) 568} 569func (m *MoveFolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 570 return xxx_messageInfo_MoveFolderRequest.Marshal(b, m, deterministic) 571} 572func (m *MoveFolderRequest) XXX_Merge(src proto.Message) { 573 xxx_messageInfo_MoveFolderRequest.Merge(m, src) 574} 575func (m *MoveFolderRequest) XXX_Size() int { 576 return xxx_messageInfo_MoveFolderRequest.Size(m) 577} 578func (m *MoveFolderRequest) XXX_DiscardUnknown() { 579 xxx_messageInfo_MoveFolderRequest.DiscardUnknown(m) 580} 581 582var xxx_messageInfo_MoveFolderRequest proto.InternalMessageInfo 583 584func (m *MoveFolderRequest) GetName() string { 585 if m != nil { 586 return m.Name 587 } 588 return "" 589} 590 591func (m *MoveFolderRequest) GetDestinationParent() string { 592 if m != nil { 593 return m.DestinationParent 594 } 595 return "" 596} 597 598// The request message for updating a folder's display name. 599type UpdateFolderRequest struct { 600 // The new definition of the Folder. It must include a 601 // a `name` and `display_name` field. The other fields 602 // will be ignored. 603 Folder *Folder `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"` 604 // Fields to be updated. 605 // Only the `display_name` can be updated. 606 UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 607 XXX_NoUnkeyedLiteral struct{} `json:"-"` 608 XXX_unrecognized []byte `json:"-"` 609 XXX_sizecache int32 `json:"-"` 610} 611 612func (m *UpdateFolderRequest) Reset() { *m = UpdateFolderRequest{} } 613func (m *UpdateFolderRequest) String() string { return proto.CompactTextString(m) } 614func (*UpdateFolderRequest) ProtoMessage() {} 615func (*UpdateFolderRequest) Descriptor() ([]byte, []int) { 616 return fileDescriptor_fe78511a4713776e, []int{8} 617} 618 619func (m *UpdateFolderRequest) XXX_Unmarshal(b []byte) error { 620 return xxx_messageInfo_UpdateFolderRequest.Unmarshal(m, b) 621} 622func (m *UpdateFolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 623 return xxx_messageInfo_UpdateFolderRequest.Marshal(b, m, deterministic) 624} 625func (m *UpdateFolderRequest) XXX_Merge(src proto.Message) { 626 xxx_messageInfo_UpdateFolderRequest.Merge(m, src) 627} 628func (m *UpdateFolderRequest) XXX_Size() int { 629 return xxx_messageInfo_UpdateFolderRequest.Size(m) 630} 631func (m *UpdateFolderRequest) XXX_DiscardUnknown() { 632 xxx_messageInfo_UpdateFolderRequest.DiscardUnknown(m) 633} 634 635var xxx_messageInfo_UpdateFolderRequest proto.InternalMessageInfo 636 637func (m *UpdateFolderRequest) GetFolder() *Folder { 638 if m != nil { 639 return m.Folder 640 } 641 return nil 642} 643 644func (m *UpdateFolderRequest) GetUpdateMask() *field_mask.FieldMask { 645 if m != nil { 646 return m.UpdateMask 647 } 648 return nil 649} 650 651// The DeleteFolder request message. 652type DeleteFolderRequest struct { 653 // the resource name of the Folder to be deleted. 654 // Must be of the form `folders/{folder_id}`. 655 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 656 // Instructs DeleteFolderAction to delete a folder even when the folder is not 657 // empty. 658 RecursiveDelete bool `protobuf:"varint,2,opt,name=recursive_delete,json=recursiveDelete,proto3" json:"recursive_delete,omitempty"` 659 XXX_NoUnkeyedLiteral struct{} `json:"-"` 660 XXX_unrecognized []byte `json:"-"` 661 XXX_sizecache int32 `json:"-"` 662} 663 664func (m *DeleteFolderRequest) Reset() { *m = DeleteFolderRequest{} } 665func (m *DeleteFolderRequest) String() string { return proto.CompactTextString(m) } 666func (*DeleteFolderRequest) ProtoMessage() {} 667func (*DeleteFolderRequest) Descriptor() ([]byte, []int) { 668 return fileDescriptor_fe78511a4713776e, []int{9} 669} 670 671func (m *DeleteFolderRequest) XXX_Unmarshal(b []byte) error { 672 return xxx_messageInfo_DeleteFolderRequest.Unmarshal(m, b) 673} 674func (m *DeleteFolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 675 return xxx_messageInfo_DeleteFolderRequest.Marshal(b, m, deterministic) 676} 677func (m *DeleteFolderRequest) XXX_Merge(src proto.Message) { 678 xxx_messageInfo_DeleteFolderRequest.Merge(m, src) 679} 680func (m *DeleteFolderRequest) XXX_Size() int { 681 return xxx_messageInfo_DeleteFolderRequest.Size(m) 682} 683func (m *DeleteFolderRequest) XXX_DiscardUnknown() { 684 xxx_messageInfo_DeleteFolderRequest.DiscardUnknown(m) 685} 686 687var xxx_messageInfo_DeleteFolderRequest proto.InternalMessageInfo 688 689func (m *DeleteFolderRequest) GetName() string { 690 if m != nil { 691 return m.Name 692 } 693 return "" 694} 695 696func (m *DeleteFolderRequest) GetRecursiveDelete() bool { 697 if m != nil { 698 return m.RecursiveDelete 699 } 700 return false 701} 702 703// The UndeleteFolder request message. 704type UndeleteFolderRequest struct { 705 // The resource name of the Folder to undelete. 706 // Must be of the form `folders/{folder_id}`. 707 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 708 XXX_NoUnkeyedLiteral struct{} `json:"-"` 709 XXX_unrecognized []byte `json:"-"` 710 XXX_sizecache int32 `json:"-"` 711} 712 713func (m *UndeleteFolderRequest) Reset() { *m = UndeleteFolderRequest{} } 714func (m *UndeleteFolderRequest) String() string { return proto.CompactTextString(m) } 715func (*UndeleteFolderRequest) ProtoMessage() {} 716func (*UndeleteFolderRequest) Descriptor() ([]byte, []int) { 717 return fileDescriptor_fe78511a4713776e, []int{10} 718} 719 720func (m *UndeleteFolderRequest) XXX_Unmarshal(b []byte) error { 721 return xxx_messageInfo_UndeleteFolderRequest.Unmarshal(m, b) 722} 723func (m *UndeleteFolderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 724 return xxx_messageInfo_UndeleteFolderRequest.Marshal(b, m, deterministic) 725} 726func (m *UndeleteFolderRequest) XXX_Merge(src proto.Message) { 727 xxx_messageInfo_UndeleteFolderRequest.Merge(m, src) 728} 729func (m *UndeleteFolderRequest) XXX_Size() int { 730 return xxx_messageInfo_UndeleteFolderRequest.Size(m) 731} 732func (m *UndeleteFolderRequest) XXX_DiscardUnknown() { 733 xxx_messageInfo_UndeleteFolderRequest.DiscardUnknown(m) 734} 735 736var xxx_messageInfo_UndeleteFolderRequest proto.InternalMessageInfo 737 738func (m *UndeleteFolderRequest) GetName() string { 739 if m != nil { 740 return m.Name 741 } 742 return "" 743} 744 745// Metadata describing a long running folder operation 746type FolderOperation struct { 747 // The display name of the folder. 748 DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 749 // The type of this operation. 750 OperationType FolderOperation_OperationType `protobuf:"varint,2,opt,name=operation_type,json=operationType,proto3,enum=google.cloud.resourcemanager.v2.FolderOperation_OperationType" json:"operation_type,omitempty"` 751 // The resource name of the folder's parent. 752 // Only applicable when the operation_type is MOVE. 753 SourceParent string `protobuf:"bytes,3,opt,name=source_parent,json=sourceParent,proto3" json:"source_parent,omitempty"` 754 // The resource name of the folder or organization we are either creating 755 // the folder under or moving the folder to. 756 DestinationParent string `protobuf:"bytes,4,opt,name=destination_parent,json=destinationParent,proto3" json:"destination_parent,omitempty"` 757 XXX_NoUnkeyedLiteral struct{} `json:"-"` 758 XXX_unrecognized []byte `json:"-"` 759 XXX_sizecache int32 `json:"-"` 760} 761 762func (m *FolderOperation) Reset() { *m = FolderOperation{} } 763func (m *FolderOperation) String() string { return proto.CompactTextString(m) } 764func (*FolderOperation) ProtoMessage() {} 765func (*FolderOperation) Descriptor() ([]byte, []int) { 766 return fileDescriptor_fe78511a4713776e, []int{11} 767} 768 769func (m *FolderOperation) XXX_Unmarshal(b []byte) error { 770 return xxx_messageInfo_FolderOperation.Unmarshal(m, b) 771} 772func (m *FolderOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 773 return xxx_messageInfo_FolderOperation.Marshal(b, m, deterministic) 774} 775func (m *FolderOperation) XXX_Merge(src proto.Message) { 776 xxx_messageInfo_FolderOperation.Merge(m, src) 777} 778func (m *FolderOperation) XXX_Size() int { 779 return xxx_messageInfo_FolderOperation.Size(m) 780} 781func (m *FolderOperation) XXX_DiscardUnknown() { 782 xxx_messageInfo_FolderOperation.DiscardUnknown(m) 783} 784 785var xxx_messageInfo_FolderOperation proto.InternalMessageInfo 786 787func (m *FolderOperation) GetDisplayName() string { 788 if m != nil { 789 return m.DisplayName 790 } 791 return "" 792} 793 794func (m *FolderOperation) GetOperationType() FolderOperation_OperationType { 795 if m != nil { 796 return m.OperationType 797 } 798 return FolderOperation_OPERATION_TYPE_UNSPECIFIED 799} 800 801func (m *FolderOperation) GetSourceParent() string { 802 if m != nil { 803 return m.SourceParent 804 } 805 return "" 806} 807 808func (m *FolderOperation) GetDestinationParent() string { 809 if m != nil { 810 return m.DestinationParent 811 } 812 return "" 813} 814 815func init() { 816 proto.RegisterEnum("google.cloud.resourcemanager.v2.Folder_LifecycleState", Folder_LifecycleState_name, Folder_LifecycleState_value) 817 proto.RegisterEnum("google.cloud.resourcemanager.v2.FolderOperation_OperationType", FolderOperation_OperationType_name, FolderOperation_OperationType_value) 818 proto.RegisterType((*Folder)(nil), "google.cloud.resourcemanager.v2.Folder") 819 proto.RegisterType((*ListFoldersRequest)(nil), "google.cloud.resourcemanager.v2.ListFoldersRequest") 820 proto.RegisterType((*ListFoldersResponse)(nil), "google.cloud.resourcemanager.v2.ListFoldersResponse") 821 proto.RegisterType((*SearchFoldersRequest)(nil), "google.cloud.resourcemanager.v2.SearchFoldersRequest") 822 proto.RegisterType((*SearchFoldersResponse)(nil), "google.cloud.resourcemanager.v2.SearchFoldersResponse") 823 proto.RegisterType((*GetFolderRequest)(nil), "google.cloud.resourcemanager.v2.GetFolderRequest") 824 proto.RegisterType((*CreateFolderRequest)(nil), "google.cloud.resourcemanager.v2.CreateFolderRequest") 825 proto.RegisterType((*MoveFolderRequest)(nil), "google.cloud.resourcemanager.v2.MoveFolderRequest") 826 proto.RegisterType((*UpdateFolderRequest)(nil), "google.cloud.resourcemanager.v2.UpdateFolderRequest") 827 proto.RegisterType((*DeleteFolderRequest)(nil), "google.cloud.resourcemanager.v2.DeleteFolderRequest") 828 proto.RegisterType((*UndeleteFolderRequest)(nil), "google.cloud.resourcemanager.v2.UndeleteFolderRequest") 829 proto.RegisterType((*FolderOperation)(nil), "google.cloud.resourcemanager.v2.FolderOperation") 830} 831 832func init() { 833 proto.RegisterFile("google/cloud/resourcemanager/v2/folders.proto", fileDescriptor_fe78511a4713776e) 834} 835 836var fileDescriptor_fe78511a4713776e = []byte{ 837 // 1235 bytes of a gzipped FileDescriptorProto 838 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x5d, 0x6f, 0xdb, 0xd4, 839 0x1b, 0xff, 0x9f, 0xac, 0xcb, 0xba, 0x27, 0x2f, 0xcd, 0x4e, 0xdb, 0xfd, 0x4b, 0xba, 0xbe, 0x70, 840 0xca, 0x46, 0xd6, 0x6a, 0xce, 0x9a, 0x41, 0x2f, 0x3a, 0x01, 0xea, 0x52, 0xb7, 0x8a, 0xd4, 0x97, 841 0xe0, 0xb8, 0x95, 0x86, 0x2a, 0x59, 0x5e, 0x72, 0x9a, 0x5a, 0x75, 0x6c, 0xcf, 0x76, 0x02, 0xd9, 842 0x84, 0x34, 0x4d, 0x9a, 0xb8, 0x98, 0xb8, 0xda, 0x1d, 0x88, 0x0b, 0x6e, 0xb9, 0x45, 0xe2, 0x3b, 843 0xc0, 0x2d, 0x5f, 0x81, 0x0f, 0x82, 0x7c, 0x7c, 0x9c, 0xda, 0x4e, 0x3a, 0xa7, 0x08, 0x71, 0x55, 844 0xfb, 0x79, 0xfd, 0x3d, 0x6f, 0xbf, 0x3a, 0xf0, 0xa0, 0x6d, 0x9a, 0x6d, 0x9d, 0x96, 0x9b, 0xba, 845 0xd9, 0x6d, 0x95, 0x6d, 0xea, 0x98, 0x5d, 0xbb, 0x49, 0x3b, 0xaa, 0xa1, 0xb6, 0xa9, 0x5d, 0xee, 846 0x55, 0xca, 0xa7, 0xa6, 0xde, 0xa2, 0xb6, 0x23, 0x58, 0xb6, 0xe9, 0x9a, 0x78, 0xc9, 0x37, 0x17, 847 0x98, 0xb9, 0x10, 0x33, 0x17, 0x7a, 0x95, 0xe2, 0x1d, 0x1e, 0x4f, 0xb5, 0xb4, 0xb2, 0x6a, 0x18, 848 0xa6, 0xab, 0xba, 0x9a, 0x69, 0x70, 0xf7, 0xe2, 0x22, 0xd7, 0x6a, 0x6a, 0xa7, 0xdc, 0x5b, 0xf7, 849 0xfe, 0x28, 0x96, 0xa9, 0x6b, 0xcd, 0x3e, 0xd7, 0x17, 0xa3, 0xfa, 0x88, 0x6e, 0x85, 0xeb, 0x74, 850 0xd3, 0x68, 0xdb, 0x5d, 0xc3, 0xd0, 0x8c, 0x76, 0xd9, 0xb4, 0xa8, 0x1d, 0x49, 0xb0, 0xcc, 0x8d, 851 0xd8, 0xdb, 0xb3, 0xee, 0x69, 0xf9, 0x54, 0xa3, 0x7a, 0x4b, 0xe9, 0xa8, 0xce, 0x39, 0xb7, 0x58, 852 0x8a, 0x5b, 0xb8, 0x5a, 0x87, 0x3a, 0xae, 0xda, 0xb1, 0x7c, 0x03, 0xf2, 0xdd, 0x35, 0x48, 0xef, 853 0xb0, 0xa2, 0x31, 0x86, 0x09, 0x43, 0xed, 0xd0, 0x39, 0xb4, 0x8c, 0x4a, 0x37, 0x25, 0xf6, 0x8c, 854 0x6f, 0x43, 0xda, 0x52, 0x6d, 0x6a, 0xb8, 0x73, 0x29, 0x26, 0xe5, 0x6f, 0xf8, 0x43, 0xc8, 0xb6, 855 0x34, 0xc7, 0xd2, 0xd5, 0xbe, 0xc2, 0x7c, 0xae, 0x31, 0x6d, 0x86, 0xcb, 0x0e, 0x3c, 0x57, 0x05, 856 0xa6, 0x74, 0xed, 0x94, 0x36, 0xfb, 0x4d, 0x9d, 0x2a, 0x8e, 0xab, 0xba, 0x74, 0x6e, 0x62, 0x19, 857 0x95, 0xf2, 0x95, 0x0d, 0x21, 0xa1, 0xad, 0x82, 0x0f, 0x48, 0xd8, 0x0b, 0xdc, 0x1b, 0x9e, 0xb7, 858 0x94, 0xd7, 0x23, 0xef, 0xf8, 0x31, 0x64, 0x9a, 0x36, 0x55, 0x5d, 0xaa, 0x78, 0x45, 0xcd, 0x5d, 859 0x5f, 0x46, 0xa5, 0x4c, 0xa5, 0x18, 0x04, 0x0f, 0x2a, 0x16, 0xe4, 0xa0, 0x62, 0x09, 0x7c, 0x73, 860 0x4f, 0xe0, 0x39, 0x77, 0xad, 0xd6, 0xc0, 0x39, 0x9d, 0xec, 0xec, 0x9b, 0x7b, 0x02, 0xd2, 0x80, 861 0x7c, 0x14, 0x1b, 0x5e, 0x82, 0xf9, 0xbd, 0xda, 0x8e, 0x58, 0x7d, 0x5a, 0xdd, 0x13, 0x95, 0x86, 862 0xbc, 0x25, 0x8b, 0xca, 0xd1, 0x41, 0xa3, 0x2e, 0x56, 0x6b, 0x3b, 0x35, 0x71, 0xbb, 0xf0, 0x3f, 863 0x0c, 0x90, 0xde, 0xaa, 0xca, 0xb5, 0x63, 0xb1, 0x80, 0xf0, 0x0c, 0x14, 0xb6, 0xc5, 0x3d, 0x51, 864 0x16, 0x15, 0x49, 0xfc, 0xf2, 0x48, 0x6c, 0xc8, 0xe2, 0x76, 0x21, 0x45, 0xde, 0x22, 0xc0, 0x7b, 865 0x9a, 0xe3, 0xfa, 0xc5, 0x3b, 0x12, 0x7d, 0xde, 0xa5, 0x8e, 0x1b, 0x9a, 0x00, 0x8a, 0x4c, 0x60, 866 0x1e, 0x6e, 0x5a, 0x6a, 0x9b, 0x2a, 0x8e, 0xf6, 0x82, 0xb2, 0xe1, 0x5c, 0x97, 0x26, 0x3d, 0x41, 867 0x43, 0x7b, 0x41, 0xf1, 0x02, 0x00, 0x53, 0xba, 0xe6, 0x39, 0x35, 0xf8, 0x70, 0x98, 0xb9, 0xec, 868 0x09, 0xbc, 0xe9, 0x39, 0x67, 0xe6, 0xd7, 0x4a, 0x8b, 0xea, 0xd4, 0xa5, 0x2d, 0x36, 0x97, 0x49, 869 0x29, 0xe3, 0xc9, 0xb6, 0x7d, 0x11, 0x79, 0x85, 0x60, 0x3a, 0x82, 0xc6, 0xb1, 0x4c, 0xc3, 0xa1, 870 0x78, 0x0b, 0x6e, 0xf0, 0x1b, 0x99, 0x43, 0xcb, 0xd7, 0x4a, 0x99, 0xca, 0xc7, 0x63, 0x4e, 0x53, 871 0x0a, 0xfc, 0xf0, 0x3d, 0x98, 0x32, 0xe8, 0x37, 0xae, 0x12, 0x42, 0xe8, 0x2f, 0x57, 0xce, 0x13, 872 0xd7, 0x03, 0x94, 0xe4, 0x0c, 0x66, 0x1a, 0x54, 0xb5, 0x9b, 0x67, 0xb1, 0x8e, 0x44, 0x2a, 0x47, 873 0xef, 0xad, 0x3c, 0x15, 0xaf, 0x7c, 0x06, 0xae, 0x3f, 0xef, 0x52, 0xbb, 0xcf, 0x7b, 0xe2, 0xbf, 874 0x90, 0xd7, 0x08, 0x66, 0x63, 0xa9, 0xfe, 0xfb, 0x72, 0xef, 0x41, 0x61, 0x97, 0xf2, 0x7e, 0x07, 875 0xa5, 0x8e, 0x38, 0x49, 0x62, 0xc0, 0x74, 0x95, 0xed, 0x71, 0xd4, 0xf4, 0xb2, 0x3d, 0xf9, 0x02, 876 0xd2, 0x3e, 0x12, 0x96, 0xf5, 0x0a, 0x05, 0x70, 0x37, 0x72, 0x0c, 0xb7, 0xf6, 0xcd, 0x1e, 0x4d, 877 0x04, 0x86, 0x1f, 0x00, 0x6e, 0x51, 0xc7, 0xd5, 0x0c, 0xc6, 0x51, 0x4a, 0x84, 0x37, 0x6e, 0x85, 878 0x34, 0x75, 0xa6, 0x20, 0xef, 0x10, 0x4c, 0x1f, 0xb1, 0x9b, 0x8a, 0x86, 0xbe, 0x00, 0x8c, 0xfe, 879 0x11, 0xe0, 0xd0, 0x69, 0x7b, 0x44, 0xc8, 0xcb, 0x1e, 0x3e, 0xed, 0x1d, 0x8f, 0x2b, 0xf7, 0x55, 880 0xe7, 0x3c, 0x38, 0x6d, 0xef, 0x99, 0xc8, 0x30, 0xed, 0x9f, 0x40, 0x72, 0xbd, 0xf7, 0xa1, 0x60, 881 0xd3, 0x66, 0xd7, 0x76, 0xb4, 0x1e, 0xe5, 0xa7, 0xc4, 0x92, 0x4d, 0x4a, 0x53, 0x03, 0xb9, 0x1f, 882 0x8b, 0xac, 0xc1, 0xec, 0x91, 0xd1, 0x1a, 0x2f, 0x2e, 0xf9, 0x2d, 0x05, 0x53, 0xbe, 0xd5, 0x61, 883 0x40, 0xf8, 0x43, 0x7c, 0x8b, 0x86, 0xf9, 0x96, 0x42, 0x7e, 0xf0, 0x0f, 0x42, 0x71, 0xfb, 0x96, 884 0x0f, 0x26, 0x5f, 0xf9, 0x7c, 0xcc, 0xfe, 0x0d, 0x92, 0x09, 0x83, 0x27, 0xb9, 0x6f, 0x51, 0x29, 885 0x67, 0x86, 0x5f, 0xf1, 0x0a, 0xe4, 0xfc, 0x00, 0xc1, 0x80, 0xfd, 0x4b, 0xca, 0xfa, 0x42, 0x7f, 886 0xb6, 0x97, 0xac, 0xc2, 0xc4, 0x65, 0xab, 0x20, 0x42, 0x2e, 0x92, 0x13, 0x2f, 0x42, 0xf1, 0xb0, 887 0x2e, 0x4a, 0x5b, 0x72, 0xed, 0xf0, 0x40, 0x91, 0x9f, 0xd6, 0x47, 0xb0, 0x69, 0x55, 0x12, 0xb7, 888 0x64, 0x8f, 0x4d, 0x27, 0x61, 0x62, 0xff, 0xf0, 0x58, 0x2c, 0xa4, 0x2a, 0xbf, 0x66, 0xe1, 0x06, 889 0x3f, 0x60, 0xfc, 0x3d, 0x82, 0x4c, 0x88, 0xbf, 0xf0, 0xa3, 0xc4, 0x2e, 0x0c, 0x73, 0x6f, 0xf1, 890 0x93, 0xab, 0x39, 0xf9, 0x9c, 0x41, 0xa6, 0x5f, 0xff, 0xf9, 0xd7, 0xbb, 0x54, 0x0e, 0x67, 0x42, 891 0x1f, 0x14, 0xf8, 0x27, 0x04, 0xb9, 0x08, 0xc5, 0xe0, 0x4f, 0x13, 0x83, 0x8f, 0x62, 0xbf, 0xe2, 892 0xc6, 0x55, 0xdd, 0x38, 0xaa, 0x05, 0x86, 0xea, 0xff, 0x04, 0x87, 0x50, 0x6d, 0x3a, 0xcc, 0x74, 893 0x13, 0xad, 0xe2, 0x37, 0x08, 0x6e, 0x0e, 0xe8, 0x07, 0xaf, 0x27, 0x26, 0x89, 0x53, 0x55, 0x71, 894 0xdc, 0x33, 0x25, 0x77, 0x18, 0x90, 0xdb, 0x78, 0xc6, 0x03, 0xf2, 0xd2, 0xdb, 0xe6, 0xcf, 0x38, 895 0x9c, 0xf2, 0xea, 0xb7, 0xf8, 0x15, 0x82, 0x6c, 0x98, 0xde, 0x70, 0xf2, 0x0c, 0x46, 0xb0, 0x61, 896 0x71, 0x21, 0xf0, 0x0a, 0x7d, 0x3f, 0x5d, 0xec, 0x35, 0x99, 0x67, 0x18, 0x66, 0x49, 0x78, 0x44, 897 0x9b, 0x01, 0x7f, 0xfc, 0x80, 0x20, 0x1b, 0x26, 0xa6, 0x31, 0x20, 0x8c, 0xe0, 0xb1, 0xf1, 0x1b, 898 0xb2, 0xc6, 0xc0, 0xdc, 0xad, 0xcc, 0xb3, 0x86, 0xf8, 0x20, 0x84, 0x58, 0x5f, 0x06, 0xe0, 0xde, 899 0x20, 0x80, 0x0b, 0x3a, 0xc6, 0x95, 0xc4, 0x24, 0x43, 0xdc, 0x9d, 0xd4, 0x9b, 0x8f, 0x18, 0x9c, 900 0x45, 0xf2, 0xc1, 0xa8, 0xf9, 0x6c, 0x76, 0xcc, 0x1e, 0xf5, 0xf6, 0xe5, 0x2d, 0x82, 0x6c, 0x98, 901 0x28, 0xc7, 0x68, 0xd2, 0x08, 0x5e, 0xbd, 0xf2, 0xd6, 0xac, 0x8e, 0xde, 0x9a, 0x1f, 0x11, 0xe4, 902 0xa3, 0x04, 0x8b, 0x93, 0xef, 0x64, 0x24, 0x23, 0x8f, 0x8f, 0xa8, 0xc4, 0x10, 0x11, 0xb2, 0x30, 903 0xb2, 0x4f, 0x5d, 0x1e, 0xdc, 0xeb, 0xd5, 0x4b, 0xc8, 0xee, 0x52, 0xb7, 0xa6, 0x76, 0xea, 0xec, 904 0x0b, 0x1f, 0x93, 0x20, 0x85, 0xa6, 0x76, 0x84, 0xde, 0xba, 0x10, 0x56, 0x06, 0x30, 0x66, 0x63, 905 0x36, 0xbe, 0x96, 0x3c, 0x64, 0x49, 0x57, 0xc9, 0x5d, 0x96, 0x34, 0x00, 0x17, 0x4e, 0xdc, 0x0e, 906 0x05, 0xe3, 0xc9, 0x1b, 0xef, 0x4b, 0xde, 0xf8, 0x37, 0x93, 0x3b, 0xb1, 0xe4, 0x3f, 0x23, 0xc0, 907 0x32, 0x75, 0x98, 0x90, 0xda, 0x1d, 0xcd, 0x71, 0xbc, 0x5f, 0x2f, 0xb8, 0x14, 0x8b, 0x3f, 0x6c, 908 0x12, 0x20, 0xb9, 0x3f, 0x86, 0x25, 0x27, 0xb8, 0x0d, 0x86, 0xee, 0x21, 0x59, 0xbb, 0x14, 0x9d, 909 0x3b, 0xe4, 0xbc, 0x89, 0x56, 0x9f, 0xfc, 0x8e, 0x60, 0xa5, 0x69, 0x76, 0x92, 0xc6, 0xfe, 0x24, 910 0xcb, 0x19, 0xb5, 0xee, 0x7d, 0x40, 0xd4, 0xd1, 0x57, 0x07, 0xdc, 0xa1, 0x6d, 0xea, 0xaa, 0xd1, 911 0x16, 0x4c, 0xbb, 0x5d, 0x6e, 0x53, 0x83, 0x7d, 0x5e, 0x94, 0x7d, 0x95, 0x6a, 0x69, 0xce, 0xa5, 912 0x3f, 0x35, 0x1f, 0xc7, 0x44, 0xbf, 0xa4, 0x96, 0x76, 0xfd, 0x80, 0x55, 0x86, 0x40, 0xe2, 0xea, 913 0x7d, 0x8e, 0xe0, 0xb8, 0xf2, 0x47, 0x60, 0x71, 0xc2, 0x2c, 0x4e, 0x62, 0x16, 0x27, 0xc7, 0x95, 914 0x67, 0x69, 0x96, 0xfe, 0xd1, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xda, 0x9b, 0x45, 0x8f, 0xe8, 915 0x0e, 0x00, 0x00, 916} 917 918// Reference imports to suppress errors if they are not otherwise used. 919var _ context.Context 920var _ grpc.ClientConn 921 922// This is a compile-time assertion to ensure that this generated file 923// is compatible with the grpc package it is being compiled against. 924const _ = grpc.SupportPackageIsVersion4 925 926// FoldersClient is the client API for Folders service. 927// 928// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 929type FoldersClient interface { 930 // Lists the Folders that are direct descendants of supplied parent resource. 931 // List provides a strongly consistent view of the Folders underneath 932 // the specified parent resource. 933 // List returns Folders sorted based upon the (ascending) lexical ordering 934 // of their display_name. 935 // The caller must have `resourcemanager.folders.list` permission on the 936 // identified parent. 937 ListFolders(ctx context.Context, in *ListFoldersRequest, opts ...grpc.CallOption) (*ListFoldersResponse, error) 938 // Search for folders that match specific filter criteria. 939 // Search provides an eventually consistent view of the folders a user has 940 // access to which meet the specified filter criteria. 941 // 942 // This will only return folders on which the caller has the 943 // permission `resourcemanager.folders.get`. 944 SearchFolders(ctx context.Context, in *SearchFoldersRequest, opts ...grpc.CallOption) (*SearchFoldersResponse, error) 945 // Retrieves a Folder identified by the supplied resource name. 946 // Valid Folder resource names have the format `folders/{folder_id}` 947 // (for example, `folders/1234`). 948 // The caller must have `resourcemanager.folders.get` permission on the 949 // identified folder. 950 GetFolder(ctx context.Context, in *GetFolderRequest, opts ...grpc.CallOption) (*Folder, error) 951 // Creates a Folder in the resource hierarchy. 952 // Returns an Operation which can be used to track the progress of the 953 // folder creation workflow. 954 // Upon success the Operation.response field will be populated with the 955 // created Folder. 956 // 957 // In order to succeed, the addition of this new Folder must not violate 958 // the Folder naming, height or fanout constraints. 959 // + The Folder's display_name must be distinct from all other Folder's that 960 // share its parent. 961 // + The addition of the Folder must not cause the active Folder hierarchy 962 // to exceed a height of 4. Note, the full active + deleted Folder hierarchy 963 // is allowed to reach a height of 8; this provides additional headroom when 964 // moving folders that contain deleted folders. 965 // + The addition of the Folder must not cause the total number of Folders 966 // under its parent to exceed 100. 967 // 968 // If the operation fails due to a folder constraint violation, 969 // a PreconditionFailure explaining the violation will be returned. 970 // If the failure occurs synchronously then the PreconditionFailure 971 // will be returned via the Status.details field and if it occurs 972 // asynchronously then the PreconditionFailure will be returned 973 // via the Operation.error field. 974 // 975 // The caller must have `resourcemanager.folders.create` permission on the 976 // identified parent. 977 CreateFolder(ctx context.Context, in *CreateFolderRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 978 // Updates a Folder, changing its display_name. 979 // Changes to the folder display_name will be rejected if they violate either 980 // the display_name formatting rules or naming constraints described in 981 // the [CreateFolder] documentation. 982 // + The Folder's display name must start and end with a letter or digit, 983 // may contain letters, digits, spaces, hyphens and underscores and can be 984 // no longer than 30 characters. This is captured by the regular expression: 985 // [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. 986 // The caller must have `resourcemanager.folders.update` permission on the 987 // identified folder. 988 // 989 // If the update fails due to the unique name constraint then a 990 // PreconditionFailure explaining this violation will be returned 991 // in the Status.details field. 992 UpdateFolder(ctx context.Context, in *UpdateFolderRequest, opts ...grpc.CallOption) (*Folder, error) 993 // Moves a Folder under a new resource parent. 994 // Returns an Operation which can be used to track the progress of the 995 // folder move workflow. 996 // Upon success the Operation.response field will be populated with the 997 // moved Folder. 998 // Upon failure, a FolderOperationError categorizing the failure cause will 999 // be returned - if the failure occurs synchronously then the 1000 // FolderOperationError will be returned via the Status.details field 1001 // and if it occurs asynchronously then the FolderOperation will be returned 1002 // via the the Operation.error field. 1003 // In addition, the Operation.metadata field will be populated with a 1004 // FolderOperation message as an aid to stateless clients. 1005 // Folder moves will be rejected if they violate either the naming, height 1006 // or fanout constraints described in the [CreateFolder] documentation. 1007 // The caller must have `resourcemanager.folders.move` permission on the 1008 // folder's current and proposed new parent. 1009 MoveFolder(ctx context.Context, in *MoveFolderRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1010 // Requests deletion of a Folder. The Folder is moved into the 1011 // [DELETE_REQUESTED] state immediately, and is deleted approximately 30 days 1012 // later. This method may only be called on an empty Folder in the [ACTIVE] 1013 // state, where a Folder is empty if it doesn't contain any Folders or 1014 // Projects in the [ACTIVE] state. 1015 // The caller must have `resourcemanager.folders.delete` permission on the 1016 // identified folder. 1017 DeleteFolder(ctx context.Context, in *DeleteFolderRequest, opts ...grpc.CallOption) (*Folder, error) 1018 // Cancels the deletion request for a Folder. This method may only be 1019 // called on a Folder in the [DELETE_REQUESTED] state. 1020 // In order to succeed, the Folder's parent must be in the [ACTIVE] state. 1021 // In addition, reintroducing the folder into the tree must not violate 1022 // folder naming, height and fanout constraints described in the 1023 // [CreateFolder] documentation. 1024 // The caller must have `resourcemanager.folders.undelete` permission on the 1025 // identified folder. 1026 UndeleteFolder(ctx context.Context, in *UndeleteFolderRequest, opts ...grpc.CallOption) (*Folder, error) 1027 // Gets the access control policy for a Folder. The returned policy may be 1028 // empty if no such policy or resource exists. The `resource` field should 1029 // be the Folder's resource name, e.g. "folders/1234". 1030 // The caller must have `resourcemanager.folders.getIamPolicy` permission 1031 // on the identified folder. 1032 GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) 1033 // Sets the access control policy on a Folder, replacing any existing policy. 1034 // The `resource` field should be the Folder's resource name, e.g. 1035 // "folders/1234". 1036 // The caller must have `resourcemanager.folders.setIamPolicy` permission 1037 // on the identified folder. 1038 SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) 1039 // Returns permissions that a caller has on the specified Folder. 1040 // The `resource` field should be the Folder's resource name, 1041 // e.g. "folders/1234". 1042 // 1043 // There are no permissions required for making this API call. 1044 TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) 1045} 1046 1047type foldersClient struct { 1048 cc *grpc.ClientConn 1049} 1050 1051func NewFoldersClient(cc *grpc.ClientConn) FoldersClient { 1052 return &foldersClient{cc} 1053} 1054 1055func (c *foldersClient) ListFolders(ctx context.Context, in *ListFoldersRequest, opts ...grpc.CallOption) (*ListFoldersResponse, error) { 1056 out := new(ListFoldersResponse) 1057 err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/ListFolders", in, out, opts...) 1058 if err != nil { 1059 return nil, err 1060 } 1061 return out, nil 1062} 1063 1064func (c *foldersClient) SearchFolders(ctx context.Context, in *SearchFoldersRequest, opts ...grpc.CallOption) (*SearchFoldersResponse, error) { 1065 out := new(SearchFoldersResponse) 1066 err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/SearchFolders", in, out, opts...) 1067 if err != nil { 1068 return nil, err 1069 } 1070 return out, nil 1071} 1072 1073func (c *foldersClient) GetFolder(ctx context.Context, in *GetFolderRequest, opts ...grpc.CallOption) (*Folder, error) { 1074 out := new(Folder) 1075 err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/GetFolder", in, out, opts...) 1076 if err != nil { 1077 return nil, err 1078 } 1079 return out, nil 1080} 1081 1082func (c *foldersClient) CreateFolder(ctx context.Context, in *CreateFolderRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1083 out := new(longrunning.Operation) 1084 err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/CreateFolder", in, out, opts...) 1085 if err != nil { 1086 return nil, err 1087 } 1088 return out, nil 1089} 1090 1091func (c *foldersClient) UpdateFolder(ctx context.Context, in *UpdateFolderRequest, opts ...grpc.CallOption) (*Folder, error) { 1092 out := new(Folder) 1093 err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/UpdateFolder", in, out, opts...) 1094 if err != nil { 1095 return nil, err 1096 } 1097 return out, nil 1098} 1099 1100func (c *foldersClient) MoveFolder(ctx context.Context, in *MoveFolderRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1101 out := new(longrunning.Operation) 1102 err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/MoveFolder", in, out, opts...) 1103 if err != nil { 1104 return nil, err 1105 } 1106 return out, nil 1107} 1108 1109func (c *foldersClient) DeleteFolder(ctx context.Context, in *DeleteFolderRequest, opts ...grpc.CallOption) (*Folder, error) { 1110 out := new(Folder) 1111 err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/DeleteFolder", in, out, opts...) 1112 if err != nil { 1113 return nil, err 1114 } 1115 return out, nil 1116} 1117 1118func (c *foldersClient) UndeleteFolder(ctx context.Context, in *UndeleteFolderRequest, opts ...grpc.CallOption) (*Folder, error) { 1119 out := new(Folder) 1120 err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/UndeleteFolder", in, out, opts...) 1121 if err != nil { 1122 return nil, err 1123 } 1124 return out, nil 1125} 1126 1127func (c *foldersClient) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) { 1128 out := new(v1.Policy) 1129 err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/GetIamPolicy", in, out, opts...) 1130 if err != nil { 1131 return nil, err 1132 } 1133 return out, nil 1134} 1135 1136func (c *foldersClient) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) { 1137 out := new(v1.Policy) 1138 err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/SetIamPolicy", in, out, opts...) 1139 if err != nil { 1140 return nil, err 1141 } 1142 return out, nil 1143} 1144 1145func (c *foldersClient) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) { 1146 out := new(v1.TestIamPermissionsResponse) 1147 err := c.cc.Invoke(ctx, "/google.cloud.resourcemanager.v2.Folders/TestIamPermissions", in, out, opts...) 1148 if err != nil { 1149 return nil, err 1150 } 1151 return out, nil 1152} 1153 1154// FoldersServer is the server API for Folders service. 1155type FoldersServer interface { 1156 // Lists the Folders that are direct descendants of supplied parent resource. 1157 // List provides a strongly consistent view of the Folders underneath 1158 // the specified parent resource. 1159 // List returns Folders sorted based upon the (ascending) lexical ordering 1160 // of their display_name. 1161 // The caller must have `resourcemanager.folders.list` permission on the 1162 // identified parent. 1163 ListFolders(context.Context, *ListFoldersRequest) (*ListFoldersResponse, error) 1164 // Search for folders that match specific filter criteria. 1165 // Search provides an eventually consistent view of the folders a user has 1166 // access to which meet the specified filter criteria. 1167 // 1168 // This will only return folders on which the caller has the 1169 // permission `resourcemanager.folders.get`. 1170 SearchFolders(context.Context, *SearchFoldersRequest) (*SearchFoldersResponse, error) 1171 // Retrieves a Folder identified by the supplied resource name. 1172 // Valid Folder resource names have the format `folders/{folder_id}` 1173 // (for example, `folders/1234`). 1174 // The caller must have `resourcemanager.folders.get` permission on the 1175 // identified folder. 1176 GetFolder(context.Context, *GetFolderRequest) (*Folder, error) 1177 // Creates a Folder in the resource hierarchy. 1178 // Returns an Operation which can be used to track the progress of the 1179 // folder creation workflow. 1180 // Upon success the Operation.response field will be populated with the 1181 // created Folder. 1182 // 1183 // In order to succeed, the addition of this new Folder must not violate 1184 // the Folder naming, height or fanout constraints. 1185 // + The Folder's display_name must be distinct from all other Folder's that 1186 // share its parent. 1187 // + The addition of the Folder must not cause the active Folder hierarchy 1188 // to exceed a height of 4. Note, the full active + deleted Folder hierarchy 1189 // is allowed to reach a height of 8; this provides additional headroom when 1190 // moving folders that contain deleted folders. 1191 // + The addition of the Folder must not cause the total number of Folders 1192 // under its parent to exceed 100. 1193 // 1194 // If the operation fails due to a folder constraint violation, 1195 // a PreconditionFailure explaining the violation will be returned. 1196 // If the failure occurs synchronously then the PreconditionFailure 1197 // will be returned via the Status.details field and if it occurs 1198 // asynchronously then the PreconditionFailure will be returned 1199 // via the Operation.error field. 1200 // 1201 // The caller must have `resourcemanager.folders.create` permission on the 1202 // identified parent. 1203 CreateFolder(context.Context, *CreateFolderRequest) (*longrunning.Operation, error) 1204 // Updates a Folder, changing its display_name. 1205 // Changes to the folder display_name will be rejected if they violate either 1206 // the display_name formatting rules or naming constraints described in 1207 // the [CreateFolder] documentation. 1208 // + The Folder's display name must start and end with a letter or digit, 1209 // may contain letters, digits, spaces, hyphens and underscores and can be 1210 // no longer than 30 characters. This is captured by the regular expression: 1211 // [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. 1212 // The caller must have `resourcemanager.folders.update` permission on the 1213 // identified folder. 1214 // 1215 // If the update fails due to the unique name constraint then a 1216 // PreconditionFailure explaining this violation will be returned 1217 // in the Status.details field. 1218 UpdateFolder(context.Context, *UpdateFolderRequest) (*Folder, error) 1219 // Moves a Folder under a new resource parent. 1220 // Returns an Operation which can be used to track the progress of the 1221 // folder move workflow. 1222 // Upon success the Operation.response field will be populated with the 1223 // moved Folder. 1224 // Upon failure, a FolderOperationError categorizing the failure cause will 1225 // be returned - if the failure occurs synchronously then the 1226 // FolderOperationError will be returned via the Status.details field 1227 // and if it occurs asynchronously then the FolderOperation will be returned 1228 // via the the Operation.error field. 1229 // In addition, the Operation.metadata field will be populated with a 1230 // FolderOperation message as an aid to stateless clients. 1231 // Folder moves will be rejected if they violate either the naming, height 1232 // or fanout constraints described in the [CreateFolder] documentation. 1233 // The caller must have `resourcemanager.folders.move` permission on the 1234 // folder's current and proposed new parent. 1235 MoveFolder(context.Context, *MoveFolderRequest) (*longrunning.Operation, error) 1236 // Requests deletion of a Folder. The Folder is moved into the 1237 // [DELETE_REQUESTED] state immediately, and is deleted approximately 30 days 1238 // later. This method may only be called on an empty Folder in the [ACTIVE] 1239 // state, where a Folder is empty if it doesn't contain any Folders or 1240 // Projects in the [ACTIVE] state. 1241 // The caller must have `resourcemanager.folders.delete` permission on the 1242 // identified folder. 1243 DeleteFolder(context.Context, *DeleteFolderRequest) (*Folder, error) 1244 // Cancels the deletion request for a Folder. This method may only be 1245 // called on a Folder in the [DELETE_REQUESTED] state. 1246 // In order to succeed, the Folder's parent must be in the [ACTIVE] state. 1247 // In addition, reintroducing the folder into the tree must not violate 1248 // folder naming, height and fanout constraints described in the 1249 // [CreateFolder] documentation. 1250 // The caller must have `resourcemanager.folders.undelete` permission on the 1251 // identified folder. 1252 UndeleteFolder(context.Context, *UndeleteFolderRequest) (*Folder, error) 1253 // Gets the access control policy for a Folder. The returned policy may be 1254 // empty if no such policy or resource exists. The `resource` field should 1255 // be the Folder's resource name, e.g. "folders/1234". 1256 // The caller must have `resourcemanager.folders.getIamPolicy` permission 1257 // on the identified folder. 1258 GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error) 1259 // Sets the access control policy on a Folder, replacing any existing policy. 1260 // The `resource` field should be the Folder's resource name, e.g. 1261 // "folders/1234". 1262 // The caller must have `resourcemanager.folders.setIamPolicy` permission 1263 // on the identified folder. 1264 SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error) 1265 // Returns permissions that a caller has on the specified Folder. 1266 // The `resource` field should be the Folder's resource name, 1267 // e.g. "folders/1234". 1268 // 1269 // There are no permissions required for making this API call. 1270 TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error) 1271} 1272 1273func RegisterFoldersServer(s *grpc.Server, srv FoldersServer) { 1274 s.RegisterService(&_Folders_serviceDesc, srv) 1275} 1276 1277func _Folders_ListFolders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1278 in := new(ListFoldersRequest) 1279 if err := dec(in); err != nil { 1280 return nil, err 1281 } 1282 if interceptor == nil { 1283 return srv.(FoldersServer).ListFolders(ctx, in) 1284 } 1285 info := &grpc.UnaryServerInfo{ 1286 Server: srv, 1287 FullMethod: "/google.cloud.resourcemanager.v2.Folders/ListFolders", 1288 } 1289 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1290 return srv.(FoldersServer).ListFolders(ctx, req.(*ListFoldersRequest)) 1291 } 1292 return interceptor(ctx, in, info, handler) 1293} 1294 1295func _Folders_SearchFolders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1296 in := new(SearchFoldersRequest) 1297 if err := dec(in); err != nil { 1298 return nil, err 1299 } 1300 if interceptor == nil { 1301 return srv.(FoldersServer).SearchFolders(ctx, in) 1302 } 1303 info := &grpc.UnaryServerInfo{ 1304 Server: srv, 1305 FullMethod: "/google.cloud.resourcemanager.v2.Folders/SearchFolders", 1306 } 1307 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1308 return srv.(FoldersServer).SearchFolders(ctx, req.(*SearchFoldersRequest)) 1309 } 1310 return interceptor(ctx, in, info, handler) 1311} 1312 1313func _Folders_GetFolder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1314 in := new(GetFolderRequest) 1315 if err := dec(in); err != nil { 1316 return nil, err 1317 } 1318 if interceptor == nil { 1319 return srv.(FoldersServer).GetFolder(ctx, in) 1320 } 1321 info := &grpc.UnaryServerInfo{ 1322 Server: srv, 1323 FullMethod: "/google.cloud.resourcemanager.v2.Folders/GetFolder", 1324 } 1325 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1326 return srv.(FoldersServer).GetFolder(ctx, req.(*GetFolderRequest)) 1327 } 1328 return interceptor(ctx, in, info, handler) 1329} 1330 1331func _Folders_CreateFolder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1332 in := new(CreateFolderRequest) 1333 if err := dec(in); err != nil { 1334 return nil, err 1335 } 1336 if interceptor == nil { 1337 return srv.(FoldersServer).CreateFolder(ctx, in) 1338 } 1339 info := &grpc.UnaryServerInfo{ 1340 Server: srv, 1341 FullMethod: "/google.cloud.resourcemanager.v2.Folders/CreateFolder", 1342 } 1343 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1344 return srv.(FoldersServer).CreateFolder(ctx, req.(*CreateFolderRequest)) 1345 } 1346 return interceptor(ctx, in, info, handler) 1347} 1348 1349func _Folders_UpdateFolder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1350 in := new(UpdateFolderRequest) 1351 if err := dec(in); err != nil { 1352 return nil, err 1353 } 1354 if interceptor == nil { 1355 return srv.(FoldersServer).UpdateFolder(ctx, in) 1356 } 1357 info := &grpc.UnaryServerInfo{ 1358 Server: srv, 1359 FullMethod: "/google.cloud.resourcemanager.v2.Folders/UpdateFolder", 1360 } 1361 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1362 return srv.(FoldersServer).UpdateFolder(ctx, req.(*UpdateFolderRequest)) 1363 } 1364 return interceptor(ctx, in, info, handler) 1365} 1366 1367func _Folders_MoveFolder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1368 in := new(MoveFolderRequest) 1369 if err := dec(in); err != nil { 1370 return nil, err 1371 } 1372 if interceptor == nil { 1373 return srv.(FoldersServer).MoveFolder(ctx, in) 1374 } 1375 info := &grpc.UnaryServerInfo{ 1376 Server: srv, 1377 FullMethod: "/google.cloud.resourcemanager.v2.Folders/MoveFolder", 1378 } 1379 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1380 return srv.(FoldersServer).MoveFolder(ctx, req.(*MoveFolderRequest)) 1381 } 1382 return interceptor(ctx, in, info, handler) 1383} 1384 1385func _Folders_DeleteFolder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1386 in := new(DeleteFolderRequest) 1387 if err := dec(in); err != nil { 1388 return nil, err 1389 } 1390 if interceptor == nil { 1391 return srv.(FoldersServer).DeleteFolder(ctx, in) 1392 } 1393 info := &grpc.UnaryServerInfo{ 1394 Server: srv, 1395 FullMethod: "/google.cloud.resourcemanager.v2.Folders/DeleteFolder", 1396 } 1397 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1398 return srv.(FoldersServer).DeleteFolder(ctx, req.(*DeleteFolderRequest)) 1399 } 1400 return interceptor(ctx, in, info, handler) 1401} 1402 1403func _Folders_UndeleteFolder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1404 in := new(UndeleteFolderRequest) 1405 if err := dec(in); err != nil { 1406 return nil, err 1407 } 1408 if interceptor == nil { 1409 return srv.(FoldersServer).UndeleteFolder(ctx, in) 1410 } 1411 info := &grpc.UnaryServerInfo{ 1412 Server: srv, 1413 FullMethod: "/google.cloud.resourcemanager.v2.Folders/UndeleteFolder", 1414 } 1415 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1416 return srv.(FoldersServer).UndeleteFolder(ctx, req.(*UndeleteFolderRequest)) 1417 } 1418 return interceptor(ctx, in, info, handler) 1419} 1420 1421func _Folders_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1422 in := new(v1.GetIamPolicyRequest) 1423 if err := dec(in); err != nil { 1424 return nil, err 1425 } 1426 if interceptor == nil { 1427 return srv.(FoldersServer).GetIamPolicy(ctx, in) 1428 } 1429 info := &grpc.UnaryServerInfo{ 1430 Server: srv, 1431 FullMethod: "/google.cloud.resourcemanager.v2.Folders/GetIamPolicy", 1432 } 1433 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1434 return srv.(FoldersServer).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest)) 1435 } 1436 return interceptor(ctx, in, info, handler) 1437} 1438 1439func _Folders_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1440 in := new(v1.SetIamPolicyRequest) 1441 if err := dec(in); err != nil { 1442 return nil, err 1443 } 1444 if interceptor == nil { 1445 return srv.(FoldersServer).SetIamPolicy(ctx, in) 1446 } 1447 info := &grpc.UnaryServerInfo{ 1448 Server: srv, 1449 FullMethod: "/google.cloud.resourcemanager.v2.Folders/SetIamPolicy", 1450 } 1451 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1452 return srv.(FoldersServer).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest)) 1453 } 1454 return interceptor(ctx, in, info, handler) 1455} 1456 1457func _Folders_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1458 in := new(v1.TestIamPermissionsRequest) 1459 if err := dec(in); err != nil { 1460 return nil, err 1461 } 1462 if interceptor == nil { 1463 return srv.(FoldersServer).TestIamPermissions(ctx, in) 1464 } 1465 info := &grpc.UnaryServerInfo{ 1466 Server: srv, 1467 FullMethod: "/google.cloud.resourcemanager.v2.Folders/TestIamPermissions", 1468 } 1469 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1470 return srv.(FoldersServer).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest)) 1471 } 1472 return interceptor(ctx, in, info, handler) 1473} 1474 1475var _Folders_serviceDesc = grpc.ServiceDesc{ 1476 ServiceName: "google.cloud.resourcemanager.v2.Folders", 1477 HandlerType: (*FoldersServer)(nil), 1478 Methods: []grpc.MethodDesc{ 1479 { 1480 MethodName: "ListFolders", 1481 Handler: _Folders_ListFolders_Handler, 1482 }, 1483 { 1484 MethodName: "SearchFolders", 1485 Handler: _Folders_SearchFolders_Handler, 1486 }, 1487 { 1488 MethodName: "GetFolder", 1489 Handler: _Folders_GetFolder_Handler, 1490 }, 1491 { 1492 MethodName: "CreateFolder", 1493 Handler: _Folders_CreateFolder_Handler, 1494 }, 1495 { 1496 MethodName: "UpdateFolder", 1497 Handler: _Folders_UpdateFolder_Handler, 1498 }, 1499 { 1500 MethodName: "MoveFolder", 1501 Handler: _Folders_MoveFolder_Handler, 1502 }, 1503 { 1504 MethodName: "DeleteFolder", 1505 Handler: _Folders_DeleteFolder_Handler, 1506 }, 1507 { 1508 MethodName: "UndeleteFolder", 1509 Handler: _Folders_UndeleteFolder_Handler, 1510 }, 1511 { 1512 MethodName: "GetIamPolicy", 1513 Handler: _Folders_GetIamPolicy_Handler, 1514 }, 1515 { 1516 MethodName: "SetIamPolicy", 1517 Handler: _Folders_SetIamPolicy_Handler, 1518 }, 1519 { 1520 MethodName: "TestIamPermissions", 1521 Handler: _Folders_TestIamPermissions_Handler, 1522 }, 1523 }, 1524 Streams: []grpc.StreamDesc{}, 1525 Metadata: "google/cloud/resourcemanager/v2/folders.proto", 1526} 1527