• 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/privacy/dlp/v2/dlp.proto
18 
19 package com.google.privacy.dlp.v2;
20 
21 /**
22  *
23  *
24  * <pre>
25  * A column with a semantic tag attached.
26  * </pre>
27  *
28  * Protobuf type {@code google.privacy.dlp.v2.QuasiId}
29  */
30 public final class QuasiId extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.QuasiId)
33     QuasiIdOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use QuasiId.newBuilder() to construct.
QuasiId(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private QuasiId(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
QuasiId()40   private QuasiId() {}
41 
42   @java.lang.Override
43   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)44   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
45     return new QuasiId();
46   }
47 
48   @java.lang.Override
getUnknownFields()49   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
50     return this.unknownFields;
51   }
52 
getDescriptor()53   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
54     return com.google.privacy.dlp.v2.DlpProto
55         .internal_static_google_privacy_dlp_v2_QuasiId_descriptor;
56   }
57 
58   @java.lang.Override
59   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()60       internalGetFieldAccessorTable() {
61     return com.google.privacy.dlp.v2.DlpProto
62         .internal_static_google_privacy_dlp_v2_QuasiId_fieldAccessorTable
63         .ensureFieldAccessorsInitialized(
64             com.google.privacy.dlp.v2.QuasiId.class,
65             com.google.privacy.dlp.v2.QuasiId.Builder.class);
66   }
67 
68   private int tagCase_ = 0;
69   private java.lang.Object tag_;
70 
71   public enum TagCase
72       implements
73           com.google.protobuf.Internal.EnumLite,
74           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
75     INFO_TYPE(2),
76     CUSTOM_TAG(3),
77     INFERRED(4),
78     TAG_NOT_SET(0);
79     private final int value;
80 
TagCase(int value)81     private TagCase(int value) {
82       this.value = value;
83     }
84     /**
85      * @param value The number of the enum to look for.
86      * @return The enum associated with the given number.
87      * @deprecated Use {@link #forNumber(int)} instead.
88      */
89     @java.lang.Deprecated
valueOf(int value)90     public static TagCase valueOf(int value) {
91       return forNumber(value);
92     }
93 
forNumber(int value)94     public static TagCase forNumber(int value) {
95       switch (value) {
96         case 2:
97           return INFO_TYPE;
98         case 3:
99           return CUSTOM_TAG;
100         case 4:
101           return INFERRED;
102         case 0:
103           return TAG_NOT_SET;
104         default:
105           return null;
106       }
107     }
108 
getNumber()109     public int getNumber() {
110       return this.value;
111     }
112   };
113 
getTagCase()114   public TagCase getTagCase() {
115     return TagCase.forNumber(tagCase_);
116   }
117 
118   public static final int FIELD_FIELD_NUMBER = 1;
119   private com.google.privacy.dlp.v2.FieldId field_;
120   /**
121    *
122    *
123    * <pre>
124    * Required. Identifies the column.
125    * </pre>
126    *
127    * <code>.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
128    * </code>
129    *
130    * @return Whether the field field is set.
131    */
132   @java.lang.Override
hasField()133   public boolean hasField() {
134     return field_ != null;
135   }
136   /**
137    *
138    *
139    * <pre>
140    * Required. Identifies the column.
141    * </pre>
142    *
143    * <code>.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
144    * </code>
145    *
146    * @return The field.
147    */
148   @java.lang.Override
getField()149   public com.google.privacy.dlp.v2.FieldId getField() {
150     return field_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : field_;
151   }
152   /**
153    *
154    *
155    * <pre>
156    * Required. Identifies the column.
157    * </pre>
158    *
159    * <code>.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
160    * </code>
161    */
162   @java.lang.Override
getFieldOrBuilder()163   public com.google.privacy.dlp.v2.FieldIdOrBuilder getFieldOrBuilder() {
164     return field_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : field_;
165   }
166 
167   public static final int INFO_TYPE_FIELD_NUMBER = 2;
168   /**
169    *
170    *
171    * <pre>
172    * A column can be tagged with a InfoType to use the relevant public
173    * dataset as a statistical model of population, if available. We
174    * currently support US ZIP codes, region codes, ages and genders.
175    * To programmatically obtain the list of supported InfoTypes, use
176    * ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
177    * </pre>
178    *
179    * <code>.google.privacy.dlp.v2.InfoType info_type = 2;</code>
180    *
181    * @return Whether the infoType field is set.
182    */
183   @java.lang.Override
hasInfoType()184   public boolean hasInfoType() {
185     return tagCase_ == 2;
186   }
187   /**
188    *
189    *
190    * <pre>
191    * A column can be tagged with a InfoType to use the relevant public
192    * dataset as a statistical model of population, if available. We
193    * currently support US ZIP codes, region codes, ages and genders.
194    * To programmatically obtain the list of supported InfoTypes, use
195    * ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
196    * </pre>
197    *
198    * <code>.google.privacy.dlp.v2.InfoType info_type = 2;</code>
199    *
200    * @return The infoType.
201    */
202   @java.lang.Override
getInfoType()203   public com.google.privacy.dlp.v2.InfoType getInfoType() {
204     if (tagCase_ == 2) {
205       return (com.google.privacy.dlp.v2.InfoType) tag_;
206     }
207     return com.google.privacy.dlp.v2.InfoType.getDefaultInstance();
208   }
209   /**
210    *
211    *
212    * <pre>
213    * A column can be tagged with a InfoType to use the relevant public
214    * dataset as a statistical model of population, if available. We
215    * currently support US ZIP codes, region codes, ages and genders.
216    * To programmatically obtain the list of supported InfoTypes, use
217    * ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
218    * </pre>
219    *
220    * <code>.google.privacy.dlp.v2.InfoType info_type = 2;</code>
221    */
222   @java.lang.Override
getInfoTypeOrBuilder()223   public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() {
224     if (tagCase_ == 2) {
225       return (com.google.privacy.dlp.v2.InfoType) tag_;
226     }
227     return com.google.privacy.dlp.v2.InfoType.getDefaultInstance();
228   }
229 
230   public static final int CUSTOM_TAG_FIELD_NUMBER = 3;
231   /**
232    *
233    *
234    * <pre>
235    * A column can be tagged with a custom tag. In this case, the user must
236    * indicate an auxiliary table that contains statistical information on
237    * the possible values of this column (below).
238    * </pre>
239    *
240    * <code>string custom_tag = 3;</code>
241    *
242    * @return Whether the customTag field is set.
243    */
hasCustomTag()244   public boolean hasCustomTag() {
245     return tagCase_ == 3;
246   }
247   /**
248    *
249    *
250    * <pre>
251    * A column can be tagged with a custom tag. In this case, the user must
252    * indicate an auxiliary table that contains statistical information on
253    * the possible values of this column (below).
254    * </pre>
255    *
256    * <code>string custom_tag = 3;</code>
257    *
258    * @return The customTag.
259    */
getCustomTag()260   public java.lang.String getCustomTag() {
261     java.lang.Object ref = "";
262     if (tagCase_ == 3) {
263       ref = tag_;
264     }
265     if (ref instanceof java.lang.String) {
266       return (java.lang.String) ref;
267     } else {
268       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
269       java.lang.String s = bs.toStringUtf8();
270       if (tagCase_ == 3) {
271         tag_ = s;
272       }
273       return s;
274     }
275   }
276   /**
277    *
278    *
279    * <pre>
280    * A column can be tagged with a custom tag. In this case, the user must
281    * indicate an auxiliary table that contains statistical information on
282    * the possible values of this column (below).
283    * </pre>
284    *
285    * <code>string custom_tag = 3;</code>
286    *
287    * @return The bytes for customTag.
288    */
getCustomTagBytes()289   public com.google.protobuf.ByteString getCustomTagBytes() {
290     java.lang.Object ref = "";
291     if (tagCase_ == 3) {
292       ref = tag_;
293     }
294     if (ref instanceof java.lang.String) {
295       com.google.protobuf.ByteString b =
296           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
297       if (tagCase_ == 3) {
298         tag_ = b;
299       }
300       return b;
301     } else {
302       return (com.google.protobuf.ByteString) ref;
303     }
304   }
305 
306   public static final int INFERRED_FIELD_NUMBER = 4;
307   /**
308    *
309    *
310    * <pre>
311    * If no semantic tag is indicated, we infer the statistical model from
312    * the distribution of values in the input data
313    * </pre>
314    *
315    * <code>.google.protobuf.Empty inferred = 4;</code>
316    *
317    * @return Whether the inferred field is set.
318    */
319   @java.lang.Override
hasInferred()320   public boolean hasInferred() {
321     return tagCase_ == 4;
322   }
323   /**
324    *
325    *
326    * <pre>
327    * If no semantic tag is indicated, we infer the statistical model from
328    * the distribution of values in the input data
329    * </pre>
330    *
331    * <code>.google.protobuf.Empty inferred = 4;</code>
332    *
333    * @return The inferred.
334    */
335   @java.lang.Override
getInferred()336   public com.google.protobuf.Empty getInferred() {
337     if (tagCase_ == 4) {
338       return (com.google.protobuf.Empty) tag_;
339     }
340     return com.google.protobuf.Empty.getDefaultInstance();
341   }
342   /**
343    *
344    *
345    * <pre>
346    * If no semantic tag is indicated, we infer the statistical model from
347    * the distribution of values in the input data
348    * </pre>
349    *
350    * <code>.google.protobuf.Empty inferred = 4;</code>
351    */
352   @java.lang.Override
getInferredOrBuilder()353   public com.google.protobuf.EmptyOrBuilder getInferredOrBuilder() {
354     if (tagCase_ == 4) {
355       return (com.google.protobuf.Empty) tag_;
356     }
357     return com.google.protobuf.Empty.getDefaultInstance();
358   }
359 
360   private byte memoizedIsInitialized = -1;
361 
362   @java.lang.Override
isInitialized()363   public final boolean isInitialized() {
364     byte isInitialized = memoizedIsInitialized;
365     if (isInitialized == 1) return true;
366     if (isInitialized == 0) return false;
367 
368     memoizedIsInitialized = 1;
369     return true;
370   }
371 
372   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)373   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
374     if (field_ != null) {
375       output.writeMessage(1, getField());
376     }
377     if (tagCase_ == 2) {
378       output.writeMessage(2, (com.google.privacy.dlp.v2.InfoType) tag_);
379     }
380     if (tagCase_ == 3) {
381       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tag_);
382     }
383     if (tagCase_ == 4) {
384       output.writeMessage(4, (com.google.protobuf.Empty) tag_);
385     }
386     getUnknownFields().writeTo(output);
387   }
388 
389   @java.lang.Override
getSerializedSize()390   public int getSerializedSize() {
391     int size = memoizedSize;
392     if (size != -1) return size;
393 
394     size = 0;
395     if (field_ != null) {
396       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getField());
397     }
398     if (tagCase_ == 2) {
399       size +=
400           com.google.protobuf.CodedOutputStream.computeMessageSize(
401               2, (com.google.privacy.dlp.v2.InfoType) tag_);
402     }
403     if (tagCase_ == 3) {
404       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tag_);
405     }
406     if (tagCase_ == 4) {
407       size +=
408           com.google.protobuf.CodedOutputStream.computeMessageSize(
409               4, (com.google.protobuf.Empty) tag_);
410     }
411     size += getUnknownFields().getSerializedSize();
412     memoizedSize = size;
413     return size;
414   }
415 
416   @java.lang.Override
equals(final java.lang.Object obj)417   public boolean equals(final java.lang.Object obj) {
418     if (obj == this) {
419       return true;
420     }
421     if (!(obj instanceof com.google.privacy.dlp.v2.QuasiId)) {
422       return super.equals(obj);
423     }
424     com.google.privacy.dlp.v2.QuasiId other = (com.google.privacy.dlp.v2.QuasiId) obj;
425 
426     if (hasField() != other.hasField()) return false;
427     if (hasField()) {
428       if (!getField().equals(other.getField())) return false;
429     }
430     if (!getTagCase().equals(other.getTagCase())) return false;
431     switch (tagCase_) {
432       case 2:
433         if (!getInfoType().equals(other.getInfoType())) return false;
434         break;
435       case 3:
436         if (!getCustomTag().equals(other.getCustomTag())) return false;
437         break;
438       case 4:
439         if (!getInferred().equals(other.getInferred())) return false;
440         break;
441       case 0:
442       default:
443     }
444     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
445     return true;
446   }
447 
448   @java.lang.Override
hashCode()449   public int hashCode() {
450     if (memoizedHashCode != 0) {
451       return memoizedHashCode;
452     }
453     int hash = 41;
454     hash = (19 * hash) + getDescriptor().hashCode();
455     if (hasField()) {
456       hash = (37 * hash) + FIELD_FIELD_NUMBER;
457       hash = (53 * hash) + getField().hashCode();
458     }
459     switch (tagCase_) {
460       case 2:
461         hash = (37 * hash) + INFO_TYPE_FIELD_NUMBER;
462         hash = (53 * hash) + getInfoType().hashCode();
463         break;
464       case 3:
465         hash = (37 * hash) + CUSTOM_TAG_FIELD_NUMBER;
466         hash = (53 * hash) + getCustomTag().hashCode();
467         break;
468       case 4:
469         hash = (37 * hash) + INFERRED_FIELD_NUMBER;
470         hash = (53 * hash) + getInferred().hashCode();
471         break;
472       case 0:
473       default:
474     }
475     hash = (29 * hash) + getUnknownFields().hashCode();
476     memoizedHashCode = hash;
477     return hash;
478   }
479 
parseFrom(java.nio.ByteBuffer data)480   public static com.google.privacy.dlp.v2.QuasiId parseFrom(java.nio.ByteBuffer data)
481       throws com.google.protobuf.InvalidProtocolBufferException {
482     return PARSER.parseFrom(data);
483   }
484 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)485   public static com.google.privacy.dlp.v2.QuasiId parseFrom(
486       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
487       throws com.google.protobuf.InvalidProtocolBufferException {
488     return PARSER.parseFrom(data, extensionRegistry);
489   }
490 
parseFrom(com.google.protobuf.ByteString data)491   public static com.google.privacy.dlp.v2.QuasiId parseFrom(com.google.protobuf.ByteString data)
492       throws com.google.protobuf.InvalidProtocolBufferException {
493     return PARSER.parseFrom(data);
494   }
495 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)496   public static com.google.privacy.dlp.v2.QuasiId parseFrom(
497       com.google.protobuf.ByteString data,
498       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
499       throws com.google.protobuf.InvalidProtocolBufferException {
500     return PARSER.parseFrom(data, extensionRegistry);
501   }
502 
parseFrom(byte[] data)503   public static com.google.privacy.dlp.v2.QuasiId parseFrom(byte[] data)
504       throws com.google.protobuf.InvalidProtocolBufferException {
505     return PARSER.parseFrom(data);
506   }
507 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)508   public static com.google.privacy.dlp.v2.QuasiId parseFrom(
509       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
510       throws com.google.protobuf.InvalidProtocolBufferException {
511     return PARSER.parseFrom(data, extensionRegistry);
512   }
513 
parseFrom(java.io.InputStream input)514   public static com.google.privacy.dlp.v2.QuasiId parseFrom(java.io.InputStream input)
515       throws java.io.IOException {
516     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
517   }
518 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)519   public static com.google.privacy.dlp.v2.QuasiId parseFrom(
520       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
521       throws java.io.IOException {
522     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
523         PARSER, input, extensionRegistry);
524   }
525 
parseDelimitedFrom(java.io.InputStream input)526   public static com.google.privacy.dlp.v2.QuasiId parseDelimitedFrom(java.io.InputStream input)
527       throws java.io.IOException {
528     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
529   }
530 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)531   public static com.google.privacy.dlp.v2.QuasiId parseDelimitedFrom(
532       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
533       throws java.io.IOException {
534     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
535         PARSER, input, extensionRegistry);
536   }
537 
parseFrom( com.google.protobuf.CodedInputStream input)538   public static com.google.privacy.dlp.v2.QuasiId parseFrom(
539       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
540     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
541   }
542 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)543   public static com.google.privacy.dlp.v2.QuasiId parseFrom(
544       com.google.protobuf.CodedInputStream input,
545       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
546       throws java.io.IOException {
547     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
548         PARSER, input, extensionRegistry);
549   }
550 
551   @java.lang.Override
newBuilderForType()552   public Builder newBuilderForType() {
553     return newBuilder();
554   }
555 
newBuilder()556   public static Builder newBuilder() {
557     return DEFAULT_INSTANCE.toBuilder();
558   }
559 
newBuilder(com.google.privacy.dlp.v2.QuasiId prototype)560   public static Builder newBuilder(com.google.privacy.dlp.v2.QuasiId prototype) {
561     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
562   }
563 
564   @java.lang.Override
toBuilder()565   public Builder toBuilder() {
566     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
567   }
568 
569   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)570   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
571     Builder builder = new Builder(parent);
572     return builder;
573   }
574   /**
575    *
576    *
577    * <pre>
578    * A column with a semantic tag attached.
579    * </pre>
580    *
581    * Protobuf type {@code google.privacy.dlp.v2.QuasiId}
582    */
583   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
584       implements
585       // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.QuasiId)
586       com.google.privacy.dlp.v2.QuasiIdOrBuilder {
getDescriptor()587     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
588       return com.google.privacy.dlp.v2.DlpProto
589           .internal_static_google_privacy_dlp_v2_QuasiId_descriptor;
590     }
591 
592     @java.lang.Override
593     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()594         internalGetFieldAccessorTable() {
595       return com.google.privacy.dlp.v2.DlpProto
596           .internal_static_google_privacy_dlp_v2_QuasiId_fieldAccessorTable
597           .ensureFieldAccessorsInitialized(
598               com.google.privacy.dlp.v2.QuasiId.class,
599               com.google.privacy.dlp.v2.QuasiId.Builder.class);
600     }
601 
602     // Construct using com.google.privacy.dlp.v2.QuasiId.newBuilder()
Builder()603     private Builder() {}
604 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)605     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
606       super(parent);
607     }
608 
609     @java.lang.Override
clear()610     public Builder clear() {
611       super.clear();
612       bitField0_ = 0;
613       field_ = null;
614       if (fieldBuilder_ != null) {
615         fieldBuilder_.dispose();
616         fieldBuilder_ = null;
617       }
618       if (infoTypeBuilder_ != null) {
619         infoTypeBuilder_.clear();
620       }
621       if (inferredBuilder_ != null) {
622         inferredBuilder_.clear();
623       }
624       tagCase_ = 0;
625       tag_ = null;
626       return this;
627     }
628 
629     @java.lang.Override
getDescriptorForType()630     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
631       return com.google.privacy.dlp.v2.DlpProto
632           .internal_static_google_privacy_dlp_v2_QuasiId_descriptor;
633     }
634 
635     @java.lang.Override
getDefaultInstanceForType()636     public com.google.privacy.dlp.v2.QuasiId getDefaultInstanceForType() {
637       return com.google.privacy.dlp.v2.QuasiId.getDefaultInstance();
638     }
639 
640     @java.lang.Override
build()641     public com.google.privacy.dlp.v2.QuasiId build() {
642       com.google.privacy.dlp.v2.QuasiId result = buildPartial();
643       if (!result.isInitialized()) {
644         throw newUninitializedMessageException(result);
645       }
646       return result;
647     }
648 
649     @java.lang.Override
buildPartial()650     public com.google.privacy.dlp.v2.QuasiId buildPartial() {
651       com.google.privacy.dlp.v2.QuasiId result = new com.google.privacy.dlp.v2.QuasiId(this);
652       if (bitField0_ != 0) {
653         buildPartial0(result);
654       }
655       buildPartialOneofs(result);
656       onBuilt();
657       return result;
658     }
659 
buildPartial0(com.google.privacy.dlp.v2.QuasiId result)660     private void buildPartial0(com.google.privacy.dlp.v2.QuasiId result) {
661       int from_bitField0_ = bitField0_;
662       if (((from_bitField0_ & 0x00000001) != 0)) {
663         result.field_ = fieldBuilder_ == null ? field_ : fieldBuilder_.build();
664       }
665     }
666 
buildPartialOneofs(com.google.privacy.dlp.v2.QuasiId result)667     private void buildPartialOneofs(com.google.privacy.dlp.v2.QuasiId result) {
668       result.tagCase_ = tagCase_;
669       result.tag_ = this.tag_;
670       if (tagCase_ == 2 && infoTypeBuilder_ != null) {
671         result.tag_ = infoTypeBuilder_.build();
672       }
673       if (tagCase_ == 4 && inferredBuilder_ != null) {
674         result.tag_ = inferredBuilder_.build();
675       }
676     }
677 
678     @java.lang.Override
clone()679     public Builder clone() {
680       return super.clone();
681     }
682 
683     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)684     public Builder setField(
685         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
686       return super.setField(field, value);
687     }
688 
689     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)690     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
691       return super.clearField(field);
692     }
693 
694     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)695     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
696       return super.clearOneof(oneof);
697     }
698 
699     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)700     public Builder setRepeatedField(
701         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
702       return super.setRepeatedField(field, index, value);
703     }
704 
705     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)706     public Builder addRepeatedField(
707         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
708       return super.addRepeatedField(field, value);
709     }
710 
711     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)712     public Builder mergeFrom(com.google.protobuf.Message other) {
713       if (other instanceof com.google.privacy.dlp.v2.QuasiId) {
714         return mergeFrom((com.google.privacy.dlp.v2.QuasiId) other);
715       } else {
716         super.mergeFrom(other);
717         return this;
718       }
719     }
720 
mergeFrom(com.google.privacy.dlp.v2.QuasiId other)721     public Builder mergeFrom(com.google.privacy.dlp.v2.QuasiId other) {
722       if (other == com.google.privacy.dlp.v2.QuasiId.getDefaultInstance()) return this;
723       if (other.hasField()) {
724         mergeField(other.getField());
725       }
726       switch (other.getTagCase()) {
727         case INFO_TYPE:
728           {
729             mergeInfoType(other.getInfoType());
730             break;
731           }
732         case CUSTOM_TAG:
733           {
734             tagCase_ = 3;
735             tag_ = other.tag_;
736             onChanged();
737             break;
738           }
739         case INFERRED:
740           {
741             mergeInferred(other.getInferred());
742             break;
743           }
744         case TAG_NOT_SET:
745           {
746             break;
747           }
748       }
749       this.mergeUnknownFields(other.getUnknownFields());
750       onChanged();
751       return this;
752     }
753 
754     @java.lang.Override
isInitialized()755     public final boolean isInitialized() {
756       return true;
757     }
758 
759     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)760     public Builder mergeFrom(
761         com.google.protobuf.CodedInputStream input,
762         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
763         throws java.io.IOException {
764       if (extensionRegistry == null) {
765         throw new java.lang.NullPointerException();
766       }
767       try {
768         boolean done = false;
769         while (!done) {
770           int tag = input.readTag();
771           switch (tag) {
772             case 0:
773               done = true;
774               break;
775             case 10:
776               {
777                 input.readMessage(getFieldFieldBuilder().getBuilder(), extensionRegistry);
778                 bitField0_ |= 0x00000001;
779                 break;
780               } // case 10
781             case 18:
782               {
783                 input.readMessage(getInfoTypeFieldBuilder().getBuilder(), extensionRegistry);
784                 tagCase_ = 2;
785                 break;
786               } // case 18
787             case 26:
788               {
789                 java.lang.String s = input.readStringRequireUtf8();
790                 tagCase_ = 3;
791                 tag_ = s;
792                 break;
793               } // case 26
794             case 34:
795               {
796                 input.readMessage(getInferredFieldBuilder().getBuilder(), extensionRegistry);
797                 tagCase_ = 4;
798                 break;
799               } // case 34
800             default:
801               {
802                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
803                   done = true; // was an endgroup tag
804                 }
805                 break;
806               } // default:
807           } // switch (tag)
808         } // while (!done)
809       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
810         throw e.unwrapIOException();
811       } finally {
812         onChanged();
813       } // finally
814       return this;
815     }
816 
817     private int tagCase_ = 0;
818     private java.lang.Object tag_;
819 
getTagCase()820     public TagCase getTagCase() {
821       return TagCase.forNumber(tagCase_);
822     }
823 
clearTag()824     public Builder clearTag() {
825       tagCase_ = 0;
826       tag_ = null;
827       onChanged();
828       return this;
829     }
830 
831     private int bitField0_;
832 
833     private com.google.privacy.dlp.v2.FieldId field_;
834     private com.google.protobuf.SingleFieldBuilderV3<
835             com.google.privacy.dlp.v2.FieldId,
836             com.google.privacy.dlp.v2.FieldId.Builder,
837             com.google.privacy.dlp.v2.FieldIdOrBuilder>
838         fieldBuilder_;
839     /**
840      *
841      *
842      * <pre>
843      * Required. Identifies the column.
844      * </pre>
845      *
846      * <code>.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
847      * </code>
848      *
849      * @return Whether the field field is set.
850      */
hasField()851     public boolean hasField() {
852       return ((bitField0_ & 0x00000001) != 0);
853     }
854     /**
855      *
856      *
857      * <pre>
858      * Required. Identifies the column.
859      * </pre>
860      *
861      * <code>.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
862      * </code>
863      *
864      * @return The field.
865      */
getField()866     public com.google.privacy.dlp.v2.FieldId getField() {
867       if (fieldBuilder_ == null) {
868         return field_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : field_;
869       } else {
870         return fieldBuilder_.getMessage();
871       }
872     }
873     /**
874      *
875      *
876      * <pre>
877      * Required. Identifies the column.
878      * </pre>
879      *
880      * <code>.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
881      * </code>
882      */
setField(com.google.privacy.dlp.v2.FieldId value)883     public Builder setField(com.google.privacy.dlp.v2.FieldId value) {
884       if (fieldBuilder_ == null) {
885         if (value == null) {
886           throw new NullPointerException();
887         }
888         field_ = value;
889       } else {
890         fieldBuilder_.setMessage(value);
891       }
892       bitField0_ |= 0x00000001;
893       onChanged();
894       return this;
895     }
896     /**
897      *
898      *
899      * <pre>
900      * Required. Identifies the column.
901      * </pre>
902      *
903      * <code>.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
904      * </code>
905      */
setField(com.google.privacy.dlp.v2.FieldId.Builder builderForValue)906     public Builder setField(com.google.privacy.dlp.v2.FieldId.Builder builderForValue) {
907       if (fieldBuilder_ == null) {
908         field_ = builderForValue.build();
909       } else {
910         fieldBuilder_.setMessage(builderForValue.build());
911       }
912       bitField0_ |= 0x00000001;
913       onChanged();
914       return this;
915     }
916     /**
917      *
918      *
919      * <pre>
920      * Required. Identifies the column.
921      * </pre>
922      *
923      * <code>.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
924      * </code>
925      */
mergeField(com.google.privacy.dlp.v2.FieldId value)926     public Builder mergeField(com.google.privacy.dlp.v2.FieldId value) {
927       if (fieldBuilder_ == null) {
928         if (((bitField0_ & 0x00000001) != 0)
929             && field_ != null
930             && field_ != com.google.privacy.dlp.v2.FieldId.getDefaultInstance()) {
931           getFieldBuilder().mergeFrom(value);
932         } else {
933           field_ = value;
934         }
935       } else {
936         fieldBuilder_.mergeFrom(value);
937       }
938       bitField0_ |= 0x00000001;
939       onChanged();
940       return this;
941     }
942     /**
943      *
944      *
945      * <pre>
946      * Required. Identifies the column.
947      * </pre>
948      *
949      * <code>.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
950      * </code>
951      */
clearField()952     public Builder clearField() {
953       bitField0_ = (bitField0_ & ~0x00000001);
954       field_ = null;
955       if (fieldBuilder_ != null) {
956         fieldBuilder_.dispose();
957         fieldBuilder_ = null;
958       }
959       onChanged();
960       return this;
961     }
962     /**
963      *
964      *
965      * <pre>
966      * Required. Identifies the column.
967      * </pre>
968      *
969      * <code>.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
970      * </code>
971      */
getFieldBuilder()972     public com.google.privacy.dlp.v2.FieldId.Builder getFieldBuilder() {
973       bitField0_ |= 0x00000001;
974       onChanged();
975       return getFieldFieldBuilder().getBuilder();
976     }
977     /**
978      *
979      *
980      * <pre>
981      * Required. Identifies the column.
982      * </pre>
983      *
984      * <code>.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
985      * </code>
986      */
getFieldOrBuilder()987     public com.google.privacy.dlp.v2.FieldIdOrBuilder getFieldOrBuilder() {
988       if (fieldBuilder_ != null) {
989         return fieldBuilder_.getMessageOrBuilder();
990       } else {
991         return field_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : field_;
992       }
993     }
994     /**
995      *
996      *
997      * <pre>
998      * Required. Identifies the column.
999      * </pre>
1000      *
1001      * <code>.google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED];
1002      * </code>
1003      */
1004     private com.google.protobuf.SingleFieldBuilderV3<
1005             com.google.privacy.dlp.v2.FieldId,
1006             com.google.privacy.dlp.v2.FieldId.Builder,
1007             com.google.privacy.dlp.v2.FieldIdOrBuilder>
getFieldFieldBuilder()1008         getFieldFieldBuilder() {
1009       if (fieldBuilder_ == null) {
1010         fieldBuilder_ =
1011             new com.google.protobuf.SingleFieldBuilderV3<
1012                 com.google.privacy.dlp.v2.FieldId,
1013                 com.google.privacy.dlp.v2.FieldId.Builder,
1014                 com.google.privacy.dlp.v2.FieldIdOrBuilder>(
1015                 getField(), getParentForChildren(), isClean());
1016         field_ = null;
1017       }
1018       return fieldBuilder_;
1019     }
1020 
1021     private com.google.protobuf.SingleFieldBuilderV3<
1022             com.google.privacy.dlp.v2.InfoType,
1023             com.google.privacy.dlp.v2.InfoType.Builder,
1024             com.google.privacy.dlp.v2.InfoTypeOrBuilder>
1025         infoTypeBuilder_;
1026     /**
1027      *
1028      *
1029      * <pre>
1030      * A column can be tagged with a InfoType to use the relevant public
1031      * dataset as a statistical model of population, if available. We
1032      * currently support US ZIP codes, region codes, ages and genders.
1033      * To programmatically obtain the list of supported InfoTypes, use
1034      * ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
1035      * </pre>
1036      *
1037      * <code>.google.privacy.dlp.v2.InfoType info_type = 2;</code>
1038      *
1039      * @return Whether the infoType field is set.
1040      */
1041     @java.lang.Override
hasInfoType()1042     public boolean hasInfoType() {
1043       return tagCase_ == 2;
1044     }
1045     /**
1046      *
1047      *
1048      * <pre>
1049      * A column can be tagged with a InfoType to use the relevant public
1050      * dataset as a statistical model of population, if available. We
1051      * currently support US ZIP codes, region codes, ages and genders.
1052      * To programmatically obtain the list of supported InfoTypes, use
1053      * ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
1054      * </pre>
1055      *
1056      * <code>.google.privacy.dlp.v2.InfoType info_type = 2;</code>
1057      *
1058      * @return The infoType.
1059      */
1060     @java.lang.Override
getInfoType()1061     public com.google.privacy.dlp.v2.InfoType getInfoType() {
1062       if (infoTypeBuilder_ == null) {
1063         if (tagCase_ == 2) {
1064           return (com.google.privacy.dlp.v2.InfoType) tag_;
1065         }
1066         return com.google.privacy.dlp.v2.InfoType.getDefaultInstance();
1067       } else {
1068         if (tagCase_ == 2) {
1069           return infoTypeBuilder_.getMessage();
1070         }
1071         return com.google.privacy.dlp.v2.InfoType.getDefaultInstance();
1072       }
1073     }
1074     /**
1075      *
1076      *
1077      * <pre>
1078      * A column can be tagged with a InfoType to use the relevant public
1079      * dataset as a statistical model of population, if available. We
1080      * currently support US ZIP codes, region codes, ages and genders.
1081      * To programmatically obtain the list of supported InfoTypes, use
1082      * ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
1083      * </pre>
1084      *
1085      * <code>.google.privacy.dlp.v2.InfoType info_type = 2;</code>
1086      */
setInfoType(com.google.privacy.dlp.v2.InfoType value)1087     public Builder setInfoType(com.google.privacy.dlp.v2.InfoType value) {
1088       if (infoTypeBuilder_ == null) {
1089         if (value == null) {
1090           throw new NullPointerException();
1091         }
1092         tag_ = value;
1093         onChanged();
1094       } else {
1095         infoTypeBuilder_.setMessage(value);
1096       }
1097       tagCase_ = 2;
1098       return this;
1099     }
1100     /**
1101      *
1102      *
1103      * <pre>
1104      * A column can be tagged with a InfoType to use the relevant public
1105      * dataset as a statistical model of population, if available. We
1106      * currently support US ZIP codes, region codes, ages and genders.
1107      * To programmatically obtain the list of supported InfoTypes, use
1108      * ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
1109      * </pre>
1110      *
1111      * <code>.google.privacy.dlp.v2.InfoType info_type = 2;</code>
1112      */
setInfoType(com.google.privacy.dlp.v2.InfoType.Builder builderForValue)1113     public Builder setInfoType(com.google.privacy.dlp.v2.InfoType.Builder builderForValue) {
1114       if (infoTypeBuilder_ == null) {
1115         tag_ = builderForValue.build();
1116         onChanged();
1117       } else {
1118         infoTypeBuilder_.setMessage(builderForValue.build());
1119       }
1120       tagCase_ = 2;
1121       return this;
1122     }
1123     /**
1124      *
1125      *
1126      * <pre>
1127      * A column can be tagged with a InfoType to use the relevant public
1128      * dataset as a statistical model of population, if available. We
1129      * currently support US ZIP codes, region codes, ages and genders.
1130      * To programmatically obtain the list of supported InfoTypes, use
1131      * ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
1132      * </pre>
1133      *
1134      * <code>.google.privacy.dlp.v2.InfoType info_type = 2;</code>
1135      */
mergeInfoType(com.google.privacy.dlp.v2.InfoType value)1136     public Builder mergeInfoType(com.google.privacy.dlp.v2.InfoType value) {
1137       if (infoTypeBuilder_ == null) {
1138         if (tagCase_ == 2 && tag_ != com.google.privacy.dlp.v2.InfoType.getDefaultInstance()) {
1139           tag_ =
1140               com.google.privacy.dlp.v2.InfoType.newBuilder(
1141                       (com.google.privacy.dlp.v2.InfoType) tag_)
1142                   .mergeFrom(value)
1143                   .buildPartial();
1144         } else {
1145           tag_ = value;
1146         }
1147         onChanged();
1148       } else {
1149         if (tagCase_ == 2) {
1150           infoTypeBuilder_.mergeFrom(value);
1151         } else {
1152           infoTypeBuilder_.setMessage(value);
1153         }
1154       }
1155       tagCase_ = 2;
1156       return this;
1157     }
1158     /**
1159      *
1160      *
1161      * <pre>
1162      * A column can be tagged with a InfoType to use the relevant public
1163      * dataset as a statistical model of population, if available. We
1164      * currently support US ZIP codes, region codes, ages and genders.
1165      * To programmatically obtain the list of supported InfoTypes, use
1166      * ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
1167      * </pre>
1168      *
1169      * <code>.google.privacy.dlp.v2.InfoType info_type = 2;</code>
1170      */
clearInfoType()1171     public Builder clearInfoType() {
1172       if (infoTypeBuilder_ == null) {
1173         if (tagCase_ == 2) {
1174           tagCase_ = 0;
1175           tag_ = null;
1176           onChanged();
1177         }
1178       } else {
1179         if (tagCase_ == 2) {
1180           tagCase_ = 0;
1181           tag_ = null;
1182         }
1183         infoTypeBuilder_.clear();
1184       }
1185       return this;
1186     }
1187     /**
1188      *
1189      *
1190      * <pre>
1191      * A column can be tagged with a InfoType to use the relevant public
1192      * dataset as a statistical model of population, if available. We
1193      * currently support US ZIP codes, region codes, ages and genders.
1194      * To programmatically obtain the list of supported InfoTypes, use
1195      * ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
1196      * </pre>
1197      *
1198      * <code>.google.privacy.dlp.v2.InfoType info_type = 2;</code>
1199      */
getInfoTypeBuilder()1200     public com.google.privacy.dlp.v2.InfoType.Builder getInfoTypeBuilder() {
1201       return getInfoTypeFieldBuilder().getBuilder();
1202     }
1203     /**
1204      *
1205      *
1206      * <pre>
1207      * A column can be tagged with a InfoType to use the relevant public
1208      * dataset as a statistical model of population, if available. We
1209      * currently support US ZIP codes, region codes, ages and genders.
1210      * To programmatically obtain the list of supported InfoTypes, use
1211      * ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
1212      * </pre>
1213      *
1214      * <code>.google.privacy.dlp.v2.InfoType info_type = 2;</code>
1215      */
1216     @java.lang.Override
getInfoTypeOrBuilder()1217     public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() {
1218       if ((tagCase_ == 2) && (infoTypeBuilder_ != null)) {
1219         return infoTypeBuilder_.getMessageOrBuilder();
1220       } else {
1221         if (tagCase_ == 2) {
1222           return (com.google.privacy.dlp.v2.InfoType) tag_;
1223         }
1224         return com.google.privacy.dlp.v2.InfoType.getDefaultInstance();
1225       }
1226     }
1227     /**
1228      *
1229      *
1230      * <pre>
1231      * A column can be tagged with a InfoType to use the relevant public
1232      * dataset as a statistical model of population, if available. We
1233      * currently support US ZIP codes, region codes, ages and genders.
1234      * To programmatically obtain the list of supported InfoTypes, use
1235      * ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
1236      * </pre>
1237      *
1238      * <code>.google.privacy.dlp.v2.InfoType info_type = 2;</code>
1239      */
1240     private com.google.protobuf.SingleFieldBuilderV3<
1241             com.google.privacy.dlp.v2.InfoType,
1242             com.google.privacy.dlp.v2.InfoType.Builder,
1243             com.google.privacy.dlp.v2.InfoTypeOrBuilder>
getInfoTypeFieldBuilder()1244         getInfoTypeFieldBuilder() {
1245       if (infoTypeBuilder_ == null) {
1246         if (!(tagCase_ == 2)) {
1247           tag_ = com.google.privacy.dlp.v2.InfoType.getDefaultInstance();
1248         }
1249         infoTypeBuilder_ =
1250             new com.google.protobuf.SingleFieldBuilderV3<
1251                 com.google.privacy.dlp.v2.InfoType,
1252                 com.google.privacy.dlp.v2.InfoType.Builder,
1253                 com.google.privacy.dlp.v2.InfoTypeOrBuilder>(
1254                 (com.google.privacy.dlp.v2.InfoType) tag_, getParentForChildren(), isClean());
1255         tag_ = null;
1256       }
1257       tagCase_ = 2;
1258       onChanged();
1259       return infoTypeBuilder_;
1260     }
1261 
1262     /**
1263      *
1264      *
1265      * <pre>
1266      * A column can be tagged with a custom tag. In this case, the user must
1267      * indicate an auxiliary table that contains statistical information on
1268      * the possible values of this column (below).
1269      * </pre>
1270      *
1271      * <code>string custom_tag = 3;</code>
1272      *
1273      * @return Whether the customTag field is set.
1274      */
1275     @java.lang.Override
hasCustomTag()1276     public boolean hasCustomTag() {
1277       return tagCase_ == 3;
1278     }
1279     /**
1280      *
1281      *
1282      * <pre>
1283      * A column can be tagged with a custom tag. In this case, the user must
1284      * indicate an auxiliary table that contains statistical information on
1285      * the possible values of this column (below).
1286      * </pre>
1287      *
1288      * <code>string custom_tag = 3;</code>
1289      *
1290      * @return The customTag.
1291      */
1292     @java.lang.Override
getCustomTag()1293     public java.lang.String getCustomTag() {
1294       java.lang.Object ref = "";
1295       if (tagCase_ == 3) {
1296         ref = tag_;
1297       }
1298       if (!(ref instanceof java.lang.String)) {
1299         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1300         java.lang.String s = bs.toStringUtf8();
1301         if (tagCase_ == 3) {
1302           tag_ = s;
1303         }
1304         return s;
1305       } else {
1306         return (java.lang.String) ref;
1307       }
1308     }
1309     /**
1310      *
1311      *
1312      * <pre>
1313      * A column can be tagged with a custom tag. In this case, the user must
1314      * indicate an auxiliary table that contains statistical information on
1315      * the possible values of this column (below).
1316      * </pre>
1317      *
1318      * <code>string custom_tag = 3;</code>
1319      *
1320      * @return The bytes for customTag.
1321      */
1322     @java.lang.Override
getCustomTagBytes()1323     public com.google.protobuf.ByteString getCustomTagBytes() {
1324       java.lang.Object ref = "";
1325       if (tagCase_ == 3) {
1326         ref = tag_;
1327       }
1328       if (ref instanceof String) {
1329         com.google.protobuf.ByteString b =
1330             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1331         if (tagCase_ == 3) {
1332           tag_ = b;
1333         }
1334         return b;
1335       } else {
1336         return (com.google.protobuf.ByteString) ref;
1337       }
1338     }
1339     /**
1340      *
1341      *
1342      * <pre>
1343      * A column can be tagged with a custom tag. In this case, the user must
1344      * indicate an auxiliary table that contains statistical information on
1345      * the possible values of this column (below).
1346      * </pre>
1347      *
1348      * <code>string custom_tag = 3;</code>
1349      *
1350      * @param value The customTag to set.
1351      * @return This builder for chaining.
1352      */
setCustomTag(java.lang.String value)1353     public Builder setCustomTag(java.lang.String value) {
1354       if (value == null) {
1355         throw new NullPointerException();
1356       }
1357       tagCase_ = 3;
1358       tag_ = value;
1359       onChanged();
1360       return this;
1361     }
1362     /**
1363      *
1364      *
1365      * <pre>
1366      * A column can be tagged with a custom tag. In this case, the user must
1367      * indicate an auxiliary table that contains statistical information on
1368      * the possible values of this column (below).
1369      * </pre>
1370      *
1371      * <code>string custom_tag = 3;</code>
1372      *
1373      * @return This builder for chaining.
1374      */
clearCustomTag()1375     public Builder clearCustomTag() {
1376       if (tagCase_ == 3) {
1377         tagCase_ = 0;
1378         tag_ = null;
1379         onChanged();
1380       }
1381       return this;
1382     }
1383     /**
1384      *
1385      *
1386      * <pre>
1387      * A column can be tagged with a custom tag. In this case, the user must
1388      * indicate an auxiliary table that contains statistical information on
1389      * the possible values of this column (below).
1390      * </pre>
1391      *
1392      * <code>string custom_tag = 3;</code>
1393      *
1394      * @param value The bytes for customTag to set.
1395      * @return This builder for chaining.
1396      */
setCustomTagBytes(com.google.protobuf.ByteString value)1397     public Builder setCustomTagBytes(com.google.protobuf.ByteString value) {
1398       if (value == null) {
1399         throw new NullPointerException();
1400       }
1401       checkByteStringIsUtf8(value);
1402       tagCase_ = 3;
1403       tag_ = value;
1404       onChanged();
1405       return this;
1406     }
1407 
1408     private com.google.protobuf.SingleFieldBuilderV3<
1409             com.google.protobuf.Empty,
1410             com.google.protobuf.Empty.Builder,
1411             com.google.protobuf.EmptyOrBuilder>
1412         inferredBuilder_;
1413     /**
1414      *
1415      *
1416      * <pre>
1417      * If no semantic tag is indicated, we infer the statistical model from
1418      * the distribution of values in the input data
1419      * </pre>
1420      *
1421      * <code>.google.protobuf.Empty inferred = 4;</code>
1422      *
1423      * @return Whether the inferred field is set.
1424      */
1425     @java.lang.Override
hasInferred()1426     public boolean hasInferred() {
1427       return tagCase_ == 4;
1428     }
1429     /**
1430      *
1431      *
1432      * <pre>
1433      * If no semantic tag is indicated, we infer the statistical model from
1434      * the distribution of values in the input data
1435      * </pre>
1436      *
1437      * <code>.google.protobuf.Empty inferred = 4;</code>
1438      *
1439      * @return The inferred.
1440      */
1441     @java.lang.Override
getInferred()1442     public com.google.protobuf.Empty getInferred() {
1443       if (inferredBuilder_ == null) {
1444         if (tagCase_ == 4) {
1445           return (com.google.protobuf.Empty) tag_;
1446         }
1447         return com.google.protobuf.Empty.getDefaultInstance();
1448       } else {
1449         if (tagCase_ == 4) {
1450           return inferredBuilder_.getMessage();
1451         }
1452         return com.google.protobuf.Empty.getDefaultInstance();
1453       }
1454     }
1455     /**
1456      *
1457      *
1458      * <pre>
1459      * If no semantic tag is indicated, we infer the statistical model from
1460      * the distribution of values in the input data
1461      * </pre>
1462      *
1463      * <code>.google.protobuf.Empty inferred = 4;</code>
1464      */
setInferred(com.google.protobuf.Empty value)1465     public Builder setInferred(com.google.protobuf.Empty value) {
1466       if (inferredBuilder_ == null) {
1467         if (value == null) {
1468           throw new NullPointerException();
1469         }
1470         tag_ = value;
1471         onChanged();
1472       } else {
1473         inferredBuilder_.setMessage(value);
1474       }
1475       tagCase_ = 4;
1476       return this;
1477     }
1478     /**
1479      *
1480      *
1481      * <pre>
1482      * If no semantic tag is indicated, we infer the statistical model from
1483      * the distribution of values in the input data
1484      * </pre>
1485      *
1486      * <code>.google.protobuf.Empty inferred = 4;</code>
1487      */
setInferred(com.google.protobuf.Empty.Builder builderForValue)1488     public Builder setInferred(com.google.protobuf.Empty.Builder builderForValue) {
1489       if (inferredBuilder_ == null) {
1490         tag_ = builderForValue.build();
1491         onChanged();
1492       } else {
1493         inferredBuilder_.setMessage(builderForValue.build());
1494       }
1495       tagCase_ = 4;
1496       return this;
1497     }
1498     /**
1499      *
1500      *
1501      * <pre>
1502      * If no semantic tag is indicated, we infer the statistical model from
1503      * the distribution of values in the input data
1504      * </pre>
1505      *
1506      * <code>.google.protobuf.Empty inferred = 4;</code>
1507      */
mergeInferred(com.google.protobuf.Empty value)1508     public Builder mergeInferred(com.google.protobuf.Empty value) {
1509       if (inferredBuilder_ == null) {
1510         if (tagCase_ == 4 && tag_ != com.google.protobuf.Empty.getDefaultInstance()) {
1511           tag_ =
1512               com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) tag_)
1513                   .mergeFrom(value)
1514                   .buildPartial();
1515         } else {
1516           tag_ = value;
1517         }
1518         onChanged();
1519       } else {
1520         if (tagCase_ == 4) {
1521           inferredBuilder_.mergeFrom(value);
1522         } else {
1523           inferredBuilder_.setMessage(value);
1524         }
1525       }
1526       tagCase_ = 4;
1527       return this;
1528     }
1529     /**
1530      *
1531      *
1532      * <pre>
1533      * If no semantic tag is indicated, we infer the statistical model from
1534      * the distribution of values in the input data
1535      * </pre>
1536      *
1537      * <code>.google.protobuf.Empty inferred = 4;</code>
1538      */
clearInferred()1539     public Builder clearInferred() {
1540       if (inferredBuilder_ == null) {
1541         if (tagCase_ == 4) {
1542           tagCase_ = 0;
1543           tag_ = null;
1544           onChanged();
1545         }
1546       } else {
1547         if (tagCase_ == 4) {
1548           tagCase_ = 0;
1549           tag_ = null;
1550         }
1551         inferredBuilder_.clear();
1552       }
1553       return this;
1554     }
1555     /**
1556      *
1557      *
1558      * <pre>
1559      * If no semantic tag is indicated, we infer the statistical model from
1560      * the distribution of values in the input data
1561      * </pre>
1562      *
1563      * <code>.google.protobuf.Empty inferred = 4;</code>
1564      */
getInferredBuilder()1565     public com.google.protobuf.Empty.Builder getInferredBuilder() {
1566       return getInferredFieldBuilder().getBuilder();
1567     }
1568     /**
1569      *
1570      *
1571      * <pre>
1572      * If no semantic tag is indicated, we infer the statistical model from
1573      * the distribution of values in the input data
1574      * </pre>
1575      *
1576      * <code>.google.protobuf.Empty inferred = 4;</code>
1577      */
1578     @java.lang.Override
getInferredOrBuilder()1579     public com.google.protobuf.EmptyOrBuilder getInferredOrBuilder() {
1580       if ((tagCase_ == 4) && (inferredBuilder_ != null)) {
1581         return inferredBuilder_.getMessageOrBuilder();
1582       } else {
1583         if (tagCase_ == 4) {
1584           return (com.google.protobuf.Empty) tag_;
1585         }
1586         return com.google.protobuf.Empty.getDefaultInstance();
1587       }
1588     }
1589     /**
1590      *
1591      *
1592      * <pre>
1593      * If no semantic tag is indicated, we infer the statistical model from
1594      * the distribution of values in the input data
1595      * </pre>
1596      *
1597      * <code>.google.protobuf.Empty inferred = 4;</code>
1598      */
1599     private com.google.protobuf.SingleFieldBuilderV3<
1600             com.google.protobuf.Empty,
1601             com.google.protobuf.Empty.Builder,
1602             com.google.protobuf.EmptyOrBuilder>
getInferredFieldBuilder()1603         getInferredFieldBuilder() {
1604       if (inferredBuilder_ == null) {
1605         if (!(tagCase_ == 4)) {
1606           tag_ = com.google.protobuf.Empty.getDefaultInstance();
1607         }
1608         inferredBuilder_ =
1609             new com.google.protobuf.SingleFieldBuilderV3<
1610                 com.google.protobuf.Empty,
1611                 com.google.protobuf.Empty.Builder,
1612                 com.google.protobuf.EmptyOrBuilder>(
1613                 (com.google.protobuf.Empty) tag_, getParentForChildren(), isClean());
1614         tag_ = null;
1615       }
1616       tagCase_ = 4;
1617       onChanged();
1618       return inferredBuilder_;
1619     }
1620 
1621     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1622     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1623       return super.setUnknownFields(unknownFields);
1624     }
1625 
1626     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1627     public final Builder mergeUnknownFields(
1628         final com.google.protobuf.UnknownFieldSet unknownFields) {
1629       return super.mergeUnknownFields(unknownFields);
1630     }
1631 
1632     // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.QuasiId)
1633   }
1634 
1635   // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.QuasiId)
1636   private static final com.google.privacy.dlp.v2.QuasiId DEFAULT_INSTANCE;
1637 
1638   static {
1639     DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.QuasiId();
1640   }
1641 
getDefaultInstance()1642   public static com.google.privacy.dlp.v2.QuasiId getDefaultInstance() {
1643     return DEFAULT_INSTANCE;
1644   }
1645 
1646   private static final com.google.protobuf.Parser<QuasiId> PARSER =
1647       new com.google.protobuf.AbstractParser<QuasiId>() {
1648         @java.lang.Override
1649         public QuasiId parsePartialFrom(
1650             com.google.protobuf.CodedInputStream input,
1651             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1652             throws com.google.protobuf.InvalidProtocolBufferException {
1653           Builder builder = newBuilder();
1654           try {
1655             builder.mergeFrom(input, extensionRegistry);
1656           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1657             throw e.setUnfinishedMessage(builder.buildPartial());
1658           } catch (com.google.protobuf.UninitializedMessageException e) {
1659             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1660           } catch (java.io.IOException e) {
1661             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1662                 .setUnfinishedMessage(builder.buildPartial());
1663           }
1664           return builder.buildPartial();
1665         }
1666       };
1667 
parser()1668   public static com.google.protobuf.Parser<QuasiId> parser() {
1669     return PARSER;
1670   }
1671 
1672   @java.lang.Override
getParserForType()1673   public com.google.protobuf.Parser<QuasiId> getParserForType() {
1674     return PARSER;
1675   }
1676 
1677   @java.lang.Override
getDefaultInstanceForType()1678   public com.google.privacy.dlp.v2.QuasiId getDefaultInstanceForType() {
1679     return DEFAULT_INSTANCE;
1680   }
1681 }
1682