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