• 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/v1p7beta1/asset_service.proto
18 
19 package com.google.cloud.asset.v1p7beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Output configuration for export assets destination.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.asset.v1p7beta1.OutputConfig}
29  */
30 public final class OutputConfig extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.asset.v1p7beta1.OutputConfig)
33     OutputConfigOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use OutputConfig.newBuilder() to construct.
OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private OutputConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
OutputConfig()40   private OutputConfig() {}
41 
42   @java.lang.Override
43   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)44   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
45     return new OutputConfig();
46   }
47 
48   @java.lang.Override
getUnknownFields()49   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
50     return this.unknownFields;
51   }
52 
getDescriptor()53   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
54     return com.google.cloud.asset.v1p7beta1.AssetServiceProto
55         .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor;
56   }
57 
58   @java.lang.Override
59   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()60       internalGetFieldAccessorTable() {
61     return com.google.cloud.asset.v1p7beta1.AssetServiceProto
62         .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable
63         .ensureFieldAccessorsInitialized(
64             com.google.cloud.asset.v1p7beta1.OutputConfig.class,
65             com.google.cloud.asset.v1p7beta1.OutputConfig.Builder.class);
66   }
67 
68   private int destinationCase_ = 0;
69   private java.lang.Object destination_;
70 
71   public enum DestinationCase
72       implements
73           com.google.protobuf.Internal.EnumLite,
74           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
75     GCS_DESTINATION(1),
76     BIGQUERY_DESTINATION(2),
77     DESTINATION_NOT_SET(0);
78     private final int value;
79 
DestinationCase(int value)80     private DestinationCase(int value) {
81       this.value = value;
82     }
83     /**
84      * @param value The number of the enum to look for.
85      * @return The enum associated with the given number.
86      * @deprecated Use {@link #forNumber(int)} instead.
87      */
88     @java.lang.Deprecated
valueOf(int value)89     public static DestinationCase valueOf(int value) {
90       return forNumber(value);
91     }
92 
forNumber(int value)93     public static DestinationCase forNumber(int value) {
94       switch (value) {
95         case 1:
96           return GCS_DESTINATION;
97         case 2:
98           return BIGQUERY_DESTINATION;
99         case 0:
100           return DESTINATION_NOT_SET;
101         default:
102           return null;
103       }
104     }
105 
getNumber()106     public int getNumber() {
107       return this.value;
108     }
109   };
110 
getDestinationCase()111   public DestinationCase getDestinationCase() {
112     return DestinationCase.forNumber(destinationCase_);
113   }
114 
115   public static final int GCS_DESTINATION_FIELD_NUMBER = 1;
116   /**
117    *
118    *
119    * <pre>
120    * Destination on Cloud Storage.
121    * </pre>
122    *
123    * <code>.google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1;</code>
124    *
125    * @return Whether the gcsDestination field is set.
126    */
127   @java.lang.Override
hasGcsDestination()128   public boolean hasGcsDestination() {
129     return destinationCase_ == 1;
130   }
131   /**
132    *
133    *
134    * <pre>
135    * Destination on Cloud Storage.
136    * </pre>
137    *
138    * <code>.google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1;</code>
139    *
140    * @return The gcsDestination.
141    */
142   @java.lang.Override
getGcsDestination()143   public com.google.cloud.asset.v1p7beta1.GcsDestination getGcsDestination() {
144     if (destinationCase_ == 1) {
145       return (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_;
146     }
147     return com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance();
148   }
149   /**
150    *
151    *
152    * <pre>
153    * Destination on Cloud Storage.
154    * </pre>
155    *
156    * <code>.google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1;</code>
157    */
158   @java.lang.Override
getGcsDestinationOrBuilder()159   public com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
160     if (destinationCase_ == 1) {
161       return (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_;
162     }
163     return com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance();
164   }
165 
166   public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2;
167   /**
168    *
169    *
170    * <pre>
171    * Destination on BigQuery. The output table stores the fields in asset
172    * proto as columns in BigQuery.
173    * </pre>
174    *
175    * <code>.google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;</code>
176    *
177    * @return Whether the bigqueryDestination field is set.
178    */
179   @java.lang.Override
hasBigqueryDestination()180   public boolean hasBigqueryDestination() {
181     return destinationCase_ == 2;
182   }
183   /**
184    *
185    *
186    * <pre>
187    * Destination on BigQuery. The output table stores the fields in asset
188    * proto as columns in BigQuery.
189    * </pre>
190    *
191    * <code>.google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;</code>
192    *
193    * @return The bigqueryDestination.
194    */
195   @java.lang.Override
getBigqueryDestination()196   public com.google.cloud.asset.v1p7beta1.BigQueryDestination getBigqueryDestination() {
197     if (destinationCase_ == 2) {
198       return (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_;
199     }
200     return com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance();
201   }
202   /**
203    *
204    *
205    * <pre>
206    * Destination on BigQuery. The output table stores the fields in asset
207    * proto as columns in BigQuery.
208    * </pre>
209    *
210    * <code>.google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;</code>
211    */
212   @java.lang.Override
213   public com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder
getBigqueryDestinationOrBuilder()214       getBigqueryDestinationOrBuilder() {
215     if (destinationCase_ == 2) {
216       return (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_;
217     }
218     return com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance();
219   }
220 
221   private byte memoizedIsInitialized = -1;
222 
223   @java.lang.Override
isInitialized()224   public final boolean isInitialized() {
225     byte isInitialized = memoizedIsInitialized;
226     if (isInitialized == 1) return true;
227     if (isInitialized == 0) return false;
228 
229     memoizedIsInitialized = 1;
230     return true;
231   }
232 
233   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)234   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
235     if (destinationCase_ == 1) {
236       output.writeMessage(1, (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_);
237     }
238     if (destinationCase_ == 2) {
239       output.writeMessage(2, (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_);
240     }
241     getUnknownFields().writeTo(output);
242   }
243 
244   @java.lang.Override
getSerializedSize()245   public int getSerializedSize() {
246     int size = memoizedSize;
247     if (size != -1) return size;
248 
249     size = 0;
250     if (destinationCase_ == 1) {
251       size +=
252           com.google.protobuf.CodedOutputStream.computeMessageSize(
253               1, (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_);
254     }
255     if (destinationCase_ == 2) {
256       size +=
257           com.google.protobuf.CodedOutputStream.computeMessageSize(
258               2, (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_);
259     }
260     size += getUnknownFields().getSerializedSize();
261     memoizedSize = size;
262     return size;
263   }
264 
265   @java.lang.Override
equals(final java.lang.Object obj)266   public boolean equals(final java.lang.Object obj) {
267     if (obj == this) {
268       return true;
269     }
270     if (!(obj instanceof com.google.cloud.asset.v1p7beta1.OutputConfig)) {
271       return super.equals(obj);
272     }
273     com.google.cloud.asset.v1p7beta1.OutputConfig other =
274         (com.google.cloud.asset.v1p7beta1.OutputConfig) obj;
275 
276     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
277     switch (destinationCase_) {
278       case 1:
279         if (!getGcsDestination().equals(other.getGcsDestination())) return false;
280         break;
281       case 2:
282         if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false;
283         break;
284       case 0:
285       default:
286     }
287     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
288     return true;
289   }
290 
291   @java.lang.Override
hashCode()292   public int hashCode() {
293     if (memoizedHashCode != 0) {
294       return memoizedHashCode;
295     }
296     int hash = 41;
297     hash = (19 * hash) + getDescriptor().hashCode();
298     switch (destinationCase_) {
299       case 1:
300         hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER;
301         hash = (53 * hash) + getGcsDestination().hashCode();
302         break;
303       case 2:
304         hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER;
305         hash = (53 * hash) + getBigqueryDestination().hashCode();
306         break;
307       case 0:
308       default:
309     }
310     hash = (29 * hash) + getUnknownFields().hashCode();
311     memoizedHashCode = hash;
312     return hash;
313   }
314 
parseFrom(java.nio.ByteBuffer data)315   public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(java.nio.ByteBuffer data)
316       throws com.google.protobuf.InvalidProtocolBufferException {
317     return PARSER.parseFrom(data);
318   }
319 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)320   public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
321       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
322       throws com.google.protobuf.InvalidProtocolBufferException {
323     return PARSER.parseFrom(data, extensionRegistry);
324   }
325 
parseFrom( com.google.protobuf.ByteString data)326   public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
327       com.google.protobuf.ByteString data)
328       throws com.google.protobuf.InvalidProtocolBufferException {
329     return PARSER.parseFrom(data);
330   }
331 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)332   public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
333       com.google.protobuf.ByteString data,
334       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
335       throws com.google.protobuf.InvalidProtocolBufferException {
336     return PARSER.parseFrom(data, extensionRegistry);
337   }
338 
parseFrom(byte[] data)339   public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(byte[] data)
340       throws com.google.protobuf.InvalidProtocolBufferException {
341     return PARSER.parseFrom(data);
342   }
343 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)344   public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
345       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
346       throws com.google.protobuf.InvalidProtocolBufferException {
347     return PARSER.parseFrom(data, extensionRegistry);
348   }
349 
parseFrom(java.io.InputStream input)350   public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(java.io.InputStream input)
351       throws java.io.IOException {
352     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
353   }
354 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)355   public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
356       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
357       throws java.io.IOException {
358     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
359         PARSER, input, extensionRegistry);
360   }
361 
parseDelimitedFrom( java.io.InputStream input)362   public static com.google.cloud.asset.v1p7beta1.OutputConfig parseDelimitedFrom(
363       java.io.InputStream input) throws java.io.IOException {
364     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
365   }
366 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)367   public static com.google.cloud.asset.v1p7beta1.OutputConfig parseDelimitedFrom(
368       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
369       throws java.io.IOException {
370     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
371         PARSER, input, extensionRegistry);
372   }
373 
parseFrom( com.google.protobuf.CodedInputStream input)374   public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
375       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
376     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
377   }
378 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)379   public static com.google.cloud.asset.v1p7beta1.OutputConfig parseFrom(
380       com.google.protobuf.CodedInputStream input,
381       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
382       throws java.io.IOException {
383     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
384         PARSER, input, extensionRegistry);
385   }
386 
387   @java.lang.Override
newBuilderForType()388   public Builder newBuilderForType() {
389     return newBuilder();
390   }
391 
newBuilder()392   public static Builder newBuilder() {
393     return DEFAULT_INSTANCE.toBuilder();
394   }
395 
newBuilder(com.google.cloud.asset.v1p7beta1.OutputConfig prototype)396   public static Builder newBuilder(com.google.cloud.asset.v1p7beta1.OutputConfig prototype) {
397     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
398   }
399 
400   @java.lang.Override
toBuilder()401   public Builder toBuilder() {
402     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
403   }
404 
405   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)406   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
407     Builder builder = new Builder(parent);
408     return builder;
409   }
410   /**
411    *
412    *
413    * <pre>
414    * Output configuration for export assets destination.
415    * </pre>
416    *
417    * Protobuf type {@code google.cloud.asset.v1p7beta1.OutputConfig}
418    */
419   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
420       implements
421       // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1p7beta1.OutputConfig)
422       com.google.cloud.asset.v1p7beta1.OutputConfigOrBuilder {
getDescriptor()423     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
424       return com.google.cloud.asset.v1p7beta1.AssetServiceProto
425           .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor;
426     }
427 
428     @java.lang.Override
429     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()430         internalGetFieldAccessorTable() {
431       return com.google.cloud.asset.v1p7beta1.AssetServiceProto
432           .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_fieldAccessorTable
433           .ensureFieldAccessorsInitialized(
434               com.google.cloud.asset.v1p7beta1.OutputConfig.class,
435               com.google.cloud.asset.v1p7beta1.OutputConfig.Builder.class);
436     }
437 
438     // Construct using com.google.cloud.asset.v1p7beta1.OutputConfig.newBuilder()
Builder()439     private Builder() {}
440 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)441     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
442       super(parent);
443     }
444 
445     @java.lang.Override
clear()446     public Builder clear() {
447       super.clear();
448       bitField0_ = 0;
449       if (gcsDestinationBuilder_ != null) {
450         gcsDestinationBuilder_.clear();
451       }
452       if (bigqueryDestinationBuilder_ != null) {
453         bigqueryDestinationBuilder_.clear();
454       }
455       destinationCase_ = 0;
456       destination_ = null;
457       return this;
458     }
459 
460     @java.lang.Override
getDescriptorForType()461     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
462       return com.google.cloud.asset.v1p7beta1.AssetServiceProto
463           .internal_static_google_cloud_asset_v1p7beta1_OutputConfig_descriptor;
464     }
465 
466     @java.lang.Override
getDefaultInstanceForType()467     public com.google.cloud.asset.v1p7beta1.OutputConfig getDefaultInstanceForType() {
468       return com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance();
469     }
470 
471     @java.lang.Override
build()472     public com.google.cloud.asset.v1p7beta1.OutputConfig build() {
473       com.google.cloud.asset.v1p7beta1.OutputConfig result = buildPartial();
474       if (!result.isInitialized()) {
475         throw newUninitializedMessageException(result);
476       }
477       return result;
478     }
479 
480     @java.lang.Override
buildPartial()481     public com.google.cloud.asset.v1p7beta1.OutputConfig buildPartial() {
482       com.google.cloud.asset.v1p7beta1.OutputConfig result =
483           new com.google.cloud.asset.v1p7beta1.OutputConfig(this);
484       if (bitField0_ != 0) {
485         buildPartial0(result);
486       }
487       buildPartialOneofs(result);
488       onBuilt();
489       return result;
490     }
491 
buildPartial0(com.google.cloud.asset.v1p7beta1.OutputConfig result)492     private void buildPartial0(com.google.cloud.asset.v1p7beta1.OutputConfig result) {
493       int from_bitField0_ = bitField0_;
494     }
495 
buildPartialOneofs(com.google.cloud.asset.v1p7beta1.OutputConfig result)496     private void buildPartialOneofs(com.google.cloud.asset.v1p7beta1.OutputConfig result) {
497       result.destinationCase_ = destinationCase_;
498       result.destination_ = this.destination_;
499       if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) {
500         result.destination_ = gcsDestinationBuilder_.build();
501       }
502       if (destinationCase_ == 2 && bigqueryDestinationBuilder_ != null) {
503         result.destination_ = bigqueryDestinationBuilder_.build();
504       }
505     }
506 
507     @java.lang.Override
clone()508     public Builder clone() {
509       return super.clone();
510     }
511 
512     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)513     public Builder setField(
514         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
515       return super.setField(field, value);
516     }
517 
518     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)519     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
520       return super.clearField(field);
521     }
522 
523     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)524     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
525       return super.clearOneof(oneof);
526     }
527 
528     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)529     public Builder setRepeatedField(
530         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
531       return super.setRepeatedField(field, index, value);
532     }
533 
534     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)535     public Builder addRepeatedField(
536         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
537       return super.addRepeatedField(field, value);
538     }
539 
540     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)541     public Builder mergeFrom(com.google.protobuf.Message other) {
542       if (other instanceof com.google.cloud.asset.v1p7beta1.OutputConfig) {
543         return mergeFrom((com.google.cloud.asset.v1p7beta1.OutputConfig) other);
544       } else {
545         super.mergeFrom(other);
546         return this;
547       }
548     }
549 
mergeFrom(com.google.cloud.asset.v1p7beta1.OutputConfig other)550     public Builder mergeFrom(com.google.cloud.asset.v1p7beta1.OutputConfig other) {
551       if (other == com.google.cloud.asset.v1p7beta1.OutputConfig.getDefaultInstance()) return this;
552       switch (other.getDestinationCase()) {
553         case GCS_DESTINATION:
554           {
555             mergeGcsDestination(other.getGcsDestination());
556             break;
557           }
558         case BIGQUERY_DESTINATION:
559           {
560             mergeBigqueryDestination(other.getBigqueryDestination());
561             break;
562           }
563         case DESTINATION_NOT_SET:
564           {
565             break;
566           }
567       }
568       this.mergeUnknownFields(other.getUnknownFields());
569       onChanged();
570       return this;
571     }
572 
573     @java.lang.Override
isInitialized()574     public final boolean isInitialized() {
575       return true;
576     }
577 
578     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)579     public Builder mergeFrom(
580         com.google.protobuf.CodedInputStream input,
581         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
582         throws java.io.IOException {
583       if (extensionRegistry == null) {
584         throw new java.lang.NullPointerException();
585       }
586       try {
587         boolean done = false;
588         while (!done) {
589           int tag = input.readTag();
590           switch (tag) {
591             case 0:
592               done = true;
593               break;
594             case 10:
595               {
596                 input.readMessage(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry);
597                 destinationCase_ = 1;
598                 break;
599               } // case 10
600             case 18:
601               {
602                 input.readMessage(
603                     getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry);
604                 destinationCase_ = 2;
605                 break;
606               } // case 18
607             default:
608               {
609                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
610                   done = true; // was an endgroup tag
611                 }
612                 break;
613               } // default:
614           } // switch (tag)
615         } // while (!done)
616       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
617         throw e.unwrapIOException();
618       } finally {
619         onChanged();
620       } // finally
621       return this;
622     }
623 
624     private int destinationCase_ = 0;
625     private java.lang.Object destination_;
626 
getDestinationCase()627     public DestinationCase getDestinationCase() {
628       return DestinationCase.forNumber(destinationCase_);
629     }
630 
clearDestination()631     public Builder clearDestination() {
632       destinationCase_ = 0;
633       destination_ = null;
634       onChanged();
635       return this;
636     }
637 
638     private int bitField0_;
639 
640     private com.google.protobuf.SingleFieldBuilderV3<
641             com.google.cloud.asset.v1p7beta1.GcsDestination,
642             com.google.cloud.asset.v1p7beta1.GcsDestination.Builder,
643             com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder>
644         gcsDestinationBuilder_;
645     /**
646      *
647      *
648      * <pre>
649      * Destination on Cloud Storage.
650      * </pre>
651      *
652      * <code>.google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1;</code>
653      *
654      * @return Whether the gcsDestination field is set.
655      */
656     @java.lang.Override
hasGcsDestination()657     public boolean hasGcsDestination() {
658       return destinationCase_ == 1;
659     }
660     /**
661      *
662      *
663      * <pre>
664      * Destination on Cloud Storage.
665      * </pre>
666      *
667      * <code>.google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1;</code>
668      *
669      * @return The gcsDestination.
670      */
671     @java.lang.Override
getGcsDestination()672     public com.google.cloud.asset.v1p7beta1.GcsDestination getGcsDestination() {
673       if (gcsDestinationBuilder_ == null) {
674         if (destinationCase_ == 1) {
675           return (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_;
676         }
677         return com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance();
678       } else {
679         if (destinationCase_ == 1) {
680           return gcsDestinationBuilder_.getMessage();
681         }
682         return com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance();
683       }
684     }
685     /**
686      *
687      *
688      * <pre>
689      * Destination on Cloud Storage.
690      * </pre>
691      *
692      * <code>.google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1;</code>
693      */
setGcsDestination(com.google.cloud.asset.v1p7beta1.GcsDestination value)694     public Builder setGcsDestination(com.google.cloud.asset.v1p7beta1.GcsDestination value) {
695       if (gcsDestinationBuilder_ == null) {
696         if (value == null) {
697           throw new NullPointerException();
698         }
699         destination_ = value;
700         onChanged();
701       } else {
702         gcsDestinationBuilder_.setMessage(value);
703       }
704       destinationCase_ = 1;
705       return this;
706     }
707     /**
708      *
709      *
710      * <pre>
711      * Destination on Cloud Storage.
712      * </pre>
713      *
714      * <code>.google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1;</code>
715      */
setGcsDestination( com.google.cloud.asset.v1p7beta1.GcsDestination.Builder builderForValue)716     public Builder setGcsDestination(
717         com.google.cloud.asset.v1p7beta1.GcsDestination.Builder builderForValue) {
718       if (gcsDestinationBuilder_ == null) {
719         destination_ = builderForValue.build();
720         onChanged();
721       } else {
722         gcsDestinationBuilder_.setMessage(builderForValue.build());
723       }
724       destinationCase_ = 1;
725       return this;
726     }
727     /**
728      *
729      *
730      * <pre>
731      * Destination on Cloud Storage.
732      * </pre>
733      *
734      * <code>.google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1;</code>
735      */
mergeGcsDestination(com.google.cloud.asset.v1p7beta1.GcsDestination value)736     public Builder mergeGcsDestination(com.google.cloud.asset.v1p7beta1.GcsDestination value) {
737       if (gcsDestinationBuilder_ == null) {
738         if (destinationCase_ == 1
739             && destination_
740                 != com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance()) {
741           destination_ =
742               com.google.cloud.asset.v1p7beta1.GcsDestination.newBuilder(
743                       (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_)
744                   .mergeFrom(value)
745                   .buildPartial();
746         } else {
747           destination_ = value;
748         }
749         onChanged();
750       } else {
751         if (destinationCase_ == 1) {
752           gcsDestinationBuilder_.mergeFrom(value);
753         } else {
754           gcsDestinationBuilder_.setMessage(value);
755         }
756       }
757       destinationCase_ = 1;
758       return this;
759     }
760     /**
761      *
762      *
763      * <pre>
764      * Destination on Cloud Storage.
765      * </pre>
766      *
767      * <code>.google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1;</code>
768      */
clearGcsDestination()769     public Builder clearGcsDestination() {
770       if (gcsDestinationBuilder_ == null) {
771         if (destinationCase_ == 1) {
772           destinationCase_ = 0;
773           destination_ = null;
774           onChanged();
775         }
776       } else {
777         if (destinationCase_ == 1) {
778           destinationCase_ = 0;
779           destination_ = null;
780         }
781         gcsDestinationBuilder_.clear();
782       }
783       return this;
784     }
785     /**
786      *
787      *
788      * <pre>
789      * Destination on Cloud Storage.
790      * </pre>
791      *
792      * <code>.google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1;</code>
793      */
getGcsDestinationBuilder()794     public com.google.cloud.asset.v1p7beta1.GcsDestination.Builder getGcsDestinationBuilder() {
795       return getGcsDestinationFieldBuilder().getBuilder();
796     }
797     /**
798      *
799      *
800      * <pre>
801      * Destination on Cloud Storage.
802      * </pre>
803      *
804      * <code>.google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1;</code>
805      */
806     @java.lang.Override
getGcsDestinationOrBuilder()807     public com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
808       if ((destinationCase_ == 1) && (gcsDestinationBuilder_ != null)) {
809         return gcsDestinationBuilder_.getMessageOrBuilder();
810       } else {
811         if (destinationCase_ == 1) {
812           return (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_;
813         }
814         return com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance();
815       }
816     }
817     /**
818      *
819      *
820      * <pre>
821      * Destination on Cloud Storage.
822      * </pre>
823      *
824      * <code>.google.cloud.asset.v1p7beta1.GcsDestination gcs_destination = 1;</code>
825      */
826     private com.google.protobuf.SingleFieldBuilderV3<
827             com.google.cloud.asset.v1p7beta1.GcsDestination,
828             com.google.cloud.asset.v1p7beta1.GcsDestination.Builder,
829             com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder>
getGcsDestinationFieldBuilder()830         getGcsDestinationFieldBuilder() {
831       if (gcsDestinationBuilder_ == null) {
832         if (!(destinationCase_ == 1)) {
833           destination_ = com.google.cloud.asset.v1p7beta1.GcsDestination.getDefaultInstance();
834         }
835         gcsDestinationBuilder_ =
836             new com.google.protobuf.SingleFieldBuilderV3<
837                 com.google.cloud.asset.v1p7beta1.GcsDestination,
838                 com.google.cloud.asset.v1p7beta1.GcsDestination.Builder,
839                 com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder>(
840                 (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_,
841                 getParentForChildren(),
842                 isClean());
843         destination_ = null;
844       }
845       destinationCase_ = 1;
846       onChanged();
847       return gcsDestinationBuilder_;
848     }
849 
850     private com.google.protobuf.SingleFieldBuilderV3<
851             com.google.cloud.asset.v1p7beta1.BigQueryDestination,
852             com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder,
853             com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder>
854         bigqueryDestinationBuilder_;
855     /**
856      *
857      *
858      * <pre>
859      * Destination on BigQuery. The output table stores the fields in asset
860      * proto as columns in BigQuery.
861      * </pre>
862      *
863      * <code>.google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;</code>
864      *
865      * @return Whether the bigqueryDestination field is set.
866      */
867     @java.lang.Override
hasBigqueryDestination()868     public boolean hasBigqueryDestination() {
869       return destinationCase_ == 2;
870     }
871     /**
872      *
873      *
874      * <pre>
875      * Destination on BigQuery. The output table stores the fields in asset
876      * proto as columns in BigQuery.
877      * </pre>
878      *
879      * <code>.google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;</code>
880      *
881      * @return The bigqueryDestination.
882      */
883     @java.lang.Override
getBigqueryDestination()884     public com.google.cloud.asset.v1p7beta1.BigQueryDestination getBigqueryDestination() {
885       if (bigqueryDestinationBuilder_ == null) {
886         if (destinationCase_ == 2) {
887           return (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_;
888         }
889         return com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance();
890       } else {
891         if (destinationCase_ == 2) {
892           return bigqueryDestinationBuilder_.getMessage();
893         }
894         return com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance();
895       }
896     }
897     /**
898      *
899      *
900      * <pre>
901      * Destination on BigQuery. The output table stores the fields in asset
902      * proto as columns in BigQuery.
903      * </pre>
904      *
905      * <code>.google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;</code>
906      */
setBigqueryDestination( com.google.cloud.asset.v1p7beta1.BigQueryDestination value)907     public Builder setBigqueryDestination(
908         com.google.cloud.asset.v1p7beta1.BigQueryDestination value) {
909       if (bigqueryDestinationBuilder_ == null) {
910         if (value == null) {
911           throw new NullPointerException();
912         }
913         destination_ = value;
914         onChanged();
915       } else {
916         bigqueryDestinationBuilder_.setMessage(value);
917       }
918       destinationCase_ = 2;
919       return this;
920     }
921     /**
922      *
923      *
924      * <pre>
925      * Destination on BigQuery. The output table stores the fields in asset
926      * proto as columns in BigQuery.
927      * </pre>
928      *
929      * <code>.google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;</code>
930      */
setBigqueryDestination( com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder builderForValue)931     public Builder setBigqueryDestination(
932         com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder builderForValue) {
933       if (bigqueryDestinationBuilder_ == null) {
934         destination_ = builderForValue.build();
935         onChanged();
936       } else {
937         bigqueryDestinationBuilder_.setMessage(builderForValue.build());
938       }
939       destinationCase_ = 2;
940       return this;
941     }
942     /**
943      *
944      *
945      * <pre>
946      * Destination on BigQuery. The output table stores the fields in asset
947      * proto as columns in BigQuery.
948      * </pre>
949      *
950      * <code>.google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;</code>
951      */
mergeBigqueryDestination( com.google.cloud.asset.v1p7beta1.BigQueryDestination value)952     public Builder mergeBigqueryDestination(
953         com.google.cloud.asset.v1p7beta1.BigQueryDestination value) {
954       if (bigqueryDestinationBuilder_ == null) {
955         if (destinationCase_ == 2
956             && destination_
957                 != com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance()) {
958           destination_ =
959               com.google.cloud.asset.v1p7beta1.BigQueryDestination.newBuilder(
960                       (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_)
961                   .mergeFrom(value)
962                   .buildPartial();
963         } else {
964           destination_ = value;
965         }
966         onChanged();
967       } else {
968         if (destinationCase_ == 2) {
969           bigqueryDestinationBuilder_.mergeFrom(value);
970         } else {
971           bigqueryDestinationBuilder_.setMessage(value);
972         }
973       }
974       destinationCase_ = 2;
975       return this;
976     }
977     /**
978      *
979      *
980      * <pre>
981      * Destination on BigQuery. The output table stores the fields in asset
982      * proto as columns in BigQuery.
983      * </pre>
984      *
985      * <code>.google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;</code>
986      */
clearBigqueryDestination()987     public Builder clearBigqueryDestination() {
988       if (bigqueryDestinationBuilder_ == null) {
989         if (destinationCase_ == 2) {
990           destinationCase_ = 0;
991           destination_ = null;
992           onChanged();
993         }
994       } else {
995         if (destinationCase_ == 2) {
996           destinationCase_ = 0;
997           destination_ = null;
998         }
999         bigqueryDestinationBuilder_.clear();
1000       }
1001       return this;
1002     }
1003     /**
1004      *
1005      *
1006      * <pre>
1007      * Destination on BigQuery. The output table stores the fields in asset
1008      * proto as columns in BigQuery.
1009      * </pre>
1010      *
1011      * <code>.google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;</code>
1012      */
1013     public com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder
getBigqueryDestinationBuilder()1014         getBigqueryDestinationBuilder() {
1015       return getBigqueryDestinationFieldBuilder().getBuilder();
1016     }
1017     /**
1018      *
1019      *
1020      * <pre>
1021      * Destination on BigQuery. The output table stores the fields in asset
1022      * proto as columns in BigQuery.
1023      * </pre>
1024      *
1025      * <code>.google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;</code>
1026      */
1027     @java.lang.Override
1028     public com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder
getBigqueryDestinationOrBuilder()1029         getBigqueryDestinationOrBuilder() {
1030       if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) {
1031         return bigqueryDestinationBuilder_.getMessageOrBuilder();
1032       } else {
1033         if (destinationCase_ == 2) {
1034           return (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_;
1035         }
1036         return com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance();
1037       }
1038     }
1039     /**
1040      *
1041      *
1042      * <pre>
1043      * Destination on BigQuery. The output table stores the fields in asset
1044      * proto as columns in BigQuery.
1045      * </pre>
1046      *
1047      * <code>.google.cloud.asset.v1p7beta1.BigQueryDestination bigquery_destination = 2;</code>
1048      */
1049     private com.google.protobuf.SingleFieldBuilderV3<
1050             com.google.cloud.asset.v1p7beta1.BigQueryDestination,
1051             com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder,
1052             com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder>
getBigqueryDestinationFieldBuilder()1053         getBigqueryDestinationFieldBuilder() {
1054       if (bigqueryDestinationBuilder_ == null) {
1055         if (!(destinationCase_ == 2)) {
1056           destination_ = com.google.cloud.asset.v1p7beta1.BigQueryDestination.getDefaultInstance();
1057         }
1058         bigqueryDestinationBuilder_ =
1059             new com.google.protobuf.SingleFieldBuilderV3<
1060                 com.google.cloud.asset.v1p7beta1.BigQueryDestination,
1061                 com.google.cloud.asset.v1p7beta1.BigQueryDestination.Builder,
1062                 com.google.cloud.asset.v1p7beta1.BigQueryDestinationOrBuilder>(
1063                 (com.google.cloud.asset.v1p7beta1.BigQueryDestination) destination_,
1064                 getParentForChildren(),
1065                 isClean());
1066         destination_ = null;
1067       }
1068       destinationCase_ = 2;
1069       onChanged();
1070       return bigqueryDestinationBuilder_;
1071     }
1072 
1073     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1074     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1075       return super.setUnknownFields(unknownFields);
1076     }
1077 
1078     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1079     public final Builder mergeUnknownFields(
1080         final com.google.protobuf.UnknownFieldSet unknownFields) {
1081       return super.mergeUnknownFields(unknownFields);
1082     }
1083 
1084     // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1p7beta1.OutputConfig)
1085   }
1086 
1087   // @@protoc_insertion_point(class_scope:google.cloud.asset.v1p7beta1.OutputConfig)
1088   private static final com.google.cloud.asset.v1p7beta1.OutputConfig DEFAULT_INSTANCE;
1089 
1090   static {
1091     DEFAULT_INSTANCE = new com.google.cloud.asset.v1p7beta1.OutputConfig();
1092   }
1093 
getDefaultInstance()1094   public static com.google.cloud.asset.v1p7beta1.OutputConfig getDefaultInstance() {
1095     return DEFAULT_INSTANCE;
1096   }
1097 
1098   private static final com.google.protobuf.Parser<OutputConfig> PARSER =
1099       new com.google.protobuf.AbstractParser<OutputConfig>() {
1100         @java.lang.Override
1101         public OutputConfig parsePartialFrom(
1102             com.google.protobuf.CodedInputStream input,
1103             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1104             throws com.google.protobuf.InvalidProtocolBufferException {
1105           Builder builder = newBuilder();
1106           try {
1107             builder.mergeFrom(input, extensionRegistry);
1108           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1109             throw e.setUnfinishedMessage(builder.buildPartial());
1110           } catch (com.google.protobuf.UninitializedMessageException e) {
1111             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1112           } catch (java.io.IOException e) {
1113             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1114                 .setUnfinishedMessage(builder.buildPartial());
1115           }
1116           return builder.buildPartial();
1117         }
1118       };
1119 
parser()1120   public static com.google.protobuf.Parser<OutputConfig> parser() {
1121     return PARSER;
1122   }
1123 
1124   @java.lang.Override
getParserForType()1125   public com.google.protobuf.Parser<OutputConfig> getParserForType() {
1126     return PARSER;
1127   }
1128 
1129   @java.lang.Override
getDefaultInstanceForType()1130   public com.google.cloud.asset.v1p7beta1.OutputConfig getDefaultInstanceForType() {
1131     return DEFAULT_INSTANCE;
1132   }
1133 }
1134