• 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/asset_service.proto
18 
19 package com.google.cloud.asset.v1;
20 
21 public interface FeedOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.Feed)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * Required. The format will be
31    * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
32    * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
33    * organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
34    * The client-assigned feed identifier must be unique within the parent
35    * project/folder/organization.
36    * </pre>
37    *
38    * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
39    *
40    * @return The name.
41    */
getName()42   java.lang.String getName();
43   /**
44    *
45    *
46    * <pre>
47    * Required. The format will be
48    * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
49    * folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
50    * organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
51    * The client-assigned feed identifier must be unique within the parent
52    * project/folder/organization.
53    * </pre>
54    *
55    * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
56    *
57    * @return The bytes for name.
58    */
getNameBytes()59   com.google.protobuf.ByteString getNameBytes();
60 
61   /**
62    *
63    *
64    * <pre>
65    * A list of the full names of the assets to receive updates. You must specify
66    * either or both of asset_names and asset_types. Only asset updates matching
67    * specified asset_names or asset_types are exported to the feed.
68    * Example:
69    * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
70    * For a list of the full names for supported asset types, see [Resource
71    * name format](/asset-inventory/docs/resource-name-format).
72    * </pre>
73    *
74    * <code>repeated string asset_names = 2;</code>
75    *
76    * @return A list containing the assetNames.
77    */
getAssetNamesList()78   java.util.List<java.lang.String> getAssetNamesList();
79   /**
80    *
81    *
82    * <pre>
83    * A list of the full names of the assets to receive updates. You must specify
84    * either or both of asset_names and asset_types. Only asset updates matching
85    * specified asset_names or asset_types are exported to the feed.
86    * Example:
87    * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
88    * For a list of the full names for supported asset types, see [Resource
89    * name format](/asset-inventory/docs/resource-name-format).
90    * </pre>
91    *
92    * <code>repeated string asset_names = 2;</code>
93    *
94    * @return The count of assetNames.
95    */
getAssetNamesCount()96   int getAssetNamesCount();
97   /**
98    *
99    *
100    * <pre>
101    * A list of the full names of the assets to receive updates. You must specify
102    * either or both of asset_names and asset_types. Only asset updates matching
103    * specified asset_names or asset_types are exported to the feed.
104    * Example:
105    * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
106    * For a list of the full names for supported asset types, see [Resource
107    * name format](/asset-inventory/docs/resource-name-format).
108    * </pre>
109    *
110    * <code>repeated string asset_names = 2;</code>
111    *
112    * @param index The index of the element to return.
113    * @return The assetNames at the given index.
114    */
getAssetNames(int index)115   java.lang.String getAssetNames(int index);
116   /**
117    *
118    *
119    * <pre>
120    * A list of the full names of the assets to receive updates. You must specify
121    * either or both of asset_names and asset_types. Only asset updates matching
122    * specified asset_names or asset_types are exported to the feed.
123    * Example:
124    * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
125    * For a list of the full names for supported asset types, see [Resource
126    * name format](/asset-inventory/docs/resource-name-format).
127    * </pre>
128    *
129    * <code>repeated string asset_names = 2;</code>
130    *
131    * @param index The index of the value to return.
132    * @return The bytes of the assetNames at the given index.
133    */
getAssetNamesBytes(int index)134   com.google.protobuf.ByteString getAssetNamesBytes(int index);
135 
136   /**
137    *
138    *
139    * <pre>
140    * A list of types of the assets to receive updates. You must specify either
141    * or both of asset_names and asset_types. Only asset updates matching
142    * specified asset_names or asset_types are exported to the feed.
143    * Example: `"compute.googleapis.com/Disk"`
144    * For a list of all supported asset types, see
145    * [Supported asset types](/asset-inventory/docs/supported-asset-types).
146    * </pre>
147    *
148    * <code>repeated string asset_types = 3;</code>
149    *
150    * @return A list containing the assetTypes.
151    */
getAssetTypesList()152   java.util.List<java.lang.String> getAssetTypesList();
153   /**
154    *
155    *
156    * <pre>
157    * A list of types of the assets to receive updates. You must specify either
158    * or both of asset_names and asset_types. Only asset updates matching
159    * specified asset_names or asset_types are exported to the feed.
160    * Example: `"compute.googleapis.com/Disk"`
161    * For a list of all supported asset types, see
162    * [Supported asset types](/asset-inventory/docs/supported-asset-types).
163    * </pre>
164    *
165    * <code>repeated string asset_types = 3;</code>
166    *
167    * @return The count of assetTypes.
168    */
getAssetTypesCount()169   int getAssetTypesCount();
170   /**
171    *
172    *
173    * <pre>
174    * A list of types of the assets to receive updates. You must specify either
175    * or both of asset_names and asset_types. Only asset updates matching
176    * specified asset_names or asset_types are exported to the feed.
177    * Example: `"compute.googleapis.com/Disk"`
178    * For a list of all supported asset types, see
179    * [Supported asset types](/asset-inventory/docs/supported-asset-types).
180    * </pre>
181    *
182    * <code>repeated string asset_types = 3;</code>
183    *
184    * @param index The index of the element to return.
185    * @return The assetTypes at the given index.
186    */
getAssetTypes(int index)187   java.lang.String getAssetTypes(int index);
188   /**
189    *
190    *
191    * <pre>
192    * A list of types of the assets to receive updates. You must specify either
193    * or both of asset_names and asset_types. Only asset updates matching
194    * specified asset_names or asset_types are exported to the feed.
195    * Example: `"compute.googleapis.com/Disk"`
196    * For a list of all supported asset types, see
197    * [Supported asset types](/asset-inventory/docs/supported-asset-types).
198    * </pre>
199    *
200    * <code>repeated string asset_types = 3;</code>
201    *
202    * @param index The index of the value to return.
203    * @return The bytes of the assetTypes at the given index.
204    */
getAssetTypesBytes(int index)205   com.google.protobuf.ByteString getAssetTypesBytes(int index);
206 
207   /**
208    *
209    *
210    * <pre>
211    * Asset content type. If not specified, no content but the asset name and
212    * type will be returned.
213    * </pre>
214    *
215    * <code>.google.cloud.asset.v1.ContentType content_type = 4;</code>
216    *
217    * @return The enum numeric value on the wire for contentType.
218    */
getContentTypeValue()219   int getContentTypeValue();
220   /**
221    *
222    *
223    * <pre>
224    * Asset content type. If not specified, no content but the asset name and
225    * type will be returned.
226    * </pre>
227    *
228    * <code>.google.cloud.asset.v1.ContentType content_type = 4;</code>
229    *
230    * @return The contentType.
231    */
getContentType()232   com.google.cloud.asset.v1.ContentType getContentType();
233 
234   /**
235    *
236    *
237    * <pre>
238    * Required. Feed output configuration defining where the asset updates are
239    * published to.
240    * </pre>
241    *
242    * <code>
243    * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
244    * </code>
245    *
246    * @return Whether the feedOutputConfig field is set.
247    */
hasFeedOutputConfig()248   boolean hasFeedOutputConfig();
249   /**
250    *
251    *
252    * <pre>
253    * Required. Feed output configuration defining where the asset updates are
254    * published to.
255    * </pre>
256    *
257    * <code>
258    * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
259    * </code>
260    *
261    * @return The feedOutputConfig.
262    */
getFeedOutputConfig()263   com.google.cloud.asset.v1.FeedOutputConfig getFeedOutputConfig();
264   /**
265    *
266    *
267    * <pre>
268    * Required. Feed output configuration defining where the asset updates are
269    * published to.
270    * </pre>
271    *
272    * <code>
273    * .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
274    * </code>
275    */
getFeedOutputConfigOrBuilder()276   com.google.cloud.asset.v1.FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder();
277 
278   /**
279    *
280    *
281    * <pre>
282    * A condition which determines whether an asset update should be published.
283    * If specified, an asset will be returned only when the expression evaluates
284    * to true.
285    * When set, `expression` field in the `Expr` must be a valid [CEL expression]
286    * (https://github.com/google/cel-spec) on a TemporalAsset with name
287    * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted
288    * == true") will only publish Asset deletions. Other fields of `Expr` are
289    * optional.
290    * See our [user
291    * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition)
292    * for detailed instructions.
293    * </pre>
294    *
295    * <code>.google.type.Expr condition = 6;</code>
296    *
297    * @return Whether the condition field is set.
298    */
hasCondition()299   boolean hasCondition();
300   /**
301    *
302    *
303    * <pre>
304    * A condition which determines whether an asset update should be published.
305    * If specified, an asset will be returned only when the expression evaluates
306    * to true.
307    * When set, `expression` field in the `Expr` must be a valid [CEL expression]
308    * (https://github.com/google/cel-spec) on a TemporalAsset with name
309    * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted
310    * == true") will only publish Asset deletions. Other fields of `Expr` are
311    * optional.
312    * See our [user
313    * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition)
314    * for detailed instructions.
315    * </pre>
316    *
317    * <code>.google.type.Expr condition = 6;</code>
318    *
319    * @return The condition.
320    */
getCondition()321   com.google.type.Expr getCondition();
322   /**
323    *
324    *
325    * <pre>
326    * A condition which determines whether an asset update should be published.
327    * If specified, an asset will be returned only when the expression evaluates
328    * to true.
329    * When set, `expression` field in the `Expr` must be a valid [CEL expression]
330    * (https://github.com/google/cel-spec) on a TemporalAsset with name
331    * `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted
332    * == true") will only publish Asset deletions. Other fields of `Expr` are
333    * optional.
334    * See our [user
335    * guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition)
336    * for detailed instructions.
337    * </pre>
338    *
339    * <code>.google.type.Expr condition = 6;</code>
340    */
getConditionOrBuilder()341   com.google.type.ExprOrBuilder getConditionOrBuilder();
342 
343   /**
344    *
345    *
346    * <pre>
347    * A list of relationship types to output, for example:
348    * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
349    * content_type=RELATIONSHIP.
350    * * If specified:
351    * it outputs specified relationship updates on the [asset_names] or the
352    * [asset_types]. It returns an error if any of the [relationship_types]
353    * doesn't belong to the supported relationship types of the [asset_names] or
354    * [asset_types], or any of the [asset_names] or the [asset_types] doesn't
355    * belong to the source types of the [relationship_types].
356    * * Otherwise:
357    * it outputs the supported relationships of the types of [asset_names] and
358    * [asset_types] or returns an error if any of the [asset_names] or the
359    * [asset_types] has no replationship support.
360    * See [Introduction to Cloud Asset
361    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
362    * for all supported asset types and relationship types.
363    * </pre>
364    *
365    * <code>repeated string relationship_types = 7;</code>
366    *
367    * @return A list containing the relationshipTypes.
368    */
getRelationshipTypesList()369   java.util.List<java.lang.String> getRelationshipTypesList();
370   /**
371    *
372    *
373    * <pre>
374    * A list of relationship types to output, for example:
375    * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
376    * content_type=RELATIONSHIP.
377    * * If specified:
378    * it outputs specified relationship updates on the [asset_names] or the
379    * [asset_types]. It returns an error if any of the [relationship_types]
380    * doesn't belong to the supported relationship types of the [asset_names] or
381    * [asset_types], or any of the [asset_names] or the [asset_types] doesn't
382    * belong to the source types of the [relationship_types].
383    * * Otherwise:
384    * it outputs the supported relationships of the types of [asset_names] and
385    * [asset_types] or returns an error if any of the [asset_names] or the
386    * [asset_types] has no replationship support.
387    * See [Introduction to Cloud Asset
388    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
389    * for all supported asset types and relationship types.
390    * </pre>
391    *
392    * <code>repeated string relationship_types = 7;</code>
393    *
394    * @return The count of relationshipTypes.
395    */
getRelationshipTypesCount()396   int getRelationshipTypesCount();
397   /**
398    *
399    *
400    * <pre>
401    * A list of relationship types to output, for example:
402    * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
403    * content_type=RELATIONSHIP.
404    * * If specified:
405    * it outputs specified relationship updates on the [asset_names] or the
406    * [asset_types]. It returns an error if any of the [relationship_types]
407    * doesn't belong to the supported relationship types of the [asset_names] or
408    * [asset_types], or any of the [asset_names] or the [asset_types] doesn't
409    * belong to the source types of the [relationship_types].
410    * * Otherwise:
411    * it outputs the supported relationships of the types of [asset_names] and
412    * [asset_types] or returns an error if any of the [asset_names] or the
413    * [asset_types] has no replationship support.
414    * See [Introduction to Cloud Asset
415    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
416    * for all supported asset types and relationship types.
417    * </pre>
418    *
419    * <code>repeated string relationship_types = 7;</code>
420    *
421    * @param index The index of the element to return.
422    * @return The relationshipTypes at the given index.
423    */
getRelationshipTypes(int index)424   java.lang.String getRelationshipTypes(int index);
425   /**
426    *
427    *
428    * <pre>
429    * A list of relationship types to output, for example:
430    * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
431    * content_type=RELATIONSHIP.
432    * * If specified:
433    * it outputs specified relationship updates on the [asset_names] or the
434    * [asset_types]. It returns an error if any of the [relationship_types]
435    * doesn't belong to the supported relationship types of the [asset_names] or
436    * [asset_types], or any of the [asset_names] or the [asset_types] doesn't
437    * belong to the source types of the [relationship_types].
438    * * Otherwise:
439    * it outputs the supported relationships of the types of [asset_names] and
440    * [asset_types] or returns an error if any of the [asset_names] or the
441    * [asset_types] has no replationship support.
442    * See [Introduction to Cloud Asset
443    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
444    * for all supported asset types and relationship types.
445    * </pre>
446    *
447    * <code>repeated string relationship_types = 7;</code>
448    *
449    * @param index The index of the value to return.
450    * @return The bytes of the relationshipTypes at the given index.
451    */
getRelationshipTypesBytes(int index)452   com.google.protobuf.ByteString getRelationshipTypesBytes(int index);
453 }
454