• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/asset/v1/assets.proto
18 
19 package com.google.cloud.asset.v1;
20 
21 public interface AssetOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.Asset)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The last update timestamp of an asset. update_time is updated when
31    * create/update/delete operation is performed.
32    * </pre>
33    *
34    * <code>.google.protobuf.Timestamp update_time = 11;</code>
35    *
36    * @return Whether the updateTime field is set.
37    */
hasUpdateTime()38   boolean hasUpdateTime();
39   /**
40    *
41    *
42    * <pre>
43    * The last update timestamp of an asset. update_time is updated when
44    * create/update/delete operation is performed.
45    * </pre>
46    *
47    * <code>.google.protobuf.Timestamp update_time = 11;</code>
48    *
49    * @return The updateTime.
50    */
getUpdateTime()51   com.google.protobuf.Timestamp getUpdateTime();
52   /**
53    *
54    *
55    * <pre>
56    * The last update timestamp of an asset. update_time is updated when
57    * create/update/delete operation is performed.
58    * </pre>
59    *
60    * <code>.google.protobuf.Timestamp update_time = 11;</code>
61    */
getUpdateTimeOrBuilder()62   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
63 
64   /**
65    *
66    *
67    * <pre>
68    * The full name of the asset. Example:
69    * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
70    * See [Resource
71    * names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
72    * for more information.
73    * </pre>
74    *
75    * <code>string name = 1;</code>
76    *
77    * @return The name.
78    */
getName()79   java.lang.String getName();
80   /**
81    *
82    *
83    * <pre>
84    * The full name of the asset. Example:
85    * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`
86    * See [Resource
87    * names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
88    * for more information.
89    * </pre>
90    *
91    * <code>string name = 1;</code>
92    *
93    * @return The bytes for name.
94    */
getNameBytes()95   com.google.protobuf.ByteString getNameBytes();
96 
97   /**
98    *
99    *
100    * <pre>
101    * The type of the asset. Example: `compute.googleapis.com/Disk`
102    * See [Supported asset
103    * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
104    * for more information.
105    * </pre>
106    *
107    * <code>string asset_type = 2;</code>
108    *
109    * @return The assetType.
110    */
getAssetType()111   java.lang.String getAssetType();
112   /**
113    *
114    *
115    * <pre>
116    * The type of the asset. Example: `compute.googleapis.com/Disk`
117    * See [Supported asset
118    * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
119    * for more information.
120    * </pre>
121    *
122    * <code>string asset_type = 2;</code>
123    *
124    * @return The bytes for assetType.
125    */
getAssetTypeBytes()126   com.google.protobuf.ByteString getAssetTypeBytes();
127 
128   /**
129    *
130    *
131    * <pre>
132    * A representation of the resource.
133    * </pre>
134    *
135    * <code>.google.cloud.asset.v1.Resource resource = 3;</code>
136    *
137    * @return Whether the resource field is set.
138    */
hasResource()139   boolean hasResource();
140   /**
141    *
142    *
143    * <pre>
144    * A representation of the resource.
145    * </pre>
146    *
147    * <code>.google.cloud.asset.v1.Resource resource = 3;</code>
148    *
149    * @return The resource.
150    */
getResource()151   com.google.cloud.asset.v1.Resource getResource();
152   /**
153    *
154    *
155    * <pre>
156    * A representation of the resource.
157    * </pre>
158    *
159    * <code>.google.cloud.asset.v1.Resource resource = 3;</code>
160    */
getResourceOrBuilder()161   com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder();
162 
163   /**
164    *
165    *
166    * <pre>
167    * A representation of the IAM policy set on a Google Cloud resource.
168    * There can be a maximum of one IAM policy set on any given resource.
169    * In addition, IAM policies inherit their granted access scope from any
170    * policies set on parent resources in the resource hierarchy. Therefore, the
171    * effectively policy is the union of both the policy set on this resource
172    * and each policy set on all of the resource's ancestry resource levels in
173    * the hierarchy. See
174    * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
175    * for more information.
176    * </pre>
177    *
178    * <code>.google.iam.v1.Policy iam_policy = 4;</code>
179    *
180    * @return Whether the iamPolicy field is set.
181    */
hasIamPolicy()182   boolean hasIamPolicy();
183   /**
184    *
185    *
186    * <pre>
187    * A representation of the IAM policy set on a Google Cloud resource.
188    * There can be a maximum of one IAM policy set on any given resource.
189    * In addition, IAM policies inherit their granted access scope from any
190    * policies set on parent resources in the resource hierarchy. Therefore, the
191    * effectively policy is the union of both the policy set on this resource
192    * and each policy set on all of the resource's ancestry resource levels in
193    * the hierarchy. See
194    * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
195    * for more information.
196    * </pre>
197    *
198    * <code>.google.iam.v1.Policy iam_policy = 4;</code>
199    *
200    * @return The iamPolicy.
201    */
getIamPolicy()202   com.google.iam.v1.Policy getIamPolicy();
203   /**
204    *
205    *
206    * <pre>
207    * A representation of the IAM policy set on a Google Cloud resource.
208    * There can be a maximum of one IAM policy set on any given resource.
209    * In addition, IAM policies inherit their granted access scope from any
210    * policies set on parent resources in the resource hierarchy. Therefore, the
211    * effectively policy is the union of both the policy set on this resource
212    * and each policy set on all of the resource's ancestry resource levels in
213    * the hierarchy. See
214    * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
215    * for more information.
216    * </pre>
217    *
218    * <code>.google.iam.v1.Policy iam_policy = 4;</code>
219    */
getIamPolicyOrBuilder()220   com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder();
221 
222   /**
223    *
224    *
225    * <pre>
226    * A representation of an [organization
227    * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
228    * There can be more than one organization policy with different constraints
229    * set on a given resource.
230    * </pre>
231    *
232    * <code>repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;</code>
233    */
getOrgPolicyList()234   java.util.List<com.google.cloud.orgpolicy.v1.Policy> getOrgPolicyList();
235   /**
236    *
237    *
238    * <pre>
239    * A representation of an [organization
240    * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
241    * There can be more than one organization policy with different constraints
242    * set on a given resource.
243    * </pre>
244    *
245    * <code>repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;</code>
246    */
getOrgPolicy(int index)247   com.google.cloud.orgpolicy.v1.Policy getOrgPolicy(int index);
248   /**
249    *
250    *
251    * <pre>
252    * A representation of an [organization
253    * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
254    * There can be more than one organization policy with different constraints
255    * set on a given resource.
256    * </pre>
257    *
258    * <code>repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;</code>
259    */
getOrgPolicyCount()260   int getOrgPolicyCount();
261   /**
262    *
263    *
264    * <pre>
265    * A representation of an [organization
266    * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
267    * There can be more than one organization policy with different constraints
268    * set on a given resource.
269    * </pre>
270    *
271    * <code>repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;</code>
272    */
273   java.util.List<? extends com.google.cloud.orgpolicy.v1.PolicyOrBuilder>
getOrgPolicyOrBuilderList()274       getOrgPolicyOrBuilderList();
275   /**
276    *
277    *
278    * <pre>
279    * A representation of an [organization
280    * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
281    * There can be more than one organization policy with different constraints
282    * set on a given resource.
283    * </pre>
284    *
285    * <code>repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6;</code>
286    */
getOrgPolicyOrBuilder(int index)287   com.google.cloud.orgpolicy.v1.PolicyOrBuilder getOrgPolicyOrBuilder(int index);
288 
289   /**
290    *
291    *
292    * <pre>
293    * Please also refer to the [access policy user
294    * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
295    * </pre>
296    *
297    * <code>.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;</code>
298    *
299    * @return Whether the accessPolicy field is set.
300    */
hasAccessPolicy()301   boolean hasAccessPolicy();
302   /**
303    *
304    *
305    * <pre>
306    * Please also refer to the [access policy user
307    * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
308    * </pre>
309    *
310    * <code>.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;</code>
311    *
312    * @return The accessPolicy.
313    */
getAccessPolicy()314   com.google.identity.accesscontextmanager.v1.AccessPolicy getAccessPolicy();
315   /**
316    *
317    *
318    * <pre>
319    * Please also refer to the [access policy user
320    * guide](https://cloud.google.com/access-context-manager/docs/overview#access-policies).
321    * </pre>
322    *
323    * <code>.google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;</code>
324    */
getAccessPolicyOrBuilder()325   com.google.identity.accesscontextmanager.v1.AccessPolicyOrBuilder getAccessPolicyOrBuilder();
326 
327   /**
328    *
329    *
330    * <pre>
331    * Please also refer to the [access level user
332    * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
333    * </pre>
334    *
335    * <code>.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;</code>
336    *
337    * @return Whether the accessLevel field is set.
338    */
hasAccessLevel()339   boolean hasAccessLevel();
340   /**
341    *
342    *
343    * <pre>
344    * Please also refer to the [access level user
345    * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
346    * </pre>
347    *
348    * <code>.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;</code>
349    *
350    * @return The accessLevel.
351    */
getAccessLevel()352   com.google.identity.accesscontextmanager.v1.AccessLevel getAccessLevel();
353   /**
354    *
355    *
356    * <pre>
357    * Please also refer to the [access level user
358    * guide](https://cloud.google.com/access-context-manager/docs/overview#access-levels).
359    * </pre>
360    *
361    * <code>.google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;</code>
362    */
getAccessLevelOrBuilder()363   com.google.identity.accesscontextmanager.v1.AccessLevelOrBuilder getAccessLevelOrBuilder();
364 
365   /**
366    *
367    *
368    * <pre>
369    * Please also refer to the [service perimeter user
370    * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
371    * </pre>
372    *
373    * <code>.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;</code>
374    *
375    * @return Whether the servicePerimeter field is set.
376    */
hasServicePerimeter()377   boolean hasServicePerimeter();
378   /**
379    *
380    *
381    * <pre>
382    * Please also refer to the [service perimeter user
383    * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
384    * </pre>
385    *
386    * <code>.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;</code>
387    *
388    * @return The servicePerimeter.
389    */
getServicePerimeter()390   com.google.identity.accesscontextmanager.v1.ServicePerimeter getServicePerimeter();
391   /**
392    *
393    *
394    * <pre>
395    * Please also refer to the [service perimeter user
396    * guide](https://cloud.google.com/vpc-service-controls/docs/overview).
397    * </pre>
398    *
399    * <code>.google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9;</code>
400    */
401   com.google.identity.accesscontextmanager.v1.ServicePerimeterOrBuilder
getServicePerimeterOrBuilder()402       getServicePerimeterOrBuilder();
403 
404   /**
405    *
406    *
407    * <pre>
408    * A representation of runtime OS Inventory information. See [this
409    * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
410    * for more information.
411    * </pre>
412    *
413    * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
414    *
415    * @return Whether the osInventory field is set.
416    */
hasOsInventory()417   boolean hasOsInventory();
418   /**
419    *
420    *
421    * <pre>
422    * A representation of runtime OS Inventory information. See [this
423    * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
424    * for more information.
425    * </pre>
426    *
427    * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
428    *
429    * @return The osInventory.
430    */
getOsInventory()431   com.google.cloud.osconfig.v1.Inventory getOsInventory();
432   /**
433    *
434    *
435    * <pre>
436    * A representation of runtime OS Inventory information. See [this
437    * topic](https://cloud.google.com/compute/docs/instances/os-inventory-management)
438    * for more information.
439    * </pre>
440    *
441    * <code>.google.cloud.osconfig.v1.Inventory os_inventory = 12;</code>
442    */
getOsInventoryOrBuilder()443   com.google.cloud.osconfig.v1.InventoryOrBuilder getOsInventoryOrBuilder();
444 
445   /**
446    *
447    *
448    * <pre>
449    * DEPRECATED. This field only presents for the purpose of
450    * backward-compatibility. The server will never generate responses with this
451    * field.
452    * The related assets of the asset of one relationship type. One asset
453    * only represents one type of relationship.
454    * </pre>
455    *
456    * <code>.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];</code>
457    *
458    * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See
459    *     google/cloud/asset/v1/assets.proto;l=167
460    * @return Whether the relatedAssets field is set.
461    */
462   @java.lang.Deprecated
hasRelatedAssets()463   boolean hasRelatedAssets();
464   /**
465    *
466    *
467    * <pre>
468    * DEPRECATED. This field only presents for the purpose of
469    * backward-compatibility. The server will never generate responses with this
470    * field.
471    * The related assets of the asset of one relationship type. One asset
472    * only represents one type of relationship.
473    * </pre>
474    *
475    * <code>.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];</code>
476    *
477    * @deprecated google.cloud.asset.v1.Asset.related_assets is deprecated. See
478    *     google/cloud/asset/v1/assets.proto;l=167
479    * @return The relatedAssets.
480    */
481   @java.lang.Deprecated
getRelatedAssets()482   com.google.cloud.asset.v1.RelatedAssets getRelatedAssets();
483   /**
484    *
485    *
486    * <pre>
487    * DEPRECATED. This field only presents for the purpose of
488    * backward-compatibility. The server will never generate responses with this
489    * field.
490    * The related assets of the asset of one relationship type. One asset
491    * only represents one type of relationship.
492    * </pre>
493    *
494    * <code>.google.cloud.asset.v1.RelatedAssets related_assets = 13 [deprecated = true];</code>
495    */
496   @java.lang.Deprecated
getRelatedAssetsOrBuilder()497   com.google.cloud.asset.v1.RelatedAssetsOrBuilder getRelatedAssetsOrBuilder();
498 
499   /**
500    *
501    *
502    * <pre>
503    * One related asset of the current asset.
504    * </pre>
505    *
506    * <code>.google.cloud.asset.v1.RelatedAsset related_asset = 15;</code>
507    *
508    * @return Whether the relatedAsset field is set.
509    */
hasRelatedAsset()510   boolean hasRelatedAsset();
511   /**
512    *
513    *
514    * <pre>
515    * One related asset of the current asset.
516    * </pre>
517    *
518    * <code>.google.cloud.asset.v1.RelatedAsset related_asset = 15;</code>
519    *
520    * @return The relatedAsset.
521    */
getRelatedAsset()522   com.google.cloud.asset.v1.RelatedAsset getRelatedAsset();
523   /**
524    *
525    *
526    * <pre>
527    * One related asset of the current asset.
528    * </pre>
529    *
530    * <code>.google.cloud.asset.v1.RelatedAsset related_asset = 15;</code>
531    */
getRelatedAssetOrBuilder()532   com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder();
533 
534   /**
535    *
536    *
537    * <pre>
538    * The ancestry path of an asset in Google Cloud [resource
539    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
540    * represented as a list of relative resource names. An ancestry path starts
541    * with the closest ancestor in the hierarchy and ends at root. If the asset
542    * is a project, folder, or organization, the ancestry path starts from the
543    * asset itself.
544    * Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
545    * </pre>
546    *
547    * <code>repeated string ancestors = 10;</code>
548    *
549    * @return A list containing the ancestors.
550    */
getAncestorsList()551   java.util.List<java.lang.String> getAncestorsList();
552   /**
553    *
554    *
555    * <pre>
556    * The ancestry path of an asset in Google Cloud [resource
557    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
558    * represented as a list of relative resource names. An ancestry path starts
559    * with the closest ancestor in the hierarchy and ends at root. If the asset
560    * is a project, folder, or organization, the ancestry path starts from the
561    * asset itself.
562    * Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
563    * </pre>
564    *
565    * <code>repeated string ancestors = 10;</code>
566    *
567    * @return The count of ancestors.
568    */
getAncestorsCount()569   int getAncestorsCount();
570   /**
571    *
572    *
573    * <pre>
574    * The ancestry path of an asset in Google Cloud [resource
575    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
576    * represented as a list of relative resource names. An ancestry path starts
577    * with the closest ancestor in the hierarchy and ends at root. If the asset
578    * is a project, folder, or organization, the ancestry path starts from the
579    * asset itself.
580    * Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
581    * </pre>
582    *
583    * <code>repeated string ancestors = 10;</code>
584    *
585    * @param index The index of the element to return.
586    * @return The ancestors at the given index.
587    */
getAncestors(int index)588   java.lang.String getAncestors(int index);
589   /**
590    *
591    *
592    * <pre>
593    * The ancestry path of an asset in Google Cloud [resource
594    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
595    * represented as a list of relative resource names. An ancestry path starts
596    * with the closest ancestor in the hierarchy and ends at root. If the asset
597    * is a project, folder, or organization, the ancestry path starts from the
598    * asset itself.
599    * Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
600    * </pre>
601    *
602    * <code>repeated string ancestors = 10;</code>
603    *
604    * @param index The index of the value to return.
605    * @return The bytes of the ancestors at the given index.
606    */
getAncestorsBytes(int index)607   com.google.protobuf.ByteString getAncestorsBytes(int index);
608 
getAccessContextPolicyCase()609   public com.google.cloud.asset.v1.Asset.AccessContextPolicyCase getAccessContextPolicyCase();
610 }
611