1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package asset
22
23 import (
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
36 const (
37
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43
44 type SearchAllResourcesRequest struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49
50
51
52
53
54
55
56 Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
57
58 Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
59
60
61 AssetTypes []string `protobuf:"bytes,3,rep,name=asset_types,json=assetTypes,proto3" json:"asset_types,omitempty"`
62
63
64
65
66
67 PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
68
69
70
71
72 PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
73
74
75
76
77 OrderBy string `protobuf:"bytes,10,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
78 }
79
80 func (x *SearchAllResourcesRequest) Reset() {
81 *x = SearchAllResourcesRequest{}
82 if protoimpl.UnsafeEnabled {
83 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[0]
84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
85 ms.StoreMessageInfo(mi)
86 }
87 }
88
89 func (x *SearchAllResourcesRequest) String() string {
90 return protoimpl.X.MessageStringOf(x)
91 }
92
93 func (*SearchAllResourcesRequest) ProtoMessage() {}
94
95 func (x *SearchAllResourcesRequest) ProtoReflect() protoreflect.Message {
96 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[0]
97 if protoimpl.UnsafeEnabled && x != nil {
98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
99 if ms.LoadMessageInfo() == nil {
100 ms.StoreMessageInfo(mi)
101 }
102 return ms
103 }
104 return mi.MessageOf(x)
105 }
106
107
108 func (*SearchAllResourcesRequest) Descriptor() ([]byte, []int) {
109 return file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescGZIP(), []int{0}
110 }
111
112 func (x *SearchAllResourcesRequest) GetScope() string {
113 if x != nil {
114 return x.Scope
115 }
116 return ""
117 }
118
119 func (x *SearchAllResourcesRequest) GetQuery() string {
120 if x != nil {
121 return x.Query
122 }
123 return ""
124 }
125
126 func (x *SearchAllResourcesRequest) GetAssetTypes() []string {
127 if x != nil {
128 return x.AssetTypes
129 }
130 return nil
131 }
132
133 func (x *SearchAllResourcesRequest) GetPageSize() int32 {
134 if x != nil {
135 return x.PageSize
136 }
137 return 0
138 }
139
140 func (x *SearchAllResourcesRequest) GetPageToken() string {
141 if x != nil {
142 return x.PageToken
143 }
144 return ""
145 }
146
147 func (x *SearchAllResourcesRequest) GetOrderBy() string {
148 if x != nil {
149 return x.OrderBy
150 }
151 return ""
152 }
153
154
155 type SearchAllResourcesResponse struct {
156 state protoimpl.MessageState
157 sizeCache protoimpl.SizeCache
158 unknownFields protoimpl.UnknownFields
159
160
161 Results []*StandardResourceMetadata `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
162
163
164
165 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
166 }
167
168 func (x *SearchAllResourcesResponse) Reset() {
169 *x = SearchAllResourcesResponse{}
170 if protoimpl.UnsafeEnabled {
171 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[1]
172 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
173 ms.StoreMessageInfo(mi)
174 }
175 }
176
177 func (x *SearchAllResourcesResponse) String() string {
178 return protoimpl.X.MessageStringOf(x)
179 }
180
181 func (*SearchAllResourcesResponse) ProtoMessage() {}
182
183 func (x *SearchAllResourcesResponse) ProtoReflect() protoreflect.Message {
184 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[1]
185 if protoimpl.UnsafeEnabled && x != nil {
186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
187 if ms.LoadMessageInfo() == nil {
188 ms.StoreMessageInfo(mi)
189 }
190 return ms
191 }
192 return mi.MessageOf(x)
193 }
194
195
196 func (*SearchAllResourcesResponse) Descriptor() ([]byte, []int) {
197 return file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescGZIP(), []int{1}
198 }
199
200 func (x *SearchAllResourcesResponse) GetResults() []*StandardResourceMetadata {
201 if x != nil {
202 return x.Results
203 }
204 return nil
205 }
206
207 func (x *SearchAllResourcesResponse) GetNextPageToken() string {
208 if x != nil {
209 return x.NextPageToken
210 }
211 return ""
212 }
213
214
215 type SearchAllIamPoliciesRequest struct {
216 state protoimpl.MessageState
217 sizeCache protoimpl.SizeCache
218 unknownFields protoimpl.UnknownFields
219
220
221
222
223
224
225
226
227 Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
228
229
230
231
232 Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
233
234
235
236
237
238 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
239
240
241
242
243 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
244 }
245
246 func (x *SearchAllIamPoliciesRequest) Reset() {
247 *x = SearchAllIamPoliciesRequest{}
248 if protoimpl.UnsafeEnabled {
249 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[2]
250 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
251 ms.StoreMessageInfo(mi)
252 }
253 }
254
255 func (x *SearchAllIamPoliciesRequest) String() string {
256 return protoimpl.X.MessageStringOf(x)
257 }
258
259 func (*SearchAllIamPoliciesRequest) ProtoMessage() {}
260
261 func (x *SearchAllIamPoliciesRequest) ProtoReflect() protoreflect.Message {
262 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[2]
263 if protoimpl.UnsafeEnabled && x != nil {
264 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
265 if ms.LoadMessageInfo() == nil {
266 ms.StoreMessageInfo(mi)
267 }
268 return ms
269 }
270 return mi.MessageOf(x)
271 }
272
273
274 func (*SearchAllIamPoliciesRequest) Descriptor() ([]byte, []int) {
275 return file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescGZIP(), []int{2}
276 }
277
278 func (x *SearchAllIamPoliciesRequest) GetScope() string {
279 if x != nil {
280 return x.Scope
281 }
282 return ""
283 }
284
285 func (x *SearchAllIamPoliciesRequest) GetQuery() string {
286 if x != nil {
287 return x.Query
288 }
289 return ""
290 }
291
292 func (x *SearchAllIamPoliciesRequest) GetPageSize() int32 {
293 if x != nil {
294 return x.PageSize
295 }
296 return 0
297 }
298
299 func (x *SearchAllIamPoliciesRequest) GetPageToken() string {
300 if x != nil {
301 return x.PageToken
302 }
303 return ""
304 }
305
306
307 type SearchAllIamPoliciesResponse struct {
308 state protoimpl.MessageState
309 sizeCache protoimpl.SizeCache
310 unknownFields protoimpl.UnknownFields
311
312
313
314 Results []*IamPolicySearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
315
316
317
318 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
319 }
320
321 func (x *SearchAllIamPoliciesResponse) Reset() {
322 *x = SearchAllIamPoliciesResponse{}
323 if protoimpl.UnsafeEnabled {
324 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[3]
325 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
326 ms.StoreMessageInfo(mi)
327 }
328 }
329
330 func (x *SearchAllIamPoliciesResponse) String() string {
331 return protoimpl.X.MessageStringOf(x)
332 }
333
334 func (*SearchAllIamPoliciesResponse) ProtoMessage() {}
335
336 func (x *SearchAllIamPoliciesResponse) ProtoReflect() protoreflect.Message {
337 mi := &file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[3]
338 if protoimpl.UnsafeEnabled && x != nil {
339 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
340 if ms.LoadMessageInfo() == nil {
341 ms.StoreMessageInfo(mi)
342 }
343 return ms
344 }
345 return mi.MessageOf(x)
346 }
347
348
349 func (*SearchAllIamPoliciesResponse) Descriptor() ([]byte, []int) {
350 return file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescGZIP(), []int{3}
351 }
352
353 func (x *SearchAllIamPoliciesResponse) GetResults() []*IamPolicySearchResult {
354 if x != nil {
355 return x.Results
356 }
357 return nil
358 }
359
360 func (x *SearchAllIamPoliciesResponse) GetNextPageToken() string {
361 if x != nil {
362 return x.NextPageToken
363 }
364 return ""
365 }
366
367 var File_google_cloud_asset_v1p1beta1_asset_service_proto protoreflect.FileDescriptor
368
369 var file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDesc = []byte{
370 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
371 0x73, 0x73, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61,
372 0x73, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
373 0x74, 0x6f, 0x12, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
374 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
375 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
376 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17,
377 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e,
378 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
379 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69,
380 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
381 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x70,
382 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72,
383 0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x01, 0x0a, 0x19, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c,
384 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
385 0x74, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
386 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x05,
387 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01,
388 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x24, 0x0a, 0x0b, 0x61, 0x73, 0x73, 0x65, 0x74,
389 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
390 0x01, 0x52, 0x0a, 0x61, 0x73, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x20, 0x0a,
391 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
392 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,
393 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20,
394 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f,
395 0x6b, 0x65, 0x6e, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18,
396 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65,
397 0x72, 0x42, 0x79, 0x22, 0x96, 0x01, 0x0a, 0x1a, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c,
398 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
399 0x73, 0x65, 0x12, 0x50, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20,
400 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
401 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74,
402 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75,
403 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x72, 0x65, 0x73,
404 0x75, 0x6c, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67,
405 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e,
406 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x99, 0x01, 0x0a,
407 0x1b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,
408 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x05,
409 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
410 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79,
411 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x71, 0x75, 0x65,
412 0x72, 0x79, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,
413 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65,
414 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
415 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70,
416 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x95, 0x01, 0x0a, 0x1c, 0x53, 0x65, 0x61,
417 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
418 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x07, 0x72, 0x65, 0x73,
419 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f,
420 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e,
421 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c,
422 0x69, 0x63, 0x79, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52,
423 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74,
424 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
425 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
426 0x32, 0x89, 0x04, 0x0a, 0x0c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
427 0x65, 0x12, 0xd5, 0x01, 0x0a, 0x12, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x52,
428 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
429 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31,
430 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c,
431 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
432 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
433 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
434 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
435 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x82, 0xd3, 0xe4,
436 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
437 0x7b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x2a, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x73, 0x6f,
438 0x75, 0x72, 0x63, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0xda,
439 0x41, 0x17, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x2c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2c, 0x61, 0x73,
440 0x73, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0xd1, 0x01, 0x0a, 0x14, 0x53, 0x65,
441 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69,
442 0x65, 0x73, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
443 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61,
444 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x49, 0x61, 0x6d, 0x50, 0x6f,
445 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e,
446 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73,
447 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61,
448 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
449 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02,
450 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x7b, 0x73,
451 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x2a, 0x2f, 0x2a, 0x7d, 0x2f, 0x69, 0x61, 0x6d, 0x50, 0x6f, 0x6c,
452 0x69, 0x63, 0x69, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0xda,
453 0x41, 0x0b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x2c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x4d, 0xca,
454 0x41, 0x19, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x67, 0x6f, 0x6f,
455 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74,
456 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
457 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c,
458 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xb8, 0x01, 0x0a,
459 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
460 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61,
461 0x31, 0x42, 0x11, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50,
462 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
463 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f,
464 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c,
465 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65,
466 0x74, 0x61, 0x31, 0x3b, 0x61, 0x73, 0x73, 0x65, 0x74, 0xaa, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67,
467 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x56,
468 0x31, 0x50, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
469 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x5c, 0x56, 0x31,
470 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
471 }
472
473 var (
474 file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescOnce sync.Once
475 file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescData = file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDesc
476 )
477
478 func file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescGZIP() []byte {
479 file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescOnce.Do(func() {
480 file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescData)
481 })
482 return file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDescData
483 }
484
485 var file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
486 var file_google_cloud_asset_v1p1beta1_asset_service_proto_goTypes = []interface{}{
487 (*SearchAllResourcesRequest)(nil),
488 (*SearchAllResourcesResponse)(nil),
489 (*SearchAllIamPoliciesRequest)(nil),
490 (*SearchAllIamPoliciesResponse)(nil),
491 (*StandardResourceMetadata)(nil),
492 (*IamPolicySearchResult)(nil),
493 }
494 var file_google_cloud_asset_v1p1beta1_asset_service_proto_depIdxs = []int32{
495 4,
496 5,
497 0,
498 2,
499 1,
500 3,
501 4,
502 2,
503 2,
504 2,
505 0,
506 }
507
508 func init() { file_google_cloud_asset_v1p1beta1_asset_service_proto_init() }
509 func file_google_cloud_asset_v1p1beta1_asset_service_proto_init() {
510 if File_google_cloud_asset_v1p1beta1_asset_service_proto != nil {
511 return
512 }
513 file_google_cloud_asset_v1p1beta1_assets_proto_init()
514 if !protoimpl.UnsafeEnabled {
515 file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
516 switch v := v.(*SearchAllResourcesRequest); i {
517 case 0:
518 return &v.state
519 case 1:
520 return &v.sizeCache
521 case 2:
522 return &v.unknownFields
523 default:
524 return nil
525 }
526 }
527 file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
528 switch v := v.(*SearchAllResourcesResponse); i {
529 case 0:
530 return &v.state
531 case 1:
532 return &v.sizeCache
533 case 2:
534 return &v.unknownFields
535 default:
536 return nil
537 }
538 }
539 file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
540 switch v := v.(*SearchAllIamPoliciesRequest); i {
541 case 0:
542 return &v.state
543 case 1:
544 return &v.sizeCache
545 case 2:
546 return &v.unknownFields
547 default:
548 return nil
549 }
550 }
551 file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
552 switch v := v.(*SearchAllIamPoliciesResponse); i {
553 case 0:
554 return &v.state
555 case 1:
556 return &v.sizeCache
557 case 2:
558 return &v.unknownFields
559 default:
560 return nil
561 }
562 }
563 }
564 type x struct{}
565 out := protoimpl.TypeBuilder{
566 File: protoimpl.DescBuilder{
567 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
568 RawDescriptor: file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDesc,
569 NumEnums: 0,
570 NumMessages: 4,
571 NumExtensions: 0,
572 NumServices: 1,
573 },
574 GoTypes: file_google_cloud_asset_v1p1beta1_asset_service_proto_goTypes,
575 DependencyIndexes: file_google_cloud_asset_v1p1beta1_asset_service_proto_depIdxs,
576 MessageInfos: file_google_cloud_asset_v1p1beta1_asset_service_proto_msgTypes,
577 }.Build()
578 File_google_cloud_asset_v1p1beta1_asset_service_proto = out.File
579 file_google_cloud_asset_v1p1beta1_asset_service_proto_rawDesc = nil
580 file_google_cloud_asset_v1p1beta1_asset_service_proto_goTypes = nil
581 file_google_cloud_asset_v1p1beta1_asset_service_proto_depIdxs = nil
582 }
583
584
585 var _ context.Context
586 var _ grpc.ClientConnInterface
587
588
589
590 const _ = grpc.SupportPackageIsVersion6
591
592
593
594
595 type AssetServiceClient interface {
596
597
598
599
600
601
602 SearchAllResources(ctx context.Context, in *SearchAllResourcesRequest, opts ...grpc.CallOption) (*SearchAllResourcesResponse, error)
603
604
605
606
607
608
609 SearchAllIamPolicies(ctx context.Context, in *SearchAllIamPoliciesRequest, opts ...grpc.CallOption) (*SearchAllIamPoliciesResponse, error)
610 }
611
612 type assetServiceClient struct {
613 cc grpc.ClientConnInterface
614 }
615
616 func NewAssetServiceClient(cc grpc.ClientConnInterface) AssetServiceClient {
617 return &assetServiceClient{cc}
618 }
619
620 func (c *assetServiceClient) SearchAllResources(ctx context.Context, in *SearchAllResourcesRequest, opts ...grpc.CallOption) (*SearchAllResourcesResponse, error) {
621 out := new(SearchAllResourcesResponse)
622 err := c.cc.Invoke(ctx, "/google.cloud.asset.v1p1beta1.AssetService/SearchAllResources", in, out, opts...)
623 if err != nil {
624 return nil, err
625 }
626 return out, nil
627 }
628
629 func (c *assetServiceClient) SearchAllIamPolicies(ctx context.Context, in *SearchAllIamPoliciesRequest, opts ...grpc.CallOption) (*SearchAllIamPoliciesResponse, error) {
630 out := new(SearchAllIamPoliciesResponse)
631 err := c.cc.Invoke(ctx, "/google.cloud.asset.v1p1beta1.AssetService/SearchAllIamPolicies", in, out, opts...)
632 if err != nil {
633 return nil, err
634 }
635 return out, nil
636 }
637
638
639 type AssetServiceServer interface {
640
641
642
643
644
645
646 SearchAllResources(context.Context, *SearchAllResourcesRequest) (*SearchAllResourcesResponse, error)
647
648
649
650
651
652
653 SearchAllIamPolicies(context.Context, *SearchAllIamPoliciesRequest) (*SearchAllIamPoliciesResponse, error)
654 }
655
656
657 type UnimplementedAssetServiceServer struct {
658 }
659
660 func (*UnimplementedAssetServiceServer) SearchAllResources(context.Context, *SearchAllResourcesRequest) (*SearchAllResourcesResponse, error) {
661 return nil, status.Errorf(codes.Unimplemented, "method SearchAllResources not implemented")
662 }
663 func (*UnimplementedAssetServiceServer) SearchAllIamPolicies(context.Context, *SearchAllIamPoliciesRequest) (*SearchAllIamPoliciesResponse, error) {
664 return nil, status.Errorf(codes.Unimplemented, "method SearchAllIamPolicies not implemented")
665 }
666
667 func RegisterAssetServiceServer(s *grpc.Server, srv AssetServiceServer) {
668 s.RegisterService(&_AssetService_serviceDesc, srv)
669 }
670
671 func _AssetService_SearchAllResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
672 in := new(SearchAllResourcesRequest)
673 if err := dec(in); err != nil {
674 return nil, err
675 }
676 if interceptor == nil {
677 return srv.(AssetServiceServer).SearchAllResources(ctx, in)
678 }
679 info := &grpc.UnaryServerInfo{
680 Server: srv,
681 FullMethod: "/google.cloud.asset.v1p1beta1.AssetService/SearchAllResources",
682 }
683 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
684 return srv.(AssetServiceServer).SearchAllResources(ctx, req.(*SearchAllResourcesRequest))
685 }
686 return interceptor(ctx, in, info, handler)
687 }
688
689 func _AssetService_SearchAllIamPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
690 in := new(SearchAllIamPoliciesRequest)
691 if err := dec(in); err != nil {
692 return nil, err
693 }
694 if interceptor == nil {
695 return srv.(AssetServiceServer).SearchAllIamPolicies(ctx, in)
696 }
697 info := &grpc.UnaryServerInfo{
698 Server: srv,
699 FullMethod: "/google.cloud.asset.v1p1beta1.AssetService/SearchAllIamPolicies",
700 }
701 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
702 return srv.(AssetServiceServer).SearchAllIamPolicies(ctx, req.(*SearchAllIamPoliciesRequest))
703 }
704 return interceptor(ctx, in, info, handler)
705 }
706
707 var _AssetService_serviceDesc = grpc.ServiceDesc{
708 ServiceName: "google.cloud.asset.v1p1beta1.AssetService",
709 HandlerType: (*AssetServiceServer)(nil),
710 Methods: []grpc.MethodDesc{
711 {
712 MethodName: "SearchAllResources",
713 Handler: _AssetService_SearchAllResources_Handler,
714 },
715 {
716 MethodName: "SearchAllIamPolicies",
717 Handler: _AssetService_SearchAllIamPolicies_Handler,
718 },
719 },
720 Streams: []grpc.StreamDesc{},
721 Metadata: "google/cloud/asset/v1p1beta1/asset_service.proto",
722 }
723
View as plain text