Debian Codegraph @

asset/apiv1p2beta1/assetpb/assets.pb.go

raw
1 // Copyright 2025 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.35.2
18 // protoc v4.25.7
19 // source: google/cloud/asset/v1p2beta1/assets.proto
20
21 package assetpb
22
23 import (
24 accesscontextmanagerpb "cloud.google.com/go/accesscontextmanager/apiv1/accesscontextmanagerpb"
25 iampb "cloud.google.com/go/iam/apiv1/iampb"
26 orgpolicypb "cloud.google.com/go/orgpolicy/apiv1/orgpolicypb"
27 _ "google.golang.org/genproto/googleapis/api/annotations"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 structpb "google.golang.org/protobuf/types/known/structpb"
31 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
32 reflect "reflect"
33 sync "sync"
34 )
35
36 const (
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 // An asset in Google Cloud and its temporal metadata, including the time window
44 // when it was observed and its status during that window.
45 type TemporalAsset struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50 // The time window when the asset data and state was observed.
51 Window *TimeWindow `protobuf:"bytes,1,opt,name=window,proto3" json:"window,omitempty"`
52 // Whether the asset has been deleted or not.
53 Deleted bool `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"`
54 // An asset in Google Cloud.
55 Asset *Asset `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"`
56 }
57
58 func (x *TemporalAsset) Reset() {
59 *x = TemporalAsset{}
60 mi := &file_google_cloud_asset_v1p2beta1_assets_proto_msgTypes[0]
61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62 ms.StoreMessageInfo(mi)
63 }
64
65 func (x *TemporalAsset) String() string {
66 return protoimpl.X.MessageStringOf(x)
67 }
68
69 func (*TemporalAsset) ProtoMessage() {}
70
71 func (x *TemporalAsset) ProtoReflect() protoreflect.Message {
72 mi := &file_google_cloud_asset_v1p2beta1_assets_proto_msgTypes[0]
73 if x != nil {
74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
75 if ms.LoadMessageInfo() == nil {
76 ms.StoreMessageInfo(mi)
77 }
78 return ms
79 }
80 return mi.MessageOf(x)
81 }
82
83 // Deprecated: Use TemporalAsset.ProtoReflect.Descriptor instead.
84 func (*TemporalAsset) Descriptor() ([]byte, []int) {
85 return file_google_cloud_asset_v1p2beta1_assets_proto_rawDescGZIP(), []int{0}
86 }
87
88 func (x *TemporalAsset) GetWindow() *TimeWindow {
89 if x != nil {
90 return x.Window
91 }
92 return nil
93 }
94
95 func (x *TemporalAsset) GetDeleted() bool {
96 if x != nil {
97 return x.Deleted
98 }
99 return false
100 }
101
102 func (x *TemporalAsset) GetAsset() *Asset {
103 if x != nil {
104 return x.Asset
105 }
106 return nil
107 }
108
109 // A time window specified by its `start_time` and `end_time`.
110 type TimeWindow struct {
111 state protoimpl.MessageState
112 sizeCache protoimpl.SizeCache
113 unknownFields protoimpl.UnknownFields
114
115 // Start time of the time window (exclusive).
116 StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
117 // End time of the time window (inclusive). If not specified, the current
118 // timestamp is used instead.
119 EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
120 }
121
122 func (x *TimeWindow) Reset() {
123 *x = TimeWindow{}
124 mi := &file_google_cloud_asset_v1p2beta1_assets_proto_msgTypes[1]
125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126 ms.StoreMessageInfo(mi)
127 }
128
129 func (x *TimeWindow) String() string {
130 return protoimpl.X.MessageStringOf(x)
131 }
132
133 func (*TimeWindow) ProtoMessage() {}
134
135 func (x *TimeWindow) ProtoReflect() protoreflect.Message {
136 mi := &file_google_cloud_asset_v1p2beta1_assets_proto_msgTypes[1]
137 if x != nil {
138 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
139 if ms.LoadMessageInfo() == nil {
140 ms.StoreMessageInfo(mi)
141 }
142 return ms
143 }
144 return mi.MessageOf(x)
145 }
146
147 // Deprecated: Use TimeWindow.ProtoReflect.Descriptor instead.
148 func (*TimeWindow) Descriptor() ([]byte, []int) {
149 return file_google_cloud_asset_v1p2beta1_assets_proto_rawDescGZIP(), []int{1}
150 }
151
152 func (x *TimeWindow) GetStartTime() *timestamppb.Timestamp {
153 if x != nil {
154 return x.StartTime
155 }
156 return nil
157 }
158
159 func (x *TimeWindow) GetEndTime() *timestamppb.Timestamp {
160 if x != nil {
161 return x.EndTime
162 }
163 return nil
164 }
165
166 // An asset in Google Cloud. An asset can be any resource in the Google Cloud
167 // [resource
168 // hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
169 // a resource outside the Google Cloud resource hierarchy (such as Google
170 // Kubernetes Engine clusters and objects), or a policy (e.g. IAM policy).
171 // See [Supported asset
172 // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
173 // for more information.
174 type Asset struct {
175 state protoimpl.MessageState
176 sizeCache protoimpl.SizeCache
177 unknownFields protoimpl.UnknownFields
178
179 // The full name of the asset. Example:
180 // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
181 //
182 // See [Resource
183 // names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
184 // for more information.
185 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
186 // The type of the asset. Example: `compute.googleapis.com/Disk`
187 //
188 // See [Supported asset
189 // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
190 // for more information.
191 AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
192 // A representation of the resource.
193 Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
194 // A representation of the IAM policy set on a Google Cloud resource.
195 // There can be a maximum of one IAM policy set on any given resource.
196 // In addition, IAM policies inherit their granted access scope from any
197 // policies set on parent resources in the resource hierarchy. Therefore, the
198 // effectively policy is the union of both the policy set on this resource
199 // and each policy set on all of the resource's ancestry resource levels in
200 // the hierarchy. See
201 // [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
202 // for more information.
203 IamPolicy *iampb.Policy `protobuf:"bytes,4,opt,name=iam_policy,json=iamPolicy,proto3" json:"iam_policy,omitempty"`
204 // The ancestry path of an asset in Google Cloud [resource
205 // hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
206 // represented as a list of relative resource names. An ancestry path starts
207 // with the closest ancestor in the hierarchy and ends at root. If the asset
208 // is a project, folder, or organization, the ancestry path starts from the
209 // asset itself.
210 //
211 // Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
212 Ancestors []string `protobuf:"bytes,6,rep,name=ancestors,proto3" json:"ancestors,omitempty"`
213 // A representation of an [access
214 // policy](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
215 //
216 // Types that are assignable to AccessContextPolicy:
217 //
218 // *Asset_AccessPolicy
219 // *Asset_AccessLevel
220 // *Asset_ServicePerimeter
221 AccessContextPolicy isAsset_AccessContextPolicy `protobuf_oneof:"access_context_policy"`
222 // A representation of an [organization
223 // policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
224 // There can be more than one organization policy with different constraints
225 // set on a given resource.
226 OrgPolicy []*orgpolicypb.Policy `protobuf:"bytes,10,rep,name=org_policy,json=orgPolicy,proto3" json:"org_policy,omitempty"`
227 }
228
229 func (x *Asset) Reset() {
230 *x = Asset{}
231 mi := &file_google_cloud_asset_v1p2beta1_assets_proto_msgTypes[2]
232 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
233 ms.StoreMessageInfo(mi)
234 }
235
236 func (x *Asset) String() string {
237 return protoimpl.X.MessageStringOf(x)
238 }
239
240 func (*Asset) ProtoMessage() {}
241
242 func (x *Asset) ProtoReflect() protoreflect.Message {
243 mi := &file_google_cloud_asset_v1p2beta1_assets_proto_msgTypes[2]
244 if x != nil {
245 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
246 if ms.LoadMessageInfo() == nil {
247 ms.StoreMessageInfo(mi)
248 }
249 return ms
250 }
251 return mi.MessageOf(x)
252 }
253
254 // Deprecated: Use Asset.ProtoReflect.Descriptor instead.
255 func (*Asset) Descriptor() ([]byte, []int) {
256 return file_google_cloud_asset_v1p2beta1_assets_proto_rawDescGZIP(), []int{2}
257 }
258
259 func (x *Asset) GetName() string {
260 if x != nil {
261 return x.Name
262 }
263 return ""
264 }
265
266 func (x *Asset) GetAssetType() string {
267 if x != nil {
268 return x.AssetType
269 }
270 return ""
271 }
272
273 func (x *Asset) GetResource() *Resource {
274 if x != nil {
275 return x.Resource
276 }
277 return nil
278 }
279
280 func (x *Asset) GetIamPolicy() *iampb.Policy {
281 if x != nil {
282 return x.IamPolicy
283 }
284 return nil
285 }
286
287 func (x *Asset) GetAncestors() []string {
288 if x != nil {
289 return x.Ancestors
290 }
291 return nil
292 }
293
294 func (m *Asset) GetAccessContextPolicy() isAsset_AccessContextPolicy {
295 if m != nil {
296 return m.AccessContextPolicy
297 }
298 return nil
299 }
300
301 func (x *Asset) GetAccessPolicy() *accesscontextmanagerpb.AccessPolicy {
302 if x, ok := x.GetAccessContextPolicy().(*Asset_AccessPolicy); ok {
303 return x.AccessPolicy
304 }
305 return nil
306 }
307
308 func (x *Asset) GetAccessLevel() *accesscontextmanagerpb.AccessLevel {
309 if x, ok := x.GetAccessContextPolicy().(*Asset_AccessLevel); ok {
310 return x.AccessLevel
311 }
312 return nil
313 }
314
315 func (x *Asset) GetServicePerimeter() *accesscontextmanagerpb.ServicePerimeter {
316 if x, ok := x.GetAccessContextPolicy().(*Asset_ServicePerimeter); ok {
317 return x.ServicePerimeter
318 }
319 return nil
320 }
321
322 func (x *Asset) GetOrgPolicy() []*orgpolicypb.Policy {
323 if x != nil {
324 return x.OrgPolicy
325 }
326 return nil
327 }
328
329 type isAsset_AccessContextPolicy interface {
330 isAsset_AccessContextPolicy()
331 }
332
333 type Asset_AccessPolicy struct {
334 // Please also refer to the [access policy user
335 // guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
336 AccessPolicy *accesscontextmanagerpb.AccessPolicy `protobuf:"bytes,7,opt,name=access_policy,json=accessPolicy,proto3,oneof"`
337 }
338
339 type Asset_AccessLevel struct {
340 // Please also refer to the [access level user
341 // guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
342 AccessLevel *accesscontextmanagerpb.AccessLevel `protobuf:"bytes,8,opt,name=access_level,json=accessLevel,proto3,oneof"`
343 }
344
345 type Asset_ServicePerimeter struct {
346 // Please also refer to the [service perimeter user
347 // guide](https://cloud.google.com/vpc-service-controls/docs/overview).
348 ServicePerimeter *accesscontextmanagerpb.ServicePerimeter `protobuf:"bytes,9,opt,name=service_perimeter,json=servicePerimeter,proto3,oneof"`
349 }
350
351 func (*Asset_AccessPolicy) isAsset_AccessContextPolicy() {}
352
353 func (*Asset_AccessLevel) isAsset_AccessContextPolicy() {}
354
355 func (*Asset_ServicePerimeter) isAsset_AccessContextPolicy() {}
356
357 // A representation of a Google Cloud resource.
358 type Resource struct {
359 state protoimpl.MessageState
360 sizeCache protoimpl.SizeCache
361 unknownFields protoimpl.UnknownFields
362
363 // The API version. Example: `v1`
364 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
365 // The URL of the discovery document containing the resource's JSON schema.
366 // Example:
367 // `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
368 //
369 // This value is unspecified for resources that do not have an API based on a
370 // discovery document, such as Cloud Bigtable.
371 DiscoveryDocumentUri string `protobuf:"bytes,2,opt,name=discovery_document_uri,json=discoveryDocumentUri,proto3" json:"discovery_document_uri,omitempty"`
372 // The JSON schema name listed in the discovery document. Example:
373 // `Project`
374 //
375 // This value is unspecified for resources that do not have an API based on a
376 // discovery document, such as Cloud Bigtable.
377 DiscoveryName string `protobuf:"bytes,3,opt,name=discovery_name,json=discoveryName,proto3" json:"discovery_name,omitempty"`
378 // The REST URL for accessing the resource. An HTTP `GET` request using this
379 // URL returns the resource itself. Example:
380 // `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`
381 //
382 // This value is unspecified for resources without a REST API.
383 ResourceUrl string `protobuf:"bytes,4,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
384 // The full name of the immediate parent of this resource. See
385 // [Resource
386 // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
387 // for more information.
388 //
389 // For Google Cloud assets, this value is the parent resource defined in the
390 // [IAM policy
391 // hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
392 // Example:
393 // `//cloudresourcemanager.googleapis.com/projects/my_project_123`
394 //
395 // For third-party assets, this field may be set differently.
396 Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"`
397 // The content of the resource, in which some sensitive fields are removed
398 // and may not be present.
399 Data *structpb.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
400 }
401
402 func (x *Resource) Reset() {
403 *x = Resource{}
404 mi := &file_google_cloud_asset_v1p2beta1_assets_proto_msgTypes[3]
405 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
406 ms.StoreMessageInfo(mi)
407 }
408
409 func (x *Resource) String() string {
410 return protoimpl.X.MessageStringOf(x)
411 }
412
413 func (*Resource) ProtoMessage() {}
414
415 func (x *Resource) ProtoReflect() protoreflect.Message {
416 mi := &file_google_cloud_asset_v1p2beta1_assets_proto_msgTypes[3]
417 if x != nil {
418 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
419 if ms.LoadMessageInfo() == nil {
420 ms.StoreMessageInfo(mi)
421 }
422 return ms
423 }
424 return mi.MessageOf(x)
425 }
426
427 // Deprecated: Use Resource.ProtoReflect.Descriptor instead.
428 func (*Resource) Descriptor() ([]byte, []int) {
429 return file_google_cloud_asset_v1p2beta1_assets_proto_rawDescGZIP(), []int{3}
430 }
431
432 func (x *Resource) GetVersion() string {
433 if x != nil {
434 return x.Version
435 }
436 return ""
437 }
438
439 func (x *Resource) GetDiscoveryDocumentUri() string {
440 if x != nil {
441 return x.DiscoveryDocumentUri
442 }
443 return ""
444 }
445
446 func (x *Resource) GetDiscoveryName() string {
447 if x != nil {
448 return x.DiscoveryName
449 }
450 return ""
451 }
452
453 func (x *Resource) GetResourceUrl() string {
454 if x != nil {
455 return x.ResourceUrl
456 }
457 return ""
458 }
459
460 func (x *Resource) GetParent() string {
461 if x != nil {
462 return x.Parent
463 }
464 return ""
465 }
466
467 func (x *Resource) GetData() *structpb.Struct {
468 if x != nil {
469 return x.Data
470 }
471 return nil
472 }
473
474 var File_google_cloud_asset_v1p2beta1_assets_proto protoreflect.FileDescriptor
475
476 var file_google_cloud_asset_v1p2beta1_assets_proto_rawDesc = []byte{
477 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
478 0x73, 0x73, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x70, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61,
479 0x73, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x67, 0x6f, 0x6f,
480 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e,
481 0x76, 0x31, 0x70, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
482 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
483 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f,
484 0x75, 0x64, 0x2f, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2f, 0x76, 0x31, 0x2f,
485 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
486 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x70,
487 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3a, 0x67, 0x6f, 0x6f,
488 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x63, 0x63,
489 0x65, 0x73, 0x73, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65,
490 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x65, 0x76, 0x65,
491 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
492 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x63,
493 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31,
494 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70,
495 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x64, 0x65,
496 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x63, 0x6f, 0x6e, 0x74,
497 0x65, 0x78, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65,
498 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x2e,
499 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
500 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72,
501 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
502 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,
503 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa6, 0x01, 0x0a, 0x0d, 0x54, 0x65, 0x6d, 0x70, 0x6f, 0x72, 0x61,
504 0x6c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x40, 0x0a, 0x06, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77,
505 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
506 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x32,
507 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77,
508 0x52, 0x06, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65,
509 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74,
510 0x65, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
511 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
512 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31,
513 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x22, 0x7e, 0x0a,
514 0x0a, 0x54, 0x69, 0x6d, 0x65, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x39, 0x0a, 0x0a, 0x73,
515 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
516 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
517 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61,
518 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69,
519 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
520 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
521 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xf9, 0x04,
522 0x0a, 0x05, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
523 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x61,
524 0x73, 0x73, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
525 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x08, 0x72, 0x65,
526 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67,
527 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65,
528 0x74, 0x2e, 0x76, 0x31, 0x70, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f,
529 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x34,
530 0x0a, 0x0a, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01,
531 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e,
532 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x09, 0x69, 0x61, 0x6d, 0x50, 0x6f,
533 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72,
534 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f,
535 0x72, 0x73, 0x12, 0x5c, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x6f, 0x6c,
536 0x69, 0x63, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
537 0x6c, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x61, 0x63, 0x63, 0x65,
538 0x73, 0x73, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72,
539 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
540 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
541 0x12, 0x59, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c,
542 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
543 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x63,
544 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31,
545 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x48, 0x00, 0x52, 0x0b,
546 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x68, 0x0a, 0x11, 0x73,
547 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x74, 0x65, 0x72,
548 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
549 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x63,
550 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31,
551 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x74, 0x65,
552 0x72, 0x48, 0x00, 0x52, 0x10, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69,
553 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x40, 0x0a, 0x0a, 0x6f, 0x72, 0x67, 0x5f, 0x70, 0x6f, 0x6c,
554 0x69, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
555 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69,
556 0x63, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x09, 0x6f, 0x72,
557 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x27, 0xea, 0x41, 0x24, 0x0a, 0x1f, 0x63, 0x6c,
558 0x6f, 0x75, 0x64, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
559 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x01, 0x2a,
560 0x42, 0x17, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65,
561 0x78, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xe9, 0x01, 0x0a, 0x08, 0x52, 0x65,
562 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
563 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
564 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x64, 0x6f,
565 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
566 0x52, 0x14, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x44, 0x6f, 0x63, 0x75, 0x6d,
567 0x65, 0x6e, 0x74, 0x55, 0x72, 0x69, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76,
568 0x65, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
569 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a,
570 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20,
571 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x55, 0x72, 0x6c,
572 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
573 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
574 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
575 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52,
576 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0xa6, 0x01, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
577 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74,
578 0x2e, 0x76, 0x31, 0x70, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x41, 0x73, 0x73, 0x65,
579 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
580 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x73,
581 0x73, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x70, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31,
582 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x70, 0x62, 0x3b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x70, 0x62,
583 0xaa, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
584 0x41, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x56, 0x31, 0x50, 0x32, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca,
585 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41,
586 0x73, 0x73, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x70, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06,
587 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
588 }
589
590 var (
591 file_google_cloud_asset_v1p2beta1_assets_proto_rawDescOnce sync.Once
592 file_google_cloud_asset_v1p2beta1_assets_proto_rawDescData = file_google_cloud_asset_v1p2beta1_assets_proto_rawDesc
593 )
594
595 func file_google_cloud_asset_v1p2beta1_assets_proto_rawDescGZIP() []byte {
596 file_google_cloud_asset_v1p2beta1_assets_proto_rawDescOnce.Do(func() {
597 file_google_cloud_asset_v1p2beta1_assets_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_asset_v1p2beta1_assets_proto_rawDescData)
598 })
599 return file_google_cloud_asset_v1p2beta1_assets_proto_rawDescData
600 }
601
602 var file_google_cloud_asset_v1p2beta1_assets_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
603 var file_google_cloud_asset_v1p2beta1_assets_proto_goTypes = []any{
604 (*TemporalAsset)(nil), // 0: google.cloud.asset.v1p2beta1.TemporalAsset
605 (*TimeWindow)(nil), // 1: google.cloud.asset.v1p2beta1.TimeWindow
606 (*Asset)(nil), // 2: google.cloud.asset.v1p2beta1.Asset
607 (*Resource)(nil), // 3: google.cloud.asset.v1p2beta1.Resource
608 (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
609 (*iampb.Policy)(nil), // 5: google.iam.v1.Policy
610 (*accesscontextmanagerpb.AccessPolicy)(nil), // 6: google.identity.accesscontextmanager.v1.AccessPolicy
611 (*accesscontextmanagerpb.AccessLevel)(nil), // 7: google.identity.accesscontextmanager.v1.AccessLevel
612 (*accesscontextmanagerpb.ServicePerimeter)(nil), // 8: google.identity.accesscontextmanager.v1.ServicePerimeter
613 (*orgpolicypb.Policy)(nil), // 9: google.cloud.orgpolicy.v1.Policy
614 (*structpb.Struct)(nil), // 10: google.protobuf.Struct
615 }
616 var file_google_cloud_asset_v1p2beta1_assets_proto_depIdxs = []int32{
617 1, // 0: google.cloud.asset.v1p2beta1.TemporalAsset.window:type_name -> google.cloud.asset.v1p2beta1.TimeWindow
618 2, // 1: google.cloud.asset.v1p2beta1.TemporalAsset.asset:type_name -> google.cloud.asset.v1p2beta1.Asset
619 4, // 2: google.cloud.asset.v1p2beta1.TimeWindow.start_time:type_name -> google.protobuf.Timestamp
620 4, // 3: google.cloud.asset.v1p2beta1.TimeWindow.end_time:type_name -> google.protobuf.Timestamp
621 3, // 4: google.cloud.asset.v1p2beta1.Asset.resource:type_name -> google.cloud.asset.v1p2beta1.Resource
622 5, // 5: google.cloud.asset.v1p2beta1.Asset.iam_policy:type_name -> google.iam.v1.Policy
623 6, // 6: google.cloud.asset.v1p2beta1.Asset.access_policy:type_name -> google.identity.accesscontextmanager.v1.AccessPolicy
624 7, // 7: google.cloud.asset.v1p2beta1.Asset.access_level:type_name -> google.identity.accesscontextmanager.v1.AccessLevel
625 8, // 8: google.cloud.asset.v1p2beta1.Asset.service_perimeter:type_name -> google.identity.accesscontextmanager.v1.ServicePerimeter
626 9, // 9: google.cloud.asset.v1p2beta1.Asset.org_policy:type_name -> google.cloud.orgpolicy.v1.Policy
627 10, // 10: google.cloud.asset.v1p2beta1.Resource.data:type_name -> google.protobuf.Struct
628 11, // [11:11] is the sub-list for method output_type
629 11, // [11:11] is the sub-list for method input_type
630 11, // [11:11] is the sub-list for extension type_name
631 11, // [11:11] is the sub-list for extension extendee
632 0, // [0:11] is the sub-list for field type_name
633 }
634
635 func init() { file_google_cloud_asset_v1p2beta1_assets_proto_init() }
636 func file_google_cloud_asset_v1p2beta1_assets_proto_init() {
637 if File_google_cloud_asset_v1p2beta1_assets_proto != nil {
638 return
639 }
640 file_google_cloud_asset_v1p2beta1_assets_proto_msgTypes[2].OneofWrappers = []any{
641 (*Asset_AccessPolicy)(nil),
642 (*Asset_AccessLevel)(nil),
643 (*Asset_ServicePerimeter)(nil),
644 }
645 type x struct{}
646 out := protoimpl.TypeBuilder{
647 File: protoimpl.DescBuilder{
648 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
649 RawDescriptor: file_google_cloud_asset_v1p2beta1_assets_proto_rawDesc,
650 NumEnums: 0,
651 NumMessages: 4,
652 NumExtensions: 0,
653 NumServices: 0,
654 },
655 GoTypes: file_google_cloud_asset_v1p2beta1_assets_proto_goTypes,
656 DependencyIndexes: file_google_cloud_asset_v1p2beta1_assets_proto_depIdxs,
657 MessageInfos: file_google_cloud_asset_v1p2beta1_assets_proto_msgTypes,
658 }.Build()
659 File_google_cloud_asset_v1p2beta1_assets_proto = out.File
660 file_google_cloud_asset_v1p2beta1_assets_proto_rawDesc = nil
661 file_google_cloud_asset_v1p2beta1_assets_proto_goTypes = nil
662 file_google_cloud_asset_v1p2beta1_assets_proto_depIdxs = nil
663 }