This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
/
AssetOrBuilder.java
375 lines (363 loc) · 12.4 KB
/
AssetOrBuilder.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/asset/v1/assets.proto
package com.google.cloud.asset.v1;
public interface AssetOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.Asset)
com.google.protobuf.MessageOrBuilder {
/**
*
*
* <pre>
* The full name of the asset. For example:
* `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
* See [Resource
* names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
* for more information.
* </pre>
*
* <code>string name = 1;</code>
*
* @return The name.
*/
java.lang.String getName();
/**
*
*
* <pre>
* The full name of the asset. For example:
* `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
* See [Resource
* names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
* for more information.
* </pre>
*
* <code>string name = 1;</code>
*
* @return The bytes for name.
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
* <pre>
* The type of the asset. For example: `compute.googleapis.com/Disk`
* See [Supported asset
* types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
* for more information.
* </pre>
*
* <code>string asset_type = 2;</code>
*
* @return The assetType.
*/
java.lang.String getAssetType();
/**
*
*
* <pre>
* The type of the asset. For example: `compute.googleapis.com/Disk`
* See [Supported asset
* types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
* for more information.
* </pre>
*
* <code>string asset_type = 2;</code>
*
* @return The bytes for assetType.
*/
com.google.protobuf.ByteString getAssetTypeBytes();
/**
*
*
* <pre>
* A representation of the resource.
* </pre>
*
* <code>.google.cloud.asset.v1.Resource resource = 3;</code>
*
* @return Whether the resource field is set.
*/
boolean hasResource();
/**
*
*
* <pre>
* A representation of the resource.
* </pre>
*
* <code>.google.cloud.asset.v1.Resource resource = 3;</code>
*
* @return The resource.
*/
com.google.cloud.asset.v1.Resource getResource();
/**
*
*
* <pre>
* A representation of the resource.
* </pre>
*
* <code>.google.cloud.asset.v1.Resource resource = 3;</code>
*/
com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder();
/**
*
*
* <pre>
* A representation of the Cloud IAM policy set on a Google Cloud resource.
* There can be a maximum of one Cloud IAM policy set on any given resource.
* In addition, Cloud IAM policies inherit their granted access scope from any
* policies set on parent resources in the resource hierarchy. Therefore, the
* effectively policy is the union of both the policy set on this resource
* and each policy set on all of the resource's ancestry resource levels in
* the hierarchy. See
* [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
* more information.
* </pre>
*
* <code>.google.iam.v1.Policy iam_policy = 4;</code>
*
* @return Whether the iamPolicy field is set.
*/
boolean hasIamPolicy();
/**
*
*
* <pre>
* A representation of the Cloud IAM policy set on a Google Cloud resource.
* There can be a maximum of one Cloud IAM policy set on any given resource.
* In addition, Cloud IAM policies inherit their granted access scope from any
* policies set on parent resources in the resource hierarchy. Therefore, the
* effectively policy is the union of both the policy set on this resource
* and each policy set on all of the resource's ancestry resource levels in
* the hierarchy. See
* [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
* more information.
* </pre>
*
* <code>.google.iam.v1.Policy iam_policy = 4;</code>
*
* @return The iamPolicy.
*/
com.google.iam.v1.Policy getIamPolicy();
/**
*
*
* <pre>
* A representation of the Cloud IAM policy set on a Google Cloud resource.
* There can be a maximum of one Cloud IAM policy set on any given resource.
* In addition, Cloud IAM policies inherit their granted access scope from any
* policies set on parent resources in the resource hierarchy. Therefore, the
* effectively policy is the union of both the policy set on this resource
* and each policy set on all of the resource's ancestry resource levels in
* the hierarchy. See
* [this topic](https://cloud.google.com/iam/docs/policies#inheritance) for
* more information.
* </pre>
*
* <code>.google.iam.v1.Policy iam_policy = 4;</code>
*/
com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder();
/**
*
*
* <pre>
* A representation of an [organization
* policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
* There can be more than one organization policy with different constraints
* set on a given resource.
* </pre>
*
* <code>repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;</code>
*/
java.util.List<com.google.cloud.orgpolicy.v1.Policy> getOrgPolicyList();
/**
*
*
* <pre>
* A representation of an [organization
* policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
* There can be more than one organization policy with different constraints
* set on a given resource.
* </pre>
*
* <code>repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;</code>
*/
com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index);
/**
*
*
* <pre>
* A representation of an [organization
* policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
* There can be more than one organization policy with different constraints
* set on a given resource.
* </pre>
*
* <code>repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;</code>
*/
int getOrgPolicyCount();
/**
*
*
* <pre>
* A representation of an [organization
* policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
* There can be more than one organization policy with different constraints
* set on a given resource.
* </pre>
*
* <code>repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;</code>
*/
java.util.List<? extends com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
getOrgPolicyOrBuilderList();
/**
*
*
* <pre>
* A representation of an [organization
* policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
* There can be more than one organization policy with different constraints
* set on a given resource.
* </pre>
*
* <code>repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;</code>
*/
com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index);
/**
* <code>.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;</code>
*
* @return Whether the accessPolicy field is set.
*/
boolean hasAccessPolicy();
/**
* <code>.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;</code>
*
* @return The accessPolicy.
*/
com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy();
/** <code>.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;</code> */
com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder();
/**
* <code>.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;</code>
*
* @return Whether the accessLevel field is set.
*/
boolean hasAccessLevel();
/**
* <code>.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;</code>
*
* @return The accessLevel.
*/
com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel();
/** <code>.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;</code> */
com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder();
/**
* <code>.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;</code>
*
* @return Whether the servicePerimeter field is set.
*/
boolean hasServicePerimeter();
/**
* <code>.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;</code>
*
* @return The servicePerimeter.
*/
com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter();
/**
* <code>.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;</code>
*/
com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
getServicePerimeterOrBuilder();
/**
*
*
* <pre>
* The ancestry path of an asset in Google Cloud [resource
* hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
* represented as a list of relative resource names. An ancestry path starts
* with the closest ancestor in the hierarchy and ends at root. If the asset
* is a project, folder, or organization, the ancestry path starts from the
* asset itself.
* For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
* </pre>
*
* <code>repeated string ancestors = 10;</code>
*
* @return A list containing the ancestors.
*/
java.util.List<java.lang.String> getAncestorsList();
/**
*
*
* <pre>
* The ancestry path of an asset in Google Cloud [resource
* hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
* represented as a list of relative resource names. An ancestry path starts
* with the closest ancestor in the hierarchy and ends at root. If the asset
* is a project, folder, or organization, the ancestry path starts from the
* asset itself.
* For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
* </pre>
*
* <code>repeated string ancestors = 10;</code>
*
* @return The count of ancestors.
*/
int getAncestorsCount();
/**
*
*
* <pre>
* The ancestry path of an asset in Google Cloud [resource
* hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
* represented as a list of relative resource names. An ancestry path starts
* with the closest ancestor in the hierarchy and ends at root. If the asset
* is a project, folder, or organization, the ancestry path starts from the
* asset itself.
* For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
* </pre>
*
* <code>repeated string ancestors = 10;</code>
*
* @param index The index of the element to return.
* @return The ancestors at the given index.
*/
java.lang.String getAncestors(int index);
/**
*
*
* <pre>
* The ancestry path of an asset in Google Cloud [resource
* hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
* represented as a list of relative resource names. An ancestry path starts
* with the closest ancestor in the hierarchy and ends at root. If the asset
* is a project, folder, or organization, the ancestry path starts from the
* asset itself.
* For example: `["projects/123456789", "folders/5432", "organizations/1234"]`
* </pre>
*
* <code>repeated string ancestors = 10;</code>
*
* @param index The index of the value to return.
* @return The bytes of the ancestors at the given index.
*/
com.google.protobuf.ByteString getAncestorsBytes(int index);
public com.google.cloud.asset.v1.Asset.AccessContextPolicyCase getAccessContextPolicyCase();
}