• 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 /**
22  *
23  *
24  * <pre>
25  * Export asset request.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.asset.v1.ExportAssetsRequest}
29  */
30 public final class ExportAssetsRequest extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ExportAssetsRequest)
33     ExportAssetsRequestOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use ExportAssetsRequest.newBuilder() to construct.
ExportAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private ExportAssetsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
ExportAssetsRequest()40   private ExportAssetsRequest() {
41     parent_ = "";
42     assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
43     contentType_ = 0;
44     relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
45   }
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new ExportAssetsRequest();
51   }
52 
53   @java.lang.Override
getUnknownFields()54   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
55     return this.unknownFields;
56   }
57 
getDescriptor()58   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
59     return com.google.cloud.asset.v1.AssetServiceProto
60         .internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor;
61   }
62 
63   @java.lang.Override
64   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()65       internalGetFieldAccessorTable() {
66     return com.google.cloud.asset.v1.AssetServiceProto
67         .internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.cloud.asset.v1.ExportAssetsRequest.class,
70             com.google.cloud.asset.v1.ExportAssetsRequest.Builder.class);
71   }
72 
73   public static final int PARENT_FIELD_NUMBER = 1;
74 
75   @SuppressWarnings("serial")
76   private volatile java.lang.Object parent_ = "";
77   /**
78    *
79    *
80    * <pre>
81    * Required. The relative name of the root asset. This can only be an
82    * organization number (such as "organizations/123"), a project ID (such as
83    * "projects/my-project-id"), or a project number (such as "projects/12345"),
84    * or a folder number (such as "folders/123").
85    * </pre>
86    *
87    * <code>
88    * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
89    * </code>
90    *
91    * @return The parent.
92    */
93   @java.lang.Override
getParent()94   public java.lang.String getParent() {
95     java.lang.Object ref = parent_;
96     if (ref instanceof java.lang.String) {
97       return (java.lang.String) ref;
98     } else {
99       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
100       java.lang.String s = bs.toStringUtf8();
101       parent_ = s;
102       return s;
103     }
104   }
105   /**
106    *
107    *
108    * <pre>
109    * Required. The relative name of the root asset. This can only be an
110    * organization number (such as "organizations/123"), a project ID (such as
111    * "projects/my-project-id"), or a project number (such as "projects/12345"),
112    * or a folder number (such as "folders/123").
113    * </pre>
114    *
115    * <code>
116    * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
117    * </code>
118    *
119    * @return The bytes for parent.
120    */
121   @java.lang.Override
getParentBytes()122   public com.google.protobuf.ByteString getParentBytes() {
123     java.lang.Object ref = parent_;
124     if (ref instanceof java.lang.String) {
125       com.google.protobuf.ByteString b =
126           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
127       parent_ = b;
128       return b;
129     } else {
130       return (com.google.protobuf.ByteString) ref;
131     }
132   }
133 
134   public static final int READ_TIME_FIELD_NUMBER = 2;
135   private com.google.protobuf.Timestamp readTime_;
136   /**
137    *
138    *
139    * <pre>
140    * Timestamp to take an asset snapshot. This can only be set to a timestamp
141    * between the current time and the current time minus 35 days (inclusive).
142    * If not specified, the current time will be used. Due to delays in resource
143    * data collection and indexing, there is a volatile window during which
144    * running the same query may get different results.
145    * </pre>
146    *
147    * <code>.google.protobuf.Timestamp read_time = 2;</code>
148    *
149    * @return Whether the readTime field is set.
150    */
151   @java.lang.Override
hasReadTime()152   public boolean hasReadTime() {
153     return readTime_ != null;
154   }
155   /**
156    *
157    *
158    * <pre>
159    * Timestamp to take an asset snapshot. This can only be set to a timestamp
160    * between the current time and the current time minus 35 days (inclusive).
161    * If not specified, the current time will be used. Due to delays in resource
162    * data collection and indexing, there is a volatile window during which
163    * running the same query may get different results.
164    * </pre>
165    *
166    * <code>.google.protobuf.Timestamp read_time = 2;</code>
167    *
168    * @return The readTime.
169    */
170   @java.lang.Override
getReadTime()171   public com.google.protobuf.Timestamp getReadTime() {
172     return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
173   }
174   /**
175    *
176    *
177    * <pre>
178    * Timestamp to take an asset snapshot. This can only be set to a timestamp
179    * between the current time and the current time minus 35 days (inclusive).
180    * If not specified, the current time will be used. Due to delays in resource
181    * data collection and indexing, there is a volatile window during which
182    * running the same query may get different results.
183    * </pre>
184    *
185    * <code>.google.protobuf.Timestamp read_time = 2;</code>
186    */
187   @java.lang.Override
getReadTimeOrBuilder()188   public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
189     return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
190   }
191 
192   public static final int ASSET_TYPES_FIELD_NUMBER = 3;
193 
194   @SuppressWarnings("serial")
195   private com.google.protobuf.LazyStringList assetTypes_;
196   /**
197    *
198    *
199    * <pre>
200    * A list of asset types to take a snapshot for. For example:
201    * "compute.googleapis.com/Disk".
202    * Regular expressions are also supported. For example:
203    * * "compute.googleapis.com.*" snapshots resources whose asset type starts
204    * with "compute.googleapis.com".
205    * * ".*Instance" snapshots resources whose asset type ends with "Instance".
206    * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
207    * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
208    * regular expression syntax. If the regular expression does not match any
209    * supported asset type, an INVALID_ARGUMENT error will be returned.
210    * If specified, only matching assets will be returned, otherwise, it will
211    * snapshot all asset types. See [Introduction to Cloud Asset
212    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
213    * for all supported asset types.
214    * </pre>
215    *
216    * <code>repeated string asset_types = 3;</code>
217    *
218    * @return A list containing the assetTypes.
219    */
getAssetTypesList()220   public com.google.protobuf.ProtocolStringList getAssetTypesList() {
221     return assetTypes_;
222   }
223   /**
224    *
225    *
226    * <pre>
227    * A list of asset types to take a snapshot for. For example:
228    * "compute.googleapis.com/Disk".
229    * Regular expressions are also supported. For example:
230    * * "compute.googleapis.com.*" snapshots resources whose asset type starts
231    * with "compute.googleapis.com".
232    * * ".*Instance" snapshots resources whose asset type ends with "Instance".
233    * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
234    * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
235    * regular expression syntax. If the regular expression does not match any
236    * supported asset type, an INVALID_ARGUMENT error will be returned.
237    * If specified, only matching assets will be returned, otherwise, it will
238    * snapshot all asset types. See [Introduction to Cloud Asset
239    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
240    * for all supported asset types.
241    * </pre>
242    *
243    * <code>repeated string asset_types = 3;</code>
244    *
245    * @return The count of assetTypes.
246    */
getAssetTypesCount()247   public int getAssetTypesCount() {
248     return assetTypes_.size();
249   }
250   /**
251    *
252    *
253    * <pre>
254    * A list of asset types to take a snapshot for. For example:
255    * "compute.googleapis.com/Disk".
256    * Regular expressions are also supported. For example:
257    * * "compute.googleapis.com.*" snapshots resources whose asset type starts
258    * with "compute.googleapis.com".
259    * * ".*Instance" snapshots resources whose asset type ends with "Instance".
260    * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
261    * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
262    * regular expression syntax. If the regular expression does not match any
263    * supported asset type, an INVALID_ARGUMENT error will be returned.
264    * If specified, only matching assets will be returned, otherwise, it will
265    * snapshot all asset types. See [Introduction to Cloud Asset
266    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
267    * for all supported asset types.
268    * </pre>
269    *
270    * <code>repeated string asset_types = 3;</code>
271    *
272    * @param index The index of the element to return.
273    * @return The assetTypes at the given index.
274    */
getAssetTypes(int index)275   public java.lang.String getAssetTypes(int index) {
276     return assetTypes_.get(index);
277   }
278   /**
279    *
280    *
281    * <pre>
282    * A list of asset types to take a snapshot for. For example:
283    * "compute.googleapis.com/Disk".
284    * Regular expressions are also supported. For example:
285    * * "compute.googleapis.com.*" snapshots resources whose asset type starts
286    * with "compute.googleapis.com".
287    * * ".*Instance" snapshots resources whose asset type ends with "Instance".
288    * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
289    * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
290    * regular expression syntax. If the regular expression does not match any
291    * supported asset type, an INVALID_ARGUMENT error will be returned.
292    * If specified, only matching assets will be returned, otherwise, it will
293    * snapshot all asset types. See [Introduction to Cloud Asset
294    * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
295    * for all supported asset types.
296    * </pre>
297    *
298    * <code>repeated string asset_types = 3;</code>
299    *
300    * @param index The index of the value to return.
301    * @return The bytes of the assetTypes at the given index.
302    */
getAssetTypesBytes(int index)303   public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
304     return assetTypes_.getByteString(index);
305   }
306 
307   public static final int CONTENT_TYPE_FIELD_NUMBER = 4;
308   private int contentType_ = 0;
309   /**
310    *
311    *
312    * <pre>
313    * Asset content type. If not specified, no content but the asset name will be
314    * returned.
315    * </pre>
316    *
317    * <code>.google.cloud.asset.v1.ContentType content_type = 4;</code>
318    *
319    * @return The enum numeric value on the wire for contentType.
320    */
321   @java.lang.Override
getContentTypeValue()322   public int getContentTypeValue() {
323     return contentType_;
324   }
325   /**
326    *
327    *
328    * <pre>
329    * Asset content type. If not specified, no content but the asset name will be
330    * returned.
331    * </pre>
332    *
333    * <code>.google.cloud.asset.v1.ContentType content_type = 4;</code>
334    *
335    * @return The contentType.
336    */
337   @java.lang.Override
getContentType()338   public com.google.cloud.asset.v1.ContentType getContentType() {
339     com.google.cloud.asset.v1.ContentType result =
340         com.google.cloud.asset.v1.ContentType.forNumber(contentType_);
341     return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result;
342   }
343 
344   public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5;
345   private com.google.cloud.asset.v1.OutputConfig outputConfig_;
346   /**
347    *
348    *
349    * <pre>
350    * Required. Output configuration indicating where the results will be output
351    * to.
352    * </pre>
353    *
354    * <code>
355    * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];
356    * </code>
357    *
358    * @return Whether the outputConfig field is set.
359    */
360   @java.lang.Override
hasOutputConfig()361   public boolean hasOutputConfig() {
362     return outputConfig_ != null;
363   }
364   /**
365    *
366    *
367    * <pre>
368    * Required. Output configuration indicating where the results will be output
369    * to.
370    * </pre>
371    *
372    * <code>
373    * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];
374    * </code>
375    *
376    * @return The outputConfig.
377    */
378   @java.lang.Override
getOutputConfig()379   public com.google.cloud.asset.v1.OutputConfig getOutputConfig() {
380     return outputConfig_ == null
381         ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance()
382         : outputConfig_;
383   }
384   /**
385    *
386    *
387    * <pre>
388    * Required. Output configuration indicating where the results will be output
389    * to.
390    * </pre>
391    *
392    * <code>
393    * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];
394    * </code>
395    */
396   @java.lang.Override
getOutputConfigOrBuilder()397   public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() {
398     return outputConfig_ == null
399         ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance()
400         : outputConfig_;
401   }
402 
403   public static final int RELATIONSHIP_TYPES_FIELD_NUMBER = 6;
404 
405   @SuppressWarnings("serial")
406   private com.google.protobuf.LazyStringList relationshipTypes_;
407   /**
408    *
409    *
410    * <pre>
411    * A list of relationship types to export, for example:
412    * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
413    * content_type=RELATIONSHIP.
414    * * If specified:
415    * it snapshots specified relationships. It returns an error if
416    * any of the [relationship_types] doesn't belong to the supported
417    * relationship types of the [asset_types] or if any of the [asset_types]
418    * doesn't belong to the source types of the [relationship_types].
419    * * Otherwise:
420    * it snapshots the supported relationships for all [asset_types] or returns
421    * an error if any of the [asset_types] has no relationship support.
422    * An unspecified asset types field means all supported asset_types.
423    * See [Introduction to Cloud Asset
424    * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
425    * supported asset types and relationship types.
426    * </pre>
427    *
428    * <code>repeated string relationship_types = 6;</code>
429    *
430    * @return A list containing the relationshipTypes.
431    */
getRelationshipTypesList()432   public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
433     return relationshipTypes_;
434   }
435   /**
436    *
437    *
438    * <pre>
439    * A list of relationship types to export, for example:
440    * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
441    * content_type=RELATIONSHIP.
442    * * If specified:
443    * it snapshots specified relationships. It returns an error if
444    * any of the [relationship_types] doesn't belong to the supported
445    * relationship types of the [asset_types] or if any of the [asset_types]
446    * doesn't belong to the source types of the [relationship_types].
447    * * Otherwise:
448    * it snapshots the supported relationships for all [asset_types] or returns
449    * an error if any of the [asset_types] has no relationship support.
450    * An unspecified asset types field means all supported asset_types.
451    * See [Introduction to Cloud Asset
452    * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
453    * supported asset types and relationship types.
454    * </pre>
455    *
456    * <code>repeated string relationship_types = 6;</code>
457    *
458    * @return The count of relationshipTypes.
459    */
getRelationshipTypesCount()460   public int getRelationshipTypesCount() {
461     return relationshipTypes_.size();
462   }
463   /**
464    *
465    *
466    * <pre>
467    * A list of relationship types to export, for example:
468    * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
469    * content_type=RELATIONSHIP.
470    * * If specified:
471    * it snapshots specified relationships. It returns an error if
472    * any of the [relationship_types] doesn't belong to the supported
473    * relationship types of the [asset_types] or if any of the [asset_types]
474    * doesn't belong to the source types of the [relationship_types].
475    * * Otherwise:
476    * it snapshots the supported relationships for all [asset_types] or returns
477    * an error if any of the [asset_types] has no relationship support.
478    * An unspecified asset types field means all supported asset_types.
479    * See [Introduction to Cloud Asset
480    * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
481    * supported asset types and relationship types.
482    * </pre>
483    *
484    * <code>repeated string relationship_types = 6;</code>
485    *
486    * @param index The index of the element to return.
487    * @return The relationshipTypes at the given index.
488    */
getRelationshipTypes(int index)489   public java.lang.String getRelationshipTypes(int index) {
490     return relationshipTypes_.get(index);
491   }
492   /**
493    *
494    *
495    * <pre>
496    * A list of relationship types to export, for example:
497    * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
498    * content_type=RELATIONSHIP.
499    * * If specified:
500    * it snapshots specified relationships. It returns an error if
501    * any of the [relationship_types] doesn't belong to the supported
502    * relationship types of the [asset_types] or if any of the [asset_types]
503    * doesn't belong to the source types of the [relationship_types].
504    * * Otherwise:
505    * it snapshots the supported relationships for all [asset_types] or returns
506    * an error if any of the [asset_types] has no relationship support.
507    * An unspecified asset types field means all supported asset_types.
508    * See [Introduction to Cloud Asset
509    * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
510    * supported asset types and relationship types.
511    * </pre>
512    *
513    * <code>repeated string relationship_types = 6;</code>
514    *
515    * @param index The index of the value to return.
516    * @return The bytes of the relationshipTypes at the given index.
517    */
getRelationshipTypesBytes(int index)518   public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) {
519     return relationshipTypes_.getByteString(index);
520   }
521 
522   private byte memoizedIsInitialized = -1;
523 
524   @java.lang.Override
isInitialized()525   public final boolean isInitialized() {
526     byte isInitialized = memoizedIsInitialized;
527     if (isInitialized == 1) return true;
528     if (isInitialized == 0) return false;
529 
530     memoizedIsInitialized = 1;
531     return true;
532   }
533 
534   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)535   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
536     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
537       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
538     }
539     if (readTime_ != null) {
540       output.writeMessage(2, getReadTime());
541     }
542     for (int i = 0; i < assetTypes_.size(); i++) {
543       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, assetTypes_.getRaw(i));
544     }
545     if (contentType_
546         != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) {
547       output.writeEnum(4, contentType_);
548     }
549     if (outputConfig_ != null) {
550       output.writeMessage(5, getOutputConfig());
551     }
552     for (int i = 0; i < relationshipTypes_.size(); i++) {
553       com.google.protobuf.GeneratedMessageV3.writeString(output, 6, relationshipTypes_.getRaw(i));
554     }
555     getUnknownFields().writeTo(output);
556   }
557 
558   @java.lang.Override
getSerializedSize()559   public int getSerializedSize() {
560     int size = memoizedSize;
561     if (size != -1) return size;
562 
563     size = 0;
564     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
565       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
566     }
567     if (readTime_ != null) {
568       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadTime());
569     }
570     {
571       int dataSize = 0;
572       for (int i = 0; i < assetTypes_.size(); i++) {
573         dataSize += computeStringSizeNoTag(assetTypes_.getRaw(i));
574       }
575       size += dataSize;
576       size += 1 * getAssetTypesList().size();
577     }
578     if (contentType_
579         != com.google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED.getNumber()) {
580       size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, contentType_);
581     }
582     if (outputConfig_ != null) {
583       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig());
584     }
585     {
586       int dataSize = 0;
587       for (int i = 0; i < relationshipTypes_.size(); i++) {
588         dataSize += computeStringSizeNoTag(relationshipTypes_.getRaw(i));
589       }
590       size += dataSize;
591       size += 1 * getRelationshipTypesList().size();
592     }
593     size += getUnknownFields().getSerializedSize();
594     memoizedSize = size;
595     return size;
596   }
597 
598   @java.lang.Override
equals(final java.lang.Object obj)599   public boolean equals(final java.lang.Object obj) {
600     if (obj == this) {
601       return true;
602     }
603     if (!(obj instanceof com.google.cloud.asset.v1.ExportAssetsRequest)) {
604       return super.equals(obj);
605     }
606     com.google.cloud.asset.v1.ExportAssetsRequest other =
607         (com.google.cloud.asset.v1.ExportAssetsRequest) obj;
608 
609     if (!getParent().equals(other.getParent())) return false;
610     if (hasReadTime() != other.hasReadTime()) return false;
611     if (hasReadTime()) {
612       if (!getReadTime().equals(other.getReadTime())) return false;
613     }
614     if (!getAssetTypesList().equals(other.getAssetTypesList())) return false;
615     if (contentType_ != other.contentType_) return false;
616     if (hasOutputConfig() != other.hasOutputConfig()) return false;
617     if (hasOutputConfig()) {
618       if (!getOutputConfig().equals(other.getOutputConfig())) return false;
619     }
620     if (!getRelationshipTypesList().equals(other.getRelationshipTypesList())) return false;
621     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
622     return true;
623   }
624 
625   @java.lang.Override
hashCode()626   public int hashCode() {
627     if (memoizedHashCode != 0) {
628       return memoizedHashCode;
629     }
630     int hash = 41;
631     hash = (19 * hash) + getDescriptor().hashCode();
632     hash = (37 * hash) + PARENT_FIELD_NUMBER;
633     hash = (53 * hash) + getParent().hashCode();
634     if (hasReadTime()) {
635       hash = (37 * hash) + READ_TIME_FIELD_NUMBER;
636       hash = (53 * hash) + getReadTime().hashCode();
637     }
638     if (getAssetTypesCount() > 0) {
639       hash = (37 * hash) + ASSET_TYPES_FIELD_NUMBER;
640       hash = (53 * hash) + getAssetTypesList().hashCode();
641     }
642     hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER;
643     hash = (53 * hash) + contentType_;
644     if (hasOutputConfig()) {
645       hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER;
646       hash = (53 * hash) + getOutputConfig().hashCode();
647     }
648     if (getRelationshipTypesCount() > 0) {
649       hash = (37 * hash) + RELATIONSHIP_TYPES_FIELD_NUMBER;
650       hash = (53 * hash) + getRelationshipTypesList().hashCode();
651     }
652     hash = (29 * hash) + getUnknownFields().hashCode();
653     memoizedHashCode = hash;
654     return hash;
655   }
656 
parseFrom(java.nio.ByteBuffer data)657   public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(java.nio.ByteBuffer data)
658       throws com.google.protobuf.InvalidProtocolBufferException {
659     return PARSER.parseFrom(data);
660   }
661 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)662   public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(
663       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
664       throws com.google.protobuf.InvalidProtocolBufferException {
665     return PARSER.parseFrom(data, extensionRegistry);
666   }
667 
parseFrom( com.google.protobuf.ByteString data)668   public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(
669       com.google.protobuf.ByteString data)
670       throws com.google.protobuf.InvalidProtocolBufferException {
671     return PARSER.parseFrom(data);
672   }
673 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)674   public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(
675       com.google.protobuf.ByteString data,
676       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
677       throws com.google.protobuf.InvalidProtocolBufferException {
678     return PARSER.parseFrom(data, extensionRegistry);
679   }
680 
parseFrom(byte[] data)681   public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(byte[] data)
682       throws com.google.protobuf.InvalidProtocolBufferException {
683     return PARSER.parseFrom(data);
684   }
685 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)686   public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(
687       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
688       throws com.google.protobuf.InvalidProtocolBufferException {
689     return PARSER.parseFrom(data, extensionRegistry);
690   }
691 
parseFrom(java.io.InputStream input)692   public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(java.io.InputStream input)
693       throws java.io.IOException {
694     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
695   }
696 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)697   public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(
698       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
699       throws java.io.IOException {
700     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
701         PARSER, input, extensionRegistry);
702   }
703 
parseDelimitedFrom( java.io.InputStream input)704   public static com.google.cloud.asset.v1.ExportAssetsRequest parseDelimitedFrom(
705       java.io.InputStream input) throws java.io.IOException {
706     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
707   }
708 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)709   public static com.google.cloud.asset.v1.ExportAssetsRequest parseDelimitedFrom(
710       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
711       throws java.io.IOException {
712     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
713         PARSER, input, extensionRegistry);
714   }
715 
parseFrom( com.google.protobuf.CodedInputStream input)716   public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(
717       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
718     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
719   }
720 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)721   public static com.google.cloud.asset.v1.ExportAssetsRequest parseFrom(
722       com.google.protobuf.CodedInputStream input,
723       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
724       throws java.io.IOException {
725     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
726         PARSER, input, extensionRegistry);
727   }
728 
729   @java.lang.Override
newBuilderForType()730   public Builder newBuilderForType() {
731     return newBuilder();
732   }
733 
newBuilder()734   public static Builder newBuilder() {
735     return DEFAULT_INSTANCE.toBuilder();
736   }
737 
newBuilder(com.google.cloud.asset.v1.ExportAssetsRequest prototype)738   public static Builder newBuilder(com.google.cloud.asset.v1.ExportAssetsRequest prototype) {
739     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
740   }
741 
742   @java.lang.Override
toBuilder()743   public Builder toBuilder() {
744     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
745   }
746 
747   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)748   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
749     Builder builder = new Builder(parent);
750     return builder;
751   }
752   /**
753    *
754    *
755    * <pre>
756    * Export asset request.
757    * </pre>
758    *
759    * Protobuf type {@code google.cloud.asset.v1.ExportAssetsRequest}
760    */
761   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
762       implements
763       // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ExportAssetsRequest)
764       com.google.cloud.asset.v1.ExportAssetsRequestOrBuilder {
getDescriptor()765     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
766       return com.google.cloud.asset.v1.AssetServiceProto
767           .internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor;
768     }
769 
770     @java.lang.Override
771     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()772         internalGetFieldAccessorTable() {
773       return com.google.cloud.asset.v1.AssetServiceProto
774           .internal_static_google_cloud_asset_v1_ExportAssetsRequest_fieldAccessorTable
775           .ensureFieldAccessorsInitialized(
776               com.google.cloud.asset.v1.ExportAssetsRequest.class,
777               com.google.cloud.asset.v1.ExportAssetsRequest.Builder.class);
778     }
779 
780     // Construct using com.google.cloud.asset.v1.ExportAssetsRequest.newBuilder()
Builder()781     private Builder() {}
782 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)783     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
784       super(parent);
785     }
786 
787     @java.lang.Override
clear()788     public Builder clear() {
789       super.clear();
790       bitField0_ = 0;
791       parent_ = "";
792       readTime_ = null;
793       if (readTimeBuilder_ != null) {
794         readTimeBuilder_.dispose();
795         readTimeBuilder_ = null;
796       }
797       assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
798       bitField0_ = (bitField0_ & ~0x00000004);
799       contentType_ = 0;
800       outputConfig_ = null;
801       if (outputConfigBuilder_ != null) {
802         outputConfigBuilder_.dispose();
803         outputConfigBuilder_ = null;
804       }
805       relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
806       bitField0_ = (bitField0_ & ~0x00000020);
807       return this;
808     }
809 
810     @java.lang.Override
getDescriptorForType()811     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
812       return com.google.cloud.asset.v1.AssetServiceProto
813           .internal_static_google_cloud_asset_v1_ExportAssetsRequest_descriptor;
814     }
815 
816     @java.lang.Override
getDefaultInstanceForType()817     public com.google.cloud.asset.v1.ExportAssetsRequest getDefaultInstanceForType() {
818       return com.google.cloud.asset.v1.ExportAssetsRequest.getDefaultInstance();
819     }
820 
821     @java.lang.Override
build()822     public com.google.cloud.asset.v1.ExportAssetsRequest build() {
823       com.google.cloud.asset.v1.ExportAssetsRequest result = buildPartial();
824       if (!result.isInitialized()) {
825         throw newUninitializedMessageException(result);
826       }
827       return result;
828     }
829 
830     @java.lang.Override
buildPartial()831     public com.google.cloud.asset.v1.ExportAssetsRequest buildPartial() {
832       com.google.cloud.asset.v1.ExportAssetsRequest result =
833           new com.google.cloud.asset.v1.ExportAssetsRequest(this);
834       buildPartialRepeatedFields(result);
835       if (bitField0_ != 0) {
836         buildPartial0(result);
837       }
838       onBuilt();
839       return result;
840     }
841 
buildPartialRepeatedFields(com.google.cloud.asset.v1.ExportAssetsRequest result)842     private void buildPartialRepeatedFields(com.google.cloud.asset.v1.ExportAssetsRequest result) {
843       if (((bitField0_ & 0x00000004) != 0)) {
844         assetTypes_ = assetTypes_.getUnmodifiableView();
845         bitField0_ = (bitField0_ & ~0x00000004);
846       }
847       result.assetTypes_ = assetTypes_;
848       if (((bitField0_ & 0x00000020) != 0)) {
849         relationshipTypes_ = relationshipTypes_.getUnmodifiableView();
850         bitField0_ = (bitField0_ & ~0x00000020);
851       }
852       result.relationshipTypes_ = relationshipTypes_;
853     }
854 
buildPartial0(com.google.cloud.asset.v1.ExportAssetsRequest result)855     private void buildPartial0(com.google.cloud.asset.v1.ExportAssetsRequest result) {
856       int from_bitField0_ = bitField0_;
857       if (((from_bitField0_ & 0x00000001) != 0)) {
858         result.parent_ = parent_;
859       }
860       if (((from_bitField0_ & 0x00000002) != 0)) {
861         result.readTime_ = readTimeBuilder_ == null ? readTime_ : readTimeBuilder_.build();
862       }
863       if (((from_bitField0_ & 0x00000008) != 0)) {
864         result.contentType_ = contentType_;
865       }
866       if (((from_bitField0_ & 0x00000010) != 0)) {
867         result.outputConfig_ =
868             outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
869       }
870     }
871 
872     @java.lang.Override
clone()873     public Builder clone() {
874       return super.clone();
875     }
876 
877     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)878     public Builder setField(
879         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
880       return super.setField(field, value);
881     }
882 
883     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)884     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
885       return super.clearField(field);
886     }
887 
888     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)889     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
890       return super.clearOneof(oneof);
891     }
892 
893     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)894     public Builder setRepeatedField(
895         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
896       return super.setRepeatedField(field, index, value);
897     }
898 
899     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)900     public Builder addRepeatedField(
901         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
902       return super.addRepeatedField(field, value);
903     }
904 
905     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)906     public Builder mergeFrom(com.google.protobuf.Message other) {
907       if (other instanceof com.google.cloud.asset.v1.ExportAssetsRequest) {
908         return mergeFrom((com.google.cloud.asset.v1.ExportAssetsRequest) other);
909       } else {
910         super.mergeFrom(other);
911         return this;
912       }
913     }
914 
mergeFrom(com.google.cloud.asset.v1.ExportAssetsRequest other)915     public Builder mergeFrom(com.google.cloud.asset.v1.ExportAssetsRequest other) {
916       if (other == com.google.cloud.asset.v1.ExportAssetsRequest.getDefaultInstance()) return this;
917       if (!other.getParent().isEmpty()) {
918         parent_ = other.parent_;
919         bitField0_ |= 0x00000001;
920         onChanged();
921       }
922       if (other.hasReadTime()) {
923         mergeReadTime(other.getReadTime());
924       }
925       if (!other.assetTypes_.isEmpty()) {
926         if (assetTypes_.isEmpty()) {
927           assetTypes_ = other.assetTypes_;
928           bitField0_ = (bitField0_ & ~0x00000004);
929         } else {
930           ensureAssetTypesIsMutable();
931           assetTypes_.addAll(other.assetTypes_);
932         }
933         onChanged();
934       }
935       if (other.contentType_ != 0) {
936         setContentTypeValue(other.getContentTypeValue());
937       }
938       if (other.hasOutputConfig()) {
939         mergeOutputConfig(other.getOutputConfig());
940       }
941       if (!other.relationshipTypes_.isEmpty()) {
942         if (relationshipTypes_.isEmpty()) {
943           relationshipTypes_ = other.relationshipTypes_;
944           bitField0_ = (bitField0_ & ~0x00000020);
945         } else {
946           ensureRelationshipTypesIsMutable();
947           relationshipTypes_.addAll(other.relationshipTypes_);
948         }
949         onChanged();
950       }
951       this.mergeUnknownFields(other.getUnknownFields());
952       onChanged();
953       return this;
954     }
955 
956     @java.lang.Override
isInitialized()957     public final boolean isInitialized() {
958       return true;
959     }
960 
961     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)962     public Builder mergeFrom(
963         com.google.protobuf.CodedInputStream input,
964         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
965         throws java.io.IOException {
966       if (extensionRegistry == null) {
967         throw new java.lang.NullPointerException();
968       }
969       try {
970         boolean done = false;
971         while (!done) {
972           int tag = input.readTag();
973           switch (tag) {
974             case 0:
975               done = true;
976               break;
977             case 10:
978               {
979                 parent_ = input.readStringRequireUtf8();
980                 bitField0_ |= 0x00000001;
981                 break;
982               } // case 10
983             case 18:
984               {
985                 input.readMessage(getReadTimeFieldBuilder().getBuilder(), extensionRegistry);
986                 bitField0_ |= 0x00000002;
987                 break;
988               } // case 18
989             case 26:
990               {
991                 java.lang.String s = input.readStringRequireUtf8();
992                 ensureAssetTypesIsMutable();
993                 assetTypes_.add(s);
994                 break;
995               } // case 26
996             case 32:
997               {
998                 contentType_ = input.readEnum();
999                 bitField0_ |= 0x00000008;
1000                 break;
1001               } // case 32
1002             case 42:
1003               {
1004                 input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
1005                 bitField0_ |= 0x00000010;
1006                 break;
1007               } // case 42
1008             case 50:
1009               {
1010                 java.lang.String s = input.readStringRequireUtf8();
1011                 ensureRelationshipTypesIsMutable();
1012                 relationshipTypes_.add(s);
1013                 break;
1014               } // case 50
1015             default:
1016               {
1017                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1018                   done = true; // was an endgroup tag
1019                 }
1020                 break;
1021               } // default:
1022           } // switch (tag)
1023         } // while (!done)
1024       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1025         throw e.unwrapIOException();
1026       } finally {
1027         onChanged();
1028       } // finally
1029       return this;
1030     }
1031 
1032     private int bitField0_;
1033 
1034     private java.lang.Object parent_ = "";
1035     /**
1036      *
1037      *
1038      * <pre>
1039      * Required. The relative name of the root asset. This can only be an
1040      * organization number (such as "organizations/123"), a project ID (such as
1041      * "projects/my-project-id"), or a project number (such as "projects/12345"),
1042      * or a folder number (such as "folders/123").
1043      * </pre>
1044      *
1045      * <code>
1046      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
1047      * </code>
1048      *
1049      * @return The parent.
1050      */
getParent()1051     public java.lang.String getParent() {
1052       java.lang.Object ref = parent_;
1053       if (!(ref instanceof java.lang.String)) {
1054         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1055         java.lang.String s = bs.toStringUtf8();
1056         parent_ = s;
1057         return s;
1058       } else {
1059         return (java.lang.String) ref;
1060       }
1061     }
1062     /**
1063      *
1064      *
1065      * <pre>
1066      * Required. The relative name of the root asset. This can only be an
1067      * organization number (such as "organizations/123"), a project ID (such as
1068      * "projects/my-project-id"), or a project number (such as "projects/12345"),
1069      * or a folder number (such as "folders/123").
1070      * </pre>
1071      *
1072      * <code>
1073      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
1074      * </code>
1075      *
1076      * @return The bytes for parent.
1077      */
getParentBytes()1078     public com.google.protobuf.ByteString getParentBytes() {
1079       java.lang.Object ref = parent_;
1080       if (ref instanceof String) {
1081         com.google.protobuf.ByteString b =
1082             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1083         parent_ = b;
1084         return b;
1085       } else {
1086         return (com.google.protobuf.ByteString) ref;
1087       }
1088     }
1089     /**
1090      *
1091      *
1092      * <pre>
1093      * Required. The relative name of the root asset. This can only be an
1094      * organization number (such as "organizations/123"), a project ID (such as
1095      * "projects/my-project-id"), or a project number (such as "projects/12345"),
1096      * or a folder number (such as "folders/123").
1097      * </pre>
1098      *
1099      * <code>
1100      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
1101      * </code>
1102      *
1103      * @param value The parent to set.
1104      * @return This builder for chaining.
1105      */
setParent(java.lang.String value)1106     public Builder setParent(java.lang.String value) {
1107       if (value == null) {
1108         throw new NullPointerException();
1109       }
1110       parent_ = value;
1111       bitField0_ |= 0x00000001;
1112       onChanged();
1113       return this;
1114     }
1115     /**
1116      *
1117      *
1118      * <pre>
1119      * Required. The relative name of the root asset. This can only be an
1120      * organization number (such as "organizations/123"), a project ID (such as
1121      * "projects/my-project-id"), or a project number (such as "projects/12345"),
1122      * or a folder number (such as "folders/123").
1123      * </pre>
1124      *
1125      * <code>
1126      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
1127      * </code>
1128      *
1129      * @return This builder for chaining.
1130      */
clearParent()1131     public Builder clearParent() {
1132       parent_ = getDefaultInstance().getParent();
1133       bitField0_ = (bitField0_ & ~0x00000001);
1134       onChanged();
1135       return this;
1136     }
1137     /**
1138      *
1139      *
1140      * <pre>
1141      * Required. The relative name of the root asset. This can only be an
1142      * organization number (such as "organizations/123"), a project ID (such as
1143      * "projects/my-project-id"), or a project number (such as "projects/12345"),
1144      * or a folder number (such as "folders/123").
1145      * </pre>
1146      *
1147      * <code>
1148      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
1149      * </code>
1150      *
1151      * @param value The bytes for parent to set.
1152      * @return This builder for chaining.
1153      */
setParentBytes(com.google.protobuf.ByteString value)1154     public Builder setParentBytes(com.google.protobuf.ByteString value) {
1155       if (value == null) {
1156         throw new NullPointerException();
1157       }
1158       checkByteStringIsUtf8(value);
1159       parent_ = value;
1160       bitField0_ |= 0x00000001;
1161       onChanged();
1162       return this;
1163     }
1164 
1165     private com.google.protobuf.Timestamp readTime_;
1166     private com.google.protobuf.SingleFieldBuilderV3<
1167             com.google.protobuf.Timestamp,
1168             com.google.protobuf.Timestamp.Builder,
1169             com.google.protobuf.TimestampOrBuilder>
1170         readTimeBuilder_;
1171     /**
1172      *
1173      *
1174      * <pre>
1175      * Timestamp to take an asset snapshot. This can only be set to a timestamp
1176      * between the current time and the current time minus 35 days (inclusive).
1177      * If not specified, the current time will be used. Due to delays in resource
1178      * data collection and indexing, there is a volatile window during which
1179      * running the same query may get different results.
1180      * </pre>
1181      *
1182      * <code>.google.protobuf.Timestamp read_time = 2;</code>
1183      *
1184      * @return Whether the readTime field is set.
1185      */
hasReadTime()1186     public boolean hasReadTime() {
1187       return ((bitField0_ & 0x00000002) != 0);
1188     }
1189     /**
1190      *
1191      *
1192      * <pre>
1193      * Timestamp to take an asset snapshot. This can only be set to a timestamp
1194      * between the current time and the current time minus 35 days (inclusive).
1195      * If not specified, the current time will be used. Due to delays in resource
1196      * data collection and indexing, there is a volatile window during which
1197      * running the same query may get different results.
1198      * </pre>
1199      *
1200      * <code>.google.protobuf.Timestamp read_time = 2;</code>
1201      *
1202      * @return The readTime.
1203      */
getReadTime()1204     public com.google.protobuf.Timestamp getReadTime() {
1205       if (readTimeBuilder_ == null) {
1206         return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
1207       } else {
1208         return readTimeBuilder_.getMessage();
1209       }
1210     }
1211     /**
1212      *
1213      *
1214      * <pre>
1215      * Timestamp to take an asset snapshot. This can only be set to a timestamp
1216      * between the current time and the current time minus 35 days (inclusive).
1217      * If not specified, the current time will be used. Due to delays in resource
1218      * data collection and indexing, there is a volatile window during which
1219      * running the same query may get different results.
1220      * </pre>
1221      *
1222      * <code>.google.protobuf.Timestamp read_time = 2;</code>
1223      */
setReadTime(com.google.protobuf.Timestamp value)1224     public Builder setReadTime(com.google.protobuf.Timestamp value) {
1225       if (readTimeBuilder_ == null) {
1226         if (value == null) {
1227           throw new NullPointerException();
1228         }
1229         readTime_ = value;
1230       } else {
1231         readTimeBuilder_.setMessage(value);
1232       }
1233       bitField0_ |= 0x00000002;
1234       onChanged();
1235       return this;
1236     }
1237     /**
1238      *
1239      *
1240      * <pre>
1241      * Timestamp to take an asset snapshot. This can only be set to a timestamp
1242      * between the current time and the current time minus 35 days (inclusive).
1243      * If not specified, the current time will be used. Due to delays in resource
1244      * data collection and indexing, there is a volatile window during which
1245      * running the same query may get different results.
1246      * </pre>
1247      *
1248      * <code>.google.protobuf.Timestamp read_time = 2;</code>
1249      */
setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)1250     public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue) {
1251       if (readTimeBuilder_ == null) {
1252         readTime_ = builderForValue.build();
1253       } else {
1254         readTimeBuilder_.setMessage(builderForValue.build());
1255       }
1256       bitField0_ |= 0x00000002;
1257       onChanged();
1258       return this;
1259     }
1260     /**
1261      *
1262      *
1263      * <pre>
1264      * Timestamp to take an asset snapshot. This can only be set to a timestamp
1265      * between the current time and the current time minus 35 days (inclusive).
1266      * If not specified, the current time will be used. Due to delays in resource
1267      * data collection and indexing, there is a volatile window during which
1268      * running the same query may get different results.
1269      * </pre>
1270      *
1271      * <code>.google.protobuf.Timestamp read_time = 2;</code>
1272      */
mergeReadTime(com.google.protobuf.Timestamp value)1273     public Builder mergeReadTime(com.google.protobuf.Timestamp value) {
1274       if (readTimeBuilder_ == null) {
1275         if (((bitField0_ & 0x00000002) != 0)
1276             && readTime_ != null
1277             && readTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1278           getReadTimeBuilder().mergeFrom(value);
1279         } else {
1280           readTime_ = value;
1281         }
1282       } else {
1283         readTimeBuilder_.mergeFrom(value);
1284       }
1285       bitField0_ |= 0x00000002;
1286       onChanged();
1287       return this;
1288     }
1289     /**
1290      *
1291      *
1292      * <pre>
1293      * Timestamp to take an asset snapshot. This can only be set to a timestamp
1294      * between the current time and the current time minus 35 days (inclusive).
1295      * If not specified, the current time will be used. Due to delays in resource
1296      * data collection and indexing, there is a volatile window during which
1297      * running the same query may get different results.
1298      * </pre>
1299      *
1300      * <code>.google.protobuf.Timestamp read_time = 2;</code>
1301      */
clearReadTime()1302     public Builder clearReadTime() {
1303       bitField0_ = (bitField0_ & ~0x00000002);
1304       readTime_ = null;
1305       if (readTimeBuilder_ != null) {
1306         readTimeBuilder_.dispose();
1307         readTimeBuilder_ = null;
1308       }
1309       onChanged();
1310       return this;
1311     }
1312     /**
1313      *
1314      *
1315      * <pre>
1316      * Timestamp to take an asset snapshot. This can only be set to a timestamp
1317      * between the current time and the current time minus 35 days (inclusive).
1318      * If not specified, the current time will be used. Due to delays in resource
1319      * data collection and indexing, there is a volatile window during which
1320      * running the same query may get different results.
1321      * </pre>
1322      *
1323      * <code>.google.protobuf.Timestamp read_time = 2;</code>
1324      */
getReadTimeBuilder()1325     public com.google.protobuf.Timestamp.Builder getReadTimeBuilder() {
1326       bitField0_ |= 0x00000002;
1327       onChanged();
1328       return getReadTimeFieldBuilder().getBuilder();
1329     }
1330     /**
1331      *
1332      *
1333      * <pre>
1334      * Timestamp to take an asset snapshot. This can only be set to a timestamp
1335      * between the current time and the current time minus 35 days (inclusive).
1336      * If not specified, the current time will be used. Due to delays in resource
1337      * data collection and indexing, there is a volatile window during which
1338      * running the same query may get different results.
1339      * </pre>
1340      *
1341      * <code>.google.protobuf.Timestamp read_time = 2;</code>
1342      */
getReadTimeOrBuilder()1343     public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
1344       if (readTimeBuilder_ != null) {
1345         return readTimeBuilder_.getMessageOrBuilder();
1346       } else {
1347         return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_;
1348       }
1349     }
1350     /**
1351      *
1352      *
1353      * <pre>
1354      * Timestamp to take an asset snapshot. This can only be set to a timestamp
1355      * between the current time and the current time minus 35 days (inclusive).
1356      * If not specified, the current time will be used. Due to delays in resource
1357      * data collection and indexing, there is a volatile window during which
1358      * running the same query may get different results.
1359      * </pre>
1360      *
1361      * <code>.google.protobuf.Timestamp read_time = 2;</code>
1362      */
1363     private com.google.protobuf.SingleFieldBuilderV3<
1364             com.google.protobuf.Timestamp,
1365             com.google.protobuf.Timestamp.Builder,
1366             com.google.protobuf.TimestampOrBuilder>
getReadTimeFieldBuilder()1367         getReadTimeFieldBuilder() {
1368       if (readTimeBuilder_ == null) {
1369         readTimeBuilder_ =
1370             new com.google.protobuf.SingleFieldBuilderV3<
1371                 com.google.protobuf.Timestamp,
1372                 com.google.protobuf.Timestamp.Builder,
1373                 com.google.protobuf.TimestampOrBuilder>(
1374                 getReadTime(), getParentForChildren(), isClean());
1375         readTime_ = null;
1376       }
1377       return readTimeBuilder_;
1378     }
1379 
1380     private com.google.protobuf.LazyStringList assetTypes_ =
1381         com.google.protobuf.LazyStringArrayList.EMPTY;
1382 
ensureAssetTypesIsMutable()1383     private void ensureAssetTypesIsMutable() {
1384       if (!((bitField0_ & 0x00000004) != 0)) {
1385         assetTypes_ = new com.google.protobuf.LazyStringArrayList(assetTypes_);
1386         bitField0_ |= 0x00000004;
1387       }
1388     }
1389     /**
1390      *
1391      *
1392      * <pre>
1393      * A list of asset types to take a snapshot for. For example:
1394      * "compute.googleapis.com/Disk".
1395      * Regular expressions are also supported. For example:
1396      * * "compute.googleapis.com.*" snapshots resources whose asset type starts
1397      * with "compute.googleapis.com".
1398      * * ".*Instance" snapshots resources whose asset type ends with "Instance".
1399      * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
1400      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
1401      * regular expression syntax. If the regular expression does not match any
1402      * supported asset type, an INVALID_ARGUMENT error will be returned.
1403      * If specified, only matching assets will be returned, otherwise, it will
1404      * snapshot all asset types. See [Introduction to Cloud Asset
1405      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
1406      * for all supported asset types.
1407      * </pre>
1408      *
1409      * <code>repeated string asset_types = 3;</code>
1410      *
1411      * @return A list containing the assetTypes.
1412      */
getAssetTypesList()1413     public com.google.protobuf.ProtocolStringList getAssetTypesList() {
1414       return assetTypes_.getUnmodifiableView();
1415     }
1416     /**
1417      *
1418      *
1419      * <pre>
1420      * A list of asset types to take a snapshot for. For example:
1421      * "compute.googleapis.com/Disk".
1422      * Regular expressions are also supported. For example:
1423      * * "compute.googleapis.com.*" snapshots resources whose asset type starts
1424      * with "compute.googleapis.com".
1425      * * ".*Instance" snapshots resources whose asset type ends with "Instance".
1426      * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
1427      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
1428      * regular expression syntax. If the regular expression does not match any
1429      * supported asset type, an INVALID_ARGUMENT error will be returned.
1430      * If specified, only matching assets will be returned, otherwise, it will
1431      * snapshot all asset types. See [Introduction to Cloud Asset
1432      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
1433      * for all supported asset types.
1434      * </pre>
1435      *
1436      * <code>repeated string asset_types = 3;</code>
1437      *
1438      * @return The count of assetTypes.
1439      */
getAssetTypesCount()1440     public int getAssetTypesCount() {
1441       return assetTypes_.size();
1442     }
1443     /**
1444      *
1445      *
1446      * <pre>
1447      * A list of asset types to take a snapshot for. For example:
1448      * "compute.googleapis.com/Disk".
1449      * Regular expressions are also supported. For example:
1450      * * "compute.googleapis.com.*" snapshots resources whose asset type starts
1451      * with "compute.googleapis.com".
1452      * * ".*Instance" snapshots resources whose asset type ends with "Instance".
1453      * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
1454      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
1455      * regular expression syntax. If the regular expression does not match any
1456      * supported asset type, an INVALID_ARGUMENT error will be returned.
1457      * If specified, only matching assets will be returned, otherwise, it will
1458      * snapshot all asset types. See [Introduction to Cloud Asset
1459      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
1460      * for all supported asset types.
1461      * </pre>
1462      *
1463      * <code>repeated string asset_types = 3;</code>
1464      *
1465      * @param index The index of the element to return.
1466      * @return The assetTypes at the given index.
1467      */
getAssetTypes(int index)1468     public java.lang.String getAssetTypes(int index) {
1469       return assetTypes_.get(index);
1470     }
1471     /**
1472      *
1473      *
1474      * <pre>
1475      * A list of asset types to take a snapshot for. For example:
1476      * "compute.googleapis.com/Disk".
1477      * Regular expressions are also supported. For example:
1478      * * "compute.googleapis.com.*" snapshots resources whose asset type starts
1479      * with "compute.googleapis.com".
1480      * * ".*Instance" snapshots resources whose asset type ends with "Instance".
1481      * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
1482      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
1483      * regular expression syntax. If the regular expression does not match any
1484      * supported asset type, an INVALID_ARGUMENT error will be returned.
1485      * If specified, only matching assets will be returned, otherwise, it will
1486      * snapshot all asset types. See [Introduction to Cloud Asset
1487      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
1488      * for all supported asset types.
1489      * </pre>
1490      *
1491      * <code>repeated string asset_types = 3;</code>
1492      *
1493      * @param index The index of the value to return.
1494      * @return The bytes of the assetTypes at the given index.
1495      */
getAssetTypesBytes(int index)1496     public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
1497       return assetTypes_.getByteString(index);
1498     }
1499     /**
1500      *
1501      *
1502      * <pre>
1503      * A list of asset types to take a snapshot for. For example:
1504      * "compute.googleapis.com/Disk".
1505      * Regular expressions are also supported. For example:
1506      * * "compute.googleapis.com.*" snapshots resources whose asset type starts
1507      * with "compute.googleapis.com".
1508      * * ".*Instance" snapshots resources whose asset type ends with "Instance".
1509      * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
1510      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
1511      * regular expression syntax. If the regular expression does not match any
1512      * supported asset type, an INVALID_ARGUMENT error will be returned.
1513      * If specified, only matching assets will be returned, otherwise, it will
1514      * snapshot all asset types. See [Introduction to Cloud Asset
1515      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
1516      * for all supported asset types.
1517      * </pre>
1518      *
1519      * <code>repeated string asset_types = 3;</code>
1520      *
1521      * @param index The index to set the value at.
1522      * @param value The assetTypes to set.
1523      * @return This builder for chaining.
1524      */
setAssetTypes(int index, java.lang.String value)1525     public Builder setAssetTypes(int index, java.lang.String value) {
1526       if (value == null) {
1527         throw new NullPointerException();
1528       }
1529       ensureAssetTypesIsMutable();
1530       assetTypes_.set(index, value);
1531       onChanged();
1532       return this;
1533     }
1534     /**
1535      *
1536      *
1537      * <pre>
1538      * A list of asset types to take a snapshot for. For example:
1539      * "compute.googleapis.com/Disk".
1540      * Regular expressions are also supported. For example:
1541      * * "compute.googleapis.com.*" snapshots resources whose asset type starts
1542      * with "compute.googleapis.com".
1543      * * ".*Instance" snapshots resources whose asset type ends with "Instance".
1544      * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
1545      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
1546      * regular expression syntax. If the regular expression does not match any
1547      * supported asset type, an INVALID_ARGUMENT error will be returned.
1548      * If specified, only matching assets will be returned, otherwise, it will
1549      * snapshot all asset types. See [Introduction to Cloud Asset
1550      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
1551      * for all supported asset types.
1552      * </pre>
1553      *
1554      * <code>repeated string asset_types = 3;</code>
1555      *
1556      * @param value The assetTypes to add.
1557      * @return This builder for chaining.
1558      */
addAssetTypes(java.lang.String value)1559     public Builder addAssetTypes(java.lang.String value) {
1560       if (value == null) {
1561         throw new NullPointerException();
1562       }
1563       ensureAssetTypesIsMutable();
1564       assetTypes_.add(value);
1565       onChanged();
1566       return this;
1567     }
1568     /**
1569      *
1570      *
1571      * <pre>
1572      * A list of asset types to take a snapshot for. For example:
1573      * "compute.googleapis.com/Disk".
1574      * Regular expressions are also supported. For example:
1575      * * "compute.googleapis.com.*" snapshots resources whose asset type starts
1576      * with "compute.googleapis.com".
1577      * * ".*Instance" snapshots resources whose asset type ends with "Instance".
1578      * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
1579      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
1580      * regular expression syntax. If the regular expression does not match any
1581      * supported asset type, an INVALID_ARGUMENT error will be returned.
1582      * If specified, only matching assets will be returned, otherwise, it will
1583      * snapshot all asset types. See [Introduction to Cloud Asset
1584      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
1585      * for all supported asset types.
1586      * </pre>
1587      *
1588      * <code>repeated string asset_types = 3;</code>
1589      *
1590      * @param values The assetTypes to add.
1591      * @return This builder for chaining.
1592      */
addAllAssetTypes(java.lang.Iterable<java.lang.String> values)1593     public Builder addAllAssetTypes(java.lang.Iterable<java.lang.String> values) {
1594       ensureAssetTypesIsMutable();
1595       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assetTypes_);
1596       onChanged();
1597       return this;
1598     }
1599     /**
1600      *
1601      *
1602      * <pre>
1603      * A list of asset types to take a snapshot for. For example:
1604      * "compute.googleapis.com/Disk".
1605      * Regular expressions are also supported. For example:
1606      * * "compute.googleapis.com.*" snapshots resources whose asset type starts
1607      * with "compute.googleapis.com".
1608      * * ".*Instance" snapshots resources whose asset type ends with "Instance".
1609      * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
1610      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
1611      * regular expression syntax. If the regular expression does not match any
1612      * supported asset type, an INVALID_ARGUMENT error will be returned.
1613      * If specified, only matching assets will be returned, otherwise, it will
1614      * snapshot all asset types. See [Introduction to Cloud Asset
1615      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
1616      * for all supported asset types.
1617      * </pre>
1618      *
1619      * <code>repeated string asset_types = 3;</code>
1620      *
1621      * @return This builder for chaining.
1622      */
clearAssetTypes()1623     public Builder clearAssetTypes() {
1624       assetTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1625       bitField0_ = (bitField0_ & ~0x00000004);
1626       onChanged();
1627       return this;
1628     }
1629     /**
1630      *
1631      *
1632      * <pre>
1633      * A list of asset types to take a snapshot for. For example:
1634      * "compute.googleapis.com/Disk".
1635      * Regular expressions are also supported. For example:
1636      * * "compute.googleapis.com.*" snapshots resources whose asset type starts
1637      * with "compute.googleapis.com".
1638      * * ".*Instance" snapshots resources whose asset type ends with "Instance".
1639      * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
1640      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
1641      * regular expression syntax. If the regular expression does not match any
1642      * supported asset type, an INVALID_ARGUMENT error will be returned.
1643      * If specified, only matching assets will be returned, otherwise, it will
1644      * snapshot all asset types. See [Introduction to Cloud Asset
1645      * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
1646      * for all supported asset types.
1647      * </pre>
1648      *
1649      * <code>repeated string asset_types = 3;</code>
1650      *
1651      * @param value The bytes of the assetTypes to add.
1652      * @return This builder for chaining.
1653      */
addAssetTypesBytes(com.google.protobuf.ByteString value)1654     public Builder addAssetTypesBytes(com.google.protobuf.ByteString value) {
1655       if (value == null) {
1656         throw new NullPointerException();
1657       }
1658       checkByteStringIsUtf8(value);
1659       ensureAssetTypesIsMutable();
1660       assetTypes_.add(value);
1661       onChanged();
1662       return this;
1663     }
1664 
1665     private int contentType_ = 0;
1666     /**
1667      *
1668      *
1669      * <pre>
1670      * Asset content type. If not specified, no content but the asset name will be
1671      * returned.
1672      * </pre>
1673      *
1674      * <code>.google.cloud.asset.v1.ContentType content_type = 4;</code>
1675      *
1676      * @return The enum numeric value on the wire for contentType.
1677      */
1678     @java.lang.Override
getContentTypeValue()1679     public int getContentTypeValue() {
1680       return contentType_;
1681     }
1682     /**
1683      *
1684      *
1685      * <pre>
1686      * Asset content type. If not specified, no content but the asset name will be
1687      * returned.
1688      * </pre>
1689      *
1690      * <code>.google.cloud.asset.v1.ContentType content_type = 4;</code>
1691      *
1692      * @param value The enum numeric value on the wire for contentType to set.
1693      * @return This builder for chaining.
1694      */
setContentTypeValue(int value)1695     public Builder setContentTypeValue(int value) {
1696       contentType_ = value;
1697       bitField0_ |= 0x00000008;
1698       onChanged();
1699       return this;
1700     }
1701     /**
1702      *
1703      *
1704      * <pre>
1705      * Asset content type. If not specified, no content but the asset name will be
1706      * returned.
1707      * </pre>
1708      *
1709      * <code>.google.cloud.asset.v1.ContentType content_type = 4;</code>
1710      *
1711      * @return The contentType.
1712      */
1713     @java.lang.Override
getContentType()1714     public com.google.cloud.asset.v1.ContentType getContentType() {
1715       com.google.cloud.asset.v1.ContentType result =
1716           com.google.cloud.asset.v1.ContentType.forNumber(contentType_);
1717       return result == null ? com.google.cloud.asset.v1.ContentType.UNRECOGNIZED : result;
1718     }
1719     /**
1720      *
1721      *
1722      * <pre>
1723      * Asset content type. If not specified, no content but the asset name will be
1724      * returned.
1725      * </pre>
1726      *
1727      * <code>.google.cloud.asset.v1.ContentType content_type = 4;</code>
1728      *
1729      * @param value The contentType to set.
1730      * @return This builder for chaining.
1731      */
setContentType(com.google.cloud.asset.v1.ContentType value)1732     public Builder setContentType(com.google.cloud.asset.v1.ContentType value) {
1733       if (value == null) {
1734         throw new NullPointerException();
1735       }
1736       bitField0_ |= 0x00000008;
1737       contentType_ = value.getNumber();
1738       onChanged();
1739       return this;
1740     }
1741     /**
1742      *
1743      *
1744      * <pre>
1745      * Asset content type. If not specified, no content but the asset name will be
1746      * returned.
1747      * </pre>
1748      *
1749      * <code>.google.cloud.asset.v1.ContentType content_type = 4;</code>
1750      *
1751      * @return This builder for chaining.
1752      */
clearContentType()1753     public Builder clearContentType() {
1754       bitField0_ = (bitField0_ & ~0x00000008);
1755       contentType_ = 0;
1756       onChanged();
1757       return this;
1758     }
1759 
1760     private com.google.cloud.asset.v1.OutputConfig outputConfig_;
1761     private com.google.protobuf.SingleFieldBuilderV3<
1762             com.google.cloud.asset.v1.OutputConfig,
1763             com.google.cloud.asset.v1.OutputConfig.Builder,
1764             com.google.cloud.asset.v1.OutputConfigOrBuilder>
1765         outputConfigBuilder_;
1766     /**
1767      *
1768      *
1769      * <pre>
1770      * Required. Output configuration indicating where the results will be output
1771      * to.
1772      * </pre>
1773      *
1774      * <code>
1775      * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];
1776      * </code>
1777      *
1778      * @return Whether the outputConfig field is set.
1779      */
hasOutputConfig()1780     public boolean hasOutputConfig() {
1781       return ((bitField0_ & 0x00000010) != 0);
1782     }
1783     /**
1784      *
1785      *
1786      * <pre>
1787      * Required. Output configuration indicating where the results will be output
1788      * to.
1789      * </pre>
1790      *
1791      * <code>
1792      * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];
1793      * </code>
1794      *
1795      * @return The outputConfig.
1796      */
getOutputConfig()1797     public com.google.cloud.asset.v1.OutputConfig getOutputConfig() {
1798       if (outputConfigBuilder_ == null) {
1799         return outputConfig_ == null
1800             ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance()
1801             : outputConfig_;
1802       } else {
1803         return outputConfigBuilder_.getMessage();
1804       }
1805     }
1806     /**
1807      *
1808      *
1809      * <pre>
1810      * Required. Output configuration indicating where the results will be output
1811      * to.
1812      * </pre>
1813      *
1814      * <code>
1815      * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];
1816      * </code>
1817      */
setOutputConfig(com.google.cloud.asset.v1.OutputConfig value)1818     public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig value) {
1819       if (outputConfigBuilder_ == null) {
1820         if (value == null) {
1821           throw new NullPointerException();
1822         }
1823         outputConfig_ = value;
1824       } else {
1825         outputConfigBuilder_.setMessage(value);
1826       }
1827       bitField0_ |= 0x00000010;
1828       onChanged();
1829       return this;
1830     }
1831     /**
1832      *
1833      *
1834      * <pre>
1835      * Required. Output configuration indicating where the results will be output
1836      * to.
1837      * </pre>
1838      *
1839      * <code>
1840      * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];
1841      * </code>
1842      */
setOutputConfig(com.google.cloud.asset.v1.OutputConfig.Builder builderForValue)1843     public Builder setOutputConfig(com.google.cloud.asset.v1.OutputConfig.Builder builderForValue) {
1844       if (outputConfigBuilder_ == null) {
1845         outputConfig_ = builderForValue.build();
1846       } else {
1847         outputConfigBuilder_.setMessage(builderForValue.build());
1848       }
1849       bitField0_ |= 0x00000010;
1850       onChanged();
1851       return this;
1852     }
1853     /**
1854      *
1855      *
1856      * <pre>
1857      * Required. Output configuration indicating where the results will be output
1858      * to.
1859      * </pre>
1860      *
1861      * <code>
1862      * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];
1863      * </code>
1864      */
mergeOutputConfig(com.google.cloud.asset.v1.OutputConfig value)1865     public Builder mergeOutputConfig(com.google.cloud.asset.v1.OutputConfig value) {
1866       if (outputConfigBuilder_ == null) {
1867         if (((bitField0_ & 0x00000010) != 0)
1868             && outputConfig_ != null
1869             && outputConfig_ != com.google.cloud.asset.v1.OutputConfig.getDefaultInstance()) {
1870           getOutputConfigBuilder().mergeFrom(value);
1871         } else {
1872           outputConfig_ = value;
1873         }
1874       } else {
1875         outputConfigBuilder_.mergeFrom(value);
1876       }
1877       bitField0_ |= 0x00000010;
1878       onChanged();
1879       return this;
1880     }
1881     /**
1882      *
1883      *
1884      * <pre>
1885      * Required. Output configuration indicating where the results will be output
1886      * to.
1887      * </pre>
1888      *
1889      * <code>
1890      * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];
1891      * </code>
1892      */
clearOutputConfig()1893     public Builder clearOutputConfig() {
1894       bitField0_ = (bitField0_ & ~0x00000010);
1895       outputConfig_ = null;
1896       if (outputConfigBuilder_ != null) {
1897         outputConfigBuilder_.dispose();
1898         outputConfigBuilder_ = null;
1899       }
1900       onChanged();
1901       return this;
1902     }
1903     /**
1904      *
1905      *
1906      * <pre>
1907      * Required. Output configuration indicating where the results will be output
1908      * to.
1909      * </pre>
1910      *
1911      * <code>
1912      * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];
1913      * </code>
1914      */
getOutputConfigBuilder()1915     public com.google.cloud.asset.v1.OutputConfig.Builder getOutputConfigBuilder() {
1916       bitField0_ |= 0x00000010;
1917       onChanged();
1918       return getOutputConfigFieldBuilder().getBuilder();
1919     }
1920     /**
1921      *
1922      *
1923      * <pre>
1924      * Required. Output configuration indicating where the results will be output
1925      * to.
1926      * </pre>
1927      *
1928      * <code>
1929      * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];
1930      * </code>
1931      */
getOutputConfigOrBuilder()1932     public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder() {
1933       if (outputConfigBuilder_ != null) {
1934         return outputConfigBuilder_.getMessageOrBuilder();
1935       } else {
1936         return outputConfig_ == null
1937             ? com.google.cloud.asset.v1.OutputConfig.getDefaultInstance()
1938             : outputConfig_;
1939       }
1940     }
1941     /**
1942      *
1943      *
1944      * <pre>
1945      * Required. Output configuration indicating where the results will be output
1946      * to.
1947      * </pre>
1948      *
1949      * <code>
1950      * .google.cloud.asset.v1.OutputConfig output_config = 5 [(.google.api.field_behavior) = REQUIRED];
1951      * </code>
1952      */
1953     private com.google.protobuf.SingleFieldBuilderV3<
1954             com.google.cloud.asset.v1.OutputConfig,
1955             com.google.cloud.asset.v1.OutputConfig.Builder,
1956             com.google.cloud.asset.v1.OutputConfigOrBuilder>
getOutputConfigFieldBuilder()1957         getOutputConfigFieldBuilder() {
1958       if (outputConfigBuilder_ == null) {
1959         outputConfigBuilder_ =
1960             new com.google.protobuf.SingleFieldBuilderV3<
1961                 com.google.cloud.asset.v1.OutputConfig,
1962                 com.google.cloud.asset.v1.OutputConfig.Builder,
1963                 com.google.cloud.asset.v1.OutputConfigOrBuilder>(
1964                 getOutputConfig(), getParentForChildren(), isClean());
1965         outputConfig_ = null;
1966       }
1967       return outputConfigBuilder_;
1968     }
1969 
1970     private com.google.protobuf.LazyStringList relationshipTypes_ =
1971         com.google.protobuf.LazyStringArrayList.EMPTY;
1972 
ensureRelationshipTypesIsMutable()1973     private void ensureRelationshipTypesIsMutable() {
1974       if (!((bitField0_ & 0x00000020) != 0)) {
1975         relationshipTypes_ = new com.google.protobuf.LazyStringArrayList(relationshipTypes_);
1976         bitField0_ |= 0x00000020;
1977       }
1978     }
1979     /**
1980      *
1981      *
1982      * <pre>
1983      * A list of relationship types to export, for example:
1984      * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
1985      * content_type=RELATIONSHIP.
1986      * * If specified:
1987      * it snapshots specified relationships. It returns an error if
1988      * any of the [relationship_types] doesn't belong to the supported
1989      * relationship types of the [asset_types] or if any of the [asset_types]
1990      * doesn't belong to the source types of the [relationship_types].
1991      * * Otherwise:
1992      * it snapshots the supported relationships for all [asset_types] or returns
1993      * an error if any of the [asset_types] has no relationship support.
1994      * An unspecified asset types field means all supported asset_types.
1995      * See [Introduction to Cloud Asset
1996      * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
1997      * supported asset types and relationship types.
1998      * </pre>
1999      *
2000      * <code>repeated string relationship_types = 6;</code>
2001      *
2002      * @return A list containing the relationshipTypes.
2003      */
getRelationshipTypesList()2004     public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
2005       return relationshipTypes_.getUnmodifiableView();
2006     }
2007     /**
2008      *
2009      *
2010      * <pre>
2011      * A list of relationship types to export, for example:
2012      * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
2013      * content_type=RELATIONSHIP.
2014      * * If specified:
2015      * it snapshots specified relationships. It returns an error if
2016      * any of the [relationship_types] doesn't belong to the supported
2017      * relationship types of the [asset_types] or if any of the [asset_types]
2018      * doesn't belong to the source types of the [relationship_types].
2019      * * Otherwise:
2020      * it snapshots the supported relationships for all [asset_types] or returns
2021      * an error if any of the [asset_types] has no relationship support.
2022      * An unspecified asset types field means all supported asset_types.
2023      * See [Introduction to Cloud Asset
2024      * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
2025      * supported asset types and relationship types.
2026      * </pre>
2027      *
2028      * <code>repeated string relationship_types = 6;</code>
2029      *
2030      * @return The count of relationshipTypes.
2031      */
getRelationshipTypesCount()2032     public int getRelationshipTypesCount() {
2033       return relationshipTypes_.size();
2034     }
2035     /**
2036      *
2037      *
2038      * <pre>
2039      * A list of relationship types to export, for example:
2040      * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
2041      * content_type=RELATIONSHIP.
2042      * * If specified:
2043      * it snapshots specified relationships. It returns an error if
2044      * any of the [relationship_types] doesn't belong to the supported
2045      * relationship types of the [asset_types] or if any of the [asset_types]
2046      * doesn't belong to the source types of the [relationship_types].
2047      * * Otherwise:
2048      * it snapshots the supported relationships for all [asset_types] or returns
2049      * an error if any of the [asset_types] has no relationship support.
2050      * An unspecified asset types field means all supported asset_types.
2051      * See [Introduction to Cloud Asset
2052      * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
2053      * supported asset types and relationship types.
2054      * </pre>
2055      *
2056      * <code>repeated string relationship_types = 6;</code>
2057      *
2058      * @param index The index of the element to return.
2059      * @return The relationshipTypes at the given index.
2060      */
getRelationshipTypes(int index)2061     public java.lang.String getRelationshipTypes(int index) {
2062       return relationshipTypes_.get(index);
2063     }
2064     /**
2065      *
2066      *
2067      * <pre>
2068      * A list of relationship types to export, for example:
2069      * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
2070      * content_type=RELATIONSHIP.
2071      * * If specified:
2072      * it snapshots specified relationships. It returns an error if
2073      * any of the [relationship_types] doesn't belong to the supported
2074      * relationship types of the [asset_types] or if any of the [asset_types]
2075      * doesn't belong to the source types of the [relationship_types].
2076      * * Otherwise:
2077      * it snapshots the supported relationships for all [asset_types] or returns
2078      * an error if any of the [asset_types] has no relationship support.
2079      * An unspecified asset types field means all supported asset_types.
2080      * See [Introduction to Cloud Asset
2081      * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
2082      * supported asset types and relationship types.
2083      * </pre>
2084      *
2085      * <code>repeated string relationship_types = 6;</code>
2086      *
2087      * @param index The index of the value to return.
2088      * @return The bytes of the relationshipTypes at the given index.
2089      */
getRelationshipTypesBytes(int index)2090     public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) {
2091       return relationshipTypes_.getByteString(index);
2092     }
2093     /**
2094      *
2095      *
2096      * <pre>
2097      * A list of relationship types to export, for example:
2098      * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
2099      * content_type=RELATIONSHIP.
2100      * * If specified:
2101      * it snapshots specified relationships. It returns an error if
2102      * any of the [relationship_types] doesn't belong to the supported
2103      * relationship types of the [asset_types] or if any of the [asset_types]
2104      * doesn't belong to the source types of the [relationship_types].
2105      * * Otherwise:
2106      * it snapshots the supported relationships for all [asset_types] or returns
2107      * an error if any of the [asset_types] has no relationship support.
2108      * An unspecified asset types field means all supported asset_types.
2109      * See [Introduction to Cloud Asset
2110      * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
2111      * supported asset types and relationship types.
2112      * </pre>
2113      *
2114      * <code>repeated string relationship_types = 6;</code>
2115      *
2116      * @param index The index to set the value at.
2117      * @param value The relationshipTypes to set.
2118      * @return This builder for chaining.
2119      */
setRelationshipTypes(int index, java.lang.String value)2120     public Builder setRelationshipTypes(int index, java.lang.String value) {
2121       if (value == null) {
2122         throw new NullPointerException();
2123       }
2124       ensureRelationshipTypesIsMutable();
2125       relationshipTypes_.set(index, value);
2126       onChanged();
2127       return this;
2128     }
2129     /**
2130      *
2131      *
2132      * <pre>
2133      * A list of relationship types to export, for example:
2134      * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
2135      * content_type=RELATIONSHIP.
2136      * * If specified:
2137      * it snapshots specified relationships. It returns an error if
2138      * any of the [relationship_types] doesn't belong to the supported
2139      * relationship types of the [asset_types] or if any of the [asset_types]
2140      * doesn't belong to the source types of the [relationship_types].
2141      * * Otherwise:
2142      * it snapshots the supported relationships for all [asset_types] or returns
2143      * an error if any of the [asset_types] has no relationship support.
2144      * An unspecified asset types field means all supported asset_types.
2145      * See [Introduction to Cloud Asset
2146      * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
2147      * supported asset types and relationship types.
2148      * </pre>
2149      *
2150      * <code>repeated string relationship_types = 6;</code>
2151      *
2152      * @param value The relationshipTypes to add.
2153      * @return This builder for chaining.
2154      */
addRelationshipTypes(java.lang.String value)2155     public Builder addRelationshipTypes(java.lang.String value) {
2156       if (value == null) {
2157         throw new NullPointerException();
2158       }
2159       ensureRelationshipTypesIsMutable();
2160       relationshipTypes_.add(value);
2161       onChanged();
2162       return this;
2163     }
2164     /**
2165      *
2166      *
2167      * <pre>
2168      * A list of relationship types to export, for example:
2169      * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
2170      * content_type=RELATIONSHIP.
2171      * * If specified:
2172      * it snapshots specified relationships. It returns an error if
2173      * any of the [relationship_types] doesn't belong to the supported
2174      * relationship types of the [asset_types] or if any of the [asset_types]
2175      * doesn't belong to the source types of the [relationship_types].
2176      * * Otherwise:
2177      * it snapshots the supported relationships for all [asset_types] or returns
2178      * an error if any of the [asset_types] has no relationship support.
2179      * An unspecified asset types field means all supported asset_types.
2180      * See [Introduction to Cloud Asset
2181      * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
2182      * supported asset types and relationship types.
2183      * </pre>
2184      *
2185      * <code>repeated string relationship_types = 6;</code>
2186      *
2187      * @param values The relationshipTypes to add.
2188      * @return This builder for chaining.
2189      */
addAllRelationshipTypes(java.lang.Iterable<java.lang.String> values)2190     public Builder addAllRelationshipTypes(java.lang.Iterable<java.lang.String> values) {
2191       ensureRelationshipTypesIsMutable();
2192       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relationshipTypes_);
2193       onChanged();
2194       return this;
2195     }
2196     /**
2197      *
2198      *
2199      * <pre>
2200      * A list of relationship types to export, for example:
2201      * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
2202      * content_type=RELATIONSHIP.
2203      * * If specified:
2204      * it snapshots specified relationships. It returns an error if
2205      * any of the [relationship_types] doesn't belong to the supported
2206      * relationship types of the [asset_types] or if any of the [asset_types]
2207      * doesn't belong to the source types of the [relationship_types].
2208      * * Otherwise:
2209      * it snapshots the supported relationships for all [asset_types] or returns
2210      * an error if any of the [asset_types] has no relationship support.
2211      * An unspecified asset types field means all supported asset_types.
2212      * See [Introduction to Cloud Asset
2213      * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
2214      * supported asset types and relationship types.
2215      * </pre>
2216      *
2217      * <code>repeated string relationship_types = 6;</code>
2218      *
2219      * @return This builder for chaining.
2220      */
clearRelationshipTypes()2221     public Builder clearRelationshipTypes() {
2222       relationshipTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
2223       bitField0_ = (bitField0_ & ~0x00000020);
2224       onChanged();
2225       return this;
2226     }
2227     /**
2228      *
2229      *
2230      * <pre>
2231      * A list of relationship types to export, for example:
2232      * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
2233      * content_type=RELATIONSHIP.
2234      * * If specified:
2235      * it snapshots specified relationships. It returns an error if
2236      * any of the [relationship_types] doesn't belong to the supported
2237      * relationship types of the [asset_types] or if any of the [asset_types]
2238      * doesn't belong to the source types of the [relationship_types].
2239      * * Otherwise:
2240      * it snapshots the supported relationships for all [asset_types] or returns
2241      * an error if any of the [asset_types] has no relationship support.
2242      * An unspecified asset types field means all supported asset_types.
2243      * See [Introduction to Cloud Asset
2244      * Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
2245      * supported asset types and relationship types.
2246      * </pre>
2247      *
2248      * <code>repeated string relationship_types = 6;</code>
2249      *
2250      * @param value The bytes of the relationshipTypes to add.
2251      * @return This builder for chaining.
2252      */
addRelationshipTypesBytes(com.google.protobuf.ByteString value)2253     public Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value) {
2254       if (value == null) {
2255         throw new NullPointerException();
2256       }
2257       checkByteStringIsUtf8(value);
2258       ensureRelationshipTypesIsMutable();
2259       relationshipTypes_.add(value);
2260       onChanged();
2261       return this;
2262     }
2263 
2264     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2265     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2266       return super.setUnknownFields(unknownFields);
2267     }
2268 
2269     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2270     public final Builder mergeUnknownFields(
2271         final com.google.protobuf.UnknownFieldSet unknownFields) {
2272       return super.mergeUnknownFields(unknownFields);
2273     }
2274 
2275     // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ExportAssetsRequest)
2276   }
2277 
2278   // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ExportAssetsRequest)
2279   private static final com.google.cloud.asset.v1.ExportAssetsRequest DEFAULT_INSTANCE;
2280 
2281   static {
2282     DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ExportAssetsRequest();
2283   }
2284 
getDefaultInstance()2285   public static com.google.cloud.asset.v1.ExportAssetsRequest getDefaultInstance() {
2286     return DEFAULT_INSTANCE;
2287   }
2288 
2289   private static final com.google.protobuf.Parser<ExportAssetsRequest> PARSER =
2290       new com.google.protobuf.AbstractParser<ExportAssetsRequest>() {
2291         @java.lang.Override
2292         public ExportAssetsRequest parsePartialFrom(
2293             com.google.protobuf.CodedInputStream input,
2294             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2295             throws com.google.protobuf.InvalidProtocolBufferException {
2296           Builder builder = newBuilder();
2297           try {
2298             builder.mergeFrom(input, extensionRegistry);
2299           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2300             throw e.setUnfinishedMessage(builder.buildPartial());
2301           } catch (com.google.protobuf.UninitializedMessageException e) {
2302             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2303           } catch (java.io.IOException e) {
2304             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2305                 .setUnfinishedMessage(builder.buildPartial());
2306           }
2307           return builder.buildPartial();
2308         }
2309       };
2310 
parser()2311   public static com.google.protobuf.Parser<ExportAssetsRequest> parser() {
2312     return PARSER;
2313   }
2314 
2315   @java.lang.Override
getParserForType()2316   public com.google.protobuf.Parser<ExportAssetsRequest> getParserForType() {
2317     return PARSER;
2318   }
2319 
2320   @java.lang.Override
getDefaultInstanceForType()2321   public com.google.cloud.asset.v1.ExportAssetsRequest getDefaultInstanceForType() {
2322     return DEFAULT_INSTANCE;
2323   }
2324 }
2325