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