1// Copyright 2020 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// Code generated by protoc-gen-go. DO NOT EDIT. 16// versions: 17// protoc-gen-go v1.26.0 18// protoc v3.12.2 19// source: google/cloud/asset/v1p1beta1/asset_service.proto 20 21package asset 22 23import ( 24 context "context" 25 reflect "reflect" 26 sync "sync" 27 28 _ "google.golang.org/genproto/googleapis/api/annotations" 29 grpc "google.golang.org/grpc" 30 codes "google.golang.org/grpc/codes" 31 status "google.golang.org/grpc/status" 32 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 33 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 34) 35 36const ( 37 // Verify that this generated code is sufficiently up-to-date. 38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 39 // Verify that runtime/protoimpl is sufficiently up-to-date. 40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 41) 42 43// Search all resources request. 44type SearchAllResourcesRequest struct { 45 state protoimpl.MessageState 46 sizeCache protoimpl.SizeCache 47 unknownFields protoimpl.UnknownFields 48 49 // Required. The relative name of an asset. The search is limited to the resources 50 // within the `scope`. The allowed value must be: 51 // * Organization number (such as "organizations/123") 52 // * Folder number(such as "folders/1234") 53 // * Project number (such as "projects/12345") 54 // * Project id (such as "projects/abc") 55 Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` 56 // Optional. The query statement. 57 Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` 58 // Optional. A list of asset types that this request searches for. If empty, it will 59 // search all the supported asset types. 60 AssetTypes []string `protobuf:"bytes,3,rep,name=asset_types,json=assetTypes,proto3" json:"asset_types,omitempty"` 61 // Optional. The page size for search result pagination. Page size is capped at 500 even 62 // if a larger value is given. If set to zero, server will pick an appropriate 63 // default. Returned results may be fewer than requested. When this happens, 64 // there could be more results as long as `next_page_token` is returned. 65 PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 66 // Optional. If present, then retrieve the next batch of results from the preceding call 67 // to this method. `page_token` must be the value of `next_page_token` from 68 // the previous response. The values of all other method parameters, must be 69 // identical to those in the previous call. 70 PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 71 // Optional. A comma separated list of fields specifying the sorting order of the 72 // results. The default order is ascending. Add " desc" after the field name 73 // to indicate descending order. Redundant space characters are ignored. For 74 // example, " foo , bar desc ". 75 OrderBy string `protobuf:"bytes,10,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` 76} 77 78func (x *SearchAllResourcesRequest) Reset() { 79 *x = SearchAllResourcesRequest{} 80 if protoimpl.UnsafeEnabled { 81 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[0] 82 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 83 ms.StoreMessageInfo(mi) 84 } 85} 86 87func (x *SearchAllResourcesRequest) String() string { 88 return protoimpl.X.MessageStringOf(x) 89} 90 91func (*SearchAllResourcesRequest) ProtoMessage() {} 92 93func (x *SearchAllResourcesRequest) ProtoReflect() protoreflect.Message { 94 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[0] 95 if protoimpl.UnsafeEnabled && x != nil { 96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97 if ms.LoadMessageInfo() == nil { 98 ms.StoreMessageInfo(mi) 99 } 100 return ms 101 } 102 return mi.MessageOf(x) 103} 104 105// Deprecated: Use SearchAllResourcesRequest.ProtoReflect.Descriptor instead. 106func (*SearchAllResourcesRequest) Descriptor() ([]byte, []int) { 107 return file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescGZIP(), []int{0} 108} 109 110func (x *SearchAllResourcesRequest) GetScope() string { 111 if x != nil { 112 return x.Scope 113 } 114 return "" 115} 116 117func (x *SearchAllResourcesRequest) GetQuery() string { 118 if x != nil { 119 return x.Query 120 } 121 return "" 122} 123 124func (x *SearchAllResourcesRequest) GetAssetTypes() []string { 125 if x != nil { 126 return x.AssetTypes 127 } 128 return nil 129} 130 131func (x *SearchAllResourcesRequest) GetPageSize() int32 { 132 if x != nil { 133 return x.PageSize 134 } 135 return 0 136} 137 138func (x *SearchAllResourcesRequest) GetPageToken() string { 139 if x != nil { 140 return x.PageToken 141 } 142 return "" 143} 144 145func (x *SearchAllResourcesRequest) GetOrderBy() string { 146 if x != nil { 147 return x.OrderBy 148 } 149 return "" 150} 151 152// Search all resources response. 153type SearchAllResourcesResponse struct { 154 state protoimpl.MessageState 155 sizeCache protoimpl.SizeCache 156 unknownFields protoimpl.UnknownFields 157 158 // A list of resource that match the search query. 159 Results []*StandardResourceMetadata `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` 160 // If there are more results than those appearing in this response, then 161 // `next_page_token` is included. To get the next set of results, call this 162 // method again using the value of `next_page_token` as `page_token`. 163 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 164} 165 166func (x *SearchAllResourcesResponse) Reset() { 167 *x = SearchAllResourcesResponse{} 168 if protoimpl.UnsafeEnabled { 169 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[1] 170 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 171 ms.StoreMessageInfo(mi) 172 } 173} 174 175func (x *SearchAllResourcesResponse) String() string { 176 return protoimpl.X.MessageStringOf(x) 177} 178 179func (*SearchAllResourcesResponse) ProtoMessage() {} 180 181func (x *SearchAllResourcesResponse) ProtoReflect() protoreflect.Message { 182 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[1] 183 if protoimpl.UnsafeEnabled && x != nil { 184 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 185 if ms.LoadMessageInfo() == nil { 186 ms.StoreMessageInfo(mi) 187 } 188 return ms 189 } 190 return mi.MessageOf(x) 191} 192 193// Deprecated: Use SearchAllResourcesResponse.ProtoReflect.Descriptor instead. 194func (*SearchAllResourcesResponse) Descriptor() ([]byte, []int) { 195 return file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescGZIP(), []int{1} 196} 197 198func (x *SearchAllResourcesResponse) GetResults() []*StandardResourceMetadata { 199 if x != nil { 200 return x.Results 201 } 202 return nil 203} 204 205func (x *SearchAllResourcesResponse) GetNextPageToken() string { 206 if x != nil { 207 return x.NextPageToken 208 } 209 return "" 210} 211 212// Search all IAM policies request. 213type SearchAllIamPoliciesRequest struct { 214 state protoimpl.MessageState 215 sizeCache protoimpl.SizeCache 216 unknownFields protoimpl.UnknownFields 217 218 // Required. The relative name of an asset. The search is limited to the resources 219 // within the `scope`. The allowed value must be: 220 // * Organization number (such as "organizations/123") 221 // * Folder number(such as "folders/1234") 222 // * Project number (such as "projects/12345") 223 // * Project id (such as "projects/abc") 224 Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` 225 // Optional. The query statement. 226 // Examples: 227 // * "policy:myuser@mydomain.com" 228 // * "policy:(myuser@mydomain.com viewer)" 229 Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` 230 // Optional. The page size for search result pagination. Page size is capped at 500 even 231 // if a larger value is given. If set to zero, server will pick an appropriate 232 // default. Returned results may be fewer than requested. When this happens, 233 // there could be more results as long as `next_page_token` is returned. 234 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 235 // Optional. If present, retrieve the next batch of results from the preceding call to 236 // this method. `page_token` must be the value of `next_page_token` from the 237 // previous response. The values of all other method parameters must be 238 // identical to those in the previous call. 239 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 240} 241 242func (x *SearchAllIamPoliciesRequest) Reset() { 243 *x = SearchAllIamPoliciesRequest{} 244 if protoimpl.UnsafeEnabled { 245 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[2] 246 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 247 ms.StoreMessageInfo(mi) 248 } 249} 250 251func (x *SearchAllIamPoliciesRequest) String() string { 252 return protoimpl.X.MessageStringOf(x) 253} 254 255func (*SearchAllIamPoliciesRequest) ProtoMessage() {} 256 257func (x *SearchAllIamPoliciesRequest) ProtoReflect() protoreflect.Message { 258 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[2] 259 if protoimpl.UnsafeEnabled && x != nil { 260 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 261 if ms.LoadMessageInfo() == nil { 262 ms.StoreMessageInfo(mi) 263 } 264 return ms 265 } 266 return mi.MessageOf(x) 267} 268 269// Deprecated: Use SearchAllIamPoliciesRequest.ProtoReflect.Descriptor instead. 270func (*SearchAllIamPoliciesRequest) Descriptor() ([]byte, []int) { 271 return file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescGZIP(), []int{2} 272} 273 274func (x *SearchAllIamPoliciesRequest) GetScope() string { 275 if x != nil { 276 return x.Scope 277 } 278 return "" 279} 280 281func (x *SearchAllIamPoliciesRequest) GetQuery() string { 282 if x != nil { 283 return x.Query 284 } 285 return "" 286} 287 288func (x *SearchAllIamPoliciesRequest) GetPageSize() int32 { 289 if x != nil { 290 return x.PageSize 291 } 292 return 0 293} 294 295func (x *SearchAllIamPoliciesRequest) GetPageToken() string { 296 if x != nil { 297 return x.PageToken 298 } 299 return "" 300} 301 302// Search all IAM policies response. 303type SearchAllIamPoliciesResponse struct { 304 state protoimpl.MessageState 305 sizeCache protoimpl.SizeCache 306 unknownFields protoimpl.UnknownFields 307 308 // A list of IamPolicy that match the search query. Related information such 309 // as the associated resource is returned along with the policy. 310 Results []*IamPolicySearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` 311 // Set if there are more results than those appearing in this response; to get 312 // the next set of results, call this method again, using this value as the 313 // `page_token`. 314 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 315} 316 317func (x *SearchAllIamPoliciesResponse) Reset() { 318 *x = SearchAllIamPoliciesResponse{} 319 if protoimpl.UnsafeEnabled { 320 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[3] 321 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 322 ms.StoreMessageInfo(mi) 323 } 324} 325 326func (x *SearchAllIamPoliciesResponse) String() string { 327 return protoimpl.X.MessageStringOf(x) 328} 329 330func (*SearchAllIamPoliciesResponse) ProtoMessage() {} 331 332func (x *SearchAllIamPoliciesResponse) ProtoReflect() protoreflect.Message { 333 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[3] 334 if protoimpl.UnsafeEnabled && x != nil { 335 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 336 if ms.LoadMessageInfo() == nil { 337 ms.StoreMessageInfo(mi) 338 } 339 return ms 340 } 341 return mi.MessageOf(x) 342} 343 344// Deprecated: Use SearchAllIamPoliciesResponse.ProtoReflect.Descriptor instead. 345func (*SearchAllIamPoliciesResponse) Descriptor() ([]byte, []int) { 346 return file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescGZIP(), []int{3} 347} 348 349func (x *SearchAllIamPoliciesResponse) GetResults() []*IamPolicySearchResult { 350 if x != nil { 351 return x.Results 352 } 353 return nil 354} 355 356func (x *SearchAllIamPoliciesResponse) GetNextPageToken() string { 357 if x != nil { 358 return x.NextPageToken 359 } 360 return "" 361} 362 363var File_google_cloud_asset_v1p1beta1_asset_service_proto protoreflect.FileDescriptor 364 365var file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDesc = []byte{ 366 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 367 0x73, 0x73, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 368 0x73, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 369 0x74, 0x6f, 0x12, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 370 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 371 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 372 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 373 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 374 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 375 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 376 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 377 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x70, 378 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 379 0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x01, 0x0a, 0x19, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 380 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 381 0x74, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 382 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x05, 383 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 384 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x24, 0x0a, 0x0b, 0x61, 0x73, 0x73, 0x65, 0x74, 385 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 386 0x01, 0x52, 0x0a, 0x61, 0x73, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x20, 0x0a, 387 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 388 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 389 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 390 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 391 0x6b, 0x65, 0x6e, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 392 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 393 0x72, 0x42, 0x79, 0x22, 0x96, 0x01, 0x0a, 0x1a, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 394 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 395 0x73, 0x65, 0x12, 0x50, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 396 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 397 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 398 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 399 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x72, 0x65, 0x73, 400 0x75, 0x6c, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 401 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 402 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x99, 0x01, 0x0a, 403 0x1b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 404 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x05, 405 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 406 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 407 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x71, 0x75, 0x65, 408 0x72, 0x79, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 409 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 410 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 411 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 412 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x95, 0x01, 0x0a, 0x1c, 0x53, 0x65, 0x61, 413 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 414 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x07, 0x72, 0x65, 0x73, 415 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 416 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 417 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 418 0x69, 0x63, 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 419 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 420 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 421 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 422 0x32, 0x89, 0x04, 0x0a, 0x0c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 423 0x65, 0x12, 0xd5, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x52, 424 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 425 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 426 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 427 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 428 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 429 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 430 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 431 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x82, 0xd3, 0xe4, 432 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 433 0x7b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x2a, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x73, 0x6f, 434 0x75, 0x72, 0x63, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0xda, 435 0x41, 0x17, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x2c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2c, 0x61, 0x73, 436 0x73, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0xd1, 0x01, 0x0a, 0x14, 0x53, 0x65, 437 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 438 0x65, 0x73, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 439 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 440 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x49, 0x61, 0x6d, 0x50, 0x6f, 441 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 442 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73, 443 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 444 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 445 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 446 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x73, 447 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x2a, 0x2f, 0x2a, 0x7d, 0x2f, 0x69, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 448 0x69, 0x63, 0x69, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0xda, 449 0x41, 0x0b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x2c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x4d, 0xca, 450 0x41, 0x19, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 451 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 452 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 453 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 454 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xb8, 0x01, 0x0a, 455 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 456 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 457 0x31, 0x42, 0x11, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 458 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 459 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 460 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 461 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 462 0x74, 0x61, 0x31, 0x3b, 0x61, 0x73, 0x73, 0x65, 0x74, 0xaa, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 463 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x56, 464 0x31, 0x50, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 465 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x5c, 0x56, 0x31, 466 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 467} 468 469var ( 470 file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescOnce sync.Once 471 file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescData = file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDesc 472) 473 474func file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescGZIP() []byte { 475 file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescOnce.Do(func() { 476 file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescData) 477 }) 478 return file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescData 479} 480 481var file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 482var file_google_cloud_asset_v1p1beta1_asset_service_proto_goTypes = []interface{}{ 483 (*SearchAllResourcesRequest)(nil), // 0: google.cloud.asset.v1p1beta1.SearchAllResourcesRequest 484 (*SearchAllResourcesResponse)(nil), // 1: google.cloud.asset.v1p1beta1.SearchAllResourcesResponse 485 (*SearchAllIamPoliciesRequest)(nil), // 2: google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest 486 (*SearchAllIamPoliciesResponse)(nil), // 3: google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse 487 (*StandardResourceMetadata)(nil), // 4: google.cloud.asset.v1p1beta1.StandardResourceMetadata 488 (*IamPolicySearchResult)(nil), // 5: google.cloud.asset.v1p1beta1.IamPolicySearchResult 489} 490var file_google_cloud_asset_v1p1beta1_asset_service_proto_depIdxs = []int32{ 491 4, // 0: google.cloud.asset.v1p1beta1.SearchAllResourcesResponse.results:type_name -> google.cloud.asset.v1p1beta1.StandardResourceMetadata 492 5, // 1: google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse.results:type_name -> google.cloud.asset.v1p1beta1.IamPolicySearchResult 493 0, // 2: google.cloud.asset.v1p1beta1.AssetService.SearchAllResources:input_type -> google.cloud.asset.v1p1beta1.SearchAllResourcesRequest 494 2, // 3: google.cloud.asset.v1p1beta1.AssetService.SearchAllIamPolicies:input_type -> google.cloud.asset.v1p1beta1.SearchAllIamPoliciesRequest 495 1, // 4: google.cloud.asset.v1p1beta1.AssetService.SearchAllResources:output_type -> google.cloud.asset.v1p1beta1.SearchAllResourcesResponse 496 3, // 5: google.cloud.asset.v1p1beta1.AssetService.SearchAllIamPolicies:output_type -> google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse 497 4, // [4:6] is the sub-list for method output_type 498 2, // [2:4] is the sub-list for method input_type 499 2, // [2:2] is the sub-list for extension type_name 500 2, // [2:2] is the sub-list for extension extendee 501 0, // [0:2] is the sub-list for field type_name 502} 503 504func init() { file_google_cloud_asset_v1p1beta1_asset_service_proto_init() } 505func file_google_cloud_asset_v1p1beta1_asset_service_proto_init() { 506 if File_google_cloud_asset_v1p1beta1_asset_service_proto != nil { 507 return 508 } 509 file_google_cloud_asset_v1p1beta1_assets_proto_init() 510 if !protoimpl.UnsafeEnabled { 511 file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 512 switch v := v.(*SearchAllResourcesRequest); i { 513 case 0: 514 return &v.state 515 case 1: 516 return &v.sizeCache 517 case 2: 518 return &v.unknownFields 519 default: 520 return nil 521 } 522 } 523 file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 524 switch v := v.(*SearchAllResourcesResponse); i { 525 case 0: 526 return &v.state 527 case 1: 528 return &v.sizeCache 529 case 2: 530 return &v.unknownFields 531 default: 532 return nil 533 } 534 } 535 file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 536 switch v := v.(*SearchAllIamPoliciesRequest); i { 537 case 0: 538 return &v.state 539 case 1: 540 return &v.sizeCache 541 case 2: 542 return &v.unknownFields 543 default: 544 return nil 545 } 546 } 547 file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 548 switch v := v.(*SearchAllIamPoliciesResponse); i { 549 case 0: 550 return &v.state 551 case 1: 552 return &v.sizeCache 553 case 2: 554 return &v.unknownFields 555 default: 556 return nil 557 } 558 } 559 } 560 type x struct{} 561 out := protoimpl.TypeBuilder{ 562 File: protoimpl.DescBuilder{ 563 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 564 RawDescriptor: file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDesc, 565 NumEnums: 0, 566 NumMessages: 4, 567 NumExtensions: 0, 568 NumServices: 1, 569 }, 570 GoTypes: file_google_cloud_asset_v1p1beta1_asset_service_proto_goTypes, 571 DependencyIndexes: file_google_cloud_asset_v1p1beta1_asset_service_proto_depIdxs, 572 MessageInfos: file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes, 573 }.Build() 574 File_google_cloud_asset_v1p1beta1_asset_service_proto = out.File 575 file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDesc = nil 576 file_google_cloud_asset_v1p1beta1_asset_service_proto_goTypes = nil 577 file_google_cloud_asset_v1p1beta1_asset_service_proto_depIdxs = nil 578} 579 580// Reference imports to suppress errors if they are not otherwise used. 581var _ context.Context 582var _ grpc.ClientConnInterface 583 584// This is a compile-time assertion to ensure that this generated file 585// is compatible with the grpc package it is being compiled against. 586const _ = grpc.SupportPackageIsVersion6 587 588// AssetServiceClient is the client API for AssetService service. 589// 590// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 591type AssetServiceClient interface { 592 // Searches all the resources under a given accessible CRM scope 593 // (project/folder/organization). This RPC gives callers 594 // especially admins the ability to search all the resources under a scope, 595 // even if they don't have .get permission of all the resources. Callers 596 // should have cloud.assets.SearchAllResources permission on the requested 597 // scope, otherwise it will be rejected. 598 SearchAllResources(ctx context.Context, in *SearchAllResourcesRequest, opts ...grpc.CallOption) (*SearchAllResourcesResponse, error) 599 // Searches all the IAM policies under a given accessible CRM scope 600 // (project/folder/organization). This RPC gives callers 601 // especially admins the ability to search all the IAM policies under a scope, 602 // even if they don't have .getIamPolicy permission of all the IAM policies. 603 // Callers should have cloud.assets.SearchAllIamPolicies permission on the 604 // requested scope, otherwise it will be rejected. 605 SearchAllIamPolicies(ctx context.Context, in *SearchAllIamPoliciesRequest, opts ...grpc.CallOption) (*SearchAllIamPoliciesResponse, error) 606} 607 608type assetServiceClient struct { 609 cc grpc.ClientConnInterface 610} 611 612func NewAssetServiceClient(cc grpc.ClientConnInterface) AssetServiceClient { 613 return &assetServiceClient{cc} 614} 615 616func (c *assetServiceClient) SearchAllResources(ctx context.Context, in *SearchAllResourcesRequest, opts ...grpc.CallOption) (*SearchAllResourcesResponse, error) { 617 out := new(SearchAllResourcesResponse) 618 err := c.cc.Invoke(ctx, "/google.cloud.asset.v1p1beta1.AssetService/SearchAllResources", in, out, opts...) 619 if err != nil { 620 return nil, err 621 } 622 return out, nil 623} 624 625func (c *assetServiceClient) SearchAllIamPolicies(ctx context.Context, in *SearchAllIamPoliciesRequest, opts ...grpc.CallOption) (*SearchAllIamPoliciesResponse, error) { 626 out := new(SearchAllIamPoliciesResponse) 627 err := c.cc.Invoke(ctx, "/google.cloud.asset.v1p1beta1.AssetService/SearchAllIamPolicies", in, out, opts...) 628 if err != nil { 629 return nil, err 630 } 631 return out, nil 632} 633 634// AssetServiceServer is the server API for AssetService service. 635type AssetServiceServer interface { 636 // Searches all the resources under a given accessible CRM scope 637 // (project/folder/organization). This RPC gives callers 638 // especially admins the ability to search all the resources under a scope, 639 // even if they don't have .get permission of all the resources. Callers 640 // should have cloud.assets.SearchAllResources permission on the requested 641 // scope, otherwise it will be rejected. 642 SearchAllResources(context.Context, *SearchAllResourcesRequest) (*SearchAllResourcesResponse, error) 643 // Searches all the IAM policies under a given accessible CRM scope 644 // (project/folder/organization). This RPC gives callers 645 // especially admins the ability to search all the IAM policies under a scope, 646 // even if they don't have .getIamPolicy permission of all the IAM policies. 647 // Callers should have cloud.assets.SearchAllIamPolicies permission on the 648 // requested scope, otherwise it will be rejected. 649 SearchAllIamPolicies(context.Context, *SearchAllIamPoliciesRequest) (*SearchAllIamPoliciesResponse, error) 650} 651 652// UnimplementedAssetServiceServer can be embedded to have forward compatible implementations. 653type UnimplementedAssetServiceServer struct { 654} 655 656func (*UnimplementedAssetServiceServer) SearchAllResources(context.Context, *SearchAllResourcesRequest) (*SearchAllResourcesResponse, error) { 657 return nil, status.Errorf(codes.Unimplemented, "method SearchAllResources not implemented") 658} 659func (*UnimplementedAssetServiceServer) SearchAllIamPolicies(context.Context, *SearchAllIamPoliciesRequest) (*SearchAllIamPoliciesResponse, error) { 660 return nil, status.Errorf(codes.Unimplemented, "method SearchAllIamPolicies not implemented") 661} 662 663func RegisterAssetServiceServer(s *grpc.Server, srv AssetServiceServer) { 664 s.RegisterService(&_AssetService_serviceDesc, srv) 665} 666 667func _AssetService_SearchAllResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 668 in := new(SearchAllResourcesRequest) 669 if err := dec(in); err != nil { 670 return nil, err 671 } 672 if interceptor == nil { 673 return srv.(AssetServiceServer).SearchAllResources(ctx, in) 674 } 675 info := &grpc.UnaryServerInfo{ 676 Server: srv, 677 FullMethod: "/google.cloud.asset.v1p1beta1.AssetService/SearchAllResources", 678 } 679 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 680 return srv.(AssetServiceServer).SearchAllResources(ctx, req.(*SearchAllResourcesRequest)) 681 } 682 return interceptor(ctx, in, info, handler) 683} 684 685func _AssetService_SearchAllIamPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 686 in := new(SearchAllIamPoliciesRequest) 687 if err := dec(in); err != nil { 688 return nil, err 689 } 690 if interceptor == nil { 691 return srv.(AssetServiceServer).SearchAllIamPolicies(ctx, in) 692 } 693 info := &grpc.UnaryServerInfo{ 694 Server: srv, 695 FullMethod: "/google.cloud.asset.v1p1beta1.AssetService/SearchAllIamPolicies", 696 } 697 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 698 return srv.(AssetServiceServer).SearchAllIamPolicies(ctx, req.(*SearchAllIamPoliciesRequest)) 699 } 700 return interceptor(ctx, in, info, handler) 701} 702 703var _AssetService_serviceDesc = grpc.ServiceDesc{ 704 ServiceName: "google.cloud.asset.v1p1beta1.AssetService", 705 HandlerType: (*AssetServiceServer)(nil), 706 Methods: []grpc.MethodDesc{ 707 { 708 MethodName: "SearchAllResources", 709 Handler: _AssetService_SearchAllResources_Handler, 710 }, 711 { 712 MethodName: "SearchAllIamPolicies", 713 Handler: _AssetService_SearchAllIamPolicies_Handler, 714 }, 715 }, 716 Streams: []grpc.StreamDesc{}, 717 Metadata: "google/cloud/asset/v1p1beta1/asset_service.proto", 718} 719