• 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/datacatalog/v1beta1/datacatalog.proto
18 
19 package com.google.cloud.datacatalog.v1beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Entry Metadata.
26  * A Data Catalog Entry resource represents another resource in Google
27  * Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic), or
28  * outside of Google Cloud Platform. Clients can use the `linked_resource` field
29  * in the Entry resource to refer to the original resource ID of the source
30  * system.
31  * An Entry resource contains resource details, such as its schema. An Entry can
32  * also be used to attach flexible metadata, such as a
33  * [Tag][google.cloud.datacatalog.v1beta1.Tag].
34  * </pre>
35  *
36  * Protobuf type {@code google.cloud.datacatalog.v1beta1.Entry}
37  */
38 public final class Entry extends com.google.protobuf.GeneratedMessageV3
39     implements
40     // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Entry)
41     EntryOrBuilder {
42   private static final long serialVersionUID = 0L;
43   // Use Entry.newBuilder() to construct.
Entry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)44   private Entry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
45     super(builder);
46   }
47 
Entry()48   private Entry() {
49     name_ = "";
50     linkedResource_ = "";
51     displayName_ = "";
52     description_ = "";
53   }
54 
55   @java.lang.Override
56   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)57   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
58     return new Entry();
59   }
60 
61   @java.lang.Override
getUnknownFields()62   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
63     return this.unknownFields;
64   }
65 
getDescriptor()66   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
67     return com.google.cloud.datacatalog.v1beta1.Datacatalog
68         .internal_static_google_cloud_datacatalog_v1beta1_Entry_descriptor;
69   }
70 
71   @java.lang.Override
72   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()73       internalGetFieldAccessorTable() {
74     return com.google.cloud.datacatalog.v1beta1.Datacatalog
75         .internal_static_google_cloud_datacatalog_v1beta1_Entry_fieldAccessorTable
76         .ensureFieldAccessorsInitialized(
77             com.google.cloud.datacatalog.v1beta1.Entry.class,
78             com.google.cloud.datacatalog.v1beta1.Entry.Builder.class);
79   }
80 
81   private int entryTypeCase_ = 0;
82   private java.lang.Object entryType_;
83 
84   public enum EntryTypeCase
85       implements
86           com.google.protobuf.Internal.EnumLite,
87           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
88     TYPE(2),
89     USER_SPECIFIED_TYPE(16),
90     ENTRYTYPE_NOT_SET(0);
91     private final int value;
92 
EntryTypeCase(int value)93     private EntryTypeCase(int value) {
94       this.value = value;
95     }
96     /**
97      * @param value The number of the enum to look for.
98      * @return The enum associated with the given number.
99      * @deprecated Use {@link #forNumber(int)} instead.
100      */
101     @java.lang.Deprecated
valueOf(int value)102     public static EntryTypeCase valueOf(int value) {
103       return forNumber(value);
104     }
105 
forNumber(int value)106     public static EntryTypeCase forNumber(int value) {
107       switch (value) {
108         case 2:
109           return TYPE;
110         case 16:
111           return USER_SPECIFIED_TYPE;
112         case 0:
113           return ENTRYTYPE_NOT_SET;
114         default:
115           return null;
116       }
117     }
118 
getNumber()119     public int getNumber() {
120       return this.value;
121     }
122   };
123 
getEntryTypeCase()124   public EntryTypeCase getEntryTypeCase() {
125     return EntryTypeCase.forNumber(entryTypeCase_);
126   }
127 
128   private int systemCase_ = 0;
129   private java.lang.Object system_;
130 
131   public enum SystemCase
132       implements
133           com.google.protobuf.Internal.EnumLite,
134           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
135     INTEGRATED_SYSTEM(17),
136     USER_SPECIFIED_SYSTEM(18),
137     SYSTEM_NOT_SET(0);
138     private final int value;
139 
SystemCase(int value)140     private SystemCase(int value) {
141       this.value = value;
142     }
143     /**
144      * @param value The number of the enum to look for.
145      * @return The enum associated with the given number.
146      * @deprecated Use {@link #forNumber(int)} instead.
147      */
148     @java.lang.Deprecated
valueOf(int value)149     public static SystemCase valueOf(int value) {
150       return forNumber(value);
151     }
152 
forNumber(int value)153     public static SystemCase forNumber(int value) {
154       switch (value) {
155         case 17:
156           return INTEGRATED_SYSTEM;
157         case 18:
158           return USER_SPECIFIED_SYSTEM;
159         case 0:
160           return SYSTEM_NOT_SET;
161         default:
162           return null;
163       }
164     }
165 
getNumber()166     public int getNumber() {
167       return this.value;
168     }
169   };
170 
getSystemCase()171   public SystemCase getSystemCase() {
172     return SystemCase.forNumber(systemCase_);
173   }
174 
175   private int typeSpecCase_ = 0;
176   private java.lang.Object typeSpec_;
177 
178   public enum TypeSpecCase
179       implements
180           com.google.protobuf.Internal.EnumLite,
181           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
182     GCS_FILESET_SPEC(6),
183     BIGQUERY_TABLE_SPEC(12),
184     BIGQUERY_DATE_SHARDED_SPEC(15),
185     TYPESPEC_NOT_SET(0);
186     private final int value;
187 
TypeSpecCase(int value)188     private TypeSpecCase(int value) {
189       this.value = value;
190     }
191     /**
192      * @param value The number of the enum to look for.
193      * @return The enum associated with the given number.
194      * @deprecated Use {@link #forNumber(int)} instead.
195      */
196     @java.lang.Deprecated
valueOf(int value)197     public static TypeSpecCase valueOf(int value) {
198       return forNumber(value);
199     }
200 
forNumber(int value)201     public static TypeSpecCase forNumber(int value) {
202       switch (value) {
203         case 6:
204           return GCS_FILESET_SPEC;
205         case 12:
206           return BIGQUERY_TABLE_SPEC;
207         case 15:
208           return BIGQUERY_DATE_SHARDED_SPEC;
209         case 0:
210           return TYPESPEC_NOT_SET;
211         default:
212           return null;
213       }
214     }
215 
getNumber()216     public int getNumber() {
217       return this.value;
218     }
219   };
220 
getTypeSpecCase()221   public TypeSpecCase getTypeSpecCase() {
222     return TypeSpecCase.forNumber(typeSpecCase_);
223   }
224 
225   public static final int NAME_FIELD_NUMBER = 1;
226 
227   @SuppressWarnings("serial")
228   private volatile java.lang.Object name_ = "";
229   /**
230    *
231    *
232    * <pre>
233    * The Data Catalog resource name of the entry in URL format. Example:
234    * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
235    * Note that this Entry and its child resources may not actually be stored in
236    * the location in this name.
237    * </pre>
238    *
239    * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code>
240    *
241    * @return The name.
242    */
243   @java.lang.Override
getName()244   public java.lang.String getName() {
245     java.lang.Object ref = name_;
246     if (ref instanceof java.lang.String) {
247       return (java.lang.String) ref;
248     } else {
249       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
250       java.lang.String s = bs.toStringUtf8();
251       name_ = s;
252       return s;
253     }
254   }
255   /**
256    *
257    *
258    * <pre>
259    * The Data Catalog resource name of the entry in URL format. Example:
260    * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
261    * Note that this Entry and its child resources may not actually be stored in
262    * the location in this name.
263    * </pre>
264    *
265    * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code>
266    *
267    * @return The bytes for name.
268    */
269   @java.lang.Override
getNameBytes()270   public com.google.protobuf.ByteString getNameBytes() {
271     java.lang.Object ref = name_;
272     if (ref instanceof java.lang.String) {
273       com.google.protobuf.ByteString b =
274           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
275       name_ = b;
276       return b;
277     } else {
278       return (com.google.protobuf.ByteString) ref;
279     }
280   }
281 
282   public static final int LINKED_RESOURCE_FIELD_NUMBER = 9;
283 
284   @SuppressWarnings("serial")
285   private volatile java.lang.Object linkedResource_ = "";
286   /**
287    *
288    *
289    * <pre>
290    * The resource this metadata entry refers to.
291    * For Google Cloud Platform resources, `linked_resource` is the [full name of
292    * the
293    * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
294    * For example, the `linked_resource` for a table resource from BigQuery is:
295    * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
296    * Output only when Entry is of type in the EntryType enum. For entries with
297    * user_specified_type, this field is optional and defaults to an empty
298    * string.
299    * </pre>
300    *
301    * <code>string linked_resource = 9;</code>
302    *
303    * @return The linkedResource.
304    */
305   @java.lang.Override
getLinkedResource()306   public java.lang.String getLinkedResource() {
307     java.lang.Object ref = linkedResource_;
308     if (ref instanceof java.lang.String) {
309       return (java.lang.String) ref;
310     } else {
311       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
312       java.lang.String s = bs.toStringUtf8();
313       linkedResource_ = s;
314       return s;
315     }
316   }
317   /**
318    *
319    *
320    * <pre>
321    * The resource this metadata entry refers to.
322    * For Google Cloud Platform resources, `linked_resource` is the [full name of
323    * the
324    * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
325    * For example, the `linked_resource` for a table resource from BigQuery is:
326    * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
327    * Output only when Entry is of type in the EntryType enum. For entries with
328    * user_specified_type, this field is optional and defaults to an empty
329    * string.
330    * </pre>
331    *
332    * <code>string linked_resource = 9;</code>
333    *
334    * @return The bytes for linkedResource.
335    */
336   @java.lang.Override
getLinkedResourceBytes()337   public com.google.protobuf.ByteString getLinkedResourceBytes() {
338     java.lang.Object ref = linkedResource_;
339     if (ref instanceof java.lang.String) {
340       com.google.protobuf.ByteString b =
341           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
342       linkedResource_ = b;
343       return b;
344     } else {
345       return (com.google.protobuf.ByteString) ref;
346     }
347   }
348 
349   public static final int TYPE_FIELD_NUMBER = 2;
350   /**
351    *
352    *
353    * <pre>
354    * The type of the entry.
355    * Only used for Entries with types in the EntryType enum.
356    * </pre>
357    *
358    * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
359    *
360    * @return Whether the type field is set.
361    */
hasType()362   public boolean hasType() {
363     return entryTypeCase_ == 2;
364   }
365   /**
366    *
367    *
368    * <pre>
369    * The type of the entry.
370    * Only used for Entries with types in the EntryType enum.
371    * </pre>
372    *
373    * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
374    *
375    * @return The enum numeric value on the wire for type.
376    */
getTypeValue()377   public int getTypeValue() {
378     if (entryTypeCase_ == 2) {
379       return (java.lang.Integer) entryType_;
380     }
381     return 0;
382   }
383   /**
384    *
385    *
386    * <pre>
387    * The type of the entry.
388    * Only used for Entries with types in the EntryType enum.
389    * </pre>
390    *
391    * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
392    *
393    * @return The type.
394    */
getType()395   public com.google.cloud.datacatalog.v1beta1.EntryType getType() {
396     if (entryTypeCase_ == 2) {
397       com.google.cloud.datacatalog.v1beta1.EntryType result =
398           com.google.cloud.datacatalog.v1beta1.EntryType.forNumber((java.lang.Integer) entryType_);
399       return result == null ? com.google.cloud.datacatalog.v1beta1.EntryType.UNRECOGNIZED : result;
400     }
401     return com.google.cloud.datacatalog.v1beta1.EntryType.ENTRY_TYPE_UNSPECIFIED;
402   }
403 
404   public static final int USER_SPECIFIED_TYPE_FIELD_NUMBER = 16;
405   /**
406    *
407    *
408    * <pre>
409    * Entry type if it does not fit any of the input-allowed values listed in
410    * `EntryType` enum above. When creating an entry, users should check the
411    * enum values first, if nothing matches the entry to be created, then
412    * provide a custom value, for example "my_special_type".
413    * `user_specified_type` strings must begin with a letter or underscore and
414    * can only contain letters, numbers, and underscores; are case insensitive;
415    * must be at least 1 character and at most 64 characters long.
416    * Currently, only FILESET enum value is allowed. All other entries created
417    * through Data Catalog must use `user_specified_type`.
418    * </pre>
419    *
420    * <code>string user_specified_type = 16;</code>
421    *
422    * @return Whether the userSpecifiedType field is set.
423    */
hasUserSpecifiedType()424   public boolean hasUserSpecifiedType() {
425     return entryTypeCase_ == 16;
426   }
427   /**
428    *
429    *
430    * <pre>
431    * Entry type if it does not fit any of the input-allowed values listed in
432    * `EntryType` enum above. When creating an entry, users should check the
433    * enum values first, if nothing matches the entry to be created, then
434    * provide a custom value, for example "my_special_type".
435    * `user_specified_type` strings must begin with a letter or underscore and
436    * can only contain letters, numbers, and underscores; are case insensitive;
437    * must be at least 1 character and at most 64 characters long.
438    * Currently, only FILESET enum value is allowed. All other entries created
439    * through Data Catalog must use `user_specified_type`.
440    * </pre>
441    *
442    * <code>string user_specified_type = 16;</code>
443    *
444    * @return The userSpecifiedType.
445    */
getUserSpecifiedType()446   public java.lang.String getUserSpecifiedType() {
447     java.lang.Object ref = "";
448     if (entryTypeCase_ == 16) {
449       ref = entryType_;
450     }
451     if (ref instanceof java.lang.String) {
452       return (java.lang.String) ref;
453     } else {
454       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
455       java.lang.String s = bs.toStringUtf8();
456       if (entryTypeCase_ == 16) {
457         entryType_ = s;
458       }
459       return s;
460     }
461   }
462   /**
463    *
464    *
465    * <pre>
466    * Entry type if it does not fit any of the input-allowed values listed in
467    * `EntryType` enum above. When creating an entry, users should check the
468    * enum values first, if nothing matches the entry to be created, then
469    * provide a custom value, for example "my_special_type".
470    * `user_specified_type` strings must begin with a letter or underscore and
471    * can only contain letters, numbers, and underscores; are case insensitive;
472    * must be at least 1 character and at most 64 characters long.
473    * Currently, only FILESET enum value is allowed. All other entries created
474    * through Data Catalog must use `user_specified_type`.
475    * </pre>
476    *
477    * <code>string user_specified_type = 16;</code>
478    *
479    * @return The bytes for userSpecifiedType.
480    */
getUserSpecifiedTypeBytes()481   public com.google.protobuf.ByteString getUserSpecifiedTypeBytes() {
482     java.lang.Object ref = "";
483     if (entryTypeCase_ == 16) {
484       ref = entryType_;
485     }
486     if (ref instanceof java.lang.String) {
487       com.google.protobuf.ByteString b =
488           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
489       if (entryTypeCase_ == 16) {
490         entryType_ = b;
491       }
492       return b;
493     } else {
494       return (com.google.protobuf.ByteString) ref;
495     }
496   }
497 
498   public static final int INTEGRATED_SYSTEM_FIELD_NUMBER = 17;
499   /**
500    *
501    *
502    * <pre>
503    * Output only. This field indicates the entry's source system that Data Catalog
504    * integrates with, such as BigQuery or Pub/Sub.
505    * </pre>
506    *
507    * <code>
508    * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
509    * </code>
510    *
511    * @return Whether the integratedSystem field is set.
512    */
hasIntegratedSystem()513   public boolean hasIntegratedSystem() {
514     return systemCase_ == 17;
515   }
516   /**
517    *
518    *
519    * <pre>
520    * Output only. This field indicates the entry's source system that Data Catalog
521    * integrates with, such as BigQuery or Pub/Sub.
522    * </pre>
523    *
524    * <code>
525    * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
526    * </code>
527    *
528    * @return The enum numeric value on the wire for integratedSystem.
529    */
getIntegratedSystemValue()530   public int getIntegratedSystemValue() {
531     if (systemCase_ == 17) {
532       return (java.lang.Integer) system_;
533     }
534     return 0;
535   }
536   /**
537    *
538    *
539    * <pre>
540    * Output only. This field indicates the entry's source system that Data Catalog
541    * integrates with, such as BigQuery or Pub/Sub.
542    * </pre>
543    *
544    * <code>
545    * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
546    * </code>
547    *
548    * @return The integratedSystem.
549    */
getIntegratedSystem()550   public com.google.cloud.datacatalog.v1beta1.IntegratedSystem getIntegratedSystem() {
551     if (systemCase_ == 17) {
552       com.google.cloud.datacatalog.v1beta1.IntegratedSystem result =
553           com.google.cloud.datacatalog.v1beta1.IntegratedSystem.forNumber(
554               (java.lang.Integer) system_);
555       return result == null
556           ? com.google.cloud.datacatalog.v1beta1.IntegratedSystem.UNRECOGNIZED
557           : result;
558     }
559     return com.google.cloud.datacatalog.v1beta1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED;
560   }
561 
562   public static final int USER_SPECIFIED_SYSTEM_FIELD_NUMBER = 18;
563   /**
564    *
565    *
566    * <pre>
567    * This field indicates the entry's source system that Data Catalog does not
568    * integrate with. `user_specified_system` strings must begin with a letter
569    * or underscore and can only contain letters, numbers, and underscores; are
570    * case insensitive; must be at least 1 character and at most 64 characters
571    * long.
572    * </pre>
573    *
574    * <code>string user_specified_system = 18;</code>
575    *
576    * @return Whether the userSpecifiedSystem field is set.
577    */
hasUserSpecifiedSystem()578   public boolean hasUserSpecifiedSystem() {
579     return systemCase_ == 18;
580   }
581   /**
582    *
583    *
584    * <pre>
585    * This field indicates the entry's source system that Data Catalog does not
586    * integrate with. `user_specified_system` strings must begin with a letter
587    * or underscore and can only contain letters, numbers, and underscores; are
588    * case insensitive; must be at least 1 character and at most 64 characters
589    * long.
590    * </pre>
591    *
592    * <code>string user_specified_system = 18;</code>
593    *
594    * @return The userSpecifiedSystem.
595    */
getUserSpecifiedSystem()596   public java.lang.String getUserSpecifiedSystem() {
597     java.lang.Object ref = "";
598     if (systemCase_ == 18) {
599       ref = system_;
600     }
601     if (ref instanceof java.lang.String) {
602       return (java.lang.String) ref;
603     } else {
604       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
605       java.lang.String s = bs.toStringUtf8();
606       if (systemCase_ == 18) {
607         system_ = s;
608       }
609       return s;
610     }
611   }
612   /**
613    *
614    *
615    * <pre>
616    * This field indicates the entry's source system that Data Catalog does not
617    * integrate with. `user_specified_system` strings must begin with a letter
618    * or underscore and can only contain letters, numbers, and underscores; are
619    * case insensitive; must be at least 1 character and at most 64 characters
620    * long.
621    * </pre>
622    *
623    * <code>string user_specified_system = 18;</code>
624    *
625    * @return The bytes for userSpecifiedSystem.
626    */
getUserSpecifiedSystemBytes()627   public com.google.protobuf.ByteString getUserSpecifiedSystemBytes() {
628     java.lang.Object ref = "";
629     if (systemCase_ == 18) {
630       ref = system_;
631     }
632     if (ref instanceof java.lang.String) {
633       com.google.protobuf.ByteString b =
634           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
635       if (systemCase_ == 18) {
636         system_ = b;
637       }
638       return b;
639     } else {
640       return (com.google.protobuf.ByteString) ref;
641     }
642   }
643 
644   public static final int GCS_FILESET_SPEC_FIELD_NUMBER = 6;
645   /**
646    *
647    *
648    * <pre>
649    * Specification that applies to a Cloud Storage fileset. This is only valid
650    * on entries of type FILESET.
651    * </pre>
652    *
653    * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
654    *
655    * @return Whether the gcsFilesetSpec field is set.
656    */
657   @java.lang.Override
hasGcsFilesetSpec()658   public boolean hasGcsFilesetSpec() {
659     return typeSpecCase_ == 6;
660   }
661   /**
662    *
663    *
664    * <pre>
665    * Specification that applies to a Cloud Storage fileset. This is only valid
666    * on entries of type FILESET.
667    * </pre>
668    *
669    * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
670    *
671    * @return The gcsFilesetSpec.
672    */
673   @java.lang.Override
getGcsFilesetSpec()674   public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec getGcsFilesetSpec() {
675     if (typeSpecCase_ == 6) {
676       return (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_;
677     }
678     return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance();
679   }
680   /**
681    *
682    *
683    * <pre>
684    * Specification that applies to a Cloud Storage fileset. This is only valid
685    * on entries of type FILESET.
686    * </pre>
687    *
688    * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
689    */
690   @java.lang.Override
getGcsFilesetSpecOrBuilder()691   public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder getGcsFilesetSpecOrBuilder() {
692     if (typeSpecCase_ == 6) {
693       return (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_;
694     }
695     return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance();
696   }
697 
698   public static final int BIGQUERY_TABLE_SPEC_FIELD_NUMBER = 12;
699   /**
700    *
701    *
702    * <pre>
703    * Specification that applies to a BigQuery table. This is only valid on
704    * entries of type `TABLE`.
705    * </pre>
706    *
707    * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
708    *
709    * @return Whether the bigqueryTableSpec field is set.
710    */
711   @java.lang.Override
hasBigqueryTableSpec()712   public boolean hasBigqueryTableSpec() {
713     return typeSpecCase_ == 12;
714   }
715   /**
716    *
717    *
718    * <pre>
719    * Specification that applies to a BigQuery table. This is only valid on
720    * entries of type `TABLE`.
721    * </pre>
722    *
723    * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
724    *
725    * @return The bigqueryTableSpec.
726    */
727   @java.lang.Override
getBigqueryTableSpec()728   public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec getBigqueryTableSpec() {
729     if (typeSpecCase_ == 12) {
730       return (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_;
731     }
732     return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance();
733   }
734   /**
735    *
736    *
737    * <pre>
738    * Specification that applies to a BigQuery table. This is only valid on
739    * entries of type `TABLE`.
740    * </pre>
741    *
742    * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
743    */
744   @java.lang.Override
745   public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder
getBigqueryTableSpecOrBuilder()746       getBigqueryTableSpecOrBuilder() {
747     if (typeSpecCase_ == 12) {
748       return (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_;
749     }
750     return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance();
751   }
752 
753   public static final int BIGQUERY_DATE_SHARDED_SPEC_FIELD_NUMBER = 15;
754   /**
755    *
756    *
757    * <pre>
758    * Specification for a group of BigQuery tables with name pattern
759    * `[prefix]YYYYMMDD`. Context:
760    * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
761    * </pre>
762    *
763    * <code>
764    * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
765    * </code>
766    *
767    * @return Whether the bigqueryDateShardedSpec field is set.
768    */
769   @java.lang.Override
hasBigqueryDateShardedSpec()770   public boolean hasBigqueryDateShardedSpec() {
771     return typeSpecCase_ == 15;
772   }
773   /**
774    *
775    *
776    * <pre>
777    * Specification for a group of BigQuery tables with name pattern
778    * `[prefix]YYYYMMDD`. Context:
779    * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
780    * </pre>
781    *
782    * <code>
783    * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
784    * </code>
785    *
786    * @return The bigqueryDateShardedSpec.
787    */
788   @java.lang.Override
getBigqueryDateShardedSpec()789   public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec getBigqueryDateShardedSpec() {
790     if (typeSpecCase_ == 15) {
791       return (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_;
792     }
793     return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance();
794   }
795   /**
796    *
797    *
798    * <pre>
799    * Specification for a group of BigQuery tables with name pattern
800    * `[prefix]YYYYMMDD`. Context:
801    * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
802    * </pre>
803    *
804    * <code>
805    * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
806    * </code>
807    */
808   @java.lang.Override
809   public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder
getBigqueryDateShardedSpecOrBuilder()810       getBigqueryDateShardedSpecOrBuilder() {
811     if (typeSpecCase_ == 15) {
812       return (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_;
813     }
814     return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance();
815   }
816 
817   public static final int DISPLAY_NAME_FIELD_NUMBER = 3;
818 
819   @SuppressWarnings("serial")
820   private volatile java.lang.Object displayName_ = "";
821   /**
822    *
823    *
824    * <pre>
825    * Display information such as title and description. A short name to identify
826    * the entry, for example, "Analytics Data - Jan 2011". Default value is an
827    * empty string.
828    * </pre>
829    *
830    * <code>string display_name = 3;</code>
831    *
832    * @return The displayName.
833    */
834   @java.lang.Override
getDisplayName()835   public java.lang.String getDisplayName() {
836     java.lang.Object ref = displayName_;
837     if (ref instanceof java.lang.String) {
838       return (java.lang.String) ref;
839     } else {
840       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
841       java.lang.String s = bs.toStringUtf8();
842       displayName_ = s;
843       return s;
844     }
845   }
846   /**
847    *
848    *
849    * <pre>
850    * Display information such as title and description. A short name to identify
851    * the entry, for example, "Analytics Data - Jan 2011". Default value is an
852    * empty string.
853    * </pre>
854    *
855    * <code>string display_name = 3;</code>
856    *
857    * @return The bytes for displayName.
858    */
859   @java.lang.Override
getDisplayNameBytes()860   public com.google.protobuf.ByteString getDisplayNameBytes() {
861     java.lang.Object ref = displayName_;
862     if (ref instanceof java.lang.String) {
863       com.google.protobuf.ByteString b =
864           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
865       displayName_ = b;
866       return b;
867     } else {
868       return (com.google.protobuf.ByteString) ref;
869     }
870   }
871 
872   public static final int DESCRIPTION_FIELD_NUMBER = 4;
873 
874   @SuppressWarnings("serial")
875   private volatile java.lang.Object description_ = "";
876   /**
877    *
878    *
879    * <pre>
880    * Entry description, which can consist of several sentences or paragraphs
881    * that describe entry contents. Default value is an empty string.
882    * </pre>
883    *
884    * <code>string description = 4;</code>
885    *
886    * @return The description.
887    */
888   @java.lang.Override
getDescription()889   public java.lang.String getDescription() {
890     java.lang.Object ref = description_;
891     if (ref instanceof java.lang.String) {
892       return (java.lang.String) ref;
893     } else {
894       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
895       java.lang.String s = bs.toStringUtf8();
896       description_ = s;
897       return s;
898     }
899   }
900   /**
901    *
902    *
903    * <pre>
904    * Entry description, which can consist of several sentences or paragraphs
905    * that describe entry contents. Default value is an empty string.
906    * </pre>
907    *
908    * <code>string description = 4;</code>
909    *
910    * @return The bytes for description.
911    */
912   @java.lang.Override
getDescriptionBytes()913   public com.google.protobuf.ByteString getDescriptionBytes() {
914     java.lang.Object ref = description_;
915     if (ref instanceof java.lang.String) {
916       com.google.protobuf.ByteString b =
917           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
918       description_ = b;
919       return b;
920     } else {
921       return (com.google.protobuf.ByteString) ref;
922     }
923   }
924 
925   public static final int SCHEMA_FIELD_NUMBER = 5;
926   private com.google.cloud.datacatalog.v1beta1.Schema schema_;
927   /**
928    *
929    *
930    * <pre>
931    * Schema of the entry. An entry might not have any schema attached to it.
932    * </pre>
933    *
934    * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
935    *
936    * @return Whether the schema field is set.
937    */
938   @java.lang.Override
hasSchema()939   public boolean hasSchema() {
940     return schema_ != null;
941   }
942   /**
943    *
944    *
945    * <pre>
946    * Schema of the entry. An entry might not have any schema attached to it.
947    * </pre>
948    *
949    * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
950    *
951    * @return The schema.
952    */
953   @java.lang.Override
getSchema()954   public com.google.cloud.datacatalog.v1beta1.Schema getSchema() {
955     return schema_ == null
956         ? com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance()
957         : schema_;
958   }
959   /**
960    *
961    *
962    * <pre>
963    * Schema of the entry. An entry might not have any schema attached to it.
964    * </pre>
965    *
966    * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
967    */
968   @java.lang.Override
getSchemaOrBuilder()969   public com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder getSchemaOrBuilder() {
970     return schema_ == null
971         ? com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance()
972         : schema_;
973   }
974 
975   public static final int SOURCE_SYSTEM_TIMESTAMPS_FIELD_NUMBER = 7;
976   private com.google.cloud.datacatalog.v1beta1.SystemTimestamps sourceSystemTimestamps_;
977   /**
978    *
979    *
980    * <pre>
981    * Output only. Timestamps about the underlying resource, not about this Data Catalog
982    * entry. Output only when Entry is of type in the EntryType enum. For entries
983    * with user_specified_type, this field is optional and defaults to an empty
984    * timestamp.
985    * </pre>
986    *
987    * <code>
988    * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
989    * </code>
990    *
991    * @return Whether the sourceSystemTimestamps field is set.
992    */
993   @java.lang.Override
hasSourceSystemTimestamps()994   public boolean hasSourceSystemTimestamps() {
995     return sourceSystemTimestamps_ != null;
996   }
997   /**
998    *
999    *
1000    * <pre>
1001    * Output only. Timestamps about the underlying resource, not about this Data Catalog
1002    * entry. Output only when Entry is of type in the EntryType enum. For entries
1003    * with user_specified_type, this field is optional and defaults to an empty
1004    * timestamp.
1005    * </pre>
1006    *
1007    * <code>
1008    * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
1009    * </code>
1010    *
1011    * @return The sourceSystemTimestamps.
1012    */
1013   @java.lang.Override
getSourceSystemTimestamps()1014   public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getSourceSystemTimestamps() {
1015     return sourceSystemTimestamps_ == null
1016         ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()
1017         : sourceSystemTimestamps_;
1018   }
1019   /**
1020    *
1021    *
1022    * <pre>
1023    * Output only. Timestamps about the underlying resource, not about this Data Catalog
1024    * entry. Output only when Entry is of type in the EntryType enum. For entries
1025    * with user_specified_type, this field is optional and defaults to an empty
1026    * timestamp.
1027    * </pre>
1028    *
1029    * <code>
1030    * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
1031    * </code>
1032    */
1033   @java.lang.Override
1034   public com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder
getSourceSystemTimestampsOrBuilder()1035       getSourceSystemTimestampsOrBuilder() {
1036     return sourceSystemTimestamps_ == null
1037         ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()
1038         : sourceSystemTimestamps_;
1039   }
1040 
1041   private byte memoizedIsInitialized = -1;
1042 
1043   @java.lang.Override
isInitialized()1044   public final boolean isInitialized() {
1045     byte isInitialized = memoizedIsInitialized;
1046     if (isInitialized == 1) return true;
1047     if (isInitialized == 0) return false;
1048 
1049     memoizedIsInitialized = 1;
1050     return true;
1051   }
1052 
1053   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1054   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1055     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1056       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1057     }
1058     if (entryTypeCase_ == 2) {
1059       output.writeEnum(2, ((java.lang.Integer) entryType_));
1060     }
1061     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
1062       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_);
1063     }
1064     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
1065       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
1066     }
1067     if (schema_ != null) {
1068       output.writeMessage(5, getSchema());
1069     }
1070     if (typeSpecCase_ == 6) {
1071       output.writeMessage(6, (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_);
1072     }
1073     if (sourceSystemTimestamps_ != null) {
1074       output.writeMessage(7, getSourceSystemTimestamps());
1075     }
1076     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) {
1077       com.google.protobuf.GeneratedMessageV3.writeString(output, 9, linkedResource_);
1078     }
1079     if (typeSpecCase_ == 12) {
1080       output.writeMessage(12, (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_);
1081     }
1082     if (typeSpecCase_ == 15) {
1083       output.writeMessage(
1084           15, (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_);
1085     }
1086     if (entryTypeCase_ == 16) {
1087       com.google.protobuf.GeneratedMessageV3.writeString(output, 16, entryType_);
1088     }
1089     if (systemCase_ == 17) {
1090       output.writeEnum(17, ((java.lang.Integer) system_));
1091     }
1092     if (systemCase_ == 18) {
1093       com.google.protobuf.GeneratedMessageV3.writeString(output, 18, system_);
1094     }
1095     getUnknownFields().writeTo(output);
1096   }
1097 
1098   @java.lang.Override
getSerializedSize()1099   public int getSerializedSize() {
1100     int size = memoizedSize;
1101     if (size != -1) return size;
1102 
1103     size = 0;
1104     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1105       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1106     }
1107     if (entryTypeCase_ == 2) {
1108       size +=
1109           com.google.protobuf.CodedOutputStream.computeEnumSize(
1110               2, ((java.lang.Integer) entryType_));
1111     }
1112     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
1113       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_);
1114     }
1115     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
1116       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
1117     }
1118     if (schema_ != null) {
1119       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSchema());
1120     }
1121     if (typeSpecCase_ == 6) {
1122       size +=
1123           com.google.protobuf.CodedOutputStream.computeMessageSize(
1124               6, (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_);
1125     }
1126     if (sourceSystemTimestamps_ != null) {
1127       size +=
1128           com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSourceSystemTimestamps());
1129     }
1130     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkedResource_)) {
1131       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, linkedResource_);
1132     }
1133     if (typeSpecCase_ == 12) {
1134       size +=
1135           com.google.protobuf.CodedOutputStream.computeMessageSize(
1136               12, (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_);
1137     }
1138     if (typeSpecCase_ == 15) {
1139       size +=
1140           com.google.protobuf.CodedOutputStream.computeMessageSize(
1141               15, (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_);
1142     }
1143     if (entryTypeCase_ == 16) {
1144       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, entryType_);
1145     }
1146     if (systemCase_ == 17) {
1147       size +=
1148           com.google.protobuf.CodedOutputStream.computeEnumSize(17, ((java.lang.Integer) system_));
1149     }
1150     if (systemCase_ == 18) {
1151       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, system_);
1152     }
1153     size += getUnknownFields().getSerializedSize();
1154     memoizedSize = size;
1155     return size;
1156   }
1157 
1158   @java.lang.Override
equals(final java.lang.Object obj)1159   public boolean equals(final java.lang.Object obj) {
1160     if (obj == this) {
1161       return true;
1162     }
1163     if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.Entry)) {
1164       return super.equals(obj);
1165     }
1166     com.google.cloud.datacatalog.v1beta1.Entry other =
1167         (com.google.cloud.datacatalog.v1beta1.Entry) obj;
1168 
1169     if (!getName().equals(other.getName())) return false;
1170     if (!getLinkedResource().equals(other.getLinkedResource())) return false;
1171     if (!getDisplayName().equals(other.getDisplayName())) return false;
1172     if (!getDescription().equals(other.getDescription())) return false;
1173     if (hasSchema() != other.hasSchema()) return false;
1174     if (hasSchema()) {
1175       if (!getSchema().equals(other.getSchema())) return false;
1176     }
1177     if (hasSourceSystemTimestamps() != other.hasSourceSystemTimestamps()) return false;
1178     if (hasSourceSystemTimestamps()) {
1179       if (!getSourceSystemTimestamps().equals(other.getSourceSystemTimestamps())) return false;
1180     }
1181     if (!getEntryTypeCase().equals(other.getEntryTypeCase())) return false;
1182     switch (entryTypeCase_) {
1183       case 2:
1184         if (getTypeValue() != other.getTypeValue()) return false;
1185         break;
1186       case 16:
1187         if (!getUserSpecifiedType().equals(other.getUserSpecifiedType())) return false;
1188         break;
1189       case 0:
1190       default:
1191     }
1192     if (!getSystemCase().equals(other.getSystemCase())) return false;
1193     switch (systemCase_) {
1194       case 17:
1195         if (getIntegratedSystemValue() != other.getIntegratedSystemValue()) return false;
1196         break;
1197       case 18:
1198         if (!getUserSpecifiedSystem().equals(other.getUserSpecifiedSystem())) return false;
1199         break;
1200       case 0:
1201       default:
1202     }
1203     if (!getTypeSpecCase().equals(other.getTypeSpecCase())) return false;
1204     switch (typeSpecCase_) {
1205       case 6:
1206         if (!getGcsFilesetSpec().equals(other.getGcsFilesetSpec())) return false;
1207         break;
1208       case 12:
1209         if (!getBigqueryTableSpec().equals(other.getBigqueryTableSpec())) return false;
1210         break;
1211       case 15:
1212         if (!getBigqueryDateShardedSpec().equals(other.getBigqueryDateShardedSpec())) return false;
1213         break;
1214       case 0:
1215       default:
1216     }
1217     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1218     return true;
1219   }
1220 
1221   @java.lang.Override
hashCode()1222   public int hashCode() {
1223     if (memoizedHashCode != 0) {
1224       return memoizedHashCode;
1225     }
1226     int hash = 41;
1227     hash = (19 * hash) + getDescriptor().hashCode();
1228     hash = (37 * hash) + NAME_FIELD_NUMBER;
1229     hash = (53 * hash) + getName().hashCode();
1230     hash = (37 * hash) + LINKED_RESOURCE_FIELD_NUMBER;
1231     hash = (53 * hash) + getLinkedResource().hashCode();
1232     hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
1233     hash = (53 * hash) + getDisplayName().hashCode();
1234     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
1235     hash = (53 * hash) + getDescription().hashCode();
1236     if (hasSchema()) {
1237       hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
1238       hash = (53 * hash) + getSchema().hashCode();
1239     }
1240     if (hasSourceSystemTimestamps()) {
1241       hash = (37 * hash) + SOURCE_SYSTEM_TIMESTAMPS_FIELD_NUMBER;
1242       hash = (53 * hash) + getSourceSystemTimestamps().hashCode();
1243     }
1244     switch (entryTypeCase_) {
1245       case 2:
1246         hash = (37 * hash) + TYPE_FIELD_NUMBER;
1247         hash = (53 * hash) + getTypeValue();
1248         break;
1249       case 16:
1250         hash = (37 * hash) + USER_SPECIFIED_TYPE_FIELD_NUMBER;
1251         hash = (53 * hash) + getUserSpecifiedType().hashCode();
1252         break;
1253       case 0:
1254       default:
1255     }
1256     switch (systemCase_) {
1257       case 17:
1258         hash = (37 * hash) + INTEGRATED_SYSTEM_FIELD_NUMBER;
1259         hash = (53 * hash) + getIntegratedSystemValue();
1260         break;
1261       case 18:
1262         hash = (37 * hash) + USER_SPECIFIED_SYSTEM_FIELD_NUMBER;
1263         hash = (53 * hash) + getUserSpecifiedSystem().hashCode();
1264         break;
1265       case 0:
1266       default:
1267     }
1268     switch (typeSpecCase_) {
1269       case 6:
1270         hash = (37 * hash) + GCS_FILESET_SPEC_FIELD_NUMBER;
1271         hash = (53 * hash) + getGcsFilesetSpec().hashCode();
1272         break;
1273       case 12:
1274         hash = (37 * hash) + BIGQUERY_TABLE_SPEC_FIELD_NUMBER;
1275         hash = (53 * hash) + getBigqueryTableSpec().hashCode();
1276         break;
1277       case 15:
1278         hash = (37 * hash) + BIGQUERY_DATE_SHARDED_SPEC_FIELD_NUMBER;
1279         hash = (53 * hash) + getBigqueryDateShardedSpec().hashCode();
1280         break;
1281       case 0:
1282       default:
1283     }
1284     hash = (29 * hash) + getUnknownFields().hashCode();
1285     memoizedHashCode = hash;
1286     return hash;
1287   }
1288 
parseFrom(java.nio.ByteBuffer data)1289   public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(java.nio.ByteBuffer data)
1290       throws com.google.protobuf.InvalidProtocolBufferException {
1291     return PARSER.parseFrom(data);
1292   }
1293 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1294   public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
1295       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1296       throws com.google.protobuf.InvalidProtocolBufferException {
1297     return PARSER.parseFrom(data, extensionRegistry);
1298   }
1299 
parseFrom( com.google.protobuf.ByteString data)1300   public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
1301       com.google.protobuf.ByteString data)
1302       throws com.google.protobuf.InvalidProtocolBufferException {
1303     return PARSER.parseFrom(data);
1304   }
1305 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1306   public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
1307       com.google.protobuf.ByteString data,
1308       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1309       throws com.google.protobuf.InvalidProtocolBufferException {
1310     return PARSER.parseFrom(data, extensionRegistry);
1311   }
1312 
parseFrom(byte[] data)1313   public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(byte[] data)
1314       throws com.google.protobuf.InvalidProtocolBufferException {
1315     return PARSER.parseFrom(data);
1316   }
1317 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1318   public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
1319       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1320       throws com.google.protobuf.InvalidProtocolBufferException {
1321     return PARSER.parseFrom(data, extensionRegistry);
1322   }
1323 
parseFrom(java.io.InputStream input)1324   public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(java.io.InputStream input)
1325       throws java.io.IOException {
1326     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1327   }
1328 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1329   public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
1330       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1331       throws java.io.IOException {
1332     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1333         PARSER, input, extensionRegistry);
1334   }
1335 
parseDelimitedFrom( java.io.InputStream input)1336   public static com.google.cloud.datacatalog.v1beta1.Entry parseDelimitedFrom(
1337       java.io.InputStream input) throws java.io.IOException {
1338     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1339   }
1340 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1341   public static com.google.cloud.datacatalog.v1beta1.Entry parseDelimitedFrom(
1342       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1343       throws java.io.IOException {
1344     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1345         PARSER, input, extensionRegistry);
1346   }
1347 
parseFrom( com.google.protobuf.CodedInputStream input)1348   public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
1349       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1350     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1351   }
1352 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1353   public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(
1354       com.google.protobuf.CodedInputStream input,
1355       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1356       throws java.io.IOException {
1357     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1358         PARSER, input, extensionRegistry);
1359   }
1360 
1361   @java.lang.Override
newBuilderForType()1362   public Builder newBuilderForType() {
1363     return newBuilder();
1364   }
1365 
newBuilder()1366   public static Builder newBuilder() {
1367     return DEFAULT_INSTANCE.toBuilder();
1368   }
1369 
newBuilder(com.google.cloud.datacatalog.v1beta1.Entry prototype)1370   public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.Entry prototype) {
1371     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1372   }
1373 
1374   @java.lang.Override
toBuilder()1375   public Builder toBuilder() {
1376     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1377   }
1378 
1379   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1380   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1381     Builder builder = new Builder(parent);
1382     return builder;
1383   }
1384   /**
1385    *
1386    *
1387    * <pre>
1388    * Entry Metadata.
1389    * A Data Catalog Entry resource represents another resource in Google
1390    * Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic), or
1391    * outside of Google Cloud Platform. Clients can use the `linked_resource` field
1392    * in the Entry resource to refer to the original resource ID of the source
1393    * system.
1394    * An Entry resource contains resource details, such as its schema. An Entry can
1395    * also be used to attach flexible metadata, such as a
1396    * [Tag][google.cloud.datacatalog.v1beta1.Tag].
1397    * </pre>
1398    *
1399    * Protobuf type {@code google.cloud.datacatalog.v1beta1.Entry}
1400    */
1401   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1402       implements
1403       // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.Entry)
1404       com.google.cloud.datacatalog.v1beta1.EntryOrBuilder {
getDescriptor()1405     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1406       return com.google.cloud.datacatalog.v1beta1.Datacatalog
1407           .internal_static_google_cloud_datacatalog_v1beta1_Entry_descriptor;
1408     }
1409 
1410     @java.lang.Override
1411     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1412         internalGetFieldAccessorTable() {
1413       return com.google.cloud.datacatalog.v1beta1.Datacatalog
1414           .internal_static_google_cloud_datacatalog_v1beta1_Entry_fieldAccessorTable
1415           .ensureFieldAccessorsInitialized(
1416               com.google.cloud.datacatalog.v1beta1.Entry.class,
1417               com.google.cloud.datacatalog.v1beta1.Entry.Builder.class);
1418     }
1419 
1420     // Construct using com.google.cloud.datacatalog.v1beta1.Entry.newBuilder()
Builder()1421     private Builder() {}
1422 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1423     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1424       super(parent);
1425     }
1426 
1427     @java.lang.Override
clear()1428     public Builder clear() {
1429       super.clear();
1430       bitField0_ = 0;
1431       name_ = "";
1432       linkedResource_ = "";
1433       if (gcsFilesetSpecBuilder_ != null) {
1434         gcsFilesetSpecBuilder_.clear();
1435       }
1436       if (bigqueryTableSpecBuilder_ != null) {
1437         bigqueryTableSpecBuilder_.clear();
1438       }
1439       if (bigqueryDateShardedSpecBuilder_ != null) {
1440         bigqueryDateShardedSpecBuilder_.clear();
1441       }
1442       displayName_ = "";
1443       description_ = "";
1444       schema_ = null;
1445       if (schemaBuilder_ != null) {
1446         schemaBuilder_.dispose();
1447         schemaBuilder_ = null;
1448       }
1449       sourceSystemTimestamps_ = null;
1450       if (sourceSystemTimestampsBuilder_ != null) {
1451         sourceSystemTimestampsBuilder_.dispose();
1452         sourceSystemTimestampsBuilder_ = null;
1453       }
1454       entryTypeCase_ = 0;
1455       entryType_ = null;
1456       systemCase_ = 0;
1457       system_ = null;
1458       typeSpecCase_ = 0;
1459       typeSpec_ = null;
1460       return this;
1461     }
1462 
1463     @java.lang.Override
getDescriptorForType()1464     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1465       return com.google.cloud.datacatalog.v1beta1.Datacatalog
1466           .internal_static_google_cloud_datacatalog_v1beta1_Entry_descriptor;
1467     }
1468 
1469     @java.lang.Override
getDefaultInstanceForType()1470     public com.google.cloud.datacatalog.v1beta1.Entry getDefaultInstanceForType() {
1471       return com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance();
1472     }
1473 
1474     @java.lang.Override
build()1475     public com.google.cloud.datacatalog.v1beta1.Entry build() {
1476       com.google.cloud.datacatalog.v1beta1.Entry result = buildPartial();
1477       if (!result.isInitialized()) {
1478         throw newUninitializedMessageException(result);
1479       }
1480       return result;
1481     }
1482 
1483     @java.lang.Override
buildPartial()1484     public com.google.cloud.datacatalog.v1beta1.Entry buildPartial() {
1485       com.google.cloud.datacatalog.v1beta1.Entry result =
1486           new com.google.cloud.datacatalog.v1beta1.Entry(this);
1487       if (bitField0_ != 0) {
1488         buildPartial0(result);
1489       }
1490       buildPartialOneofs(result);
1491       onBuilt();
1492       return result;
1493     }
1494 
buildPartial0(com.google.cloud.datacatalog.v1beta1.Entry result)1495     private void buildPartial0(com.google.cloud.datacatalog.v1beta1.Entry result) {
1496       int from_bitField0_ = bitField0_;
1497       if (((from_bitField0_ & 0x00000001) != 0)) {
1498         result.name_ = name_;
1499       }
1500       if (((from_bitField0_ & 0x00000002) != 0)) {
1501         result.linkedResource_ = linkedResource_;
1502       }
1503       if (((from_bitField0_ & 0x00000200) != 0)) {
1504         result.displayName_ = displayName_;
1505       }
1506       if (((from_bitField0_ & 0x00000400) != 0)) {
1507         result.description_ = description_;
1508       }
1509       if (((from_bitField0_ & 0x00000800) != 0)) {
1510         result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build();
1511       }
1512       if (((from_bitField0_ & 0x00001000) != 0)) {
1513         result.sourceSystemTimestamps_ =
1514             sourceSystemTimestampsBuilder_ == null
1515                 ? sourceSystemTimestamps_
1516                 : sourceSystemTimestampsBuilder_.build();
1517       }
1518     }
1519 
buildPartialOneofs(com.google.cloud.datacatalog.v1beta1.Entry result)1520     private void buildPartialOneofs(com.google.cloud.datacatalog.v1beta1.Entry result) {
1521       result.entryTypeCase_ = entryTypeCase_;
1522       result.entryType_ = this.entryType_;
1523       result.systemCase_ = systemCase_;
1524       result.system_ = this.system_;
1525       result.typeSpecCase_ = typeSpecCase_;
1526       result.typeSpec_ = this.typeSpec_;
1527       if (typeSpecCase_ == 6 && gcsFilesetSpecBuilder_ != null) {
1528         result.typeSpec_ = gcsFilesetSpecBuilder_.build();
1529       }
1530       if (typeSpecCase_ == 12 && bigqueryTableSpecBuilder_ != null) {
1531         result.typeSpec_ = bigqueryTableSpecBuilder_.build();
1532       }
1533       if (typeSpecCase_ == 15 && bigqueryDateShardedSpecBuilder_ != null) {
1534         result.typeSpec_ = bigqueryDateShardedSpecBuilder_.build();
1535       }
1536     }
1537 
1538     @java.lang.Override
clone()1539     public Builder clone() {
1540       return super.clone();
1541     }
1542 
1543     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1544     public Builder setField(
1545         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1546       return super.setField(field, value);
1547     }
1548 
1549     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1550     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1551       return super.clearField(field);
1552     }
1553 
1554     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1555     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1556       return super.clearOneof(oneof);
1557     }
1558 
1559     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1560     public Builder setRepeatedField(
1561         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1562       return super.setRepeatedField(field, index, value);
1563     }
1564 
1565     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1566     public Builder addRepeatedField(
1567         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1568       return super.addRepeatedField(field, value);
1569     }
1570 
1571     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1572     public Builder mergeFrom(com.google.protobuf.Message other) {
1573       if (other instanceof com.google.cloud.datacatalog.v1beta1.Entry) {
1574         return mergeFrom((com.google.cloud.datacatalog.v1beta1.Entry) other);
1575       } else {
1576         super.mergeFrom(other);
1577         return this;
1578       }
1579     }
1580 
mergeFrom(com.google.cloud.datacatalog.v1beta1.Entry other)1581     public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.Entry other) {
1582       if (other == com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance()) return this;
1583       if (!other.getName().isEmpty()) {
1584         name_ = other.name_;
1585         bitField0_ |= 0x00000001;
1586         onChanged();
1587       }
1588       if (!other.getLinkedResource().isEmpty()) {
1589         linkedResource_ = other.linkedResource_;
1590         bitField0_ |= 0x00000002;
1591         onChanged();
1592       }
1593       if (!other.getDisplayName().isEmpty()) {
1594         displayName_ = other.displayName_;
1595         bitField0_ |= 0x00000200;
1596         onChanged();
1597       }
1598       if (!other.getDescription().isEmpty()) {
1599         description_ = other.description_;
1600         bitField0_ |= 0x00000400;
1601         onChanged();
1602       }
1603       if (other.hasSchema()) {
1604         mergeSchema(other.getSchema());
1605       }
1606       if (other.hasSourceSystemTimestamps()) {
1607         mergeSourceSystemTimestamps(other.getSourceSystemTimestamps());
1608       }
1609       switch (other.getEntryTypeCase()) {
1610         case TYPE:
1611           {
1612             setTypeValue(other.getTypeValue());
1613             break;
1614           }
1615         case USER_SPECIFIED_TYPE:
1616           {
1617             entryTypeCase_ = 16;
1618             entryType_ = other.entryType_;
1619             onChanged();
1620             break;
1621           }
1622         case ENTRYTYPE_NOT_SET:
1623           {
1624             break;
1625           }
1626       }
1627       switch (other.getSystemCase()) {
1628         case INTEGRATED_SYSTEM:
1629           {
1630             setIntegratedSystemValue(other.getIntegratedSystemValue());
1631             break;
1632           }
1633         case USER_SPECIFIED_SYSTEM:
1634           {
1635             systemCase_ = 18;
1636             system_ = other.system_;
1637             onChanged();
1638             break;
1639           }
1640         case SYSTEM_NOT_SET:
1641           {
1642             break;
1643           }
1644       }
1645       switch (other.getTypeSpecCase()) {
1646         case GCS_FILESET_SPEC:
1647           {
1648             mergeGcsFilesetSpec(other.getGcsFilesetSpec());
1649             break;
1650           }
1651         case BIGQUERY_TABLE_SPEC:
1652           {
1653             mergeBigqueryTableSpec(other.getBigqueryTableSpec());
1654             break;
1655           }
1656         case BIGQUERY_DATE_SHARDED_SPEC:
1657           {
1658             mergeBigqueryDateShardedSpec(other.getBigqueryDateShardedSpec());
1659             break;
1660           }
1661         case TYPESPEC_NOT_SET:
1662           {
1663             break;
1664           }
1665       }
1666       this.mergeUnknownFields(other.getUnknownFields());
1667       onChanged();
1668       return this;
1669     }
1670 
1671     @java.lang.Override
isInitialized()1672     public final boolean isInitialized() {
1673       return true;
1674     }
1675 
1676     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1677     public Builder mergeFrom(
1678         com.google.protobuf.CodedInputStream input,
1679         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1680         throws java.io.IOException {
1681       if (extensionRegistry == null) {
1682         throw new java.lang.NullPointerException();
1683       }
1684       try {
1685         boolean done = false;
1686         while (!done) {
1687           int tag = input.readTag();
1688           switch (tag) {
1689             case 0:
1690               done = true;
1691               break;
1692             case 10:
1693               {
1694                 name_ = input.readStringRequireUtf8();
1695                 bitField0_ |= 0x00000001;
1696                 break;
1697               } // case 10
1698             case 16:
1699               {
1700                 int rawValue = input.readEnum();
1701                 entryTypeCase_ = 2;
1702                 entryType_ = rawValue;
1703                 break;
1704               } // case 16
1705             case 26:
1706               {
1707                 displayName_ = input.readStringRequireUtf8();
1708                 bitField0_ |= 0x00000200;
1709                 break;
1710               } // case 26
1711             case 34:
1712               {
1713                 description_ = input.readStringRequireUtf8();
1714                 bitField0_ |= 0x00000400;
1715                 break;
1716               } // case 34
1717             case 42:
1718               {
1719                 input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry);
1720                 bitField0_ |= 0x00000800;
1721                 break;
1722               } // case 42
1723             case 50:
1724               {
1725                 input.readMessage(getGcsFilesetSpecFieldBuilder().getBuilder(), extensionRegistry);
1726                 typeSpecCase_ = 6;
1727                 break;
1728               } // case 50
1729             case 58:
1730               {
1731                 input.readMessage(
1732                     getSourceSystemTimestampsFieldBuilder().getBuilder(), extensionRegistry);
1733                 bitField0_ |= 0x00001000;
1734                 break;
1735               } // case 58
1736             case 74:
1737               {
1738                 linkedResource_ = input.readStringRequireUtf8();
1739                 bitField0_ |= 0x00000002;
1740                 break;
1741               } // case 74
1742             case 98:
1743               {
1744                 input.readMessage(
1745                     getBigqueryTableSpecFieldBuilder().getBuilder(), extensionRegistry);
1746                 typeSpecCase_ = 12;
1747                 break;
1748               } // case 98
1749             case 122:
1750               {
1751                 input.readMessage(
1752                     getBigqueryDateShardedSpecFieldBuilder().getBuilder(), extensionRegistry);
1753                 typeSpecCase_ = 15;
1754                 break;
1755               } // case 122
1756             case 130:
1757               {
1758                 java.lang.String s = input.readStringRequireUtf8();
1759                 entryTypeCase_ = 16;
1760                 entryType_ = s;
1761                 break;
1762               } // case 130
1763             case 136:
1764               {
1765                 int rawValue = input.readEnum();
1766                 systemCase_ = 17;
1767                 system_ = rawValue;
1768                 break;
1769               } // case 136
1770             case 146:
1771               {
1772                 java.lang.String s = input.readStringRequireUtf8();
1773                 systemCase_ = 18;
1774                 system_ = s;
1775                 break;
1776               } // case 146
1777             default:
1778               {
1779                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1780                   done = true; // was an endgroup tag
1781                 }
1782                 break;
1783               } // default:
1784           } // switch (tag)
1785         } // while (!done)
1786       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1787         throw e.unwrapIOException();
1788       } finally {
1789         onChanged();
1790       } // finally
1791       return this;
1792     }
1793 
1794     private int entryTypeCase_ = 0;
1795     private java.lang.Object entryType_;
1796 
getEntryTypeCase()1797     public EntryTypeCase getEntryTypeCase() {
1798       return EntryTypeCase.forNumber(entryTypeCase_);
1799     }
1800 
clearEntryType()1801     public Builder clearEntryType() {
1802       entryTypeCase_ = 0;
1803       entryType_ = null;
1804       onChanged();
1805       return this;
1806     }
1807 
1808     private int systemCase_ = 0;
1809     private java.lang.Object system_;
1810 
getSystemCase()1811     public SystemCase getSystemCase() {
1812       return SystemCase.forNumber(systemCase_);
1813     }
1814 
clearSystem()1815     public Builder clearSystem() {
1816       systemCase_ = 0;
1817       system_ = null;
1818       onChanged();
1819       return this;
1820     }
1821 
1822     private int typeSpecCase_ = 0;
1823     private java.lang.Object typeSpec_;
1824 
getTypeSpecCase()1825     public TypeSpecCase getTypeSpecCase() {
1826       return TypeSpecCase.forNumber(typeSpecCase_);
1827     }
1828 
clearTypeSpec()1829     public Builder clearTypeSpec() {
1830       typeSpecCase_ = 0;
1831       typeSpec_ = null;
1832       onChanged();
1833       return this;
1834     }
1835 
1836     private int bitField0_;
1837 
1838     private java.lang.Object name_ = "";
1839     /**
1840      *
1841      *
1842      * <pre>
1843      * The Data Catalog resource name of the entry in URL format. Example:
1844      * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
1845      * Note that this Entry and its child resources may not actually be stored in
1846      * the location in this name.
1847      * </pre>
1848      *
1849      * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code>
1850      *
1851      * @return The name.
1852      */
getName()1853     public java.lang.String getName() {
1854       java.lang.Object ref = name_;
1855       if (!(ref instanceof java.lang.String)) {
1856         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1857         java.lang.String s = bs.toStringUtf8();
1858         name_ = s;
1859         return s;
1860       } else {
1861         return (java.lang.String) ref;
1862       }
1863     }
1864     /**
1865      *
1866      *
1867      * <pre>
1868      * The Data Catalog resource name of the entry in URL format. Example:
1869      * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
1870      * Note that this Entry and its child resources may not actually be stored in
1871      * the location in this name.
1872      * </pre>
1873      *
1874      * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code>
1875      *
1876      * @return The bytes for name.
1877      */
getNameBytes()1878     public com.google.protobuf.ByteString getNameBytes() {
1879       java.lang.Object ref = name_;
1880       if (ref instanceof String) {
1881         com.google.protobuf.ByteString b =
1882             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1883         name_ = b;
1884         return b;
1885       } else {
1886         return (com.google.protobuf.ByteString) ref;
1887       }
1888     }
1889     /**
1890      *
1891      *
1892      * <pre>
1893      * The Data Catalog resource name of the entry in URL format. Example:
1894      * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
1895      * Note that this Entry and its child resources may not actually be stored in
1896      * the location in this name.
1897      * </pre>
1898      *
1899      * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code>
1900      *
1901      * @param value The name to set.
1902      * @return This builder for chaining.
1903      */
setName(java.lang.String value)1904     public Builder setName(java.lang.String value) {
1905       if (value == null) {
1906         throw new NullPointerException();
1907       }
1908       name_ = value;
1909       bitField0_ |= 0x00000001;
1910       onChanged();
1911       return this;
1912     }
1913     /**
1914      *
1915      *
1916      * <pre>
1917      * The Data Catalog resource name of the entry in URL format. Example:
1918      * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
1919      * Note that this Entry and its child resources may not actually be stored in
1920      * the location in this name.
1921      * </pre>
1922      *
1923      * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code>
1924      *
1925      * @return This builder for chaining.
1926      */
clearName()1927     public Builder clearName() {
1928       name_ = getDefaultInstance().getName();
1929       bitField0_ = (bitField0_ & ~0x00000001);
1930       onChanged();
1931       return this;
1932     }
1933     /**
1934      *
1935      *
1936      * <pre>
1937      * The Data Catalog resource name of the entry in URL format. Example:
1938      * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
1939      * Note that this Entry and its child resources may not actually be stored in
1940      * the location in this name.
1941      * </pre>
1942      *
1943      * <code>string name = 1 [(.google.api.resource_reference) = { ... }</code>
1944      *
1945      * @param value The bytes for name to set.
1946      * @return This builder for chaining.
1947      */
setNameBytes(com.google.protobuf.ByteString value)1948     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1949       if (value == null) {
1950         throw new NullPointerException();
1951       }
1952       checkByteStringIsUtf8(value);
1953       name_ = value;
1954       bitField0_ |= 0x00000001;
1955       onChanged();
1956       return this;
1957     }
1958 
1959     private java.lang.Object linkedResource_ = "";
1960     /**
1961      *
1962      *
1963      * <pre>
1964      * The resource this metadata entry refers to.
1965      * For Google Cloud Platform resources, `linked_resource` is the [full name of
1966      * the
1967      * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
1968      * For example, the `linked_resource` for a table resource from BigQuery is:
1969      * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
1970      * Output only when Entry is of type in the EntryType enum. For entries with
1971      * user_specified_type, this field is optional and defaults to an empty
1972      * string.
1973      * </pre>
1974      *
1975      * <code>string linked_resource = 9;</code>
1976      *
1977      * @return The linkedResource.
1978      */
getLinkedResource()1979     public java.lang.String getLinkedResource() {
1980       java.lang.Object ref = linkedResource_;
1981       if (!(ref instanceof java.lang.String)) {
1982         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1983         java.lang.String s = bs.toStringUtf8();
1984         linkedResource_ = s;
1985         return s;
1986       } else {
1987         return (java.lang.String) ref;
1988       }
1989     }
1990     /**
1991      *
1992      *
1993      * <pre>
1994      * The resource this metadata entry refers to.
1995      * For Google Cloud Platform resources, `linked_resource` is the [full name of
1996      * the
1997      * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
1998      * For example, the `linked_resource` for a table resource from BigQuery is:
1999      * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
2000      * Output only when Entry is of type in the EntryType enum. For entries with
2001      * user_specified_type, this field is optional and defaults to an empty
2002      * string.
2003      * </pre>
2004      *
2005      * <code>string linked_resource = 9;</code>
2006      *
2007      * @return The bytes for linkedResource.
2008      */
getLinkedResourceBytes()2009     public com.google.protobuf.ByteString getLinkedResourceBytes() {
2010       java.lang.Object ref = linkedResource_;
2011       if (ref instanceof String) {
2012         com.google.protobuf.ByteString b =
2013             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2014         linkedResource_ = b;
2015         return b;
2016       } else {
2017         return (com.google.protobuf.ByteString) ref;
2018       }
2019     }
2020     /**
2021      *
2022      *
2023      * <pre>
2024      * The resource this metadata entry refers to.
2025      * For Google Cloud Platform resources, `linked_resource` is the [full name of
2026      * the
2027      * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
2028      * For example, the `linked_resource` for a table resource from BigQuery is:
2029      * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
2030      * Output only when Entry is of type in the EntryType enum. For entries with
2031      * user_specified_type, this field is optional and defaults to an empty
2032      * string.
2033      * </pre>
2034      *
2035      * <code>string linked_resource = 9;</code>
2036      *
2037      * @param value The linkedResource to set.
2038      * @return This builder for chaining.
2039      */
setLinkedResource(java.lang.String value)2040     public Builder setLinkedResource(java.lang.String value) {
2041       if (value == null) {
2042         throw new NullPointerException();
2043       }
2044       linkedResource_ = value;
2045       bitField0_ |= 0x00000002;
2046       onChanged();
2047       return this;
2048     }
2049     /**
2050      *
2051      *
2052      * <pre>
2053      * The resource this metadata entry refers to.
2054      * For Google Cloud Platform resources, `linked_resource` is the [full name of
2055      * the
2056      * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
2057      * For example, the `linked_resource` for a table resource from BigQuery is:
2058      * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
2059      * Output only when Entry is of type in the EntryType enum. For entries with
2060      * user_specified_type, this field is optional and defaults to an empty
2061      * string.
2062      * </pre>
2063      *
2064      * <code>string linked_resource = 9;</code>
2065      *
2066      * @return This builder for chaining.
2067      */
clearLinkedResource()2068     public Builder clearLinkedResource() {
2069       linkedResource_ = getDefaultInstance().getLinkedResource();
2070       bitField0_ = (bitField0_ & ~0x00000002);
2071       onChanged();
2072       return this;
2073     }
2074     /**
2075      *
2076      *
2077      * <pre>
2078      * The resource this metadata entry refers to.
2079      * For Google Cloud Platform resources, `linked_resource` is the [full name of
2080      * the
2081      * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
2082      * For example, the `linked_resource` for a table resource from BigQuery is:
2083      * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
2084      * Output only when Entry is of type in the EntryType enum. For entries with
2085      * user_specified_type, this field is optional and defaults to an empty
2086      * string.
2087      * </pre>
2088      *
2089      * <code>string linked_resource = 9;</code>
2090      *
2091      * @param value The bytes for linkedResource to set.
2092      * @return This builder for chaining.
2093      */
setLinkedResourceBytes(com.google.protobuf.ByteString value)2094     public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) {
2095       if (value == null) {
2096         throw new NullPointerException();
2097       }
2098       checkByteStringIsUtf8(value);
2099       linkedResource_ = value;
2100       bitField0_ |= 0x00000002;
2101       onChanged();
2102       return this;
2103     }
2104 
2105     /**
2106      *
2107      *
2108      * <pre>
2109      * The type of the entry.
2110      * Only used for Entries with types in the EntryType enum.
2111      * </pre>
2112      *
2113      * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
2114      *
2115      * @return Whether the type field is set.
2116      */
2117     @java.lang.Override
hasType()2118     public boolean hasType() {
2119       return entryTypeCase_ == 2;
2120     }
2121     /**
2122      *
2123      *
2124      * <pre>
2125      * The type of the entry.
2126      * Only used for Entries with types in the EntryType enum.
2127      * </pre>
2128      *
2129      * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
2130      *
2131      * @return The enum numeric value on the wire for type.
2132      */
2133     @java.lang.Override
getTypeValue()2134     public int getTypeValue() {
2135       if (entryTypeCase_ == 2) {
2136         return ((java.lang.Integer) entryType_).intValue();
2137       }
2138       return 0;
2139     }
2140     /**
2141      *
2142      *
2143      * <pre>
2144      * The type of the entry.
2145      * Only used for Entries with types in the EntryType enum.
2146      * </pre>
2147      *
2148      * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
2149      *
2150      * @param value The enum numeric value on the wire for type to set.
2151      * @return This builder for chaining.
2152      */
setTypeValue(int value)2153     public Builder setTypeValue(int value) {
2154       entryTypeCase_ = 2;
2155       entryType_ = value;
2156       onChanged();
2157       return this;
2158     }
2159     /**
2160      *
2161      *
2162      * <pre>
2163      * The type of the entry.
2164      * Only used for Entries with types in the EntryType enum.
2165      * </pre>
2166      *
2167      * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
2168      *
2169      * @return The type.
2170      */
2171     @java.lang.Override
getType()2172     public com.google.cloud.datacatalog.v1beta1.EntryType getType() {
2173       if (entryTypeCase_ == 2) {
2174         com.google.cloud.datacatalog.v1beta1.EntryType result =
2175             com.google.cloud.datacatalog.v1beta1.EntryType.forNumber(
2176                 (java.lang.Integer) entryType_);
2177         return result == null
2178             ? com.google.cloud.datacatalog.v1beta1.EntryType.UNRECOGNIZED
2179             : result;
2180       }
2181       return com.google.cloud.datacatalog.v1beta1.EntryType.ENTRY_TYPE_UNSPECIFIED;
2182     }
2183     /**
2184      *
2185      *
2186      * <pre>
2187      * The type of the entry.
2188      * Only used for Entries with types in the EntryType enum.
2189      * </pre>
2190      *
2191      * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
2192      *
2193      * @param value The type to set.
2194      * @return This builder for chaining.
2195      */
setType(com.google.cloud.datacatalog.v1beta1.EntryType value)2196     public Builder setType(com.google.cloud.datacatalog.v1beta1.EntryType value) {
2197       if (value == null) {
2198         throw new NullPointerException();
2199       }
2200       entryTypeCase_ = 2;
2201       entryType_ = value.getNumber();
2202       onChanged();
2203       return this;
2204     }
2205     /**
2206      *
2207      *
2208      * <pre>
2209      * The type of the entry.
2210      * Only used for Entries with types in the EntryType enum.
2211      * </pre>
2212      *
2213      * <code>.google.cloud.datacatalog.v1beta1.EntryType type = 2;</code>
2214      *
2215      * @return This builder for chaining.
2216      */
clearType()2217     public Builder clearType() {
2218       if (entryTypeCase_ == 2) {
2219         entryTypeCase_ = 0;
2220         entryType_ = null;
2221         onChanged();
2222       }
2223       return this;
2224     }
2225 
2226     /**
2227      *
2228      *
2229      * <pre>
2230      * Entry type if it does not fit any of the input-allowed values listed in
2231      * `EntryType` enum above. When creating an entry, users should check the
2232      * enum values first, if nothing matches the entry to be created, then
2233      * provide a custom value, for example "my_special_type".
2234      * `user_specified_type` strings must begin with a letter or underscore and
2235      * can only contain letters, numbers, and underscores; are case insensitive;
2236      * must be at least 1 character and at most 64 characters long.
2237      * Currently, only FILESET enum value is allowed. All other entries created
2238      * through Data Catalog must use `user_specified_type`.
2239      * </pre>
2240      *
2241      * <code>string user_specified_type = 16;</code>
2242      *
2243      * @return Whether the userSpecifiedType field is set.
2244      */
2245     @java.lang.Override
hasUserSpecifiedType()2246     public boolean hasUserSpecifiedType() {
2247       return entryTypeCase_ == 16;
2248     }
2249     /**
2250      *
2251      *
2252      * <pre>
2253      * Entry type if it does not fit any of the input-allowed values listed in
2254      * `EntryType` enum above. When creating an entry, users should check the
2255      * enum values first, if nothing matches the entry to be created, then
2256      * provide a custom value, for example "my_special_type".
2257      * `user_specified_type` strings must begin with a letter or underscore and
2258      * can only contain letters, numbers, and underscores; are case insensitive;
2259      * must be at least 1 character and at most 64 characters long.
2260      * Currently, only FILESET enum value is allowed. All other entries created
2261      * through Data Catalog must use `user_specified_type`.
2262      * </pre>
2263      *
2264      * <code>string user_specified_type = 16;</code>
2265      *
2266      * @return The userSpecifiedType.
2267      */
2268     @java.lang.Override
getUserSpecifiedType()2269     public java.lang.String getUserSpecifiedType() {
2270       java.lang.Object ref = "";
2271       if (entryTypeCase_ == 16) {
2272         ref = entryType_;
2273       }
2274       if (!(ref instanceof java.lang.String)) {
2275         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2276         java.lang.String s = bs.toStringUtf8();
2277         if (entryTypeCase_ == 16) {
2278           entryType_ = s;
2279         }
2280         return s;
2281       } else {
2282         return (java.lang.String) ref;
2283       }
2284     }
2285     /**
2286      *
2287      *
2288      * <pre>
2289      * Entry type if it does not fit any of the input-allowed values listed in
2290      * `EntryType` enum above. When creating an entry, users should check the
2291      * enum values first, if nothing matches the entry to be created, then
2292      * provide a custom value, for example "my_special_type".
2293      * `user_specified_type` strings must begin with a letter or underscore and
2294      * can only contain letters, numbers, and underscores; are case insensitive;
2295      * must be at least 1 character and at most 64 characters long.
2296      * Currently, only FILESET enum value is allowed. All other entries created
2297      * through Data Catalog must use `user_specified_type`.
2298      * </pre>
2299      *
2300      * <code>string user_specified_type = 16;</code>
2301      *
2302      * @return The bytes for userSpecifiedType.
2303      */
2304     @java.lang.Override
getUserSpecifiedTypeBytes()2305     public com.google.protobuf.ByteString getUserSpecifiedTypeBytes() {
2306       java.lang.Object ref = "";
2307       if (entryTypeCase_ == 16) {
2308         ref = entryType_;
2309       }
2310       if (ref instanceof String) {
2311         com.google.protobuf.ByteString b =
2312             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2313         if (entryTypeCase_ == 16) {
2314           entryType_ = b;
2315         }
2316         return b;
2317       } else {
2318         return (com.google.protobuf.ByteString) ref;
2319       }
2320     }
2321     /**
2322      *
2323      *
2324      * <pre>
2325      * Entry type if it does not fit any of the input-allowed values listed in
2326      * `EntryType` enum above. When creating an entry, users should check the
2327      * enum values first, if nothing matches the entry to be created, then
2328      * provide a custom value, for example "my_special_type".
2329      * `user_specified_type` strings must begin with a letter or underscore and
2330      * can only contain letters, numbers, and underscores; are case insensitive;
2331      * must be at least 1 character and at most 64 characters long.
2332      * Currently, only FILESET enum value is allowed. All other entries created
2333      * through Data Catalog must use `user_specified_type`.
2334      * </pre>
2335      *
2336      * <code>string user_specified_type = 16;</code>
2337      *
2338      * @param value The userSpecifiedType to set.
2339      * @return This builder for chaining.
2340      */
setUserSpecifiedType(java.lang.String value)2341     public Builder setUserSpecifiedType(java.lang.String value) {
2342       if (value == null) {
2343         throw new NullPointerException();
2344       }
2345       entryTypeCase_ = 16;
2346       entryType_ = value;
2347       onChanged();
2348       return this;
2349     }
2350     /**
2351      *
2352      *
2353      * <pre>
2354      * Entry type if it does not fit any of the input-allowed values listed in
2355      * `EntryType` enum above. When creating an entry, users should check the
2356      * enum values first, if nothing matches the entry to be created, then
2357      * provide a custom value, for example "my_special_type".
2358      * `user_specified_type` strings must begin with a letter or underscore and
2359      * can only contain letters, numbers, and underscores; are case insensitive;
2360      * must be at least 1 character and at most 64 characters long.
2361      * Currently, only FILESET enum value is allowed. All other entries created
2362      * through Data Catalog must use `user_specified_type`.
2363      * </pre>
2364      *
2365      * <code>string user_specified_type = 16;</code>
2366      *
2367      * @return This builder for chaining.
2368      */
clearUserSpecifiedType()2369     public Builder clearUserSpecifiedType() {
2370       if (entryTypeCase_ == 16) {
2371         entryTypeCase_ = 0;
2372         entryType_ = null;
2373         onChanged();
2374       }
2375       return this;
2376     }
2377     /**
2378      *
2379      *
2380      * <pre>
2381      * Entry type if it does not fit any of the input-allowed values listed in
2382      * `EntryType` enum above. When creating an entry, users should check the
2383      * enum values first, if nothing matches the entry to be created, then
2384      * provide a custom value, for example "my_special_type".
2385      * `user_specified_type` strings must begin with a letter or underscore and
2386      * can only contain letters, numbers, and underscores; are case insensitive;
2387      * must be at least 1 character and at most 64 characters long.
2388      * Currently, only FILESET enum value is allowed. All other entries created
2389      * through Data Catalog must use `user_specified_type`.
2390      * </pre>
2391      *
2392      * <code>string user_specified_type = 16;</code>
2393      *
2394      * @param value The bytes for userSpecifiedType to set.
2395      * @return This builder for chaining.
2396      */
setUserSpecifiedTypeBytes(com.google.protobuf.ByteString value)2397     public Builder setUserSpecifiedTypeBytes(com.google.protobuf.ByteString value) {
2398       if (value == null) {
2399         throw new NullPointerException();
2400       }
2401       checkByteStringIsUtf8(value);
2402       entryTypeCase_ = 16;
2403       entryType_ = value;
2404       onChanged();
2405       return this;
2406     }
2407 
2408     /**
2409      *
2410      *
2411      * <pre>
2412      * Output only. This field indicates the entry's source system that Data Catalog
2413      * integrates with, such as BigQuery or Pub/Sub.
2414      * </pre>
2415      *
2416      * <code>
2417      * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
2418      * </code>
2419      *
2420      * @return Whether the integratedSystem field is set.
2421      */
2422     @java.lang.Override
hasIntegratedSystem()2423     public boolean hasIntegratedSystem() {
2424       return systemCase_ == 17;
2425     }
2426     /**
2427      *
2428      *
2429      * <pre>
2430      * Output only. This field indicates the entry's source system that Data Catalog
2431      * integrates with, such as BigQuery or Pub/Sub.
2432      * </pre>
2433      *
2434      * <code>
2435      * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
2436      * </code>
2437      *
2438      * @return The enum numeric value on the wire for integratedSystem.
2439      */
2440     @java.lang.Override
getIntegratedSystemValue()2441     public int getIntegratedSystemValue() {
2442       if (systemCase_ == 17) {
2443         return ((java.lang.Integer) system_).intValue();
2444       }
2445       return 0;
2446     }
2447     /**
2448      *
2449      *
2450      * <pre>
2451      * Output only. This field indicates the entry's source system that Data Catalog
2452      * integrates with, such as BigQuery or Pub/Sub.
2453      * </pre>
2454      *
2455      * <code>
2456      * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
2457      * </code>
2458      *
2459      * @param value The enum numeric value on the wire for integratedSystem to set.
2460      * @return This builder for chaining.
2461      */
setIntegratedSystemValue(int value)2462     public Builder setIntegratedSystemValue(int value) {
2463       systemCase_ = 17;
2464       system_ = value;
2465       onChanged();
2466       return this;
2467     }
2468     /**
2469      *
2470      *
2471      * <pre>
2472      * Output only. This field indicates the entry's source system that Data Catalog
2473      * integrates with, such as BigQuery or Pub/Sub.
2474      * </pre>
2475      *
2476      * <code>
2477      * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
2478      * </code>
2479      *
2480      * @return The integratedSystem.
2481      */
2482     @java.lang.Override
getIntegratedSystem()2483     public com.google.cloud.datacatalog.v1beta1.IntegratedSystem getIntegratedSystem() {
2484       if (systemCase_ == 17) {
2485         com.google.cloud.datacatalog.v1beta1.IntegratedSystem result =
2486             com.google.cloud.datacatalog.v1beta1.IntegratedSystem.forNumber(
2487                 (java.lang.Integer) system_);
2488         return result == null
2489             ? com.google.cloud.datacatalog.v1beta1.IntegratedSystem.UNRECOGNIZED
2490             : result;
2491       }
2492       return com.google.cloud.datacatalog.v1beta1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED;
2493     }
2494     /**
2495      *
2496      *
2497      * <pre>
2498      * Output only. This field indicates the entry's source system that Data Catalog
2499      * integrates with, such as BigQuery or Pub/Sub.
2500      * </pre>
2501      *
2502      * <code>
2503      * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
2504      * </code>
2505      *
2506      * @param value The integratedSystem to set.
2507      * @return This builder for chaining.
2508      */
setIntegratedSystem( com.google.cloud.datacatalog.v1beta1.IntegratedSystem value)2509     public Builder setIntegratedSystem(
2510         com.google.cloud.datacatalog.v1beta1.IntegratedSystem value) {
2511       if (value == null) {
2512         throw new NullPointerException();
2513       }
2514       systemCase_ = 17;
2515       system_ = value.getNumber();
2516       onChanged();
2517       return this;
2518     }
2519     /**
2520      *
2521      *
2522      * <pre>
2523      * Output only. This field indicates the entry's source system that Data Catalog
2524      * integrates with, such as BigQuery or Pub/Sub.
2525      * </pre>
2526      *
2527      * <code>
2528      * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
2529      * </code>
2530      *
2531      * @return This builder for chaining.
2532      */
clearIntegratedSystem()2533     public Builder clearIntegratedSystem() {
2534       if (systemCase_ == 17) {
2535         systemCase_ = 0;
2536         system_ = null;
2537         onChanged();
2538       }
2539       return this;
2540     }
2541 
2542     /**
2543      *
2544      *
2545      * <pre>
2546      * This field indicates the entry's source system that Data Catalog does not
2547      * integrate with. `user_specified_system` strings must begin with a letter
2548      * or underscore and can only contain letters, numbers, and underscores; are
2549      * case insensitive; must be at least 1 character and at most 64 characters
2550      * long.
2551      * </pre>
2552      *
2553      * <code>string user_specified_system = 18;</code>
2554      *
2555      * @return Whether the userSpecifiedSystem field is set.
2556      */
2557     @java.lang.Override
hasUserSpecifiedSystem()2558     public boolean hasUserSpecifiedSystem() {
2559       return systemCase_ == 18;
2560     }
2561     /**
2562      *
2563      *
2564      * <pre>
2565      * This field indicates the entry's source system that Data Catalog does not
2566      * integrate with. `user_specified_system` strings must begin with a letter
2567      * or underscore and can only contain letters, numbers, and underscores; are
2568      * case insensitive; must be at least 1 character and at most 64 characters
2569      * long.
2570      * </pre>
2571      *
2572      * <code>string user_specified_system = 18;</code>
2573      *
2574      * @return The userSpecifiedSystem.
2575      */
2576     @java.lang.Override
getUserSpecifiedSystem()2577     public java.lang.String getUserSpecifiedSystem() {
2578       java.lang.Object ref = "";
2579       if (systemCase_ == 18) {
2580         ref = system_;
2581       }
2582       if (!(ref instanceof java.lang.String)) {
2583         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2584         java.lang.String s = bs.toStringUtf8();
2585         if (systemCase_ == 18) {
2586           system_ = s;
2587         }
2588         return s;
2589       } else {
2590         return (java.lang.String) ref;
2591       }
2592     }
2593     /**
2594      *
2595      *
2596      * <pre>
2597      * This field indicates the entry's source system that Data Catalog does not
2598      * integrate with. `user_specified_system` strings must begin with a letter
2599      * or underscore and can only contain letters, numbers, and underscores; are
2600      * case insensitive; must be at least 1 character and at most 64 characters
2601      * long.
2602      * </pre>
2603      *
2604      * <code>string user_specified_system = 18;</code>
2605      *
2606      * @return The bytes for userSpecifiedSystem.
2607      */
2608     @java.lang.Override
getUserSpecifiedSystemBytes()2609     public com.google.protobuf.ByteString getUserSpecifiedSystemBytes() {
2610       java.lang.Object ref = "";
2611       if (systemCase_ == 18) {
2612         ref = system_;
2613       }
2614       if (ref instanceof String) {
2615         com.google.protobuf.ByteString b =
2616             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2617         if (systemCase_ == 18) {
2618           system_ = b;
2619         }
2620         return b;
2621       } else {
2622         return (com.google.protobuf.ByteString) ref;
2623       }
2624     }
2625     /**
2626      *
2627      *
2628      * <pre>
2629      * This field indicates the entry's source system that Data Catalog does not
2630      * integrate with. `user_specified_system` strings must begin with a letter
2631      * or underscore and can only contain letters, numbers, and underscores; are
2632      * case insensitive; must be at least 1 character and at most 64 characters
2633      * long.
2634      * </pre>
2635      *
2636      * <code>string user_specified_system = 18;</code>
2637      *
2638      * @param value The userSpecifiedSystem to set.
2639      * @return This builder for chaining.
2640      */
setUserSpecifiedSystem(java.lang.String value)2641     public Builder setUserSpecifiedSystem(java.lang.String value) {
2642       if (value == null) {
2643         throw new NullPointerException();
2644       }
2645       systemCase_ = 18;
2646       system_ = value;
2647       onChanged();
2648       return this;
2649     }
2650     /**
2651      *
2652      *
2653      * <pre>
2654      * This field indicates the entry's source system that Data Catalog does not
2655      * integrate with. `user_specified_system` strings must begin with a letter
2656      * or underscore and can only contain letters, numbers, and underscores; are
2657      * case insensitive; must be at least 1 character and at most 64 characters
2658      * long.
2659      * </pre>
2660      *
2661      * <code>string user_specified_system = 18;</code>
2662      *
2663      * @return This builder for chaining.
2664      */
clearUserSpecifiedSystem()2665     public Builder clearUserSpecifiedSystem() {
2666       if (systemCase_ == 18) {
2667         systemCase_ = 0;
2668         system_ = null;
2669         onChanged();
2670       }
2671       return this;
2672     }
2673     /**
2674      *
2675      *
2676      * <pre>
2677      * This field indicates the entry's source system that Data Catalog does not
2678      * integrate with. `user_specified_system` strings must begin with a letter
2679      * or underscore and can only contain letters, numbers, and underscores; are
2680      * case insensitive; must be at least 1 character and at most 64 characters
2681      * long.
2682      * </pre>
2683      *
2684      * <code>string user_specified_system = 18;</code>
2685      *
2686      * @param value The bytes for userSpecifiedSystem to set.
2687      * @return This builder for chaining.
2688      */
setUserSpecifiedSystemBytes(com.google.protobuf.ByteString value)2689     public Builder setUserSpecifiedSystemBytes(com.google.protobuf.ByteString value) {
2690       if (value == null) {
2691         throw new NullPointerException();
2692       }
2693       checkByteStringIsUtf8(value);
2694       systemCase_ = 18;
2695       system_ = value;
2696       onChanged();
2697       return this;
2698     }
2699 
2700     private com.google.protobuf.SingleFieldBuilderV3<
2701             com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec,
2702             com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder,
2703             com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder>
2704         gcsFilesetSpecBuilder_;
2705     /**
2706      *
2707      *
2708      * <pre>
2709      * Specification that applies to a Cloud Storage fileset. This is only valid
2710      * on entries of type FILESET.
2711      * </pre>
2712      *
2713      * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
2714      *
2715      * @return Whether the gcsFilesetSpec field is set.
2716      */
2717     @java.lang.Override
hasGcsFilesetSpec()2718     public boolean hasGcsFilesetSpec() {
2719       return typeSpecCase_ == 6;
2720     }
2721     /**
2722      *
2723      *
2724      * <pre>
2725      * Specification that applies to a Cloud Storage fileset. This is only valid
2726      * on entries of type FILESET.
2727      * </pre>
2728      *
2729      * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
2730      *
2731      * @return The gcsFilesetSpec.
2732      */
2733     @java.lang.Override
getGcsFilesetSpec()2734     public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec getGcsFilesetSpec() {
2735       if (gcsFilesetSpecBuilder_ == null) {
2736         if (typeSpecCase_ == 6) {
2737           return (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_;
2738         }
2739         return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance();
2740       } else {
2741         if (typeSpecCase_ == 6) {
2742           return gcsFilesetSpecBuilder_.getMessage();
2743         }
2744         return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance();
2745       }
2746     }
2747     /**
2748      *
2749      *
2750      * <pre>
2751      * Specification that applies to a Cloud Storage fileset. This is only valid
2752      * on entries of type FILESET.
2753      * </pre>
2754      *
2755      * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
2756      */
setGcsFilesetSpec(com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec value)2757     public Builder setGcsFilesetSpec(com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec value) {
2758       if (gcsFilesetSpecBuilder_ == null) {
2759         if (value == null) {
2760           throw new NullPointerException();
2761         }
2762         typeSpec_ = value;
2763         onChanged();
2764       } else {
2765         gcsFilesetSpecBuilder_.setMessage(value);
2766       }
2767       typeSpecCase_ = 6;
2768       return this;
2769     }
2770     /**
2771      *
2772      *
2773      * <pre>
2774      * Specification that applies to a Cloud Storage fileset. This is only valid
2775      * on entries of type FILESET.
2776      * </pre>
2777      *
2778      * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
2779      */
setGcsFilesetSpec( com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder builderForValue)2780     public Builder setGcsFilesetSpec(
2781         com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder builderForValue) {
2782       if (gcsFilesetSpecBuilder_ == null) {
2783         typeSpec_ = builderForValue.build();
2784         onChanged();
2785       } else {
2786         gcsFilesetSpecBuilder_.setMessage(builderForValue.build());
2787       }
2788       typeSpecCase_ = 6;
2789       return this;
2790     }
2791     /**
2792      *
2793      *
2794      * <pre>
2795      * Specification that applies to a Cloud Storage fileset. This is only valid
2796      * on entries of type FILESET.
2797      * </pre>
2798      *
2799      * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
2800      */
mergeGcsFilesetSpec(com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec value)2801     public Builder mergeGcsFilesetSpec(com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec value) {
2802       if (gcsFilesetSpecBuilder_ == null) {
2803         if (typeSpecCase_ == 6
2804             && typeSpec_
2805                 != com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance()) {
2806           typeSpec_ =
2807               com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.newBuilder(
2808                       (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_)
2809                   .mergeFrom(value)
2810                   .buildPartial();
2811         } else {
2812           typeSpec_ = value;
2813         }
2814         onChanged();
2815       } else {
2816         if (typeSpecCase_ == 6) {
2817           gcsFilesetSpecBuilder_.mergeFrom(value);
2818         } else {
2819           gcsFilesetSpecBuilder_.setMessage(value);
2820         }
2821       }
2822       typeSpecCase_ = 6;
2823       return this;
2824     }
2825     /**
2826      *
2827      *
2828      * <pre>
2829      * Specification that applies to a Cloud Storage fileset. This is only valid
2830      * on entries of type FILESET.
2831      * </pre>
2832      *
2833      * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
2834      */
clearGcsFilesetSpec()2835     public Builder clearGcsFilesetSpec() {
2836       if (gcsFilesetSpecBuilder_ == null) {
2837         if (typeSpecCase_ == 6) {
2838           typeSpecCase_ = 0;
2839           typeSpec_ = null;
2840           onChanged();
2841         }
2842       } else {
2843         if (typeSpecCase_ == 6) {
2844           typeSpecCase_ = 0;
2845           typeSpec_ = null;
2846         }
2847         gcsFilesetSpecBuilder_.clear();
2848       }
2849       return this;
2850     }
2851     /**
2852      *
2853      *
2854      * <pre>
2855      * Specification that applies to a Cloud Storage fileset. This is only valid
2856      * on entries of type FILESET.
2857      * </pre>
2858      *
2859      * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
2860      */
getGcsFilesetSpecBuilder()2861     public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder getGcsFilesetSpecBuilder() {
2862       return getGcsFilesetSpecFieldBuilder().getBuilder();
2863     }
2864     /**
2865      *
2866      *
2867      * <pre>
2868      * Specification that applies to a Cloud Storage fileset. This is only valid
2869      * on entries of type FILESET.
2870      * </pre>
2871      *
2872      * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
2873      */
2874     @java.lang.Override
2875     public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder
getGcsFilesetSpecOrBuilder()2876         getGcsFilesetSpecOrBuilder() {
2877       if ((typeSpecCase_ == 6) && (gcsFilesetSpecBuilder_ != null)) {
2878         return gcsFilesetSpecBuilder_.getMessageOrBuilder();
2879       } else {
2880         if (typeSpecCase_ == 6) {
2881           return (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_;
2882         }
2883         return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance();
2884       }
2885     }
2886     /**
2887      *
2888      *
2889      * <pre>
2890      * Specification that applies to a Cloud Storage fileset. This is only valid
2891      * on entries of type FILESET.
2892      * </pre>
2893      *
2894      * <code>.google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6;</code>
2895      */
2896     private com.google.protobuf.SingleFieldBuilderV3<
2897             com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec,
2898             com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder,
2899             com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder>
getGcsFilesetSpecFieldBuilder()2900         getGcsFilesetSpecFieldBuilder() {
2901       if (gcsFilesetSpecBuilder_ == null) {
2902         if (!(typeSpecCase_ == 6)) {
2903           typeSpec_ = com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance();
2904         }
2905         gcsFilesetSpecBuilder_ =
2906             new com.google.protobuf.SingleFieldBuilderV3<
2907                 com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec,
2908                 com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder,
2909                 com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder>(
2910                 (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_,
2911                 getParentForChildren(),
2912                 isClean());
2913         typeSpec_ = null;
2914       }
2915       typeSpecCase_ = 6;
2916       onChanged();
2917       return gcsFilesetSpecBuilder_;
2918     }
2919 
2920     private com.google.protobuf.SingleFieldBuilderV3<
2921             com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec,
2922             com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder,
2923             com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder>
2924         bigqueryTableSpecBuilder_;
2925     /**
2926      *
2927      *
2928      * <pre>
2929      * Specification that applies to a BigQuery table. This is only valid on
2930      * entries of type `TABLE`.
2931      * </pre>
2932      *
2933      * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
2934      *
2935      * @return Whether the bigqueryTableSpec field is set.
2936      */
2937     @java.lang.Override
hasBigqueryTableSpec()2938     public boolean hasBigqueryTableSpec() {
2939       return typeSpecCase_ == 12;
2940     }
2941     /**
2942      *
2943      *
2944      * <pre>
2945      * Specification that applies to a BigQuery table. This is only valid on
2946      * entries of type `TABLE`.
2947      * </pre>
2948      *
2949      * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
2950      *
2951      * @return The bigqueryTableSpec.
2952      */
2953     @java.lang.Override
getBigqueryTableSpec()2954     public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec getBigqueryTableSpec() {
2955       if (bigqueryTableSpecBuilder_ == null) {
2956         if (typeSpecCase_ == 12) {
2957           return (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_;
2958         }
2959         return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance();
2960       } else {
2961         if (typeSpecCase_ == 12) {
2962           return bigqueryTableSpecBuilder_.getMessage();
2963         }
2964         return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance();
2965       }
2966     }
2967     /**
2968      *
2969      *
2970      * <pre>
2971      * Specification that applies to a BigQuery table. This is only valid on
2972      * entries of type `TABLE`.
2973      * </pre>
2974      *
2975      * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
2976      */
setBigqueryTableSpec( com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec value)2977     public Builder setBigqueryTableSpec(
2978         com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec value) {
2979       if (bigqueryTableSpecBuilder_ == null) {
2980         if (value == null) {
2981           throw new NullPointerException();
2982         }
2983         typeSpec_ = value;
2984         onChanged();
2985       } else {
2986         bigqueryTableSpecBuilder_.setMessage(value);
2987       }
2988       typeSpecCase_ = 12;
2989       return this;
2990     }
2991     /**
2992      *
2993      *
2994      * <pre>
2995      * Specification that applies to a BigQuery table. This is only valid on
2996      * entries of type `TABLE`.
2997      * </pre>
2998      *
2999      * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
3000      */
setBigqueryTableSpec( com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder builderForValue)3001     public Builder setBigqueryTableSpec(
3002         com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder builderForValue) {
3003       if (bigqueryTableSpecBuilder_ == null) {
3004         typeSpec_ = builderForValue.build();
3005         onChanged();
3006       } else {
3007         bigqueryTableSpecBuilder_.setMessage(builderForValue.build());
3008       }
3009       typeSpecCase_ = 12;
3010       return this;
3011     }
3012     /**
3013      *
3014      *
3015      * <pre>
3016      * Specification that applies to a BigQuery table. This is only valid on
3017      * entries of type `TABLE`.
3018      * </pre>
3019      *
3020      * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
3021      */
mergeBigqueryTableSpec( com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec value)3022     public Builder mergeBigqueryTableSpec(
3023         com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec value) {
3024       if (bigqueryTableSpecBuilder_ == null) {
3025         if (typeSpecCase_ == 12
3026             && typeSpec_
3027                 != com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance()) {
3028           typeSpec_ =
3029               com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.newBuilder(
3030                       (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_)
3031                   .mergeFrom(value)
3032                   .buildPartial();
3033         } else {
3034           typeSpec_ = value;
3035         }
3036         onChanged();
3037       } else {
3038         if (typeSpecCase_ == 12) {
3039           bigqueryTableSpecBuilder_.mergeFrom(value);
3040         } else {
3041           bigqueryTableSpecBuilder_.setMessage(value);
3042         }
3043       }
3044       typeSpecCase_ = 12;
3045       return this;
3046     }
3047     /**
3048      *
3049      *
3050      * <pre>
3051      * Specification that applies to a BigQuery table. This is only valid on
3052      * entries of type `TABLE`.
3053      * </pre>
3054      *
3055      * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
3056      */
clearBigqueryTableSpec()3057     public Builder clearBigqueryTableSpec() {
3058       if (bigqueryTableSpecBuilder_ == null) {
3059         if (typeSpecCase_ == 12) {
3060           typeSpecCase_ = 0;
3061           typeSpec_ = null;
3062           onChanged();
3063         }
3064       } else {
3065         if (typeSpecCase_ == 12) {
3066           typeSpecCase_ = 0;
3067           typeSpec_ = null;
3068         }
3069         bigqueryTableSpecBuilder_.clear();
3070       }
3071       return this;
3072     }
3073     /**
3074      *
3075      *
3076      * <pre>
3077      * Specification that applies to a BigQuery table. This is only valid on
3078      * entries of type `TABLE`.
3079      * </pre>
3080      *
3081      * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
3082      */
3083     public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder
getBigqueryTableSpecBuilder()3084         getBigqueryTableSpecBuilder() {
3085       return getBigqueryTableSpecFieldBuilder().getBuilder();
3086     }
3087     /**
3088      *
3089      *
3090      * <pre>
3091      * Specification that applies to a BigQuery table. This is only valid on
3092      * entries of type `TABLE`.
3093      * </pre>
3094      *
3095      * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
3096      */
3097     @java.lang.Override
3098     public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder
getBigqueryTableSpecOrBuilder()3099         getBigqueryTableSpecOrBuilder() {
3100       if ((typeSpecCase_ == 12) && (bigqueryTableSpecBuilder_ != null)) {
3101         return bigqueryTableSpecBuilder_.getMessageOrBuilder();
3102       } else {
3103         if (typeSpecCase_ == 12) {
3104           return (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_;
3105         }
3106         return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance();
3107       }
3108     }
3109     /**
3110      *
3111      *
3112      * <pre>
3113      * Specification that applies to a BigQuery table. This is only valid on
3114      * entries of type `TABLE`.
3115      * </pre>
3116      *
3117      * <code>.google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12;</code>
3118      */
3119     private com.google.protobuf.SingleFieldBuilderV3<
3120             com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec,
3121             com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder,
3122             com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder>
getBigqueryTableSpecFieldBuilder()3123         getBigqueryTableSpecFieldBuilder() {
3124       if (bigqueryTableSpecBuilder_ == null) {
3125         if (!(typeSpecCase_ == 12)) {
3126           typeSpec_ = com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance();
3127         }
3128         bigqueryTableSpecBuilder_ =
3129             new com.google.protobuf.SingleFieldBuilderV3<
3130                 com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec,
3131                 com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder,
3132                 com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder>(
3133                 (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_,
3134                 getParentForChildren(),
3135                 isClean());
3136         typeSpec_ = null;
3137       }
3138       typeSpecCase_ = 12;
3139       onChanged();
3140       return bigqueryTableSpecBuilder_;
3141     }
3142 
3143     private com.google.protobuf.SingleFieldBuilderV3<
3144             com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec,
3145             com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder,
3146             com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder>
3147         bigqueryDateShardedSpecBuilder_;
3148     /**
3149      *
3150      *
3151      * <pre>
3152      * Specification for a group of BigQuery tables with name pattern
3153      * `[prefix]YYYYMMDD`. Context:
3154      * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
3155      * </pre>
3156      *
3157      * <code>
3158      * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
3159      * </code>
3160      *
3161      * @return Whether the bigqueryDateShardedSpec field is set.
3162      */
3163     @java.lang.Override
hasBigqueryDateShardedSpec()3164     public boolean hasBigqueryDateShardedSpec() {
3165       return typeSpecCase_ == 15;
3166     }
3167     /**
3168      *
3169      *
3170      * <pre>
3171      * Specification for a group of BigQuery tables with name pattern
3172      * `[prefix]YYYYMMDD`. Context:
3173      * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
3174      * </pre>
3175      *
3176      * <code>
3177      * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
3178      * </code>
3179      *
3180      * @return The bigqueryDateShardedSpec.
3181      */
3182     @java.lang.Override
3183     public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec
getBigqueryDateShardedSpec()3184         getBigqueryDateShardedSpec() {
3185       if (bigqueryDateShardedSpecBuilder_ == null) {
3186         if (typeSpecCase_ == 15) {
3187           return (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_;
3188         }
3189         return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance();
3190       } else {
3191         if (typeSpecCase_ == 15) {
3192           return bigqueryDateShardedSpecBuilder_.getMessage();
3193         }
3194         return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance();
3195       }
3196     }
3197     /**
3198      *
3199      *
3200      * <pre>
3201      * Specification for a group of BigQuery tables with name pattern
3202      * `[prefix]YYYYMMDD`. Context:
3203      * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
3204      * </pre>
3205      *
3206      * <code>
3207      * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
3208      * </code>
3209      */
setBigqueryDateShardedSpec( com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec value)3210     public Builder setBigqueryDateShardedSpec(
3211         com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec value) {
3212       if (bigqueryDateShardedSpecBuilder_ == null) {
3213         if (value == null) {
3214           throw new NullPointerException();
3215         }
3216         typeSpec_ = value;
3217         onChanged();
3218       } else {
3219         bigqueryDateShardedSpecBuilder_.setMessage(value);
3220       }
3221       typeSpecCase_ = 15;
3222       return this;
3223     }
3224     /**
3225      *
3226      *
3227      * <pre>
3228      * Specification for a group of BigQuery tables with name pattern
3229      * `[prefix]YYYYMMDD`. Context:
3230      * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
3231      * </pre>
3232      *
3233      * <code>
3234      * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
3235      * </code>
3236      */
setBigqueryDateShardedSpec( com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder builderForValue)3237     public Builder setBigqueryDateShardedSpec(
3238         com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder builderForValue) {
3239       if (bigqueryDateShardedSpecBuilder_ == null) {
3240         typeSpec_ = builderForValue.build();
3241         onChanged();
3242       } else {
3243         bigqueryDateShardedSpecBuilder_.setMessage(builderForValue.build());
3244       }
3245       typeSpecCase_ = 15;
3246       return this;
3247     }
3248     /**
3249      *
3250      *
3251      * <pre>
3252      * Specification for a group of BigQuery tables with name pattern
3253      * `[prefix]YYYYMMDD`. Context:
3254      * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
3255      * </pre>
3256      *
3257      * <code>
3258      * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
3259      * </code>
3260      */
mergeBigqueryDateShardedSpec( com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec value)3261     public Builder mergeBigqueryDateShardedSpec(
3262         com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec value) {
3263       if (bigqueryDateShardedSpecBuilder_ == null) {
3264         if (typeSpecCase_ == 15
3265             && typeSpec_
3266                 != com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec
3267                     .getDefaultInstance()) {
3268           typeSpec_ =
3269               com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.newBuilder(
3270                       (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_)
3271                   .mergeFrom(value)
3272                   .buildPartial();
3273         } else {
3274           typeSpec_ = value;
3275         }
3276         onChanged();
3277       } else {
3278         if (typeSpecCase_ == 15) {
3279           bigqueryDateShardedSpecBuilder_.mergeFrom(value);
3280         } else {
3281           bigqueryDateShardedSpecBuilder_.setMessage(value);
3282         }
3283       }
3284       typeSpecCase_ = 15;
3285       return this;
3286     }
3287     /**
3288      *
3289      *
3290      * <pre>
3291      * Specification for a group of BigQuery tables with name pattern
3292      * `[prefix]YYYYMMDD`. Context:
3293      * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
3294      * </pre>
3295      *
3296      * <code>
3297      * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
3298      * </code>
3299      */
clearBigqueryDateShardedSpec()3300     public Builder clearBigqueryDateShardedSpec() {
3301       if (bigqueryDateShardedSpecBuilder_ == null) {
3302         if (typeSpecCase_ == 15) {
3303           typeSpecCase_ = 0;
3304           typeSpec_ = null;
3305           onChanged();
3306         }
3307       } else {
3308         if (typeSpecCase_ == 15) {
3309           typeSpecCase_ = 0;
3310           typeSpec_ = null;
3311         }
3312         bigqueryDateShardedSpecBuilder_.clear();
3313       }
3314       return this;
3315     }
3316     /**
3317      *
3318      *
3319      * <pre>
3320      * Specification for a group of BigQuery tables with name pattern
3321      * `[prefix]YYYYMMDD`. Context:
3322      * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
3323      * </pre>
3324      *
3325      * <code>
3326      * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
3327      * </code>
3328      */
3329     public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder
getBigqueryDateShardedSpecBuilder()3330         getBigqueryDateShardedSpecBuilder() {
3331       return getBigqueryDateShardedSpecFieldBuilder().getBuilder();
3332     }
3333     /**
3334      *
3335      *
3336      * <pre>
3337      * Specification for a group of BigQuery tables with name pattern
3338      * `[prefix]YYYYMMDD`. Context:
3339      * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
3340      * </pre>
3341      *
3342      * <code>
3343      * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
3344      * </code>
3345      */
3346     @java.lang.Override
3347     public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder
getBigqueryDateShardedSpecOrBuilder()3348         getBigqueryDateShardedSpecOrBuilder() {
3349       if ((typeSpecCase_ == 15) && (bigqueryDateShardedSpecBuilder_ != null)) {
3350         return bigqueryDateShardedSpecBuilder_.getMessageOrBuilder();
3351       } else {
3352         if (typeSpecCase_ == 15) {
3353           return (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_;
3354         }
3355         return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance();
3356       }
3357     }
3358     /**
3359      *
3360      *
3361      * <pre>
3362      * Specification for a group of BigQuery tables with name pattern
3363      * `[prefix]YYYYMMDD`. Context:
3364      * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
3365      * </pre>
3366      *
3367      * <code>
3368      * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15;
3369      * </code>
3370      */
3371     private com.google.protobuf.SingleFieldBuilderV3<
3372             com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec,
3373             com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder,
3374             com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder>
getBigqueryDateShardedSpecFieldBuilder()3375         getBigqueryDateShardedSpecFieldBuilder() {
3376       if (bigqueryDateShardedSpecBuilder_ == null) {
3377         if (!(typeSpecCase_ == 15)) {
3378           typeSpec_ =
3379               com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance();
3380         }
3381         bigqueryDateShardedSpecBuilder_ =
3382             new com.google.protobuf.SingleFieldBuilderV3<
3383                 com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec,
3384                 com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder,
3385                 com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder>(
3386                 (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_,
3387                 getParentForChildren(),
3388                 isClean());
3389         typeSpec_ = null;
3390       }
3391       typeSpecCase_ = 15;
3392       onChanged();
3393       return bigqueryDateShardedSpecBuilder_;
3394     }
3395 
3396     private java.lang.Object displayName_ = "";
3397     /**
3398      *
3399      *
3400      * <pre>
3401      * Display information such as title and description. A short name to identify
3402      * the entry, for example, "Analytics Data - Jan 2011". Default value is an
3403      * empty string.
3404      * </pre>
3405      *
3406      * <code>string display_name = 3;</code>
3407      *
3408      * @return The displayName.
3409      */
getDisplayName()3410     public java.lang.String getDisplayName() {
3411       java.lang.Object ref = displayName_;
3412       if (!(ref instanceof java.lang.String)) {
3413         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3414         java.lang.String s = bs.toStringUtf8();
3415         displayName_ = s;
3416         return s;
3417       } else {
3418         return (java.lang.String) ref;
3419       }
3420     }
3421     /**
3422      *
3423      *
3424      * <pre>
3425      * Display information such as title and description. A short name to identify
3426      * the entry, for example, "Analytics Data - Jan 2011". Default value is an
3427      * empty string.
3428      * </pre>
3429      *
3430      * <code>string display_name = 3;</code>
3431      *
3432      * @return The bytes for displayName.
3433      */
getDisplayNameBytes()3434     public com.google.protobuf.ByteString getDisplayNameBytes() {
3435       java.lang.Object ref = displayName_;
3436       if (ref instanceof String) {
3437         com.google.protobuf.ByteString b =
3438             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3439         displayName_ = b;
3440         return b;
3441       } else {
3442         return (com.google.protobuf.ByteString) ref;
3443       }
3444     }
3445     /**
3446      *
3447      *
3448      * <pre>
3449      * Display information such as title and description. A short name to identify
3450      * the entry, for example, "Analytics Data - Jan 2011". Default value is an
3451      * empty string.
3452      * </pre>
3453      *
3454      * <code>string display_name = 3;</code>
3455      *
3456      * @param value The displayName to set.
3457      * @return This builder for chaining.
3458      */
setDisplayName(java.lang.String value)3459     public Builder setDisplayName(java.lang.String value) {
3460       if (value == null) {
3461         throw new NullPointerException();
3462       }
3463       displayName_ = value;
3464       bitField0_ |= 0x00000200;
3465       onChanged();
3466       return this;
3467     }
3468     /**
3469      *
3470      *
3471      * <pre>
3472      * Display information such as title and description. A short name to identify
3473      * the entry, for example, "Analytics Data - Jan 2011". Default value is an
3474      * empty string.
3475      * </pre>
3476      *
3477      * <code>string display_name = 3;</code>
3478      *
3479      * @return This builder for chaining.
3480      */
clearDisplayName()3481     public Builder clearDisplayName() {
3482       displayName_ = getDefaultInstance().getDisplayName();
3483       bitField0_ = (bitField0_ & ~0x00000200);
3484       onChanged();
3485       return this;
3486     }
3487     /**
3488      *
3489      *
3490      * <pre>
3491      * Display information such as title and description. A short name to identify
3492      * the entry, for example, "Analytics Data - Jan 2011". Default value is an
3493      * empty string.
3494      * </pre>
3495      *
3496      * <code>string display_name = 3;</code>
3497      *
3498      * @param value The bytes for displayName to set.
3499      * @return This builder for chaining.
3500      */
setDisplayNameBytes(com.google.protobuf.ByteString value)3501     public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
3502       if (value == null) {
3503         throw new NullPointerException();
3504       }
3505       checkByteStringIsUtf8(value);
3506       displayName_ = value;
3507       bitField0_ |= 0x00000200;
3508       onChanged();
3509       return this;
3510     }
3511 
3512     private java.lang.Object description_ = "";
3513     /**
3514      *
3515      *
3516      * <pre>
3517      * Entry description, which can consist of several sentences or paragraphs
3518      * that describe entry contents. Default value is an empty string.
3519      * </pre>
3520      *
3521      * <code>string description = 4;</code>
3522      *
3523      * @return The description.
3524      */
getDescription()3525     public java.lang.String getDescription() {
3526       java.lang.Object ref = description_;
3527       if (!(ref instanceof java.lang.String)) {
3528         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3529         java.lang.String s = bs.toStringUtf8();
3530         description_ = s;
3531         return s;
3532       } else {
3533         return (java.lang.String) ref;
3534       }
3535     }
3536     /**
3537      *
3538      *
3539      * <pre>
3540      * Entry description, which can consist of several sentences or paragraphs
3541      * that describe entry contents. Default value is an empty string.
3542      * </pre>
3543      *
3544      * <code>string description = 4;</code>
3545      *
3546      * @return The bytes for description.
3547      */
getDescriptionBytes()3548     public com.google.protobuf.ByteString getDescriptionBytes() {
3549       java.lang.Object ref = description_;
3550       if (ref instanceof String) {
3551         com.google.protobuf.ByteString b =
3552             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3553         description_ = b;
3554         return b;
3555       } else {
3556         return (com.google.protobuf.ByteString) ref;
3557       }
3558     }
3559     /**
3560      *
3561      *
3562      * <pre>
3563      * Entry description, which can consist of several sentences or paragraphs
3564      * that describe entry contents. Default value is an empty string.
3565      * </pre>
3566      *
3567      * <code>string description = 4;</code>
3568      *
3569      * @param value The description to set.
3570      * @return This builder for chaining.
3571      */
setDescription(java.lang.String value)3572     public Builder setDescription(java.lang.String value) {
3573       if (value == null) {
3574         throw new NullPointerException();
3575       }
3576       description_ = value;
3577       bitField0_ |= 0x00000400;
3578       onChanged();
3579       return this;
3580     }
3581     /**
3582      *
3583      *
3584      * <pre>
3585      * Entry description, which can consist of several sentences or paragraphs
3586      * that describe entry contents. Default value is an empty string.
3587      * </pre>
3588      *
3589      * <code>string description = 4;</code>
3590      *
3591      * @return This builder for chaining.
3592      */
clearDescription()3593     public Builder clearDescription() {
3594       description_ = getDefaultInstance().getDescription();
3595       bitField0_ = (bitField0_ & ~0x00000400);
3596       onChanged();
3597       return this;
3598     }
3599     /**
3600      *
3601      *
3602      * <pre>
3603      * Entry description, which can consist of several sentences or paragraphs
3604      * that describe entry contents. Default value is an empty string.
3605      * </pre>
3606      *
3607      * <code>string description = 4;</code>
3608      *
3609      * @param value The bytes for description to set.
3610      * @return This builder for chaining.
3611      */
setDescriptionBytes(com.google.protobuf.ByteString value)3612     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
3613       if (value == null) {
3614         throw new NullPointerException();
3615       }
3616       checkByteStringIsUtf8(value);
3617       description_ = value;
3618       bitField0_ |= 0x00000400;
3619       onChanged();
3620       return this;
3621     }
3622 
3623     private com.google.cloud.datacatalog.v1beta1.Schema schema_;
3624     private com.google.protobuf.SingleFieldBuilderV3<
3625             com.google.cloud.datacatalog.v1beta1.Schema,
3626             com.google.cloud.datacatalog.v1beta1.Schema.Builder,
3627             com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder>
3628         schemaBuilder_;
3629     /**
3630      *
3631      *
3632      * <pre>
3633      * Schema of the entry. An entry might not have any schema attached to it.
3634      * </pre>
3635      *
3636      * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
3637      *
3638      * @return Whether the schema field is set.
3639      */
hasSchema()3640     public boolean hasSchema() {
3641       return ((bitField0_ & 0x00000800) != 0);
3642     }
3643     /**
3644      *
3645      *
3646      * <pre>
3647      * Schema of the entry. An entry might not have any schema attached to it.
3648      * </pre>
3649      *
3650      * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
3651      *
3652      * @return The schema.
3653      */
getSchema()3654     public com.google.cloud.datacatalog.v1beta1.Schema getSchema() {
3655       if (schemaBuilder_ == null) {
3656         return schema_ == null
3657             ? com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance()
3658             : schema_;
3659       } else {
3660         return schemaBuilder_.getMessage();
3661       }
3662     }
3663     /**
3664      *
3665      *
3666      * <pre>
3667      * Schema of the entry. An entry might not have any schema attached to it.
3668      * </pre>
3669      *
3670      * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
3671      */
setSchema(com.google.cloud.datacatalog.v1beta1.Schema value)3672     public Builder setSchema(com.google.cloud.datacatalog.v1beta1.Schema value) {
3673       if (schemaBuilder_ == null) {
3674         if (value == null) {
3675           throw new NullPointerException();
3676         }
3677         schema_ = value;
3678       } else {
3679         schemaBuilder_.setMessage(value);
3680       }
3681       bitField0_ |= 0x00000800;
3682       onChanged();
3683       return this;
3684     }
3685     /**
3686      *
3687      *
3688      * <pre>
3689      * Schema of the entry. An entry might not have any schema attached to it.
3690      * </pre>
3691      *
3692      * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
3693      */
setSchema(com.google.cloud.datacatalog.v1beta1.Schema.Builder builderForValue)3694     public Builder setSchema(com.google.cloud.datacatalog.v1beta1.Schema.Builder builderForValue) {
3695       if (schemaBuilder_ == null) {
3696         schema_ = builderForValue.build();
3697       } else {
3698         schemaBuilder_.setMessage(builderForValue.build());
3699       }
3700       bitField0_ |= 0x00000800;
3701       onChanged();
3702       return this;
3703     }
3704     /**
3705      *
3706      *
3707      * <pre>
3708      * Schema of the entry. An entry might not have any schema attached to it.
3709      * </pre>
3710      *
3711      * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
3712      */
mergeSchema(com.google.cloud.datacatalog.v1beta1.Schema value)3713     public Builder mergeSchema(com.google.cloud.datacatalog.v1beta1.Schema value) {
3714       if (schemaBuilder_ == null) {
3715         if (((bitField0_ & 0x00000800) != 0)
3716             && schema_ != null
3717             && schema_ != com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance()) {
3718           getSchemaBuilder().mergeFrom(value);
3719         } else {
3720           schema_ = value;
3721         }
3722       } else {
3723         schemaBuilder_.mergeFrom(value);
3724       }
3725       bitField0_ |= 0x00000800;
3726       onChanged();
3727       return this;
3728     }
3729     /**
3730      *
3731      *
3732      * <pre>
3733      * Schema of the entry. An entry might not have any schema attached to it.
3734      * </pre>
3735      *
3736      * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
3737      */
clearSchema()3738     public Builder clearSchema() {
3739       bitField0_ = (bitField0_ & ~0x00000800);
3740       schema_ = null;
3741       if (schemaBuilder_ != null) {
3742         schemaBuilder_.dispose();
3743         schemaBuilder_ = null;
3744       }
3745       onChanged();
3746       return this;
3747     }
3748     /**
3749      *
3750      *
3751      * <pre>
3752      * Schema of the entry. An entry might not have any schema attached to it.
3753      * </pre>
3754      *
3755      * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
3756      */
getSchemaBuilder()3757     public com.google.cloud.datacatalog.v1beta1.Schema.Builder getSchemaBuilder() {
3758       bitField0_ |= 0x00000800;
3759       onChanged();
3760       return getSchemaFieldBuilder().getBuilder();
3761     }
3762     /**
3763      *
3764      *
3765      * <pre>
3766      * Schema of the entry. An entry might not have any schema attached to it.
3767      * </pre>
3768      *
3769      * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
3770      */
getSchemaOrBuilder()3771     public com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder getSchemaOrBuilder() {
3772       if (schemaBuilder_ != null) {
3773         return schemaBuilder_.getMessageOrBuilder();
3774       } else {
3775         return schema_ == null
3776             ? com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance()
3777             : schema_;
3778       }
3779     }
3780     /**
3781      *
3782      *
3783      * <pre>
3784      * Schema of the entry. An entry might not have any schema attached to it.
3785      * </pre>
3786      *
3787      * <code>.google.cloud.datacatalog.v1beta1.Schema schema = 5;</code>
3788      */
3789     private com.google.protobuf.SingleFieldBuilderV3<
3790             com.google.cloud.datacatalog.v1beta1.Schema,
3791             com.google.cloud.datacatalog.v1beta1.Schema.Builder,
3792             com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder>
getSchemaFieldBuilder()3793         getSchemaFieldBuilder() {
3794       if (schemaBuilder_ == null) {
3795         schemaBuilder_ =
3796             new com.google.protobuf.SingleFieldBuilderV3<
3797                 com.google.cloud.datacatalog.v1beta1.Schema,
3798                 com.google.cloud.datacatalog.v1beta1.Schema.Builder,
3799                 com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder>(
3800                 getSchema(), getParentForChildren(), isClean());
3801         schema_ = null;
3802       }
3803       return schemaBuilder_;
3804     }
3805 
3806     private com.google.cloud.datacatalog.v1beta1.SystemTimestamps sourceSystemTimestamps_;
3807     private com.google.protobuf.SingleFieldBuilderV3<
3808             com.google.cloud.datacatalog.v1beta1.SystemTimestamps,
3809             com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder,
3810             com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder>
3811         sourceSystemTimestampsBuilder_;
3812     /**
3813      *
3814      *
3815      * <pre>
3816      * Output only. Timestamps about the underlying resource, not about this Data Catalog
3817      * entry. Output only when Entry is of type in the EntryType enum. For entries
3818      * with user_specified_type, this field is optional and defaults to an empty
3819      * timestamp.
3820      * </pre>
3821      *
3822      * <code>
3823      * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3824      * </code>
3825      *
3826      * @return Whether the sourceSystemTimestamps field is set.
3827      */
hasSourceSystemTimestamps()3828     public boolean hasSourceSystemTimestamps() {
3829       return ((bitField0_ & 0x00001000) != 0);
3830     }
3831     /**
3832      *
3833      *
3834      * <pre>
3835      * Output only. Timestamps about the underlying resource, not about this Data Catalog
3836      * entry. Output only when Entry is of type in the EntryType enum. For entries
3837      * with user_specified_type, this field is optional and defaults to an empty
3838      * timestamp.
3839      * </pre>
3840      *
3841      * <code>
3842      * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3843      * </code>
3844      *
3845      * @return The sourceSystemTimestamps.
3846      */
getSourceSystemTimestamps()3847     public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getSourceSystemTimestamps() {
3848       if (sourceSystemTimestampsBuilder_ == null) {
3849         return sourceSystemTimestamps_ == null
3850             ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()
3851             : sourceSystemTimestamps_;
3852       } else {
3853         return sourceSystemTimestampsBuilder_.getMessage();
3854       }
3855     }
3856     /**
3857      *
3858      *
3859      * <pre>
3860      * Output only. Timestamps about the underlying resource, not about this Data Catalog
3861      * entry. Output only when Entry is of type in the EntryType enum. For entries
3862      * with user_specified_type, this field is optional and defaults to an empty
3863      * timestamp.
3864      * </pre>
3865      *
3866      * <code>
3867      * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3868      * </code>
3869      */
setSourceSystemTimestamps( com.google.cloud.datacatalog.v1beta1.SystemTimestamps value)3870     public Builder setSourceSystemTimestamps(
3871         com.google.cloud.datacatalog.v1beta1.SystemTimestamps value) {
3872       if (sourceSystemTimestampsBuilder_ == null) {
3873         if (value == null) {
3874           throw new NullPointerException();
3875         }
3876         sourceSystemTimestamps_ = value;
3877       } else {
3878         sourceSystemTimestampsBuilder_.setMessage(value);
3879       }
3880       bitField0_ |= 0x00001000;
3881       onChanged();
3882       return this;
3883     }
3884     /**
3885      *
3886      *
3887      * <pre>
3888      * Output only. Timestamps about the underlying resource, not about this Data Catalog
3889      * entry. Output only when Entry is of type in the EntryType enum. For entries
3890      * with user_specified_type, this field is optional and defaults to an empty
3891      * timestamp.
3892      * </pre>
3893      *
3894      * <code>
3895      * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3896      * </code>
3897      */
setSourceSystemTimestamps( com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder builderForValue)3898     public Builder setSourceSystemTimestamps(
3899         com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder builderForValue) {
3900       if (sourceSystemTimestampsBuilder_ == null) {
3901         sourceSystemTimestamps_ = builderForValue.build();
3902       } else {
3903         sourceSystemTimestampsBuilder_.setMessage(builderForValue.build());
3904       }
3905       bitField0_ |= 0x00001000;
3906       onChanged();
3907       return this;
3908     }
3909     /**
3910      *
3911      *
3912      * <pre>
3913      * Output only. Timestamps about the underlying resource, not about this Data Catalog
3914      * entry. Output only when Entry is of type in the EntryType enum. For entries
3915      * with user_specified_type, this field is optional and defaults to an empty
3916      * timestamp.
3917      * </pre>
3918      *
3919      * <code>
3920      * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3921      * </code>
3922      */
mergeSourceSystemTimestamps( com.google.cloud.datacatalog.v1beta1.SystemTimestamps value)3923     public Builder mergeSourceSystemTimestamps(
3924         com.google.cloud.datacatalog.v1beta1.SystemTimestamps value) {
3925       if (sourceSystemTimestampsBuilder_ == null) {
3926         if (((bitField0_ & 0x00001000) != 0)
3927             && sourceSystemTimestamps_ != null
3928             && sourceSystemTimestamps_
3929                 != com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()) {
3930           getSourceSystemTimestampsBuilder().mergeFrom(value);
3931         } else {
3932           sourceSystemTimestamps_ = value;
3933         }
3934       } else {
3935         sourceSystemTimestampsBuilder_.mergeFrom(value);
3936       }
3937       bitField0_ |= 0x00001000;
3938       onChanged();
3939       return this;
3940     }
3941     /**
3942      *
3943      *
3944      * <pre>
3945      * Output only. Timestamps about the underlying resource, not about this Data Catalog
3946      * entry. Output only when Entry is of type in the EntryType enum. For entries
3947      * with user_specified_type, this field is optional and defaults to an empty
3948      * timestamp.
3949      * </pre>
3950      *
3951      * <code>
3952      * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3953      * </code>
3954      */
clearSourceSystemTimestamps()3955     public Builder clearSourceSystemTimestamps() {
3956       bitField0_ = (bitField0_ & ~0x00001000);
3957       sourceSystemTimestamps_ = null;
3958       if (sourceSystemTimestampsBuilder_ != null) {
3959         sourceSystemTimestampsBuilder_.dispose();
3960         sourceSystemTimestampsBuilder_ = null;
3961       }
3962       onChanged();
3963       return this;
3964     }
3965     /**
3966      *
3967      *
3968      * <pre>
3969      * Output only. Timestamps about the underlying resource, not about this Data Catalog
3970      * entry. Output only when Entry is of type in the EntryType enum. For entries
3971      * with user_specified_type, this field is optional and defaults to an empty
3972      * timestamp.
3973      * </pre>
3974      *
3975      * <code>
3976      * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3977      * </code>
3978      */
3979     public com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder
getSourceSystemTimestampsBuilder()3980         getSourceSystemTimestampsBuilder() {
3981       bitField0_ |= 0x00001000;
3982       onChanged();
3983       return getSourceSystemTimestampsFieldBuilder().getBuilder();
3984     }
3985     /**
3986      *
3987      *
3988      * <pre>
3989      * Output only. Timestamps about the underlying resource, not about this Data Catalog
3990      * entry. Output only when Entry is of type in the EntryType enum. For entries
3991      * with user_specified_type, this field is optional and defaults to an empty
3992      * timestamp.
3993      * </pre>
3994      *
3995      * <code>
3996      * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3997      * </code>
3998      */
3999     public com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder
getSourceSystemTimestampsOrBuilder()4000         getSourceSystemTimestampsOrBuilder() {
4001       if (sourceSystemTimestampsBuilder_ != null) {
4002         return sourceSystemTimestampsBuilder_.getMessageOrBuilder();
4003       } else {
4004         return sourceSystemTimestamps_ == null
4005             ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()
4006             : sourceSystemTimestamps_;
4007       }
4008     }
4009     /**
4010      *
4011      *
4012      * <pre>
4013      * Output only. Timestamps about the underlying resource, not about this Data Catalog
4014      * entry. Output only when Entry is of type in the EntryType enum. For entries
4015      * with user_specified_type, this field is optional and defaults to an empty
4016      * timestamp.
4017      * </pre>
4018      *
4019      * <code>
4020      * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
4021      * </code>
4022      */
4023     private com.google.protobuf.SingleFieldBuilderV3<
4024             com.google.cloud.datacatalog.v1beta1.SystemTimestamps,
4025             com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder,
4026             com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder>
getSourceSystemTimestampsFieldBuilder()4027         getSourceSystemTimestampsFieldBuilder() {
4028       if (sourceSystemTimestampsBuilder_ == null) {
4029         sourceSystemTimestampsBuilder_ =
4030             new com.google.protobuf.SingleFieldBuilderV3<
4031                 com.google.cloud.datacatalog.v1beta1.SystemTimestamps,
4032                 com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder,
4033                 com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder>(
4034                 getSourceSystemTimestamps(), getParentForChildren(), isClean());
4035         sourceSystemTimestamps_ = null;
4036       }
4037       return sourceSystemTimestampsBuilder_;
4038     }
4039 
4040     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)4041     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
4042       return super.setUnknownFields(unknownFields);
4043     }
4044 
4045     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4046     public final Builder mergeUnknownFields(
4047         final com.google.protobuf.UnknownFieldSet unknownFields) {
4048       return super.mergeUnknownFields(unknownFields);
4049     }
4050 
4051     // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.Entry)
4052   }
4053 
4054   // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.Entry)
4055   private static final com.google.cloud.datacatalog.v1beta1.Entry DEFAULT_INSTANCE;
4056 
4057   static {
4058     DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.Entry();
4059   }
4060 
getDefaultInstance()4061   public static com.google.cloud.datacatalog.v1beta1.Entry getDefaultInstance() {
4062     return DEFAULT_INSTANCE;
4063   }
4064 
4065   private static final com.google.protobuf.Parser<Entry> PARSER =
4066       new com.google.protobuf.AbstractParser<Entry>() {
4067         @java.lang.Override
4068         public Entry parsePartialFrom(
4069             com.google.protobuf.CodedInputStream input,
4070             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4071             throws com.google.protobuf.InvalidProtocolBufferException {
4072           Builder builder = newBuilder();
4073           try {
4074             builder.mergeFrom(input, extensionRegistry);
4075           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4076             throw e.setUnfinishedMessage(builder.buildPartial());
4077           } catch (com.google.protobuf.UninitializedMessageException e) {
4078             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4079           } catch (java.io.IOException e) {
4080             throw new com.google.protobuf.InvalidProtocolBufferException(e)
4081                 .setUnfinishedMessage(builder.buildPartial());
4082           }
4083           return builder.buildPartial();
4084         }
4085       };
4086 
parser()4087   public static com.google.protobuf.Parser<Entry> parser() {
4088     return PARSER;
4089   }
4090 
4091   @java.lang.Override
getParserForType()4092   public com.google.protobuf.Parser<Entry> getParserForType() {
4093     return PARSER;
4094   }
4095 
4096   @java.lang.Override
getDefaultInstanceForType()4097   public com.google.cloud.datacatalog.v1beta1.Entry getDefaultInstanceForType() {
4098     return DEFAULT_INSTANCE;
4099   }
4100 }
4101