| 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/v1p5beta1/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 |
reflect "reflect" |
| 32 |
sync "sync" |
| 33 |
) |
| 34 |
|
| 35 |
const ( |
| 36 |
// Verify that this generated code is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 38 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 39 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 40 |
) |
| 41 |
|
| 42 |
// An asset in Google Cloud. An asset can be any resource in the Google Cloud |
| 43 |
// [resource |
| 44 |
// hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), |
| 45 |
// a resource outside the Google Cloud resource hierarchy (such as Google |
| 46 |
// Kubernetes Engine clusters and objects), or a policy (e.g. IAM policy). |
| 47 |
// See [Supported asset |
| 48 |
// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) |
| 49 |
// for more information. |
| 50 |
type Asset struct { |
| 51 |
state protoimpl.MessageState |
| 52 |
sizeCache protoimpl.SizeCache |
| 53 |
unknownFields protoimpl.UnknownFields |
| 54 |
|
| 55 |
// The full name of the asset. Example: |
| 56 |
// `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` |
| 57 |
// |
| 58 |
// See [Resource |
| 59 |
// names](https://cloud.google.com/apis/design/resource_names#full_resource_name) |
| 60 |
// for more information. |
| 61 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 62 |
// The type of the asset. Example: `compute.googleapis.com/Disk` |
| 63 |
// |
| 64 |
// See [Supported asset |
| 65 |
// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) |
| 66 |
// for more information. |
| 67 |
AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"` |
| 68 |
// A representation of the resource. |
| 69 |
Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` |
| 70 |
// A representation of the IAM policy set on a Google Cloud resource. |
| 71 |
// There can be a maximum of one IAM policy set on any given resource. |
| 72 |
// In addition, IAM policies inherit their granted access scope from any |
| 73 |
// policies set on parent resources in the resource hierarchy. Therefore, the |
| 74 |
// effectively policy is the union of both the policy set on this resource |
| 75 |
// and each policy set on all of the resource's ancestry resource levels in |
| 76 |
// the hierarchy. See |
| 77 |
// [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance) |
| 78 |
// for more information. |
| 79 |
IamPolicy *iampb.Policy `protobuf:"bytes,4,opt,name=iam_policy,json=iamPolicy,proto3" json:"iam_policy,omitempty"` |
| 80 |
// A representation of an [organization |
| 81 |
// policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy). |
| 82 |
// There can be more than one organization policy with different constraints |
| 83 |
// set on a given resource. |
| 84 |
OrgPolicy []*orgpolicypb.Policy `protobuf:"bytes,6,rep,name=org_policy,json=orgPolicy,proto3" json:"org_policy,omitempty"` |
| 85 |
// A representation of an [access |
| 86 |
// policy](https://cloud.google.com/access-context-manager/docs/overview#access-policies). |
| 87 |
// |
| 88 |
// Types that are assignable to AccessContextPolicy: |
| 89 |
// |
| 90 |
// *Asset_AccessPolicy |
| 91 |
// *Asset_AccessLevel |
| 92 |
// *Asset_ServicePerimeter |
| 93 |
AccessContextPolicy isAsset_AccessContextPolicy `protobuf_oneof:"access_context_policy"` |
| 94 |
// The ancestry path of an asset in Google Cloud [resource |
| 95 |
// hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), |
| 96 |
// represented as a list of relative resource names. An ancestry path starts |
| 97 |
// with the closest ancestor in the hierarchy and ends at root. If the asset |
| 98 |
// is a project, folder, or organization, the ancestry path starts from the |
| 99 |
// asset itself. |
| 100 |
// |
| 101 |
// Example: `["projects/123456789", "folders/5432", "organizations/1234"]` |
| 102 |
Ancestors []string `protobuf:"bytes,10,rep,name=ancestors,proto3" json:"ancestors,omitempty"` |
| 103 |
} |
| 104 |
|
| 105 |
func (x *Asset) Reset() { |
| 106 |
*x = Asset{} |
| 107 |
mi := &file_google_cloud_asset_v1p5beta1_assets_proto_msgTypes[0] |
| 108 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 109 |
ms.StoreMessageInfo(mi) |
| 110 |
} |
| 111 |
|
| 112 |
func (x *Asset) String() string { |
| 113 |
return protoimpl.X.MessageStringOf(x) |
| 114 |
} |
| 115 |
|
| 116 |
func (*Asset) ProtoMessage() {} |
| 117 |
|
| 118 |
func (x *Asset) ProtoReflect() protoreflect.Message { |
| 119 |
mi := &file_google_cloud_asset_v1p5beta1_assets_proto_msgTypes[0] |
| 120 |
if x != nil { |
| 121 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 122 |
if ms.LoadMessageInfo() == nil { |
| 123 |
ms.StoreMessageInfo(mi) |
| 124 |
} |
| 125 |
return ms |
| 126 |
} |
| 127 |
return mi.MessageOf(x) |
| 128 |
} |
| 129 |
|
| 130 |
// Deprecated: Use Asset.ProtoReflect.Descriptor instead. |
| 131 |
func (*Asset) Descriptor() ([]byte, []int) { |
| 132 |
return file_google_cloud_asset_v1p5beta1_assets_proto_rawDescGZIP(), []int{0} |
| 133 |
} |
| 134 |
|
| 135 |
func (x *Asset) GetName() string { |
| 136 |
if x != nil { |
| 137 |
return x.Name |
| 138 |
} |
| 139 |
return "" |
| 140 |
} |
| 141 |
|
| 142 |
func (x *Asset) GetAssetType() string { |
| 143 |
if x != nil { |
| 144 |
return x.AssetType |
| 145 |
} |
| 146 |
return "" |
| 147 |
} |
| 148 |
|
| 149 |
func (x *Asset) GetResource() *Resource { |
| 150 |
if x != nil { |
| 151 |
return x.Resource |
| 152 |
} |
| 153 |
return nil |
| 154 |
} |
| 155 |
|
| 156 |
func (x *Asset) GetIamPolicy() *iampb.Policy { |
| 157 |
if x != nil { |
| 158 |
return x.IamPolicy |
| 159 |
} |
| 160 |
return nil |
| 161 |
} |
| 162 |
|
| 163 |
func (x *Asset) GetOrgPolicy() []*orgpolicypb.Policy { |
| 164 |
if x != nil { |
| 165 |
return x.OrgPolicy |
| 166 |
} |
| 167 |
return nil |
| 168 |
} |
| 169 |
|
| 170 |
func (m *Asset) GetAccessContextPolicy() isAsset_AccessContextPolicy { |
| 171 |
if m != nil { |
| 172 |
return m.AccessContextPolicy |
| 173 |
} |
| 174 |
return nil |
| 175 |
} |
| 176 |
|
| 177 |
func (x *Asset) GetAccessPolicy() *accesscontextmanagerpb.AccessPolicy { |
| 178 |
if x, ok := x.GetAccessContextPolicy().(*Asset_AccessPolicy); ok { |
| 179 |
return x.AccessPolicy |
| 180 |
} |
| 181 |
return nil |
| 182 |
} |
| 183 |
|
| 184 |
func (x *Asset) GetAccessLevel() *accesscontextmanagerpb.AccessLevel { |
| 185 |
if x, ok := x.GetAccessContextPolicy().(*Asset_AccessLevel); ok { |
| 186 |
return x.AccessLevel |
| 187 |
} |
| 188 |
return nil |
| 189 |
} |
| 190 |
|
| 191 |
func (x *Asset) GetServicePerimeter() *accesscontextmanagerpb.ServicePerimeter { |
| 192 |
if x, ok := x.GetAccessContextPolicy().(*Asset_ServicePerimeter); ok { |
| 193 |
return x.ServicePerimeter |
| 194 |
} |
| 195 |
return nil |
| 196 |
} |
| 197 |
|
| 198 |
func (x *Asset) GetAncestors() []string { |
| 199 |
if x != nil { |
| 200 |
return x.Ancestors |
| 201 |
} |
| 202 |
return nil |
| 203 |
} |
| 204 |
|
| 205 |
type isAsset_AccessContextPolicy interface { |
| 206 |
isAsset_AccessContextPolicy() |
| 207 |
} |
| 208 |
|
| 209 |
type Asset_AccessPolicy struct { |
| 210 |
// Please also refer to the [access policy user |
| 211 |
// guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies). |
| 212 |
AccessPolicy *accesscontextmanagerpb.AccessPolicy `protobuf:"bytes,7,opt,name=access_policy,json=accessPolicy,proto3,oneof"` |
| 213 |
} |
| 214 |
|
| 215 |
type Asset_AccessLevel struct { |
| 216 |
// Please also refer to the [access level user |
| 217 |
// guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels). |
| 218 |
AccessLevel *accesscontextmanagerpb.AccessLevel `protobuf:"bytes,8,opt,name=access_level,json=accessLevel,proto3,oneof"` |
| 219 |
} |
| 220 |
|
| 221 |
type Asset_ServicePerimeter struct { |
| 222 |
// Please also refer to the [service perimeter user |
| 223 |
// guide](https://cloud.google.com/vpc-service-controls/docs/overview). |
| 224 |
ServicePerimeter *accesscontextmanagerpb.ServicePerimeter `protobuf:"bytes,9,opt,name=service_perimeter,json=servicePerimeter,proto3,oneof"` |
| 225 |
} |
| 226 |
|
| 227 |
func (*Asset_AccessPolicy) isAsset_AccessContextPolicy() {} |
| 228 |
|
| 229 |
func (*Asset_AccessLevel) isAsset_AccessContextPolicy() {} |
| 230 |
|
| 231 |
func (*Asset_ServicePerimeter) isAsset_AccessContextPolicy() {} |
| 232 |
|
| 233 |
// A representation of a Google Cloud resource. |
| 234 |
type Resource struct { |
| 235 |
state protoimpl.MessageState |
| 236 |
sizeCache protoimpl.SizeCache |
| 237 |
unknownFields protoimpl.UnknownFields |
| 238 |
|
| 239 |
// The API version. Example: "v1". |
| 240 |
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` |
| 241 |
// The URL of the discovery document containing the resource's JSON schema. |
| 242 |
// Example: |
| 243 |
// `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` |
| 244 |
// |
| 245 |
// This value is unspecified for resources that do not have an API based on a |
| 246 |
// discovery document, such as Cloud Bigtable. |
| 247 |
DiscoveryDocumentUri string `protobuf:"bytes,2,opt,name=discovery_document_uri,json=discoveryDocumentUri,proto3" json:"discovery_document_uri,omitempty"` |
| 248 |
// The JSON schema name listed in the discovery document. Example: |
| 249 |
// `Project` |
| 250 |
// |
| 251 |
// This value is unspecified for resources that do not have an API based on a |
| 252 |
// discovery document, such as Cloud Bigtable. |
| 253 |
DiscoveryName string `protobuf:"bytes,3,opt,name=discovery_name,json=discoveryName,proto3" json:"discovery_name,omitempty"` |
| 254 |
// The REST URL for accessing the resource. An HTTP `GET` request using this |
| 255 |
// URL returns the resource itself. Example: |
| 256 |
// `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123` |
| 257 |
// |
| 258 |
// This value is unspecified for resources without a REST API. |
| 259 |
ResourceUrl string `protobuf:"bytes,4,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"` |
| 260 |
// The full name of the immediate parent of this resource. See |
| 261 |
// [Resource |
| 262 |
// Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) |
| 263 |
// for more information. |
| 264 |
// |
| 265 |
// For Google Cloud assets, this value is the parent resource defined in the |
| 266 |
// [IAM policy |
| 267 |
// hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). |
| 268 |
// Example: |
| 269 |
// `//cloudresourcemanager.googleapis.com/projects/my_project_123` |
| 270 |
// |
| 271 |
// For third-party assets, this field may be set differently. |
| 272 |
Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"` |
| 273 |
// The content of the resource, in which some sensitive fields are removed |
| 274 |
// and may not be present. |
| 275 |
Data *structpb.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` |
| 276 |
} |
| 277 |
|
| 278 |
func (x *Resource) Reset() { |
| 279 |
*x = Resource{} |
| 280 |
mi := &file_google_cloud_asset_v1p5beta1_assets_proto_msgTypes[1] |
| 281 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 282 |
ms.StoreMessageInfo(mi) |
| 283 |
} |
| 284 |
|
| 285 |
func (x *Resource) String() string { |
| 286 |
return protoimpl.X.MessageStringOf(x) |
| 287 |
} |
| 288 |
|
| 289 |
func (*Resource) ProtoMessage() {} |
| 290 |
|
| 291 |
func (x *Resource) ProtoReflect() protoreflect.Message { |
| 292 |
mi := &file_google_cloud_asset_v1p5beta1_assets_proto_msgTypes[1] |
| 293 |
if x != nil { |
| 294 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 295 |
if ms.LoadMessageInfo() == nil { |
| 296 |
ms.StoreMessageInfo(mi) |
| 297 |
} |
| 298 |
return ms |
| 299 |
} |
| 300 |
return mi.MessageOf(x) |
| 301 |
} |
| 302 |
|
| 303 |
// Deprecated: Use Resource.ProtoReflect.Descriptor instead. |
| 304 |
func (*Resource) Descriptor() ([]byte, []int) { |
| 305 |
return file_google_cloud_asset_v1p5beta1_assets_proto_rawDescGZIP(), []int{1} |
| 306 |
} |
| 307 |
|
| 308 |
func (x *Resource) GetVersion() string { |
| 309 |
if x != nil { |
| 310 |
return x.Version |
| 311 |
} |
| 312 |
return "" |
| 313 |
} |
| 314 |
|
| 315 |
func (x *Resource) GetDiscoveryDocumentUri() string { |
| 316 |
if x != nil { |
| 317 |
return x.DiscoveryDocumentUri |
| 318 |
} |
| 319 |
return "" |
| 320 |
} |
| 321 |
|
| 322 |
func (x *Resource) GetDiscoveryName() string { |
| 323 |
if x != nil { |
| 324 |
return x.DiscoveryName |
| 325 |
} |
| 326 |
return "" |
| 327 |
} |
| 328 |
|
| 329 |
func (x *Resource) GetResourceUrl() string { |
| 330 |
if x != nil { |
| 331 |
return x.ResourceUrl |
| 332 |
} |
| 333 |
return "" |
| 334 |
} |
| 335 |
|
| 336 |
func (x *Resource) GetParent() string { |
| 337 |
if x != nil { |
| 338 |
return x.Parent |
| 339 |
} |
| 340 |
return "" |
| 341 |
} |
| 342 |
|
| 343 |
func (x *Resource) GetData() *structpb.Struct { |
| 344 |
if x != nil { |
| 345 |
return x.Data |
| 346 |
} |
| 347 |
return nil |
| 348 |
} |
| 349 |
|
| 350 |
var File_google_cloud_asset_v1p5beta1_assets_proto protoreflect.FileDescriptor |
| 351 |
|
| 352 |
var file_google_cloud_asset_v1p5beta1_assets_proto_rawDesc = []byte{ |
| 353 |
0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, |
| 354 |
0x73, 0x73, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x70, 0x35, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, |
| 355 |
0x73, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x67, 0x6f, 0x6f, |
| 356 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, |
| 357 |
0x76, 0x31, 0x70, 0x35, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 358 |
0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, |
| 359 |
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, |
| 360 |
0x75, 0x64, 0x2f, 0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2f, 0x76, 0x31, 0x2f, |
| 361 |
0x6f, 0x72, 0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, |
| 362 |
0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x70, |
| 363 |
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3a, 0x67, 0x6f, 0x6f, |
| 364 |
0x67, 0x6c, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x63, 0x63, |
| 365 |
0x65, 0x73, 0x73, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, |
| 366 |
0x72, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x65, 0x76, 0x65, |
| 367 |
0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, |
| 368 |
0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x63, |
| 369 |
0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, |
| 370 |
0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, |
| 371 |
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x64, 0x65, |
| 372 |
0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x63, 0x6f, 0x6e, 0x74, |
| 373 |
0x65, 0x78, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, |
| 374 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x2e, |
| 375 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, |
| 376 |
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, |
| 377 |
0x6f, 0x74, 0x6f, 0x22, 0xf9, 0x04, 0x0a, 0x05, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, |
| 378 |
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, |
| 379 |
0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, |
| 380 |
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, |
| 381 |
0x12, 0x42, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, |
| 382 |
0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 383 |
0x64, 0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x35, 0x62, 0x65, 0x74, 0x61, |
| 384 |
0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, |
| 385 |
0x75, 0x72, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x0a, 0x69, 0x61, 0x6d, 0x5f, 0x70, 0x6f, 0x6c, 0x69, |
| 386 |
0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 387 |
0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, |
| 388 |
0x09, 0x69, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x40, 0x0a, 0x0a, 0x6f, 0x72, |
| 389 |
0x67, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, |
| 390 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6f, 0x72, |
| 391 |
0x67, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, |
| 392 |
0x79, 0x52, 0x09, 0x6f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x5c, 0x0a, 0x0d, |
| 393 |
0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x07, 0x20, |
| 394 |
0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x64, 0x65, |
| 395 |
0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x63, 0x6f, 0x6e, 0x74, |
| 396 |
0x65, 0x78, 0x74, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, |
| 397 |
0x63, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, |
| 398 |
0x63, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x59, 0x0a, 0x0c, 0x61, 0x63, |
| 399 |
0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, |
| 400 |
0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, |
| 401 |
0x74, 0x79, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, |
| 402 |
0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, |
| 403 |
0x73, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x48, 0x00, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, |
| 404 |
0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x68, 0x0a, 0x11, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, |
| 405 |
0x5f, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, |
| 406 |
0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, |
| 407 |
0x74, 0x79, 0x2e, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, |
| 408 |
0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, |
| 409 |
0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x10, 0x73, |
| 410 |
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, |
| 411 |
0x1c, 0x0a, 0x09, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x03, |
| 412 |
0x28, 0x09, 0x52, 0x09, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x73, 0x3a, 0x27, 0xea, |
| 413 |
0x41, 0x24, 0x0a, 0x1f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x67, |
| 414 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x73, |
| 415 |
0x73, 0x65, 0x74, 0x12, 0x01, 0x2a, 0x42, 0x17, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, |
| 416 |
0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, |
| 417 |
0xe9, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, |
| 418 |
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, |
| 419 |
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, |
| 420 |
0x65, 0x72, 0x79, 0x5f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x69, |
| 421 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, |
| 422 |
0x79, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x55, 0x72, 0x69, 0x12, 0x25, 0x0a, 0x0e, |
| 423 |
0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, |
| 424 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4e, |
| 425 |
0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, |
| 426 |
0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, |
| 427 |
0x72, 0x63, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, |
| 428 |
0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x2b, |
| 429 |
0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, |
| 430 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, |
| 431 |
0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0xa6, 0x01, 0x0a, 0x20, |
| 432 |
0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 433 |
0x2e, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x70, 0x35, 0x62, 0x65, 0x74, 0x61, 0x31, |
| 434 |
0x42, 0x0a, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, |
| 435 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, |
| 436 |
0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x70, |
| 437 |
0x35, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x70, 0x62, 0x3b, 0x61, |
| 438 |
0x73, 0x73, 0x65, 0x74, 0x70, 0x62, 0xaa, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 439 |
0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x56, 0x31, 0x70, 0x35, |
| 440 |
0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x1c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, |
| 441 |
0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x5c, 0x56, 0x31, 0x70, 0x35, 0x62, |
| 442 |
0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 443 |
} |
| 444 |
|
| 445 |
var ( |
| 446 |
file_google_cloud_asset_v1p5beta1_assets_proto_rawDescOnce sync.Once |
| 447 |
file_google_cloud_asset_v1p5beta1_assets_proto_rawDescData = file_google_cloud_asset_v1p5beta1_assets_proto_rawDesc |
| 448 |
) |
| 449 |
|
| 450 |
func file_google_cloud_asset_v1p5beta1_assets_proto_rawDescGZIP() []byte { |
| 451 |
file_google_cloud_asset_v1p5beta1_assets_proto_rawDescOnce.Do(func() { |
| 452 |
file_google_cloud_asset_v1p5beta1_assets_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_asset_v1p5beta1_assets_proto_rawDescData) |
| 453 |
}) |
| 454 |
return file_google_cloud_asset_v1p5beta1_assets_proto_rawDescData |
| 455 |
} |
| 456 |
|
| 457 |
var file_google_cloud_asset_v1p5beta1_assets_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 458 |
var file_google_cloud_asset_v1p5beta1_assets_proto_goTypes = []any{ |
| 459 |
(*Asset)(nil), // 0: google.cloud.asset.v1p5beta1.Asset |
| 460 |
(*Resource)(nil), // 1: google.cloud.asset.v1p5beta1.Resource |
| 461 |
(*iampb.Policy)(nil), // 2: google.iam.v1.Policy |
| 462 |
(*orgpolicypb.Policy)(nil), // 3: google.cloud.orgpolicy.v1.Policy |
| 463 |
(*accesscontextmanagerpb.AccessPolicy)(nil), // 4: google.identity.accesscontextmanager.v1.AccessPolicy |
| 464 |
(*accesscontextmanagerpb.AccessLevel)(nil), // 5: google.identity.accesscontextmanager.v1.AccessLevel |
| 465 |
(*accesscontextmanagerpb.ServicePerimeter)(nil), // 6: google.identity.accesscontextmanager.v1.ServicePerimeter |
| 466 |
(*structpb.Struct)(nil), // 7: google.protobuf.Struct |
| 467 |
} |
| 468 |
var file_google_cloud_asset_v1p5beta1_assets_proto_depIdxs = []int32{ |
| 469 |
1, // 0: google.cloud.asset.v1p5beta1.Asset.resource:type_name -> google.cloud.asset.v1p5beta1.Resource |
| 470 |
2, // 1: google.cloud.asset.v1p5beta1.Asset.iam_policy:type_name -> google.iam.v1.Policy |
| 471 |
3, // 2: google.cloud.asset.v1p5beta1.Asset.org_policy:type_name -> google.cloud.orgpolicy.v1.Policy |
| 472 |
4, // 3: google.cloud.asset.v1p5beta1.Asset.access_policy:type_name -> google.identity.accesscontextmanager.v1.AccessPolicy |
| 473 |
5, // 4: google.cloud.asset.v1p5beta1.Asset.access_level:type_name -> google.identity.accesscontextmanager.v1.AccessLevel |
| 474 |
6, // 5: google.cloud.asset.v1p5beta1.Asset.service_perimeter:type_name -> google.identity.accesscontextmanager.v1.ServicePerimeter |
| 475 |
7, // 6: google.cloud.asset.v1p5beta1.Resource.data:type_name -> google.protobuf.Struct |
| 476 |
7, // [7:7] is the sub-list for method output_type |
| 477 |
7, // [7:7] is the sub-list for method input_type |
| 478 |
7, // [7:7] is the sub-list for extension type_name |
| 479 |
7, // [7:7] is the sub-list for extension extendee |
| 480 |
0, // [0:7] is the sub-list for field type_name |
| 481 |
} |
| 482 |
|
| 483 |
func init() { file_google_cloud_asset_v1p5beta1_assets_proto_init() } |
| 484 |
func file_google_cloud_asset_v1p5beta1_assets_proto_init() { |
| 485 |
if File_google_cloud_asset_v1p5beta1_assets_proto != nil { |
| 486 |
return |
| 487 |
} |
| 488 |
file_google_cloud_asset_v1p5beta1_assets_proto_msgTypes[0].OneofWrappers = []any{ |
| 489 |
(*Asset_AccessPolicy)(nil), |
| 490 |
(*Asset_AccessLevel)(nil), |
| 491 |
(*Asset_ServicePerimeter)(nil), |
| 492 |
} |
| 493 |
type x struct{} |
| 494 |
out := protoimpl.TypeBuilder{ |
| 495 |
File: protoimpl.DescBuilder{ |
| 496 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 497 |
RawDescriptor: file_google_cloud_asset_v1p5beta1_assets_proto_rawDesc, |
| 498 |
NumEnums: 0, |
| 499 |
NumMessages: 2, |
| 500 |
NumExtensions: 0, |
| 501 |
NumServices: 0, |
| 502 |
}, |
| 503 |
GoTypes: file_google_cloud_asset_v1p5beta1_assets_proto_goTypes, |
| 504 |
DependencyIndexes: file_google_cloud_asset_v1p5beta1_assets_proto_depIdxs, |
| 505 |
MessageInfos: file_google_cloud_asset_v1p5beta1_assets_proto_msgTypes, |
| 506 |
}.Build() |
| 507 |
File_google_cloud_asset_v1p5beta1_assets_proto = out.File |
| 508 |
file_google_cloud_asset_v1p5beta1_assets_proto_rawDesc = nil |
| 509 |
file_google_cloud_asset_v1p5beta1_assets_proto_goTypes = nil |
| 510 |
file_google_cloud_asset_v1p5beta1_assets_proto_depIdxs = nil |
| 511 |
} |