• 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 message for ListInspectTemplates.
26  * </pre>
27  *
28  * Protobuf type {@code google.privacy.dlp.v2.ListInspectTemplatesRequest}
29  */
30 public final class ListInspectTemplatesRequest extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ListInspectTemplatesRequest)
33     ListInspectTemplatesRequestOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use ListInspectTemplatesRequest.newBuilder() to construct.
ListInspectTemplatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private ListInspectTemplatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
ListInspectTemplatesRequest()40   private ListInspectTemplatesRequest() {
41     parent_ = "";
42     pageToken_ = "";
43     orderBy_ = "";
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 ListInspectTemplatesRequest();
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_ListInspectTemplatesRequest_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_ListInspectTemplatesRequest_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.privacy.dlp.v2.ListInspectTemplatesRequest.class,
70             com.google.privacy.dlp.v2.ListInspectTemplatesRequest.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 the scope of the request
83    * (project or organization) and whether you have [specified a 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    * + Organizations scope, location specified:&lt;br/&gt;
90    *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
91    * + Organizations scope, no location specified (defaults to global):&lt;br/&gt;
92    *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;
93    * The following example `parent` string specifies a parent project with the
94    * identifier `example-project`, and specifies the `europe-west3` location
95    * for processing data:
96    *     parent=projects/example-project/locations/europe-west3
97    * </pre>
98    *
99    * <code>
100    * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
101    * </code>
102    *
103    * @return The parent.
104    */
105   @java.lang.Override
getParent()106   public java.lang.String getParent() {
107     java.lang.Object ref = parent_;
108     if (ref instanceof java.lang.String) {
109       return (java.lang.String) ref;
110     } else {
111       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
112       java.lang.String s = bs.toStringUtf8();
113       parent_ = s;
114       return s;
115     }
116   }
117   /**
118    *
119    *
120    * <pre>
121    * Required. Parent resource name.
122    * The format of this value varies depending on the scope of the request
123    * (project or organization) and whether you have [specified a processing
124    * location](https://cloud.google.com/dlp/docs/specifying-location):
125    * + Projects scope, location specified:&lt;br/&gt;
126    *   `projects/`&lt;var&gt;PROJECT_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
127    * + Projects scope, no location specified (defaults to global):&lt;br/&gt;
128    *   `projects/`&lt;var&gt;PROJECT_ID&lt;/var&gt;
129    * + Organizations scope, location specified:&lt;br/&gt;
130    *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
131    * + Organizations scope, no location specified (defaults to global):&lt;br/&gt;
132    *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;
133    * The following example `parent` string specifies a parent project with the
134    * identifier `example-project`, and specifies the `europe-west3` location
135    * for processing data:
136    *     parent=projects/example-project/locations/europe-west3
137    * </pre>
138    *
139    * <code>
140    * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
141    * </code>
142    *
143    * @return The bytes for parent.
144    */
145   @java.lang.Override
getParentBytes()146   public com.google.protobuf.ByteString getParentBytes() {
147     java.lang.Object ref = parent_;
148     if (ref instanceof java.lang.String) {
149       com.google.protobuf.ByteString b =
150           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
151       parent_ = b;
152       return b;
153     } else {
154       return (com.google.protobuf.ByteString) ref;
155     }
156   }
157 
158   public static final int PAGE_TOKEN_FIELD_NUMBER = 2;
159 
160   @SuppressWarnings("serial")
161   private volatile java.lang.Object pageToken_ = "";
162   /**
163    *
164    *
165    * <pre>
166    * Page token to continue retrieval. Comes from previous call
167    * to `ListInspectTemplates`.
168    * </pre>
169    *
170    * <code>string page_token = 2;</code>
171    *
172    * @return The pageToken.
173    */
174   @java.lang.Override
getPageToken()175   public java.lang.String getPageToken() {
176     java.lang.Object ref = pageToken_;
177     if (ref instanceof java.lang.String) {
178       return (java.lang.String) ref;
179     } else {
180       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
181       java.lang.String s = bs.toStringUtf8();
182       pageToken_ = s;
183       return s;
184     }
185   }
186   /**
187    *
188    *
189    * <pre>
190    * Page token to continue retrieval. Comes from previous call
191    * to `ListInspectTemplates`.
192    * </pre>
193    *
194    * <code>string page_token = 2;</code>
195    *
196    * @return The bytes for pageToken.
197    */
198   @java.lang.Override
getPageTokenBytes()199   public com.google.protobuf.ByteString getPageTokenBytes() {
200     java.lang.Object ref = pageToken_;
201     if (ref instanceof java.lang.String) {
202       com.google.protobuf.ByteString b =
203           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
204       pageToken_ = b;
205       return b;
206     } else {
207       return (com.google.protobuf.ByteString) ref;
208     }
209   }
210 
211   public static final int PAGE_SIZE_FIELD_NUMBER = 3;
212   private int pageSize_ = 0;
213   /**
214    *
215    *
216    * <pre>
217    * Size of the page, can be limited by the server. If zero server returns
218    * a page of max size 100.
219    * </pre>
220    *
221    * <code>int32 page_size = 3;</code>
222    *
223    * @return The pageSize.
224    */
225   @java.lang.Override
getPageSize()226   public int getPageSize() {
227     return pageSize_;
228   }
229 
230   public static final int ORDER_BY_FIELD_NUMBER = 4;
231 
232   @SuppressWarnings("serial")
233   private volatile java.lang.Object orderBy_ = "";
234   /**
235    *
236    *
237    * <pre>
238    * Comma separated list of fields to order by,
239    * followed by `asc` or `desc` postfix. This list is case-insensitive,
240    * default sorting order is ascending, redundant space characters are
241    * insignificant.
242    * Example: `name asc,update_time, create_time desc`
243    * Supported fields are:
244    * - `create_time`: corresponds to the time the template was created.
245    * - `update_time`: corresponds to the time the template was last updated.
246    * - `name`: corresponds to the template's name.
247    * - `display_name`: corresponds to the template's display name.
248    * </pre>
249    *
250    * <code>string order_by = 4;</code>
251    *
252    * @return The orderBy.
253    */
254   @java.lang.Override
getOrderBy()255   public java.lang.String getOrderBy() {
256     java.lang.Object ref = orderBy_;
257     if (ref instanceof java.lang.String) {
258       return (java.lang.String) ref;
259     } else {
260       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
261       java.lang.String s = bs.toStringUtf8();
262       orderBy_ = s;
263       return s;
264     }
265   }
266   /**
267    *
268    *
269    * <pre>
270    * Comma separated list of fields to order by,
271    * followed by `asc` or `desc` postfix. This list is case-insensitive,
272    * default sorting order is ascending, redundant space characters are
273    * insignificant.
274    * Example: `name asc,update_time, create_time desc`
275    * Supported fields are:
276    * - `create_time`: corresponds to the time the template was created.
277    * - `update_time`: corresponds to the time the template was last updated.
278    * - `name`: corresponds to the template's name.
279    * - `display_name`: corresponds to the template's display name.
280    * </pre>
281    *
282    * <code>string order_by = 4;</code>
283    *
284    * @return The bytes for orderBy.
285    */
286   @java.lang.Override
getOrderByBytes()287   public com.google.protobuf.ByteString getOrderByBytes() {
288     java.lang.Object ref = orderBy_;
289     if (ref instanceof java.lang.String) {
290       com.google.protobuf.ByteString b =
291           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
292       orderBy_ = b;
293       return b;
294     } else {
295       return (com.google.protobuf.ByteString) ref;
296     }
297   }
298 
299   public static final int LOCATION_ID_FIELD_NUMBER = 5;
300 
301   @SuppressWarnings("serial")
302   private volatile java.lang.Object locationId_ = "";
303   /**
304    *
305    *
306    * <pre>
307    * Deprecated. This field has no effect.
308    * </pre>
309    *
310    * <code>string location_id = 5;</code>
311    *
312    * @return The locationId.
313    */
314   @java.lang.Override
getLocationId()315   public java.lang.String getLocationId() {
316     java.lang.Object ref = locationId_;
317     if (ref instanceof java.lang.String) {
318       return (java.lang.String) ref;
319     } else {
320       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
321       java.lang.String s = bs.toStringUtf8();
322       locationId_ = s;
323       return s;
324     }
325   }
326   /**
327    *
328    *
329    * <pre>
330    * Deprecated. This field has no effect.
331    * </pre>
332    *
333    * <code>string location_id = 5;</code>
334    *
335    * @return The bytes for locationId.
336    */
337   @java.lang.Override
getLocationIdBytes()338   public com.google.protobuf.ByteString getLocationIdBytes() {
339     java.lang.Object ref = locationId_;
340     if (ref instanceof java.lang.String) {
341       com.google.protobuf.ByteString b =
342           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
343       locationId_ = b;
344       return b;
345     } else {
346       return (com.google.protobuf.ByteString) ref;
347     }
348   }
349 
350   private byte memoizedIsInitialized = -1;
351 
352   @java.lang.Override
isInitialized()353   public final boolean isInitialized() {
354     byte isInitialized = memoizedIsInitialized;
355     if (isInitialized == 1) return true;
356     if (isInitialized == 0) return false;
357 
358     memoizedIsInitialized = 1;
359     return true;
360   }
361 
362   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)363   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
364     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
365       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
366     }
367     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
368       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_);
369     }
370     if (pageSize_ != 0) {
371       output.writeInt32(3, pageSize_);
372     }
373     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
374       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_);
375     }
376     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
377       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, locationId_);
378     }
379     getUnknownFields().writeTo(output);
380   }
381 
382   @java.lang.Override
getSerializedSize()383   public int getSerializedSize() {
384     int size = memoizedSize;
385     if (size != -1) return size;
386 
387     size = 0;
388     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
389       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
390     }
391     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
392       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_);
393     }
394     if (pageSize_ != 0) {
395       size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
396     }
397     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
398       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_);
399     }
400     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
401       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, locationId_);
402     }
403     size += getUnknownFields().getSerializedSize();
404     memoizedSize = size;
405     return size;
406   }
407 
408   @java.lang.Override
equals(final java.lang.Object obj)409   public boolean equals(final java.lang.Object obj) {
410     if (obj == this) {
411       return true;
412     }
413     if (!(obj instanceof com.google.privacy.dlp.v2.ListInspectTemplatesRequest)) {
414       return super.equals(obj);
415     }
416     com.google.privacy.dlp.v2.ListInspectTemplatesRequest other =
417         (com.google.privacy.dlp.v2.ListInspectTemplatesRequest) obj;
418 
419     if (!getParent().equals(other.getParent())) return false;
420     if (!getPageToken().equals(other.getPageToken())) return false;
421     if (getPageSize() != other.getPageSize()) return false;
422     if (!getOrderBy().equals(other.getOrderBy())) return false;
423     if (!getLocationId().equals(other.getLocationId())) return false;
424     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
425     return true;
426   }
427 
428   @java.lang.Override
hashCode()429   public int hashCode() {
430     if (memoizedHashCode != 0) {
431       return memoizedHashCode;
432     }
433     int hash = 41;
434     hash = (19 * hash) + getDescriptor().hashCode();
435     hash = (37 * hash) + PARENT_FIELD_NUMBER;
436     hash = (53 * hash) + getParent().hashCode();
437     hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
438     hash = (53 * hash) + getPageToken().hashCode();
439     hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
440     hash = (53 * hash) + getPageSize();
441     hash = (37 * hash) + ORDER_BY_FIELD_NUMBER;
442     hash = (53 * hash) + getOrderBy().hashCode();
443     hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER;
444     hash = (53 * hash) + getLocationId().hashCode();
445     hash = (29 * hash) + getUnknownFields().hashCode();
446     memoizedHashCode = hash;
447     return hash;
448   }
449 
parseFrom( java.nio.ByteBuffer data)450   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest parseFrom(
451       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
452     return PARSER.parseFrom(data);
453   }
454 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)455   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest parseFrom(
456       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
457       throws com.google.protobuf.InvalidProtocolBufferException {
458     return PARSER.parseFrom(data, extensionRegistry);
459   }
460 
parseFrom( com.google.protobuf.ByteString data)461   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest parseFrom(
462       com.google.protobuf.ByteString data)
463       throws com.google.protobuf.InvalidProtocolBufferException {
464     return PARSER.parseFrom(data);
465   }
466 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)467   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest parseFrom(
468       com.google.protobuf.ByteString data,
469       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
470       throws com.google.protobuf.InvalidProtocolBufferException {
471     return PARSER.parseFrom(data, extensionRegistry);
472   }
473 
parseFrom(byte[] data)474   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest parseFrom(byte[] data)
475       throws com.google.protobuf.InvalidProtocolBufferException {
476     return PARSER.parseFrom(data);
477   }
478 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)479   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest parseFrom(
480       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
481       throws com.google.protobuf.InvalidProtocolBufferException {
482     return PARSER.parseFrom(data, extensionRegistry);
483   }
484 
parseFrom( java.io.InputStream input)485   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest parseFrom(
486       java.io.InputStream input) throws java.io.IOException {
487     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
488   }
489 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)490   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest parseFrom(
491       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
492       throws java.io.IOException {
493     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
494         PARSER, input, extensionRegistry);
495   }
496 
parseDelimitedFrom( java.io.InputStream input)497   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest parseDelimitedFrom(
498       java.io.InputStream input) throws java.io.IOException {
499     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
500   }
501 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)502   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest parseDelimitedFrom(
503       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
504       throws java.io.IOException {
505     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
506         PARSER, input, extensionRegistry);
507   }
508 
parseFrom( com.google.protobuf.CodedInputStream input)509   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest parseFrom(
510       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
511     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
512   }
513 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)514   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest parseFrom(
515       com.google.protobuf.CodedInputStream input,
516       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
517       throws java.io.IOException {
518     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
519         PARSER, input, extensionRegistry);
520   }
521 
522   @java.lang.Override
newBuilderForType()523   public Builder newBuilderForType() {
524     return newBuilder();
525   }
526 
newBuilder()527   public static Builder newBuilder() {
528     return DEFAULT_INSTANCE.toBuilder();
529   }
530 
newBuilder( com.google.privacy.dlp.v2.ListInspectTemplatesRequest prototype)531   public static Builder newBuilder(
532       com.google.privacy.dlp.v2.ListInspectTemplatesRequest prototype) {
533     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
534   }
535 
536   @java.lang.Override
toBuilder()537   public Builder toBuilder() {
538     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
539   }
540 
541   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)542   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
543     Builder builder = new Builder(parent);
544     return builder;
545   }
546   /**
547    *
548    *
549    * <pre>
550    * Request message for ListInspectTemplates.
551    * </pre>
552    *
553    * Protobuf type {@code google.privacy.dlp.v2.ListInspectTemplatesRequest}
554    */
555   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
556       implements
557       // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ListInspectTemplatesRequest)
558       com.google.privacy.dlp.v2.ListInspectTemplatesRequestOrBuilder {
getDescriptor()559     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
560       return com.google.privacy.dlp.v2.DlpProto
561           .internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_descriptor;
562     }
563 
564     @java.lang.Override
565     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()566         internalGetFieldAccessorTable() {
567       return com.google.privacy.dlp.v2.DlpProto
568           .internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_fieldAccessorTable
569           .ensureFieldAccessorsInitialized(
570               com.google.privacy.dlp.v2.ListInspectTemplatesRequest.class,
571               com.google.privacy.dlp.v2.ListInspectTemplatesRequest.Builder.class);
572     }
573 
574     // Construct using com.google.privacy.dlp.v2.ListInspectTemplatesRequest.newBuilder()
Builder()575     private Builder() {}
576 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)577     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
578       super(parent);
579     }
580 
581     @java.lang.Override
clear()582     public Builder clear() {
583       super.clear();
584       bitField0_ = 0;
585       parent_ = "";
586       pageToken_ = "";
587       pageSize_ = 0;
588       orderBy_ = "";
589       locationId_ = "";
590       return this;
591     }
592 
593     @java.lang.Override
getDescriptorForType()594     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
595       return com.google.privacy.dlp.v2.DlpProto
596           .internal_static_google_privacy_dlp_v2_ListInspectTemplatesRequest_descriptor;
597     }
598 
599     @java.lang.Override
getDefaultInstanceForType()600     public com.google.privacy.dlp.v2.ListInspectTemplatesRequest getDefaultInstanceForType() {
601       return com.google.privacy.dlp.v2.ListInspectTemplatesRequest.getDefaultInstance();
602     }
603 
604     @java.lang.Override
build()605     public com.google.privacy.dlp.v2.ListInspectTemplatesRequest build() {
606       com.google.privacy.dlp.v2.ListInspectTemplatesRequest result = buildPartial();
607       if (!result.isInitialized()) {
608         throw newUninitializedMessageException(result);
609       }
610       return result;
611     }
612 
613     @java.lang.Override
buildPartial()614     public com.google.privacy.dlp.v2.ListInspectTemplatesRequest buildPartial() {
615       com.google.privacy.dlp.v2.ListInspectTemplatesRequest result =
616           new com.google.privacy.dlp.v2.ListInspectTemplatesRequest(this);
617       if (bitField0_ != 0) {
618         buildPartial0(result);
619       }
620       onBuilt();
621       return result;
622     }
623 
buildPartial0(com.google.privacy.dlp.v2.ListInspectTemplatesRequest result)624     private void buildPartial0(com.google.privacy.dlp.v2.ListInspectTemplatesRequest result) {
625       int from_bitField0_ = bitField0_;
626       if (((from_bitField0_ & 0x00000001) != 0)) {
627         result.parent_ = parent_;
628       }
629       if (((from_bitField0_ & 0x00000002) != 0)) {
630         result.pageToken_ = pageToken_;
631       }
632       if (((from_bitField0_ & 0x00000004) != 0)) {
633         result.pageSize_ = pageSize_;
634       }
635       if (((from_bitField0_ & 0x00000008) != 0)) {
636         result.orderBy_ = orderBy_;
637       }
638       if (((from_bitField0_ & 0x00000010) != 0)) {
639         result.locationId_ = locationId_;
640       }
641     }
642 
643     @java.lang.Override
clone()644     public Builder clone() {
645       return super.clone();
646     }
647 
648     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)649     public Builder setField(
650         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
651       return super.setField(field, value);
652     }
653 
654     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)655     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
656       return super.clearField(field);
657     }
658 
659     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)660     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
661       return super.clearOneof(oneof);
662     }
663 
664     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)665     public Builder setRepeatedField(
666         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
667       return super.setRepeatedField(field, index, value);
668     }
669 
670     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)671     public Builder addRepeatedField(
672         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
673       return super.addRepeatedField(field, value);
674     }
675 
676     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)677     public Builder mergeFrom(com.google.protobuf.Message other) {
678       if (other instanceof com.google.privacy.dlp.v2.ListInspectTemplatesRequest) {
679         return mergeFrom((com.google.privacy.dlp.v2.ListInspectTemplatesRequest) other);
680       } else {
681         super.mergeFrom(other);
682         return this;
683       }
684     }
685 
mergeFrom(com.google.privacy.dlp.v2.ListInspectTemplatesRequest other)686     public Builder mergeFrom(com.google.privacy.dlp.v2.ListInspectTemplatesRequest other) {
687       if (other == com.google.privacy.dlp.v2.ListInspectTemplatesRequest.getDefaultInstance())
688         return this;
689       if (!other.getParent().isEmpty()) {
690         parent_ = other.parent_;
691         bitField0_ |= 0x00000001;
692         onChanged();
693       }
694       if (!other.getPageToken().isEmpty()) {
695         pageToken_ = other.pageToken_;
696         bitField0_ |= 0x00000002;
697         onChanged();
698       }
699       if (other.getPageSize() != 0) {
700         setPageSize(other.getPageSize());
701       }
702       if (!other.getOrderBy().isEmpty()) {
703         orderBy_ = other.orderBy_;
704         bitField0_ |= 0x00000008;
705         onChanged();
706       }
707       if (!other.getLocationId().isEmpty()) {
708         locationId_ = other.locationId_;
709         bitField0_ |= 0x00000010;
710         onChanged();
711       }
712       this.mergeUnknownFields(other.getUnknownFields());
713       onChanged();
714       return this;
715     }
716 
717     @java.lang.Override
isInitialized()718     public final boolean isInitialized() {
719       return true;
720     }
721 
722     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)723     public Builder mergeFrom(
724         com.google.protobuf.CodedInputStream input,
725         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
726         throws java.io.IOException {
727       if (extensionRegistry == null) {
728         throw new java.lang.NullPointerException();
729       }
730       try {
731         boolean done = false;
732         while (!done) {
733           int tag = input.readTag();
734           switch (tag) {
735             case 0:
736               done = true;
737               break;
738             case 10:
739               {
740                 parent_ = input.readStringRequireUtf8();
741                 bitField0_ |= 0x00000001;
742                 break;
743               } // case 10
744             case 18:
745               {
746                 pageToken_ = input.readStringRequireUtf8();
747                 bitField0_ |= 0x00000002;
748                 break;
749               } // case 18
750             case 24:
751               {
752                 pageSize_ = input.readInt32();
753                 bitField0_ |= 0x00000004;
754                 break;
755               } // case 24
756             case 34:
757               {
758                 orderBy_ = input.readStringRequireUtf8();
759                 bitField0_ |= 0x00000008;
760                 break;
761               } // case 34
762             case 42:
763               {
764                 locationId_ = input.readStringRequireUtf8();
765                 bitField0_ |= 0x00000010;
766                 break;
767               } // case 42
768             default:
769               {
770                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
771                   done = true; // was an endgroup tag
772                 }
773                 break;
774               } // default:
775           } // switch (tag)
776         } // while (!done)
777       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
778         throw e.unwrapIOException();
779       } finally {
780         onChanged();
781       } // finally
782       return this;
783     }
784 
785     private int bitField0_;
786 
787     private java.lang.Object parent_ = "";
788     /**
789      *
790      *
791      * <pre>
792      * Required. Parent resource name.
793      * The format of this value varies depending on the scope of the request
794      * (project or organization) and whether you have [specified a processing
795      * location](https://cloud.google.com/dlp/docs/specifying-location):
796      * + Projects scope, location specified:&lt;br/&gt;
797      *   `projects/`&lt;var&gt;PROJECT_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
798      * + Projects scope, no location specified (defaults to global):&lt;br/&gt;
799      *   `projects/`&lt;var&gt;PROJECT_ID&lt;/var&gt;
800      * + Organizations scope, location specified:&lt;br/&gt;
801      *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
802      * + Organizations scope, no location specified (defaults to global):&lt;br/&gt;
803      *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;
804      * The following example `parent` string specifies a parent project with the
805      * identifier `example-project`, and specifies the `europe-west3` location
806      * for processing data:
807      *     parent=projects/example-project/locations/europe-west3
808      * </pre>
809      *
810      * <code>
811      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
812      * </code>
813      *
814      * @return The parent.
815      */
getParent()816     public java.lang.String getParent() {
817       java.lang.Object ref = parent_;
818       if (!(ref instanceof java.lang.String)) {
819         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
820         java.lang.String s = bs.toStringUtf8();
821         parent_ = s;
822         return s;
823       } else {
824         return (java.lang.String) ref;
825       }
826     }
827     /**
828      *
829      *
830      * <pre>
831      * Required. Parent resource name.
832      * The format of this value varies depending on the scope of the request
833      * (project or organization) and whether you have [specified a processing
834      * location](https://cloud.google.com/dlp/docs/specifying-location):
835      * + Projects scope, location specified:&lt;br/&gt;
836      *   `projects/`&lt;var&gt;PROJECT_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
837      * + Projects scope, no location specified (defaults to global):&lt;br/&gt;
838      *   `projects/`&lt;var&gt;PROJECT_ID&lt;/var&gt;
839      * + Organizations scope, location specified:&lt;br/&gt;
840      *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
841      * + Organizations scope, no location specified (defaults to global):&lt;br/&gt;
842      *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;
843      * The following example `parent` string specifies a parent project with the
844      * identifier `example-project`, and specifies the `europe-west3` location
845      * for processing data:
846      *     parent=projects/example-project/locations/europe-west3
847      * </pre>
848      *
849      * <code>
850      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
851      * </code>
852      *
853      * @return The bytes for parent.
854      */
getParentBytes()855     public com.google.protobuf.ByteString getParentBytes() {
856       java.lang.Object ref = parent_;
857       if (ref instanceof String) {
858         com.google.protobuf.ByteString b =
859             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
860         parent_ = b;
861         return b;
862       } else {
863         return (com.google.protobuf.ByteString) ref;
864       }
865     }
866     /**
867      *
868      *
869      * <pre>
870      * Required. Parent resource name.
871      * The format of this value varies depending on the scope of the request
872      * (project or organization) and whether you have [specified a processing
873      * location](https://cloud.google.com/dlp/docs/specifying-location):
874      * + Projects scope, location specified:&lt;br/&gt;
875      *   `projects/`&lt;var&gt;PROJECT_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
876      * + Projects scope, no location specified (defaults to global):&lt;br/&gt;
877      *   `projects/`&lt;var&gt;PROJECT_ID&lt;/var&gt;
878      * + Organizations scope, location specified:&lt;br/&gt;
879      *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
880      * + Organizations scope, no location specified (defaults to global):&lt;br/&gt;
881      *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;
882      * The following example `parent` string specifies a parent project with the
883      * identifier `example-project`, and specifies the `europe-west3` location
884      * for processing data:
885      *     parent=projects/example-project/locations/europe-west3
886      * </pre>
887      *
888      * <code>
889      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
890      * </code>
891      *
892      * @param value The parent to set.
893      * @return This builder for chaining.
894      */
setParent(java.lang.String value)895     public Builder setParent(java.lang.String value) {
896       if (value == null) {
897         throw new NullPointerException();
898       }
899       parent_ = value;
900       bitField0_ |= 0x00000001;
901       onChanged();
902       return this;
903     }
904     /**
905      *
906      *
907      * <pre>
908      * Required. Parent resource name.
909      * The format of this value varies depending on the scope of the request
910      * (project or organization) and whether you have [specified a processing
911      * location](https://cloud.google.com/dlp/docs/specifying-location):
912      * + Projects scope, location specified:&lt;br/&gt;
913      *   `projects/`&lt;var&gt;PROJECT_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
914      * + Projects scope, no location specified (defaults to global):&lt;br/&gt;
915      *   `projects/`&lt;var&gt;PROJECT_ID&lt;/var&gt;
916      * + Organizations scope, location specified:&lt;br/&gt;
917      *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
918      * + Organizations scope, no location specified (defaults to global):&lt;br/&gt;
919      *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;
920      * The following example `parent` string specifies a parent project with the
921      * identifier `example-project`, and specifies the `europe-west3` location
922      * for processing data:
923      *     parent=projects/example-project/locations/europe-west3
924      * </pre>
925      *
926      * <code>
927      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
928      * </code>
929      *
930      * @return This builder for chaining.
931      */
clearParent()932     public Builder clearParent() {
933       parent_ = getDefaultInstance().getParent();
934       bitField0_ = (bitField0_ & ~0x00000001);
935       onChanged();
936       return this;
937     }
938     /**
939      *
940      *
941      * <pre>
942      * Required. Parent resource name.
943      * The format of this value varies depending on the scope of the request
944      * (project or organization) and whether you have [specified a processing
945      * location](https://cloud.google.com/dlp/docs/specifying-location):
946      * + Projects scope, location specified:&lt;br/&gt;
947      *   `projects/`&lt;var&gt;PROJECT_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
948      * + Projects scope, no location specified (defaults to global):&lt;br/&gt;
949      *   `projects/`&lt;var&gt;PROJECT_ID&lt;/var&gt;
950      * + Organizations scope, location specified:&lt;br/&gt;
951      *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;`/locations/`&lt;var&gt;LOCATION_ID&lt;/var&gt;
952      * + Organizations scope, no location specified (defaults to global):&lt;br/&gt;
953      *   `organizations/`&lt;var&gt;ORG_ID&lt;/var&gt;
954      * The following example `parent` string specifies a parent project with the
955      * identifier `example-project`, and specifies the `europe-west3` location
956      * for processing data:
957      *     parent=projects/example-project/locations/europe-west3
958      * </pre>
959      *
960      * <code>
961      * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
962      * </code>
963      *
964      * @param value The bytes for parent to set.
965      * @return This builder for chaining.
966      */
setParentBytes(com.google.protobuf.ByteString value)967     public Builder setParentBytes(com.google.protobuf.ByteString value) {
968       if (value == null) {
969         throw new NullPointerException();
970       }
971       checkByteStringIsUtf8(value);
972       parent_ = value;
973       bitField0_ |= 0x00000001;
974       onChanged();
975       return this;
976     }
977 
978     private java.lang.Object pageToken_ = "";
979     /**
980      *
981      *
982      * <pre>
983      * Page token to continue retrieval. Comes from previous call
984      * to `ListInspectTemplates`.
985      * </pre>
986      *
987      * <code>string page_token = 2;</code>
988      *
989      * @return The pageToken.
990      */
getPageToken()991     public java.lang.String getPageToken() {
992       java.lang.Object ref = pageToken_;
993       if (!(ref instanceof java.lang.String)) {
994         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
995         java.lang.String s = bs.toStringUtf8();
996         pageToken_ = s;
997         return s;
998       } else {
999         return (java.lang.String) ref;
1000       }
1001     }
1002     /**
1003      *
1004      *
1005      * <pre>
1006      * Page token to continue retrieval. Comes from previous call
1007      * to `ListInspectTemplates`.
1008      * </pre>
1009      *
1010      * <code>string page_token = 2;</code>
1011      *
1012      * @return The bytes for pageToken.
1013      */
getPageTokenBytes()1014     public com.google.protobuf.ByteString getPageTokenBytes() {
1015       java.lang.Object ref = pageToken_;
1016       if (ref instanceof String) {
1017         com.google.protobuf.ByteString b =
1018             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1019         pageToken_ = b;
1020         return b;
1021       } else {
1022         return (com.google.protobuf.ByteString) ref;
1023       }
1024     }
1025     /**
1026      *
1027      *
1028      * <pre>
1029      * Page token to continue retrieval. Comes from previous call
1030      * to `ListInspectTemplates`.
1031      * </pre>
1032      *
1033      * <code>string page_token = 2;</code>
1034      *
1035      * @param value The pageToken to set.
1036      * @return This builder for chaining.
1037      */
setPageToken(java.lang.String value)1038     public Builder setPageToken(java.lang.String value) {
1039       if (value == null) {
1040         throw new NullPointerException();
1041       }
1042       pageToken_ = value;
1043       bitField0_ |= 0x00000002;
1044       onChanged();
1045       return this;
1046     }
1047     /**
1048      *
1049      *
1050      * <pre>
1051      * Page token to continue retrieval. Comes from previous call
1052      * to `ListInspectTemplates`.
1053      * </pre>
1054      *
1055      * <code>string page_token = 2;</code>
1056      *
1057      * @return This builder for chaining.
1058      */
clearPageToken()1059     public Builder clearPageToken() {
1060       pageToken_ = getDefaultInstance().getPageToken();
1061       bitField0_ = (bitField0_ & ~0x00000002);
1062       onChanged();
1063       return this;
1064     }
1065     /**
1066      *
1067      *
1068      * <pre>
1069      * Page token to continue retrieval. Comes from previous call
1070      * to `ListInspectTemplates`.
1071      * </pre>
1072      *
1073      * <code>string page_token = 2;</code>
1074      *
1075      * @param value The bytes for pageToken to set.
1076      * @return This builder for chaining.
1077      */
setPageTokenBytes(com.google.protobuf.ByteString value)1078     public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
1079       if (value == null) {
1080         throw new NullPointerException();
1081       }
1082       checkByteStringIsUtf8(value);
1083       pageToken_ = value;
1084       bitField0_ |= 0x00000002;
1085       onChanged();
1086       return this;
1087     }
1088 
1089     private int pageSize_;
1090     /**
1091      *
1092      *
1093      * <pre>
1094      * Size of the page, can be limited by the server. If zero server returns
1095      * a page of max size 100.
1096      * </pre>
1097      *
1098      * <code>int32 page_size = 3;</code>
1099      *
1100      * @return The pageSize.
1101      */
1102     @java.lang.Override
getPageSize()1103     public int getPageSize() {
1104       return pageSize_;
1105     }
1106     /**
1107      *
1108      *
1109      * <pre>
1110      * Size of the page, can be limited by the server. If zero server returns
1111      * a page of max size 100.
1112      * </pre>
1113      *
1114      * <code>int32 page_size = 3;</code>
1115      *
1116      * @param value The pageSize to set.
1117      * @return This builder for chaining.
1118      */
setPageSize(int value)1119     public Builder setPageSize(int value) {
1120 
1121       pageSize_ = value;
1122       bitField0_ |= 0x00000004;
1123       onChanged();
1124       return this;
1125     }
1126     /**
1127      *
1128      *
1129      * <pre>
1130      * Size of the page, can be limited by the server. If zero server returns
1131      * a page of max size 100.
1132      * </pre>
1133      *
1134      * <code>int32 page_size = 3;</code>
1135      *
1136      * @return This builder for chaining.
1137      */
clearPageSize()1138     public Builder clearPageSize() {
1139       bitField0_ = (bitField0_ & ~0x00000004);
1140       pageSize_ = 0;
1141       onChanged();
1142       return this;
1143     }
1144 
1145     private java.lang.Object orderBy_ = "";
1146     /**
1147      *
1148      *
1149      * <pre>
1150      * Comma separated list of fields to order by,
1151      * followed by `asc` or `desc` postfix. This list is case-insensitive,
1152      * default sorting order is ascending, redundant space characters are
1153      * insignificant.
1154      * Example: `name asc,update_time, create_time desc`
1155      * Supported fields are:
1156      * - `create_time`: corresponds to the time the template was created.
1157      * - `update_time`: corresponds to the time the template was last updated.
1158      * - `name`: corresponds to the template's name.
1159      * - `display_name`: corresponds to the template's display name.
1160      * </pre>
1161      *
1162      * <code>string order_by = 4;</code>
1163      *
1164      * @return The orderBy.
1165      */
getOrderBy()1166     public java.lang.String getOrderBy() {
1167       java.lang.Object ref = orderBy_;
1168       if (!(ref instanceof java.lang.String)) {
1169         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1170         java.lang.String s = bs.toStringUtf8();
1171         orderBy_ = s;
1172         return s;
1173       } else {
1174         return (java.lang.String) ref;
1175       }
1176     }
1177     /**
1178      *
1179      *
1180      * <pre>
1181      * Comma separated list of fields to order by,
1182      * followed by `asc` or `desc` postfix. This list is case-insensitive,
1183      * default sorting order is ascending, redundant space characters are
1184      * insignificant.
1185      * Example: `name asc,update_time, create_time desc`
1186      * Supported fields are:
1187      * - `create_time`: corresponds to the time the template was created.
1188      * - `update_time`: corresponds to the time the template was last updated.
1189      * - `name`: corresponds to the template's name.
1190      * - `display_name`: corresponds to the template's display name.
1191      * </pre>
1192      *
1193      * <code>string order_by = 4;</code>
1194      *
1195      * @return The bytes for orderBy.
1196      */
getOrderByBytes()1197     public com.google.protobuf.ByteString getOrderByBytes() {
1198       java.lang.Object ref = orderBy_;
1199       if (ref instanceof String) {
1200         com.google.protobuf.ByteString b =
1201             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1202         orderBy_ = b;
1203         return b;
1204       } else {
1205         return (com.google.protobuf.ByteString) ref;
1206       }
1207     }
1208     /**
1209      *
1210      *
1211      * <pre>
1212      * Comma separated list of fields to order by,
1213      * followed by `asc` or `desc` postfix. This list is case-insensitive,
1214      * default sorting order is ascending, redundant space characters are
1215      * insignificant.
1216      * Example: `name asc,update_time, create_time desc`
1217      * Supported fields are:
1218      * - `create_time`: corresponds to the time the template was created.
1219      * - `update_time`: corresponds to the time the template was last updated.
1220      * - `name`: corresponds to the template's name.
1221      * - `display_name`: corresponds to the template's display name.
1222      * </pre>
1223      *
1224      * <code>string order_by = 4;</code>
1225      *
1226      * @param value The orderBy to set.
1227      * @return This builder for chaining.
1228      */
setOrderBy(java.lang.String value)1229     public Builder setOrderBy(java.lang.String value) {
1230       if (value == null) {
1231         throw new NullPointerException();
1232       }
1233       orderBy_ = value;
1234       bitField0_ |= 0x00000008;
1235       onChanged();
1236       return this;
1237     }
1238     /**
1239      *
1240      *
1241      * <pre>
1242      * Comma separated list of fields to order by,
1243      * followed by `asc` or `desc` postfix. This list is case-insensitive,
1244      * default sorting order is ascending, redundant space characters are
1245      * insignificant.
1246      * Example: `name asc,update_time, create_time desc`
1247      * Supported fields are:
1248      * - `create_time`: corresponds to the time the template was created.
1249      * - `update_time`: corresponds to the time the template was last updated.
1250      * - `name`: corresponds to the template's name.
1251      * - `display_name`: corresponds to the template's display name.
1252      * </pre>
1253      *
1254      * <code>string order_by = 4;</code>
1255      *
1256      * @return This builder for chaining.
1257      */
clearOrderBy()1258     public Builder clearOrderBy() {
1259       orderBy_ = getDefaultInstance().getOrderBy();
1260       bitField0_ = (bitField0_ & ~0x00000008);
1261       onChanged();
1262       return this;
1263     }
1264     /**
1265      *
1266      *
1267      * <pre>
1268      * Comma separated list of fields to order by,
1269      * followed by `asc` or `desc` postfix. This list is case-insensitive,
1270      * default sorting order is ascending, redundant space characters are
1271      * insignificant.
1272      * Example: `name asc,update_time, create_time desc`
1273      * Supported fields are:
1274      * - `create_time`: corresponds to the time the template was created.
1275      * - `update_time`: corresponds to the time the template was last updated.
1276      * - `name`: corresponds to the template's name.
1277      * - `display_name`: corresponds to the template's display name.
1278      * </pre>
1279      *
1280      * <code>string order_by = 4;</code>
1281      *
1282      * @param value The bytes for orderBy to set.
1283      * @return This builder for chaining.
1284      */
setOrderByBytes(com.google.protobuf.ByteString value)1285     public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
1286       if (value == null) {
1287         throw new NullPointerException();
1288       }
1289       checkByteStringIsUtf8(value);
1290       orderBy_ = value;
1291       bitField0_ |= 0x00000008;
1292       onChanged();
1293       return this;
1294     }
1295 
1296     private java.lang.Object locationId_ = "";
1297     /**
1298      *
1299      *
1300      * <pre>
1301      * Deprecated. This field has no effect.
1302      * </pre>
1303      *
1304      * <code>string location_id = 5;</code>
1305      *
1306      * @return The locationId.
1307      */
getLocationId()1308     public java.lang.String getLocationId() {
1309       java.lang.Object ref = locationId_;
1310       if (!(ref instanceof java.lang.String)) {
1311         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1312         java.lang.String s = bs.toStringUtf8();
1313         locationId_ = s;
1314         return s;
1315       } else {
1316         return (java.lang.String) ref;
1317       }
1318     }
1319     /**
1320      *
1321      *
1322      * <pre>
1323      * Deprecated. This field has no effect.
1324      * </pre>
1325      *
1326      * <code>string location_id = 5;</code>
1327      *
1328      * @return The bytes for locationId.
1329      */
getLocationIdBytes()1330     public com.google.protobuf.ByteString getLocationIdBytes() {
1331       java.lang.Object ref = locationId_;
1332       if (ref instanceof String) {
1333         com.google.protobuf.ByteString b =
1334             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1335         locationId_ = b;
1336         return b;
1337       } else {
1338         return (com.google.protobuf.ByteString) ref;
1339       }
1340     }
1341     /**
1342      *
1343      *
1344      * <pre>
1345      * Deprecated. This field has no effect.
1346      * </pre>
1347      *
1348      * <code>string location_id = 5;</code>
1349      *
1350      * @param value The locationId to set.
1351      * @return This builder for chaining.
1352      */
setLocationId(java.lang.String value)1353     public Builder setLocationId(java.lang.String value) {
1354       if (value == null) {
1355         throw new NullPointerException();
1356       }
1357       locationId_ = value;
1358       bitField0_ |= 0x00000010;
1359       onChanged();
1360       return this;
1361     }
1362     /**
1363      *
1364      *
1365      * <pre>
1366      * Deprecated. This field has no effect.
1367      * </pre>
1368      *
1369      * <code>string location_id = 5;</code>
1370      *
1371      * @return This builder for chaining.
1372      */
clearLocationId()1373     public Builder clearLocationId() {
1374       locationId_ = getDefaultInstance().getLocationId();
1375       bitField0_ = (bitField0_ & ~0x00000010);
1376       onChanged();
1377       return this;
1378     }
1379     /**
1380      *
1381      *
1382      * <pre>
1383      * Deprecated. This field has no effect.
1384      * </pre>
1385      *
1386      * <code>string location_id = 5;</code>
1387      *
1388      * @param value The bytes for locationId to set.
1389      * @return This builder for chaining.
1390      */
setLocationIdBytes(com.google.protobuf.ByteString value)1391     public Builder setLocationIdBytes(com.google.protobuf.ByteString value) {
1392       if (value == null) {
1393         throw new NullPointerException();
1394       }
1395       checkByteStringIsUtf8(value);
1396       locationId_ = value;
1397       bitField0_ |= 0x00000010;
1398       onChanged();
1399       return this;
1400     }
1401 
1402     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1403     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1404       return super.setUnknownFields(unknownFields);
1405     }
1406 
1407     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1408     public final Builder mergeUnknownFields(
1409         final com.google.protobuf.UnknownFieldSet unknownFields) {
1410       return super.mergeUnknownFields(unknownFields);
1411     }
1412 
1413     // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.ListInspectTemplatesRequest)
1414   }
1415 
1416   // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListInspectTemplatesRequest)
1417   private static final com.google.privacy.dlp.v2.ListInspectTemplatesRequest DEFAULT_INSTANCE;
1418 
1419   static {
1420     DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ListInspectTemplatesRequest();
1421   }
1422 
getDefaultInstance()1423   public static com.google.privacy.dlp.v2.ListInspectTemplatesRequest getDefaultInstance() {
1424     return DEFAULT_INSTANCE;
1425   }
1426 
1427   private static final com.google.protobuf.Parser<ListInspectTemplatesRequest> PARSER =
1428       new com.google.protobuf.AbstractParser<ListInspectTemplatesRequest>() {
1429         @java.lang.Override
1430         public ListInspectTemplatesRequest parsePartialFrom(
1431             com.google.protobuf.CodedInputStream input,
1432             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1433             throws com.google.protobuf.InvalidProtocolBufferException {
1434           Builder builder = newBuilder();
1435           try {
1436             builder.mergeFrom(input, extensionRegistry);
1437           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1438             throw e.setUnfinishedMessage(builder.buildPartial());
1439           } catch (com.google.protobuf.UninitializedMessageException e) {
1440             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1441           } catch (java.io.IOException e) {
1442             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1443                 .setUnfinishedMessage(builder.buildPartial());
1444           }
1445           return builder.buildPartial();
1446         }
1447       };
1448 
parser()1449   public static com.google.protobuf.Parser<ListInspectTemplatesRequest> parser() {
1450     return PARSER;
1451   }
1452 
1453   @java.lang.Override
getParserForType()1454   public com.google.protobuf.Parser<ListInspectTemplatesRequest> getParserForType() {
1455     return PARSER;
1456   }
1457 
1458   @java.lang.Override
getDefaultInstanceForType()1459   public com.google.privacy.dlp.v2.ListInspectTemplatesRequest getDefaultInstanceForType() {
1460     return DEFAULT_INSTANCE;
1461   }
1462 }
1463