• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/talent/v4/job_service.proto
18 
19 package com.google.cloud.talent.v4;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Response for SearchJob method.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.talent.v4.SearchJobsResponse}
29  */
30 public final class SearchJobsResponse extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.talent.v4.SearchJobsResponse)
33     SearchJobsResponseOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use SearchJobsResponse.newBuilder() to construct.
SearchJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private SearchJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
SearchJobsResponse()40   private SearchJobsResponse() {
41     matchingJobs_ = java.util.Collections.emptyList();
42     histogramQueryResults_ = java.util.Collections.emptyList();
43     nextPageToken_ = "";
44     locationFilters_ = java.util.Collections.emptyList();
45   }
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new SearchJobsResponse();
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.cloud.talent.v4.JobServiceProto
60         .internal_static_google_cloud_talent_v4_SearchJobsResponse_descriptor;
61   }
62 
63   @java.lang.Override
64   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()65       internalGetFieldAccessorTable() {
66     return com.google.cloud.talent.v4.JobServiceProto
67         .internal_static_google_cloud_talent_v4_SearchJobsResponse_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.cloud.talent.v4.SearchJobsResponse.class,
70             com.google.cloud.talent.v4.SearchJobsResponse.Builder.class);
71   }
72 
73   public interface MatchingJobOrBuilder
74       extends
75       // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4.SearchJobsResponse.MatchingJob)
76       com.google.protobuf.MessageOrBuilder {
77 
78     /**
79      *
80      *
81      * <pre>
82      * Job resource that matches the specified
83      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
84      * </pre>
85      *
86      * <code>.google.cloud.talent.v4.Job job = 1;</code>
87      *
88      * @return Whether the job field is set.
89      */
hasJob()90     boolean hasJob();
91     /**
92      *
93      *
94      * <pre>
95      * Job resource that matches the specified
96      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
97      * </pre>
98      *
99      * <code>.google.cloud.talent.v4.Job job = 1;</code>
100      *
101      * @return The job.
102      */
getJob()103     com.google.cloud.talent.v4.Job getJob();
104     /**
105      *
106      *
107      * <pre>
108      * Job resource that matches the specified
109      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
110      * </pre>
111      *
112      * <code>.google.cloud.talent.v4.Job job = 1;</code>
113      */
getJobOrBuilder()114     com.google.cloud.talent.v4.JobOrBuilder getJobOrBuilder();
115 
116     /**
117      *
118      *
119      * <pre>
120      * A summary of the job with core information that's displayed on the search
121      * results listing page.
122      * </pre>
123      *
124      * <code>string job_summary = 2;</code>
125      *
126      * @return The jobSummary.
127      */
getJobSummary()128     java.lang.String getJobSummary();
129     /**
130      *
131      *
132      * <pre>
133      * A summary of the job with core information that's displayed on the search
134      * results listing page.
135      * </pre>
136      *
137      * <code>string job_summary = 2;</code>
138      *
139      * @return The bytes for jobSummary.
140      */
getJobSummaryBytes()141     com.google.protobuf.ByteString getJobSummaryBytes();
142 
143     /**
144      *
145      *
146      * <pre>
147      * Contains snippets of text from the
148      * [Job.title][google.cloud.talent.v4.Job.title] field most closely matching
149      * a search query's keywords, if available. The matching query keywords are
150      * enclosed in HTML bold tags.
151      * </pre>
152      *
153      * <code>string job_title_snippet = 3;</code>
154      *
155      * @return The jobTitleSnippet.
156      */
getJobTitleSnippet()157     java.lang.String getJobTitleSnippet();
158     /**
159      *
160      *
161      * <pre>
162      * Contains snippets of text from the
163      * [Job.title][google.cloud.talent.v4.Job.title] field most closely matching
164      * a search query's keywords, if available. The matching query keywords are
165      * enclosed in HTML bold tags.
166      * </pre>
167      *
168      * <code>string job_title_snippet = 3;</code>
169      *
170      * @return The bytes for jobTitleSnippet.
171      */
getJobTitleSnippetBytes()172     com.google.protobuf.ByteString getJobTitleSnippetBytes();
173 
174     /**
175      *
176      *
177      * <pre>
178      * Contains snippets of text from the
179      * [Job.description][google.cloud.talent.v4.Job.description] and similar
180      * fields that most closely match a search query's keywords, if available.
181      * All HTML tags in the original fields are stripped when returned in this
182      * field, and matching query keywords are enclosed in HTML bold tags.
183      * </pre>
184      *
185      * <code>string search_text_snippet = 4;</code>
186      *
187      * @return The searchTextSnippet.
188      */
getSearchTextSnippet()189     java.lang.String getSearchTextSnippet();
190     /**
191      *
192      *
193      * <pre>
194      * Contains snippets of text from the
195      * [Job.description][google.cloud.talent.v4.Job.description] and similar
196      * fields that most closely match a search query's keywords, if available.
197      * All HTML tags in the original fields are stripped when returned in this
198      * field, and matching query keywords are enclosed in HTML bold tags.
199      * </pre>
200      *
201      * <code>string search_text_snippet = 4;</code>
202      *
203      * @return The bytes for searchTextSnippet.
204      */
getSearchTextSnippetBytes()205     com.google.protobuf.ByteString getSearchTextSnippetBytes();
206 
207     /**
208      *
209      *
210      * <pre>
211      * Commute information which is generated based on specified
212      *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
213      * </pre>
214      *
215      * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
216      *
217      * @return Whether the commuteInfo field is set.
218      */
hasCommuteInfo()219     boolean hasCommuteInfo();
220     /**
221      *
222      *
223      * <pre>
224      * Commute information which is generated based on specified
225      *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
226      * </pre>
227      *
228      * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
229      *
230      * @return The commuteInfo.
231      */
getCommuteInfo()232     com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo getCommuteInfo();
233     /**
234      *
235      *
236      * <pre>
237      * Commute information which is generated based on specified
238      *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
239      * </pre>
240      *
241      * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
242      */
getCommuteInfoOrBuilder()243     com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfoOrBuilder getCommuteInfoOrBuilder();
244   }
245   /**
246    *
247    *
248    * <pre>
249    * Job entry with metadata inside
250    * [SearchJobsResponse][google.cloud.talent.v4.SearchJobsResponse].
251    * </pre>
252    *
253    * Protobuf type {@code google.cloud.talent.v4.SearchJobsResponse.MatchingJob}
254    */
255   public static final class MatchingJob extends com.google.protobuf.GeneratedMessageV3
256       implements
257       // @@protoc_insertion_point(message_implements:google.cloud.talent.v4.SearchJobsResponse.MatchingJob)
258       MatchingJobOrBuilder {
259     private static final long serialVersionUID = 0L;
260     // Use MatchingJob.newBuilder() to construct.
MatchingJob(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)261     private MatchingJob(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
262       super(builder);
263     }
264 
MatchingJob()265     private MatchingJob() {
266       jobSummary_ = "";
267       jobTitleSnippet_ = "";
268       searchTextSnippet_ = "";
269     }
270 
271     @java.lang.Override
272     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)273     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
274       return new MatchingJob();
275     }
276 
277     @java.lang.Override
getUnknownFields()278     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
279       return this.unknownFields;
280     }
281 
getDescriptor()282     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
283       return com.google.cloud.talent.v4.JobServiceProto
284           .internal_static_google_cloud_talent_v4_SearchJobsResponse_MatchingJob_descriptor;
285     }
286 
287     @java.lang.Override
288     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()289         internalGetFieldAccessorTable() {
290       return com.google.cloud.talent.v4.JobServiceProto
291           .internal_static_google_cloud_talent_v4_SearchJobsResponse_MatchingJob_fieldAccessorTable
292           .ensureFieldAccessorsInitialized(
293               com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.class,
294               com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder.class);
295     }
296 
297     public static final int JOB_FIELD_NUMBER = 1;
298     private com.google.cloud.talent.v4.Job job_;
299     /**
300      *
301      *
302      * <pre>
303      * Job resource that matches the specified
304      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
305      * </pre>
306      *
307      * <code>.google.cloud.talent.v4.Job job = 1;</code>
308      *
309      * @return Whether the job field is set.
310      */
311     @java.lang.Override
hasJob()312     public boolean hasJob() {
313       return job_ != null;
314     }
315     /**
316      *
317      *
318      * <pre>
319      * Job resource that matches the specified
320      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
321      * </pre>
322      *
323      * <code>.google.cloud.talent.v4.Job job = 1;</code>
324      *
325      * @return The job.
326      */
327     @java.lang.Override
getJob()328     public com.google.cloud.talent.v4.Job getJob() {
329       return job_ == null ? com.google.cloud.talent.v4.Job.getDefaultInstance() : job_;
330     }
331     /**
332      *
333      *
334      * <pre>
335      * Job resource that matches the specified
336      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
337      * </pre>
338      *
339      * <code>.google.cloud.talent.v4.Job job = 1;</code>
340      */
341     @java.lang.Override
getJobOrBuilder()342     public com.google.cloud.talent.v4.JobOrBuilder getJobOrBuilder() {
343       return job_ == null ? com.google.cloud.talent.v4.Job.getDefaultInstance() : job_;
344     }
345 
346     public static final int JOB_SUMMARY_FIELD_NUMBER = 2;
347 
348     @SuppressWarnings("serial")
349     private volatile java.lang.Object jobSummary_ = "";
350     /**
351      *
352      *
353      * <pre>
354      * A summary of the job with core information that's displayed on the search
355      * results listing page.
356      * </pre>
357      *
358      * <code>string job_summary = 2;</code>
359      *
360      * @return The jobSummary.
361      */
362     @java.lang.Override
getJobSummary()363     public java.lang.String getJobSummary() {
364       java.lang.Object ref = jobSummary_;
365       if (ref instanceof java.lang.String) {
366         return (java.lang.String) ref;
367       } else {
368         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
369         java.lang.String s = bs.toStringUtf8();
370         jobSummary_ = s;
371         return s;
372       }
373     }
374     /**
375      *
376      *
377      * <pre>
378      * A summary of the job with core information that's displayed on the search
379      * results listing page.
380      * </pre>
381      *
382      * <code>string job_summary = 2;</code>
383      *
384      * @return The bytes for jobSummary.
385      */
386     @java.lang.Override
getJobSummaryBytes()387     public com.google.protobuf.ByteString getJobSummaryBytes() {
388       java.lang.Object ref = jobSummary_;
389       if (ref instanceof java.lang.String) {
390         com.google.protobuf.ByteString b =
391             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
392         jobSummary_ = b;
393         return b;
394       } else {
395         return (com.google.protobuf.ByteString) ref;
396       }
397     }
398 
399     public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 3;
400 
401     @SuppressWarnings("serial")
402     private volatile java.lang.Object jobTitleSnippet_ = "";
403     /**
404      *
405      *
406      * <pre>
407      * Contains snippets of text from the
408      * [Job.title][google.cloud.talent.v4.Job.title] field most closely matching
409      * a search query's keywords, if available. The matching query keywords are
410      * enclosed in HTML bold tags.
411      * </pre>
412      *
413      * <code>string job_title_snippet = 3;</code>
414      *
415      * @return The jobTitleSnippet.
416      */
417     @java.lang.Override
getJobTitleSnippet()418     public java.lang.String getJobTitleSnippet() {
419       java.lang.Object ref = jobTitleSnippet_;
420       if (ref instanceof java.lang.String) {
421         return (java.lang.String) ref;
422       } else {
423         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
424         java.lang.String s = bs.toStringUtf8();
425         jobTitleSnippet_ = s;
426         return s;
427       }
428     }
429     /**
430      *
431      *
432      * <pre>
433      * Contains snippets of text from the
434      * [Job.title][google.cloud.talent.v4.Job.title] field most closely matching
435      * a search query's keywords, if available. The matching query keywords are
436      * enclosed in HTML bold tags.
437      * </pre>
438      *
439      * <code>string job_title_snippet = 3;</code>
440      *
441      * @return The bytes for jobTitleSnippet.
442      */
443     @java.lang.Override
getJobTitleSnippetBytes()444     public com.google.protobuf.ByteString getJobTitleSnippetBytes() {
445       java.lang.Object ref = jobTitleSnippet_;
446       if (ref instanceof java.lang.String) {
447         com.google.protobuf.ByteString b =
448             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
449         jobTitleSnippet_ = b;
450         return b;
451       } else {
452         return (com.google.protobuf.ByteString) ref;
453       }
454     }
455 
456     public static final int SEARCH_TEXT_SNIPPET_FIELD_NUMBER = 4;
457 
458     @SuppressWarnings("serial")
459     private volatile java.lang.Object searchTextSnippet_ = "";
460     /**
461      *
462      *
463      * <pre>
464      * Contains snippets of text from the
465      * [Job.description][google.cloud.talent.v4.Job.description] and similar
466      * fields that most closely match a search query's keywords, if available.
467      * All HTML tags in the original fields are stripped when returned in this
468      * field, and matching query keywords are enclosed in HTML bold tags.
469      * </pre>
470      *
471      * <code>string search_text_snippet = 4;</code>
472      *
473      * @return The searchTextSnippet.
474      */
475     @java.lang.Override
getSearchTextSnippet()476     public java.lang.String getSearchTextSnippet() {
477       java.lang.Object ref = searchTextSnippet_;
478       if (ref instanceof java.lang.String) {
479         return (java.lang.String) ref;
480       } else {
481         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
482         java.lang.String s = bs.toStringUtf8();
483         searchTextSnippet_ = s;
484         return s;
485       }
486     }
487     /**
488      *
489      *
490      * <pre>
491      * Contains snippets of text from the
492      * [Job.description][google.cloud.talent.v4.Job.description] and similar
493      * fields that most closely match a search query's keywords, if available.
494      * All HTML tags in the original fields are stripped when returned in this
495      * field, and matching query keywords are enclosed in HTML bold tags.
496      * </pre>
497      *
498      * <code>string search_text_snippet = 4;</code>
499      *
500      * @return The bytes for searchTextSnippet.
501      */
502     @java.lang.Override
getSearchTextSnippetBytes()503     public com.google.protobuf.ByteString getSearchTextSnippetBytes() {
504       java.lang.Object ref = searchTextSnippet_;
505       if (ref instanceof java.lang.String) {
506         com.google.protobuf.ByteString b =
507             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
508         searchTextSnippet_ = b;
509         return b;
510       } else {
511         return (com.google.protobuf.ByteString) ref;
512       }
513     }
514 
515     public static final int COMMUTE_INFO_FIELD_NUMBER = 5;
516     private com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commuteInfo_;
517     /**
518      *
519      *
520      * <pre>
521      * Commute information which is generated based on specified
522      *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
523      * </pre>
524      *
525      * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
526      *
527      * @return Whether the commuteInfo field is set.
528      */
529     @java.lang.Override
hasCommuteInfo()530     public boolean hasCommuteInfo() {
531       return commuteInfo_ != null;
532     }
533     /**
534      *
535      *
536      * <pre>
537      * Commute information which is generated based on specified
538      *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
539      * </pre>
540      *
541      * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
542      *
543      * @return The commuteInfo.
544      */
545     @java.lang.Override
getCommuteInfo()546     public com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo getCommuteInfo() {
547       return commuteInfo_ == null
548           ? com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.getDefaultInstance()
549           : commuteInfo_;
550     }
551     /**
552      *
553      *
554      * <pre>
555      * Commute information which is generated based on specified
556      *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
557      * </pre>
558      *
559      * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
560      */
561     @java.lang.Override
562     public com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfoOrBuilder
getCommuteInfoOrBuilder()563         getCommuteInfoOrBuilder() {
564       return commuteInfo_ == null
565           ? com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.getDefaultInstance()
566           : commuteInfo_;
567     }
568 
569     private byte memoizedIsInitialized = -1;
570 
571     @java.lang.Override
isInitialized()572     public final boolean isInitialized() {
573       byte isInitialized = memoizedIsInitialized;
574       if (isInitialized == 1) return true;
575       if (isInitialized == 0) return false;
576 
577       memoizedIsInitialized = 1;
578       return true;
579     }
580 
581     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)582     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
583       if (job_ != null) {
584         output.writeMessage(1, getJob());
585       }
586       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobSummary_)) {
587         com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobSummary_);
588       }
589       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitleSnippet_)) {
590         com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobTitleSnippet_);
591       }
592       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchTextSnippet_)) {
593         com.google.protobuf.GeneratedMessageV3.writeString(output, 4, searchTextSnippet_);
594       }
595       if (commuteInfo_ != null) {
596         output.writeMessage(5, getCommuteInfo());
597       }
598       getUnknownFields().writeTo(output);
599     }
600 
601     @java.lang.Override
getSerializedSize()602     public int getSerializedSize() {
603       int size = memoizedSize;
604       if (size != -1) return size;
605 
606       size = 0;
607       if (job_ != null) {
608         size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob());
609       }
610       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobSummary_)) {
611         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobSummary_);
612       }
613       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitleSnippet_)) {
614         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobTitleSnippet_);
615       }
616       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchTextSnippet_)) {
617         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, searchTextSnippet_);
618       }
619       if (commuteInfo_ != null) {
620         size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCommuteInfo());
621       }
622       size += getUnknownFields().getSerializedSize();
623       memoizedSize = size;
624       return size;
625     }
626 
627     @java.lang.Override
equals(final java.lang.Object obj)628     public boolean equals(final java.lang.Object obj) {
629       if (obj == this) {
630         return true;
631       }
632       if (!(obj instanceof com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob)) {
633         return super.equals(obj);
634       }
635       com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob other =
636           (com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob) obj;
637 
638       if (hasJob() != other.hasJob()) return false;
639       if (hasJob()) {
640         if (!getJob().equals(other.getJob())) return false;
641       }
642       if (!getJobSummary().equals(other.getJobSummary())) return false;
643       if (!getJobTitleSnippet().equals(other.getJobTitleSnippet())) return false;
644       if (!getSearchTextSnippet().equals(other.getSearchTextSnippet())) return false;
645       if (hasCommuteInfo() != other.hasCommuteInfo()) return false;
646       if (hasCommuteInfo()) {
647         if (!getCommuteInfo().equals(other.getCommuteInfo())) return false;
648       }
649       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
650       return true;
651     }
652 
653     @java.lang.Override
hashCode()654     public int hashCode() {
655       if (memoizedHashCode != 0) {
656         return memoizedHashCode;
657       }
658       int hash = 41;
659       hash = (19 * hash) + getDescriptor().hashCode();
660       if (hasJob()) {
661         hash = (37 * hash) + JOB_FIELD_NUMBER;
662         hash = (53 * hash) + getJob().hashCode();
663       }
664       hash = (37 * hash) + JOB_SUMMARY_FIELD_NUMBER;
665       hash = (53 * hash) + getJobSummary().hashCode();
666       hash = (37 * hash) + JOB_TITLE_SNIPPET_FIELD_NUMBER;
667       hash = (53 * hash) + getJobTitleSnippet().hashCode();
668       hash = (37 * hash) + SEARCH_TEXT_SNIPPET_FIELD_NUMBER;
669       hash = (53 * hash) + getSearchTextSnippet().hashCode();
670       if (hasCommuteInfo()) {
671         hash = (37 * hash) + COMMUTE_INFO_FIELD_NUMBER;
672         hash = (53 * hash) + getCommuteInfo().hashCode();
673       }
674       hash = (29 * hash) + getUnknownFields().hashCode();
675       memoizedHashCode = hash;
676       return hash;
677     }
678 
parseFrom( java.nio.ByteBuffer data)679     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob parseFrom(
680         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
681       return PARSER.parseFrom(data);
682     }
683 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)684     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob parseFrom(
685         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
686         throws com.google.protobuf.InvalidProtocolBufferException {
687       return PARSER.parseFrom(data, extensionRegistry);
688     }
689 
parseFrom( com.google.protobuf.ByteString data)690     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob parseFrom(
691         com.google.protobuf.ByteString data)
692         throws com.google.protobuf.InvalidProtocolBufferException {
693       return PARSER.parseFrom(data);
694     }
695 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)696     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob parseFrom(
697         com.google.protobuf.ByteString data,
698         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
699         throws com.google.protobuf.InvalidProtocolBufferException {
700       return PARSER.parseFrom(data, extensionRegistry);
701     }
702 
parseFrom(byte[] data)703     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob parseFrom(byte[] data)
704         throws com.google.protobuf.InvalidProtocolBufferException {
705       return PARSER.parseFrom(data);
706     }
707 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)708     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob parseFrom(
709         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
710         throws com.google.protobuf.InvalidProtocolBufferException {
711       return PARSER.parseFrom(data, extensionRegistry);
712     }
713 
parseFrom( java.io.InputStream input)714     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob parseFrom(
715         java.io.InputStream input) throws java.io.IOException {
716       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
717     }
718 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)719     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob parseFrom(
720         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
721         throws java.io.IOException {
722       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
723           PARSER, input, extensionRegistry);
724     }
725 
parseDelimitedFrom( java.io.InputStream input)726     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob parseDelimitedFrom(
727         java.io.InputStream input) throws java.io.IOException {
728       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
729     }
730 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)731     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob parseDelimitedFrom(
732         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
733         throws java.io.IOException {
734       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
735           PARSER, input, extensionRegistry);
736     }
737 
parseFrom( com.google.protobuf.CodedInputStream input)738     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob parseFrom(
739         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
740       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
741     }
742 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)743     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob parseFrom(
744         com.google.protobuf.CodedInputStream input,
745         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
746         throws java.io.IOException {
747       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
748           PARSER, input, extensionRegistry);
749     }
750 
751     @java.lang.Override
newBuilderForType()752     public Builder newBuilderForType() {
753       return newBuilder();
754     }
755 
newBuilder()756     public static Builder newBuilder() {
757       return DEFAULT_INSTANCE.toBuilder();
758     }
759 
newBuilder( com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob prototype)760     public static Builder newBuilder(
761         com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob prototype) {
762       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
763     }
764 
765     @java.lang.Override
toBuilder()766     public Builder toBuilder() {
767       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
768     }
769 
770     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)771     protected Builder newBuilderForType(
772         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
773       Builder builder = new Builder(parent);
774       return builder;
775     }
776     /**
777      *
778      *
779      * <pre>
780      * Job entry with metadata inside
781      * [SearchJobsResponse][google.cloud.talent.v4.SearchJobsResponse].
782      * </pre>
783      *
784      * Protobuf type {@code google.cloud.talent.v4.SearchJobsResponse.MatchingJob}
785      */
786     public static final class Builder
787         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
788         implements
789         // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4.SearchJobsResponse.MatchingJob)
790         com.google.cloud.talent.v4.SearchJobsResponse.MatchingJobOrBuilder {
getDescriptor()791       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
792         return com.google.cloud.talent.v4.JobServiceProto
793             .internal_static_google_cloud_talent_v4_SearchJobsResponse_MatchingJob_descriptor;
794       }
795 
796       @java.lang.Override
797       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()798           internalGetFieldAccessorTable() {
799         return com.google.cloud.talent.v4.JobServiceProto
800             .internal_static_google_cloud_talent_v4_SearchJobsResponse_MatchingJob_fieldAccessorTable
801             .ensureFieldAccessorsInitialized(
802                 com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.class,
803                 com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder.class);
804       }
805 
806       // Construct using com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.newBuilder()
Builder()807       private Builder() {}
808 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)809       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
810         super(parent);
811       }
812 
813       @java.lang.Override
clear()814       public Builder clear() {
815         super.clear();
816         bitField0_ = 0;
817         job_ = null;
818         if (jobBuilder_ != null) {
819           jobBuilder_.dispose();
820           jobBuilder_ = null;
821         }
822         jobSummary_ = "";
823         jobTitleSnippet_ = "";
824         searchTextSnippet_ = "";
825         commuteInfo_ = null;
826         if (commuteInfoBuilder_ != null) {
827           commuteInfoBuilder_.dispose();
828           commuteInfoBuilder_ = null;
829         }
830         return this;
831       }
832 
833       @java.lang.Override
getDescriptorForType()834       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
835         return com.google.cloud.talent.v4.JobServiceProto
836             .internal_static_google_cloud_talent_v4_SearchJobsResponse_MatchingJob_descriptor;
837       }
838 
839       @java.lang.Override
getDefaultInstanceForType()840       public com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob getDefaultInstanceForType() {
841         return com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.getDefaultInstance();
842       }
843 
844       @java.lang.Override
build()845       public com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob build() {
846         com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob result = buildPartial();
847         if (!result.isInitialized()) {
848           throw newUninitializedMessageException(result);
849         }
850         return result;
851       }
852 
853       @java.lang.Override
buildPartial()854       public com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob buildPartial() {
855         com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob result =
856             new com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob(this);
857         if (bitField0_ != 0) {
858           buildPartial0(result);
859         }
860         onBuilt();
861         return result;
862       }
863 
buildPartial0(com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob result)864       private void buildPartial0(com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob result) {
865         int from_bitField0_ = bitField0_;
866         if (((from_bitField0_ & 0x00000001) != 0)) {
867           result.job_ = jobBuilder_ == null ? job_ : jobBuilder_.build();
868         }
869         if (((from_bitField0_ & 0x00000002) != 0)) {
870           result.jobSummary_ = jobSummary_;
871         }
872         if (((from_bitField0_ & 0x00000004) != 0)) {
873           result.jobTitleSnippet_ = jobTitleSnippet_;
874         }
875         if (((from_bitField0_ & 0x00000008) != 0)) {
876           result.searchTextSnippet_ = searchTextSnippet_;
877         }
878         if (((from_bitField0_ & 0x00000010) != 0)) {
879           result.commuteInfo_ =
880               commuteInfoBuilder_ == null ? commuteInfo_ : commuteInfoBuilder_.build();
881         }
882       }
883 
884       @java.lang.Override
clone()885       public Builder clone() {
886         return super.clone();
887       }
888 
889       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)890       public Builder setField(
891           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
892         return super.setField(field, value);
893       }
894 
895       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)896       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
897         return super.clearField(field);
898       }
899 
900       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)901       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
902         return super.clearOneof(oneof);
903       }
904 
905       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)906       public Builder setRepeatedField(
907           com.google.protobuf.Descriptors.FieldDescriptor field,
908           int index,
909           java.lang.Object value) {
910         return super.setRepeatedField(field, index, value);
911       }
912 
913       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)914       public Builder addRepeatedField(
915           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
916         return super.addRepeatedField(field, value);
917       }
918 
919       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)920       public Builder mergeFrom(com.google.protobuf.Message other) {
921         if (other instanceof com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob) {
922           return mergeFrom((com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob) other);
923         } else {
924           super.mergeFrom(other);
925           return this;
926         }
927       }
928 
mergeFrom(com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob other)929       public Builder mergeFrom(com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob other) {
930         if (other == com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.getDefaultInstance())
931           return this;
932         if (other.hasJob()) {
933           mergeJob(other.getJob());
934         }
935         if (!other.getJobSummary().isEmpty()) {
936           jobSummary_ = other.jobSummary_;
937           bitField0_ |= 0x00000002;
938           onChanged();
939         }
940         if (!other.getJobTitleSnippet().isEmpty()) {
941           jobTitleSnippet_ = other.jobTitleSnippet_;
942           bitField0_ |= 0x00000004;
943           onChanged();
944         }
945         if (!other.getSearchTextSnippet().isEmpty()) {
946           searchTextSnippet_ = other.searchTextSnippet_;
947           bitField0_ |= 0x00000008;
948           onChanged();
949         }
950         if (other.hasCommuteInfo()) {
951           mergeCommuteInfo(other.getCommuteInfo());
952         }
953         this.mergeUnknownFields(other.getUnknownFields());
954         onChanged();
955         return this;
956       }
957 
958       @java.lang.Override
isInitialized()959       public final boolean isInitialized() {
960         return true;
961       }
962 
963       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)964       public Builder mergeFrom(
965           com.google.protobuf.CodedInputStream input,
966           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
967           throws java.io.IOException {
968         if (extensionRegistry == null) {
969           throw new java.lang.NullPointerException();
970         }
971         try {
972           boolean done = false;
973           while (!done) {
974             int tag = input.readTag();
975             switch (tag) {
976               case 0:
977                 done = true;
978                 break;
979               case 10:
980                 {
981                   input.readMessage(getJobFieldBuilder().getBuilder(), extensionRegistry);
982                   bitField0_ |= 0x00000001;
983                   break;
984                 } // case 10
985               case 18:
986                 {
987                   jobSummary_ = input.readStringRequireUtf8();
988                   bitField0_ |= 0x00000002;
989                   break;
990                 } // case 18
991               case 26:
992                 {
993                   jobTitleSnippet_ = input.readStringRequireUtf8();
994                   bitField0_ |= 0x00000004;
995                   break;
996                 } // case 26
997               case 34:
998                 {
999                   searchTextSnippet_ = input.readStringRequireUtf8();
1000                   bitField0_ |= 0x00000008;
1001                   break;
1002                 } // case 34
1003               case 42:
1004                 {
1005                   input.readMessage(getCommuteInfoFieldBuilder().getBuilder(), extensionRegistry);
1006                   bitField0_ |= 0x00000010;
1007                   break;
1008                 } // case 42
1009               default:
1010                 {
1011                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1012                     done = true; // was an endgroup tag
1013                   }
1014                   break;
1015                 } // default:
1016             } // switch (tag)
1017           } // while (!done)
1018         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1019           throw e.unwrapIOException();
1020         } finally {
1021           onChanged();
1022         } // finally
1023         return this;
1024       }
1025 
1026       private int bitField0_;
1027 
1028       private com.google.cloud.talent.v4.Job job_;
1029       private com.google.protobuf.SingleFieldBuilderV3<
1030               com.google.cloud.talent.v4.Job,
1031               com.google.cloud.talent.v4.Job.Builder,
1032               com.google.cloud.talent.v4.JobOrBuilder>
1033           jobBuilder_;
1034       /**
1035        *
1036        *
1037        * <pre>
1038        * Job resource that matches the specified
1039        * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1040        * </pre>
1041        *
1042        * <code>.google.cloud.talent.v4.Job job = 1;</code>
1043        *
1044        * @return Whether the job field is set.
1045        */
hasJob()1046       public boolean hasJob() {
1047         return ((bitField0_ & 0x00000001) != 0);
1048       }
1049       /**
1050        *
1051        *
1052        * <pre>
1053        * Job resource that matches the specified
1054        * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1055        * </pre>
1056        *
1057        * <code>.google.cloud.talent.v4.Job job = 1;</code>
1058        *
1059        * @return The job.
1060        */
getJob()1061       public com.google.cloud.talent.v4.Job getJob() {
1062         if (jobBuilder_ == null) {
1063           return job_ == null ? com.google.cloud.talent.v4.Job.getDefaultInstance() : job_;
1064         } else {
1065           return jobBuilder_.getMessage();
1066         }
1067       }
1068       /**
1069        *
1070        *
1071        * <pre>
1072        * Job resource that matches the specified
1073        * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1074        * </pre>
1075        *
1076        * <code>.google.cloud.talent.v4.Job job = 1;</code>
1077        */
setJob(com.google.cloud.talent.v4.Job value)1078       public Builder setJob(com.google.cloud.talent.v4.Job value) {
1079         if (jobBuilder_ == null) {
1080           if (value == null) {
1081             throw new NullPointerException();
1082           }
1083           job_ = value;
1084         } else {
1085           jobBuilder_.setMessage(value);
1086         }
1087         bitField0_ |= 0x00000001;
1088         onChanged();
1089         return this;
1090       }
1091       /**
1092        *
1093        *
1094        * <pre>
1095        * Job resource that matches the specified
1096        * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1097        * </pre>
1098        *
1099        * <code>.google.cloud.talent.v4.Job job = 1;</code>
1100        */
setJob(com.google.cloud.talent.v4.Job.Builder builderForValue)1101       public Builder setJob(com.google.cloud.talent.v4.Job.Builder builderForValue) {
1102         if (jobBuilder_ == null) {
1103           job_ = builderForValue.build();
1104         } else {
1105           jobBuilder_.setMessage(builderForValue.build());
1106         }
1107         bitField0_ |= 0x00000001;
1108         onChanged();
1109         return this;
1110       }
1111       /**
1112        *
1113        *
1114        * <pre>
1115        * Job resource that matches the specified
1116        * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1117        * </pre>
1118        *
1119        * <code>.google.cloud.talent.v4.Job job = 1;</code>
1120        */
mergeJob(com.google.cloud.talent.v4.Job value)1121       public Builder mergeJob(com.google.cloud.talent.v4.Job value) {
1122         if (jobBuilder_ == null) {
1123           if (((bitField0_ & 0x00000001) != 0)
1124               && job_ != null
1125               && job_ != com.google.cloud.talent.v4.Job.getDefaultInstance()) {
1126             getJobBuilder().mergeFrom(value);
1127           } else {
1128             job_ = value;
1129           }
1130         } else {
1131           jobBuilder_.mergeFrom(value);
1132         }
1133         bitField0_ |= 0x00000001;
1134         onChanged();
1135         return this;
1136       }
1137       /**
1138        *
1139        *
1140        * <pre>
1141        * Job resource that matches the specified
1142        * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1143        * </pre>
1144        *
1145        * <code>.google.cloud.talent.v4.Job job = 1;</code>
1146        */
clearJob()1147       public Builder clearJob() {
1148         bitField0_ = (bitField0_ & ~0x00000001);
1149         job_ = null;
1150         if (jobBuilder_ != null) {
1151           jobBuilder_.dispose();
1152           jobBuilder_ = null;
1153         }
1154         onChanged();
1155         return this;
1156       }
1157       /**
1158        *
1159        *
1160        * <pre>
1161        * Job resource that matches the specified
1162        * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1163        * </pre>
1164        *
1165        * <code>.google.cloud.talent.v4.Job job = 1;</code>
1166        */
getJobBuilder()1167       public com.google.cloud.talent.v4.Job.Builder getJobBuilder() {
1168         bitField0_ |= 0x00000001;
1169         onChanged();
1170         return getJobFieldBuilder().getBuilder();
1171       }
1172       /**
1173        *
1174        *
1175        * <pre>
1176        * Job resource that matches the specified
1177        * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1178        * </pre>
1179        *
1180        * <code>.google.cloud.talent.v4.Job job = 1;</code>
1181        */
getJobOrBuilder()1182       public com.google.cloud.talent.v4.JobOrBuilder getJobOrBuilder() {
1183         if (jobBuilder_ != null) {
1184           return jobBuilder_.getMessageOrBuilder();
1185         } else {
1186           return job_ == null ? com.google.cloud.talent.v4.Job.getDefaultInstance() : job_;
1187         }
1188       }
1189       /**
1190        *
1191        *
1192        * <pre>
1193        * Job resource that matches the specified
1194        * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
1195        * </pre>
1196        *
1197        * <code>.google.cloud.talent.v4.Job job = 1;</code>
1198        */
1199       private com.google.protobuf.SingleFieldBuilderV3<
1200               com.google.cloud.talent.v4.Job,
1201               com.google.cloud.talent.v4.Job.Builder,
1202               com.google.cloud.talent.v4.JobOrBuilder>
getJobFieldBuilder()1203           getJobFieldBuilder() {
1204         if (jobBuilder_ == null) {
1205           jobBuilder_ =
1206               new com.google.protobuf.SingleFieldBuilderV3<
1207                   com.google.cloud.talent.v4.Job,
1208                   com.google.cloud.talent.v4.Job.Builder,
1209                   com.google.cloud.talent.v4.JobOrBuilder>(
1210                   getJob(), getParentForChildren(), isClean());
1211           job_ = null;
1212         }
1213         return jobBuilder_;
1214       }
1215 
1216       private java.lang.Object jobSummary_ = "";
1217       /**
1218        *
1219        *
1220        * <pre>
1221        * A summary of the job with core information that's displayed on the search
1222        * results listing page.
1223        * </pre>
1224        *
1225        * <code>string job_summary = 2;</code>
1226        *
1227        * @return The jobSummary.
1228        */
getJobSummary()1229       public java.lang.String getJobSummary() {
1230         java.lang.Object ref = jobSummary_;
1231         if (!(ref instanceof java.lang.String)) {
1232           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1233           java.lang.String s = bs.toStringUtf8();
1234           jobSummary_ = s;
1235           return s;
1236         } else {
1237           return (java.lang.String) ref;
1238         }
1239       }
1240       /**
1241        *
1242        *
1243        * <pre>
1244        * A summary of the job with core information that's displayed on the search
1245        * results listing page.
1246        * </pre>
1247        *
1248        * <code>string job_summary = 2;</code>
1249        *
1250        * @return The bytes for jobSummary.
1251        */
getJobSummaryBytes()1252       public com.google.protobuf.ByteString getJobSummaryBytes() {
1253         java.lang.Object ref = jobSummary_;
1254         if (ref instanceof String) {
1255           com.google.protobuf.ByteString b =
1256               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1257           jobSummary_ = b;
1258           return b;
1259         } else {
1260           return (com.google.protobuf.ByteString) ref;
1261         }
1262       }
1263       /**
1264        *
1265        *
1266        * <pre>
1267        * A summary of the job with core information that's displayed on the search
1268        * results listing page.
1269        * </pre>
1270        *
1271        * <code>string job_summary = 2;</code>
1272        *
1273        * @param value The jobSummary to set.
1274        * @return This builder for chaining.
1275        */
setJobSummary(java.lang.String value)1276       public Builder setJobSummary(java.lang.String value) {
1277         if (value == null) {
1278           throw new NullPointerException();
1279         }
1280         jobSummary_ = value;
1281         bitField0_ |= 0x00000002;
1282         onChanged();
1283         return this;
1284       }
1285       /**
1286        *
1287        *
1288        * <pre>
1289        * A summary of the job with core information that's displayed on the search
1290        * results listing page.
1291        * </pre>
1292        *
1293        * <code>string job_summary = 2;</code>
1294        *
1295        * @return This builder for chaining.
1296        */
clearJobSummary()1297       public Builder clearJobSummary() {
1298         jobSummary_ = getDefaultInstance().getJobSummary();
1299         bitField0_ = (bitField0_ & ~0x00000002);
1300         onChanged();
1301         return this;
1302       }
1303       /**
1304        *
1305        *
1306        * <pre>
1307        * A summary of the job with core information that's displayed on the search
1308        * results listing page.
1309        * </pre>
1310        *
1311        * <code>string job_summary = 2;</code>
1312        *
1313        * @param value The bytes for jobSummary to set.
1314        * @return This builder for chaining.
1315        */
setJobSummaryBytes(com.google.protobuf.ByteString value)1316       public Builder setJobSummaryBytes(com.google.protobuf.ByteString value) {
1317         if (value == null) {
1318           throw new NullPointerException();
1319         }
1320         checkByteStringIsUtf8(value);
1321         jobSummary_ = value;
1322         bitField0_ |= 0x00000002;
1323         onChanged();
1324         return this;
1325       }
1326 
1327       private java.lang.Object jobTitleSnippet_ = "";
1328       /**
1329        *
1330        *
1331        * <pre>
1332        * Contains snippets of text from the
1333        * [Job.title][google.cloud.talent.v4.Job.title] field most closely matching
1334        * a search query's keywords, if available. The matching query keywords are
1335        * enclosed in HTML bold tags.
1336        * </pre>
1337        *
1338        * <code>string job_title_snippet = 3;</code>
1339        *
1340        * @return The jobTitleSnippet.
1341        */
getJobTitleSnippet()1342       public java.lang.String getJobTitleSnippet() {
1343         java.lang.Object ref = jobTitleSnippet_;
1344         if (!(ref instanceof java.lang.String)) {
1345           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1346           java.lang.String s = bs.toStringUtf8();
1347           jobTitleSnippet_ = s;
1348           return s;
1349         } else {
1350           return (java.lang.String) ref;
1351         }
1352       }
1353       /**
1354        *
1355        *
1356        * <pre>
1357        * Contains snippets of text from the
1358        * [Job.title][google.cloud.talent.v4.Job.title] field most closely matching
1359        * a search query's keywords, if available. The matching query keywords are
1360        * enclosed in HTML bold tags.
1361        * </pre>
1362        *
1363        * <code>string job_title_snippet = 3;</code>
1364        *
1365        * @return The bytes for jobTitleSnippet.
1366        */
getJobTitleSnippetBytes()1367       public com.google.protobuf.ByteString getJobTitleSnippetBytes() {
1368         java.lang.Object ref = jobTitleSnippet_;
1369         if (ref instanceof String) {
1370           com.google.protobuf.ByteString b =
1371               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1372           jobTitleSnippet_ = b;
1373           return b;
1374         } else {
1375           return (com.google.protobuf.ByteString) ref;
1376         }
1377       }
1378       /**
1379        *
1380        *
1381        * <pre>
1382        * Contains snippets of text from the
1383        * [Job.title][google.cloud.talent.v4.Job.title] field most closely matching
1384        * a search query's keywords, if available. The matching query keywords are
1385        * enclosed in HTML bold tags.
1386        * </pre>
1387        *
1388        * <code>string job_title_snippet = 3;</code>
1389        *
1390        * @param value The jobTitleSnippet to set.
1391        * @return This builder for chaining.
1392        */
setJobTitleSnippet(java.lang.String value)1393       public Builder setJobTitleSnippet(java.lang.String value) {
1394         if (value == null) {
1395           throw new NullPointerException();
1396         }
1397         jobTitleSnippet_ = value;
1398         bitField0_ |= 0x00000004;
1399         onChanged();
1400         return this;
1401       }
1402       /**
1403        *
1404        *
1405        * <pre>
1406        * Contains snippets of text from the
1407        * [Job.title][google.cloud.talent.v4.Job.title] field most closely matching
1408        * a search query's keywords, if available. The matching query keywords are
1409        * enclosed in HTML bold tags.
1410        * </pre>
1411        *
1412        * <code>string job_title_snippet = 3;</code>
1413        *
1414        * @return This builder for chaining.
1415        */
clearJobTitleSnippet()1416       public Builder clearJobTitleSnippet() {
1417         jobTitleSnippet_ = getDefaultInstance().getJobTitleSnippet();
1418         bitField0_ = (bitField0_ & ~0x00000004);
1419         onChanged();
1420         return this;
1421       }
1422       /**
1423        *
1424        *
1425        * <pre>
1426        * Contains snippets of text from the
1427        * [Job.title][google.cloud.talent.v4.Job.title] field most closely matching
1428        * a search query's keywords, if available. The matching query keywords are
1429        * enclosed in HTML bold tags.
1430        * </pre>
1431        *
1432        * <code>string job_title_snippet = 3;</code>
1433        *
1434        * @param value The bytes for jobTitleSnippet to set.
1435        * @return This builder for chaining.
1436        */
setJobTitleSnippetBytes(com.google.protobuf.ByteString value)1437       public Builder setJobTitleSnippetBytes(com.google.protobuf.ByteString value) {
1438         if (value == null) {
1439           throw new NullPointerException();
1440         }
1441         checkByteStringIsUtf8(value);
1442         jobTitleSnippet_ = value;
1443         bitField0_ |= 0x00000004;
1444         onChanged();
1445         return this;
1446       }
1447 
1448       private java.lang.Object searchTextSnippet_ = "";
1449       /**
1450        *
1451        *
1452        * <pre>
1453        * Contains snippets of text from the
1454        * [Job.description][google.cloud.talent.v4.Job.description] and similar
1455        * fields that most closely match a search query's keywords, if available.
1456        * All HTML tags in the original fields are stripped when returned in this
1457        * field, and matching query keywords are enclosed in HTML bold tags.
1458        * </pre>
1459        *
1460        * <code>string search_text_snippet = 4;</code>
1461        *
1462        * @return The searchTextSnippet.
1463        */
getSearchTextSnippet()1464       public java.lang.String getSearchTextSnippet() {
1465         java.lang.Object ref = searchTextSnippet_;
1466         if (!(ref instanceof java.lang.String)) {
1467           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1468           java.lang.String s = bs.toStringUtf8();
1469           searchTextSnippet_ = s;
1470           return s;
1471         } else {
1472           return (java.lang.String) ref;
1473         }
1474       }
1475       /**
1476        *
1477        *
1478        * <pre>
1479        * Contains snippets of text from the
1480        * [Job.description][google.cloud.talent.v4.Job.description] and similar
1481        * fields that most closely match a search query's keywords, if available.
1482        * All HTML tags in the original fields are stripped when returned in this
1483        * field, and matching query keywords are enclosed in HTML bold tags.
1484        * </pre>
1485        *
1486        * <code>string search_text_snippet = 4;</code>
1487        *
1488        * @return The bytes for searchTextSnippet.
1489        */
getSearchTextSnippetBytes()1490       public com.google.protobuf.ByteString getSearchTextSnippetBytes() {
1491         java.lang.Object ref = searchTextSnippet_;
1492         if (ref instanceof String) {
1493           com.google.protobuf.ByteString b =
1494               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1495           searchTextSnippet_ = b;
1496           return b;
1497         } else {
1498           return (com.google.protobuf.ByteString) ref;
1499         }
1500       }
1501       /**
1502        *
1503        *
1504        * <pre>
1505        * Contains snippets of text from the
1506        * [Job.description][google.cloud.talent.v4.Job.description] and similar
1507        * fields that most closely match a search query's keywords, if available.
1508        * All HTML tags in the original fields are stripped when returned in this
1509        * field, and matching query keywords are enclosed in HTML bold tags.
1510        * </pre>
1511        *
1512        * <code>string search_text_snippet = 4;</code>
1513        *
1514        * @param value The searchTextSnippet to set.
1515        * @return This builder for chaining.
1516        */
setSearchTextSnippet(java.lang.String value)1517       public Builder setSearchTextSnippet(java.lang.String value) {
1518         if (value == null) {
1519           throw new NullPointerException();
1520         }
1521         searchTextSnippet_ = value;
1522         bitField0_ |= 0x00000008;
1523         onChanged();
1524         return this;
1525       }
1526       /**
1527        *
1528        *
1529        * <pre>
1530        * Contains snippets of text from the
1531        * [Job.description][google.cloud.talent.v4.Job.description] and similar
1532        * fields that most closely match a search query's keywords, if available.
1533        * All HTML tags in the original fields are stripped when returned in this
1534        * field, and matching query keywords are enclosed in HTML bold tags.
1535        * </pre>
1536        *
1537        * <code>string search_text_snippet = 4;</code>
1538        *
1539        * @return This builder for chaining.
1540        */
clearSearchTextSnippet()1541       public Builder clearSearchTextSnippet() {
1542         searchTextSnippet_ = getDefaultInstance().getSearchTextSnippet();
1543         bitField0_ = (bitField0_ & ~0x00000008);
1544         onChanged();
1545         return this;
1546       }
1547       /**
1548        *
1549        *
1550        * <pre>
1551        * Contains snippets of text from the
1552        * [Job.description][google.cloud.talent.v4.Job.description] and similar
1553        * fields that most closely match a search query's keywords, if available.
1554        * All HTML tags in the original fields are stripped when returned in this
1555        * field, and matching query keywords are enclosed in HTML bold tags.
1556        * </pre>
1557        *
1558        * <code>string search_text_snippet = 4;</code>
1559        *
1560        * @param value The bytes for searchTextSnippet to set.
1561        * @return This builder for chaining.
1562        */
setSearchTextSnippetBytes(com.google.protobuf.ByteString value)1563       public Builder setSearchTextSnippetBytes(com.google.protobuf.ByteString value) {
1564         if (value == null) {
1565           throw new NullPointerException();
1566         }
1567         checkByteStringIsUtf8(value);
1568         searchTextSnippet_ = value;
1569         bitField0_ |= 0x00000008;
1570         onChanged();
1571         return this;
1572       }
1573 
1574       private com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commuteInfo_;
1575       private com.google.protobuf.SingleFieldBuilderV3<
1576               com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo,
1577               com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.Builder,
1578               com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfoOrBuilder>
1579           commuteInfoBuilder_;
1580       /**
1581        *
1582        *
1583        * <pre>
1584        * Commute information which is generated based on specified
1585        *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
1586        * </pre>
1587        *
1588        * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
1589        *
1590        * @return Whether the commuteInfo field is set.
1591        */
hasCommuteInfo()1592       public boolean hasCommuteInfo() {
1593         return ((bitField0_ & 0x00000010) != 0);
1594       }
1595       /**
1596        *
1597        *
1598        * <pre>
1599        * Commute information which is generated based on specified
1600        *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
1601        * </pre>
1602        *
1603        * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
1604        *
1605        * @return The commuteInfo.
1606        */
getCommuteInfo()1607       public com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo getCommuteInfo() {
1608         if (commuteInfoBuilder_ == null) {
1609           return commuteInfo_ == null
1610               ? com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.getDefaultInstance()
1611               : commuteInfo_;
1612         } else {
1613           return commuteInfoBuilder_.getMessage();
1614         }
1615       }
1616       /**
1617        *
1618        *
1619        * <pre>
1620        * Commute information which is generated based on specified
1621        *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
1622        * </pre>
1623        *
1624        * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
1625        */
setCommuteInfo( com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo value)1626       public Builder setCommuteInfo(
1627           com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo value) {
1628         if (commuteInfoBuilder_ == null) {
1629           if (value == null) {
1630             throw new NullPointerException();
1631           }
1632           commuteInfo_ = value;
1633         } else {
1634           commuteInfoBuilder_.setMessage(value);
1635         }
1636         bitField0_ |= 0x00000010;
1637         onChanged();
1638         return this;
1639       }
1640       /**
1641        *
1642        *
1643        * <pre>
1644        * Commute information which is generated based on specified
1645        *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
1646        * </pre>
1647        *
1648        * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
1649        */
setCommuteInfo( com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.Builder builderForValue)1650       public Builder setCommuteInfo(
1651           com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.Builder builderForValue) {
1652         if (commuteInfoBuilder_ == null) {
1653           commuteInfo_ = builderForValue.build();
1654         } else {
1655           commuteInfoBuilder_.setMessage(builderForValue.build());
1656         }
1657         bitField0_ |= 0x00000010;
1658         onChanged();
1659         return this;
1660       }
1661       /**
1662        *
1663        *
1664        * <pre>
1665        * Commute information which is generated based on specified
1666        *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
1667        * </pre>
1668        *
1669        * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
1670        */
mergeCommuteInfo( com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo value)1671       public Builder mergeCommuteInfo(
1672           com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo value) {
1673         if (commuteInfoBuilder_ == null) {
1674           if (((bitField0_ & 0x00000010) != 0)
1675               && commuteInfo_ != null
1676               && commuteInfo_
1677                   != com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo
1678                       .getDefaultInstance()) {
1679             getCommuteInfoBuilder().mergeFrom(value);
1680           } else {
1681             commuteInfo_ = value;
1682           }
1683         } else {
1684           commuteInfoBuilder_.mergeFrom(value);
1685         }
1686         bitField0_ |= 0x00000010;
1687         onChanged();
1688         return this;
1689       }
1690       /**
1691        *
1692        *
1693        * <pre>
1694        * Commute information which is generated based on specified
1695        *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
1696        * </pre>
1697        *
1698        * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
1699        */
clearCommuteInfo()1700       public Builder clearCommuteInfo() {
1701         bitField0_ = (bitField0_ & ~0x00000010);
1702         commuteInfo_ = null;
1703         if (commuteInfoBuilder_ != null) {
1704           commuteInfoBuilder_.dispose();
1705           commuteInfoBuilder_ = null;
1706         }
1707         onChanged();
1708         return this;
1709       }
1710       /**
1711        *
1712        *
1713        * <pre>
1714        * Commute information which is generated based on specified
1715        *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
1716        * </pre>
1717        *
1718        * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
1719        */
1720       public com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.Builder
getCommuteInfoBuilder()1721           getCommuteInfoBuilder() {
1722         bitField0_ |= 0x00000010;
1723         onChanged();
1724         return getCommuteInfoFieldBuilder().getBuilder();
1725       }
1726       /**
1727        *
1728        *
1729        * <pre>
1730        * Commute information which is generated based on specified
1731        *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
1732        * </pre>
1733        *
1734        * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
1735        */
1736       public com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfoOrBuilder
getCommuteInfoOrBuilder()1737           getCommuteInfoOrBuilder() {
1738         if (commuteInfoBuilder_ != null) {
1739           return commuteInfoBuilder_.getMessageOrBuilder();
1740         } else {
1741           return commuteInfo_ == null
1742               ? com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.getDefaultInstance()
1743               : commuteInfo_;
1744         }
1745       }
1746       /**
1747        *
1748        *
1749        * <pre>
1750        * Commute information which is generated based on specified
1751        *  [CommuteFilter][google.cloud.talent.v4.CommuteFilter].
1752        * </pre>
1753        *
1754        * <code>.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo commute_info = 5;</code>
1755        */
1756       private com.google.protobuf.SingleFieldBuilderV3<
1757               com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo,
1758               com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.Builder,
1759               com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfoOrBuilder>
getCommuteInfoFieldBuilder()1760           getCommuteInfoFieldBuilder() {
1761         if (commuteInfoBuilder_ == null) {
1762           commuteInfoBuilder_ =
1763               new com.google.protobuf.SingleFieldBuilderV3<
1764                   com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo,
1765                   com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.Builder,
1766                   com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfoOrBuilder>(
1767                   getCommuteInfo(), getParentForChildren(), isClean());
1768           commuteInfo_ = null;
1769         }
1770         return commuteInfoBuilder_;
1771       }
1772 
1773       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1774       public final Builder setUnknownFields(
1775           final com.google.protobuf.UnknownFieldSet unknownFields) {
1776         return super.setUnknownFields(unknownFields);
1777       }
1778 
1779       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1780       public final Builder mergeUnknownFields(
1781           final com.google.protobuf.UnknownFieldSet unknownFields) {
1782         return super.mergeUnknownFields(unknownFields);
1783       }
1784 
1785       // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4.SearchJobsResponse.MatchingJob)
1786     }
1787 
1788     // @@protoc_insertion_point(class_scope:google.cloud.talent.v4.SearchJobsResponse.MatchingJob)
1789     private static final com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob DEFAULT_INSTANCE;
1790 
1791     static {
1792       DEFAULT_INSTANCE = new com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob();
1793     }
1794 
getDefaultInstance()1795     public static com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob getDefaultInstance() {
1796       return DEFAULT_INSTANCE;
1797     }
1798 
1799     private static final com.google.protobuf.Parser<MatchingJob> PARSER =
1800         new com.google.protobuf.AbstractParser<MatchingJob>() {
1801           @java.lang.Override
1802           public MatchingJob parsePartialFrom(
1803               com.google.protobuf.CodedInputStream input,
1804               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1805               throws com.google.protobuf.InvalidProtocolBufferException {
1806             Builder builder = newBuilder();
1807             try {
1808               builder.mergeFrom(input, extensionRegistry);
1809             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1810               throw e.setUnfinishedMessage(builder.buildPartial());
1811             } catch (com.google.protobuf.UninitializedMessageException e) {
1812               throw e.asInvalidProtocolBufferException()
1813                   .setUnfinishedMessage(builder.buildPartial());
1814             } catch (java.io.IOException e) {
1815               throw new com.google.protobuf.InvalidProtocolBufferException(e)
1816                   .setUnfinishedMessage(builder.buildPartial());
1817             }
1818             return builder.buildPartial();
1819           }
1820         };
1821 
parser()1822     public static com.google.protobuf.Parser<MatchingJob> parser() {
1823       return PARSER;
1824     }
1825 
1826     @java.lang.Override
getParserForType()1827     public com.google.protobuf.Parser<MatchingJob> getParserForType() {
1828       return PARSER;
1829     }
1830 
1831     @java.lang.Override
getDefaultInstanceForType()1832     public com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob getDefaultInstanceForType() {
1833       return DEFAULT_INSTANCE;
1834     }
1835   }
1836 
1837   public interface CommuteInfoOrBuilder
1838       extends
1839       // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4.SearchJobsResponse.CommuteInfo)
1840       com.google.protobuf.MessageOrBuilder {
1841 
1842     /**
1843      *
1844      *
1845      * <pre>
1846      * Location used as the destination in the commute calculation.
1847      * </pre>
1848      *
1849      * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
1850      *
1851      * @return Whether the jobLocation field is set.
1852      */
hasJobLocation()1853     boolean hasJobLocation();
1854     /**
1855      *
1856      *
1857      * <pre>
1858      * Location used as the destination in the commute calculation.
1859      * </pre>
1860      *
1861      * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
1862      *
1863      * @return The jobLocation.
1864      */
getJobLocation()1865     com.google.cloud.talent.v4.Location getJobLocation();
1866     /**
1867      *
1868      *
1869      * <pre>
1870      * Location used as the destination in the commute calculation.
1871      * </pre>
1872      *
1873      * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
1874      */
getJobLocationOrBuilder()1875     com.google.cloud.talent.v4.LocationOrBuilder getJobLocationOrBuilder();
1876 
1877     /**
1878      *
1879      *
1880      * <pre>
1881      * The number of seconds required to travel to the job location from the
1882      * query location. A duration of 0 seconds indicates that the job isn't
1883      * reachable within the requested duration, but was returned as part of an
1884      * expanded query.
1885      * </pre>
1886      *
1887      * <code>.google.protobuf.Duration travel_duration = 2;</code>
1888      *
1889      * @return Whether the travelDuration field is set.
1890      */
hasTravelDuration()1891     boolean hasTravelDuration();
1892     /**
1893      *
1894      *
1895      * <pre>
1896      * The number of seconds required to travel to the job location from the
1897      * query location. A duration of 0 seconds indicates that the job isn't
1898      * reachable within the requested duration, but was returned as part of an
1899      * expanded query.
1900      * </pre>
1901      *
1902      * <code>.google.protobuf.Duration travel_duration = 2;</code>
1903      *
1904      * @return The travelDuration.
1905      */
getTravelDuration()1906     com.google.protobuf.Duration getTravelDuration();
1907     /**
1908      *
1909      *
1910      * <pre>
1911      * The number of seconds required to travel to the job location from the
1912      * query location. A duration of 0 seconds indicates that the job isn't
1913      * reachable within the requested duration, but was returned as part of an
1914      * expanded query.
1915      * </pre>
1916      *
1917      * <code>.google.protobuf.Duration travel_duration = 2;</code>
1918      */
getTravelDurationOrBuilder()1919     com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder();
1920   }
1921   /**
1922    *
1923    *
1924    * <pre>
1925    * Commute details related to this job.
1926    * </pre>
1927    *
1928    * Protobuf type {@code google.cloud.talent.v4.SearchJobsResponse.CommuteInfo}
1929    */
1930   public static final class CommuteInfo extends com.google.protobuf.GeneratedMessageV3
1931       implements
1932       // @@protoc_insertion_point(message_implements:google.cloud.talent.v4.SearchJobsResponse.CommuteInfo)
1933       CommuteInfoOrBuilder {
1934     private static final long serialVersionUID = 0L;
1935     // Use CommuteInfo.newBuilder() to construct.
CommuteInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)1936     private CommuteInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
1937       super(builder);
1938     }
1939 
CommuteInfo()1940     private CommuteInfo() {}
1941 
1942     @java.lang.Override
1943     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)1944     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
1945       return new CommuteInfo();
1946     }
1947 
1948     @java.lang.Override
getUnknownFields()1949     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
1950       return this.unknownFields;
1951     }
1952 
getDescriptor()1953     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1954       return com.google.cloud.talent.v4.JobServiceProto
1955           .internal_static_google_cloud_talent_v4_SearchJobsResponse_CommuteInfo_descriptor;
1956     }
1957 
1958     @java.lang.Override
1959     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1960         internalGetFieldAccessorTable() {
1961       return com.google.cloud.talent.v4.JobServiceProto
1962           .internal_static_google_cloud_talent_v4_SearchJobsResponse_CommuteInfo_fieldAccessorTable
1963           .ensureFieldAccessorsInitialized(
1964               com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.class,
1965               com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.Builder.class);
1966     }
1967 
1968     public static final int JOB_LOCATION_FIELD_NUMBER = 1;
1969     private com.google.cloud.talent.v4.Location jobLocation_;
1970     /**
1971      *
1972      *
1973      * <pre>
1974      * Location used as the destination in the commute calculation.
1975      * </pre>
1976      *
1977      * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
1978      *
1979      * @return Whether the jobLocation field is set.
1980      */
1981     @java.lang.Override
hasJobLocation()1982     public boolean hasJobLocation() {
1983       return jobLocation_ != null;
1984     }
1985     /**
1986      *
1987      *
1988      * <pre>
1989      * Location used as the destination in the commute calculation.
1990      * </pre>
1991      *
1992      * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
1993      *
1994      * @return The jobLocation.
1995      */
1996     @java.lang.Override
getJobLocation()1997     public com.google.cloud.talent.v4.Location getJobLocation() {
1998       return jobLocation_ == null
1999           ? com.google.cloud.talent.v4.Location.getDefaultInstance()
2000           : jobLocation_;
2001     }
2002     /**
2003      *
2004      *
2005      * <pre>
2006      * Location used as the destination in the commute calculation.
2007      * </pre>
2008      *
2009      * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
2010      */
2011     @java.lang.Override
getJobLocationOrBuilder()2012     public com.google.cloud.talent.v4.LocationOrBuilder getJobLocationOrBuilder() {
2013       return jobLocation_ == null
2014           ? com.google.cloud.talent.v4.Location.getDefaultInstance()
2015           : jobLocation_;
2016     }
2017 
2018     public static final int TRAVEL_DURATION_FIELD_NUMBER = 2;
2019     private com.google.protobuf.Duration travelDuration_;
2020     /**
2021      *
2022      *
2023      * <pre>
2024      * The number of seconds required to travel to the job location from the
2025      * query location. A duration of 0 seconds indicates that the job isn't
2026      * reachable within the requested duration, but was returned as part of an
2027      * expanded query.
2028      * </pre>
2029      *
2030      * <code>.google.protobuf.Duration travel_duration = 2;</code>
2031      *
2032      * @return Whether the travelDuration field is set.
2033      */
2034     @java.lang.Override
hasTravelDuration()2035     public boolean hasTravelDuration() {
2036       return travelDuration_ != null;
2037     }
2038     /**
2039      *
2040      *
2041      * <pre>
2042      * The number of seconds required to travel to the job location from the
2043      * query location. A duration of 0 seconds indicates that the job isn't
2044      * reachable within the requested duration, but was returned as part of an
2045      * expanded query.
2046      * </pre>
2047      *
2048      * <code>.google.protobuf.Duration travel_duration = 2;</code>
2049      *
2050      * @return The travelDuration.
2051      */
2052     @java.lang.Override
getTravelDuration()2053     public com.google.protobuf.Duration getTravelDuration() {
2054       return travelDuration_ == null
2055           ? com.google.protobuf.Duration.getDefaultInstance()
2056           : travelDuration_;
2057     }
2058     /**
2059      *
2060      *
2061      * <pre>
2062      * The number of seconds required to travel to the job location from the
2063      * query location. A duration of 0 seconds indicates that the job isn't
2064      * reachable within the requested duration, but was returned as part of an
2065      * expanded query.
2066      * </pre>
2067      *
2068      * <code>.google.protobuf.Duration travel_duration = 2;</code>
2069      */
2070     @java.lang.Override
getTravelDurationOrBuilder()2071     public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() {
2072       return travelDuration_ == null
2073           ? com.google.protobuf.Duration.getDefaultInstance()
2074           : travelDuration_;
2075     }
2076 
2077     private byte memoizedIsInitialized = -1;
2078 
2079     @java.lang.Override
isInitialized()2080     public final boolean isInitialized() {
2081       byte isInitialized = memoizedIsInitialized;
2082       if (isInitialized == 1) return true;
2083       if (isInitialized == 0) return false;
2084 
2085       memoizedIsInitialized = 1;
2086       return true;
2087     }
2088 
2089     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)2090     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
2091       if (jobLocation_ != null) {
2092         output.writeMessage(1, getJobLocation());
2093       }
2094       if (travelDuration_ != null) {
2095         output.writeMessage(2, getTravelDuration());
2096       }
2097       getUnknownFields().writeTo(output);
2098     }
2099 
2100     @java.lang.Override
getSerializedSize()2101     public int getSerializedSize() {
2102       int size = memoizedSize;
2103       if (size != -1) return size;
2104 
2105       size = 0;
2106       if (jobLocation_ != null) {
2107         size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJobLocation());
2108       }
2109       if (travelDuration_ != null) {
2110         size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTravelDuration());
2111       }
2112       size += getUnknownFields().getSerializedSize();
2113       memoizedSize = size;
2114       return size;
2115     }
2116 
2117     @java.lang.Override
equals(final java.lang.Object obj)2118     public boolean equals(final java.lang.Object obj) {
2119       if (obj == this) {
2120         return true;
2121       }
2122       if (!(obj instanceof com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo)) {
2123         return super.equals(obj);
2124       }
2125       com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo other =
2126           (com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo) obj;
2127 
2128       if (hasJobLocation() != other.hasJobLocation()) return false;
2129       if (hasJobLocation()) {
2130         if (!getJobLocation().equals(other.getJobLocation())) return false;
2131       }
2132       if (hasTravelDuration() != other.hasTravelDuration()) return false;
2133       if (hasTravelDuration()) {
2134         if (!getTravelDuration().equals(other.getTravelDuration())) return false;
2135       }
2136       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
2137       return true;
2138     }
2139 
2140     @java.lang.Override
hashCode()2141     public int hashCode() {
2142       if (memoizedHashCode != 0) {
2143         return memoizedHashCode;
2144       }
2145       int hash = 41;
2146       hash = (19 * hash) + getDescriptor().hashCode();
2147       if (hasJobLocation()) {
2148         hash = (37 * hash) + JOB_LOCATION_FIELD_NUMBER;
2149         hash = (53 * hash) + getJobLocation().hashCode();
2150       }
2151       if (hasTravelDuration()) {
2152         hash = (37 * hash) + TRAVEL_DURATION_FIELD_NUMBER;
2153         hash = (53 * hash) + getTravelDuration().hashCode();
2154       }
2155       hash = (29 * hash) + getUnknownFields().hashCode();
2156       memoizedHashCode = hash;
2157       return hash;
2158     }
2159 
parseFrom( java.nio.ByteBuffer data)2160     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo parseFrom(
2161         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
2162       return PARSER.parseFrom(data);
2163     }
2164 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2165     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo parseFrom(
2166         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2167         throws com.google.protobuf.InvalidProtocolBufferException {
2168       return PARSER.parseFrom(data, extensionRegistry);
2169     }
2170 
parseFrom( com.google.protobuf.ByteString data)2171     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo parseFrom(
2172         com.google.protobuf.ByteString data)
2173         throws com.google.protobuf.InvalidProtocolBufferException {
2174       return PARSER.parseFrom(data);
2175     }
2176 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2177     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo parseFrom(
2178         com.google.protobuf.ByteString data,
2179         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2180         throws com.google.protobuf.InvalidProtocolBufferException {
2181       return PARSER.parseFrom(data, extensionRegistry);
2182     }
2183 
parseFrom(byte[] data)2184     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo parseFrom(byte[] data)
2185         throws com.google.protobuf.InvalidProtocolBufferException {
2186       return PARSER.parseFrom(data);
2187     }
2188 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2189     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo parseFrom(
2190         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2191         throws com.google.protobuf.InvalidProtocolBufferException {
2192       return PARSER.parseFrom(data, extensionRegistry);
2193     }
2194 
parseFrom( java.io.InputStream input)2195     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo parseFrom(
2196         java.io.InputStream input) throws java.io.IOException {
2197       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2198     }
2199 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2200     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo parseFrom(
2201         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2202         throws java.io.IOException {
2203       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2204           PARSER, input, extensionRegistry);
2205     }
2206 
parseDelimitedFrom( java.io.InputStream input)2207     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo parseDelimitedFrom(
2208         java.io.InputStream input) throws java.io.IOException {
2209       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
2210     }
2211 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2212     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo parseDelimitedFrom(
2213         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2214         throws java.io.IOException {
2215       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
2216           PARSER, input, extensionRegistry);
2217     }
2218 
parseFrom( com.google.protobuf.CodedInputStream input)2219     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo parseFrom(
2220         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
2221       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2222     }
2223 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2224     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo parseFrom(
2225         com.google.protobuf.CodedInputStream input,
2226         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2227         throws java.io.IOException {
2228       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2229           PARSER, input, extensionRegistry);
2230     }
2231 
2232     @java.lang.Override
newBuilderForType()2233     public Builder newBuilderForType() {
2234       return newBuilder();
2235     }
2236 
newBuilder()2237     public static Builder newBuilder() {
2238       return DEFAULT_INSTANCE.toBuilder();
2239     }
2240 
newBuilder( com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo prototype)2241     public static Builder newBuilder(
2242         com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo prototype) {
2243       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2244     }
2245 
2246     @java.lang.Override
toBuilder()2247     public Builder toBuilder() {
2248       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
2249     }
2250 
2251     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2252     protected Builder newBuilderForType(
2253         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2254       Builder builder = new Builder(parent);
2255       return builder;
2256     }
2257     /**
2258      *
2259      *
2260      * <pre>
2261      * Commute details related to this job.
2262      * </pre>
2263      *
2264      * Protobuf type {@code google.cloud.talent.v4.SearchJobsResponse.CommuteInfo}
2265      */
2266     public static final class Builder
2267         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
2268         implements
2269         // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4.SearchJobsResponse.CommuteInfo)
2270         com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfoOrBuilder {
getDescriptor()2271       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2272         return com.google.cloud.talent.v4.JobServiceProto
2273             .internal_static_google_cloud_talent_v4_SearchJobsResponse_CommuteInfo_descriptor;
2274       }
2275 
2276       @java.lang.Override
2277       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2278           internalGetFieldAccessorTable() {
2279         return com.google.cloud.talent.v4.JobServiceProto
2280             .internal_static_google_cloud_talent_v4_SearchJobsResponse_CommuteInfo_fieldAccessorTable
2281             .ensureFieldAccessorsInitialized(
2282                 com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.class,
2283                 com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.Builder.class);
2284       }
2285 
2286       // Construct using com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.newBuilder()
Builder()2287       private Builder() {}
2288 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2289       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2290         super(parent);
2291       }
2292 
2293       @java.lang.Override
clear()2294       public Builder clear() {
2295         super.clear();
2296         bitField0_ = 0;
2297         jobLocation_ = null;
2298         if (jobLocationBuilder_ != null) {
2299           jobLocationBuilder_.dispose();
2300           jobLocationBuilder_ = null;
2301         }
2302         travelDuration_ = null;
2303         if (travelDurationBuilder_ != null) {
2304           travelDurationBuilder_.dispose();
2305           travelDurationBuilder_ = null;
2306         }
2307         return this;
2308       }
2309 
2310       @java.lang.Override
getDescriptorForType()2311       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
2312         return com.google.cloud.talent.v4.JobServiceProto
2313             .internal_static_google_cloud_talent_v4_SearchJobsResponse_CommuteInfo_descriptor;
2314       }
2315 
2316       @java.lang.Override
getDefaultInstanceForType()2317       public com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo getDefaultInstanceForType() {
2318         return com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.getDefaultInstance();
2319       }
2320 
2321       @java.lang.Override
build()2322       public com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo build() {
2323         com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo result = buildPartial();
2324         if (!result.isInitialized()) {
2325           throw newUninitializedMessageException(result);
2326         }
2327         return result;
2328       }
2329 
2330       @java.lang.Override
buildPartial()2331       public com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo buildPartial() {
2332         com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo result =
2333             new com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo(this);
2334         if (bitField0_ != 0) {
2335           buildPartial0(result);
2336         }
2337         onBuilt();
2338         return result;
2339       }
2340 
buildPartial0(com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo result)2341       private void buildPartial0(com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo result) {
2342         int from_bitField0_ = bitField0_;
2343         if (((from_bitField0_ & 0x00000001) != 0)) {
2344           result.jobLocation_ =
2345               jobLocationBuilder_ == null ? jobLocation_ : jobLocationBuilder_.build();
2346         }
2347         if (((from_bitField0_ & 0x00000002) != 0)) {
2348           result.travelDuration_ =
2349               travelDurationBuilder_ == null ? travelDuration_ : travelDurationBuilder_.build();
2350         }
2351       }
2352 
2353       @java.lang.Override
clone()2354       public Builder clone() {
2355         return super.clone();
2356       }
2357 
2358       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2359       public Builder setField(
2360           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2361         return super.setField(field, value);
2362       }
2363 
2364       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2365       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
2366         return super.clearField(field);
2367       }
2368 
2369       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2370       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2371         return super.clearOneof(oneof);
2372       }
2373 
2374       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2375       public Builder setRepeatedField(
2376           com.google.protobuf.Descriptors.FieldDescriptor field,
2377           int index,
2378           java.lang.Object value) {
2379         return super.setRepeatedField(field, index, value);
2380       }
2381 
2382       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2383       public Builder addRepeatedField(
2384           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2385         return super.addRepeatedField(field, value);
2386       }
2387 
2388       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)2389       public Builder mergeFrom(com.google.protobuf.Message other) {
2390         if (other instanceof com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo) {
2391           return mergeFrom((com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo) other);
2392         } else {
2393           super.mergeFrom(other);
2394           return this;
2395         }
2396       }
2397 
mergeFrom(com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo other)2398       public Builder mergeFrom(com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo other) {
2399         if (other == com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.getDefaultInstance())
2400           return this;
2401         if (other.hasJobLocation()) {
2402           mergeJobLocation(other.getJobLocation());
2403         }
2404         if (other.hasTravelDuration()) {
2405           mergeTravelDuration(other.getTravelDuration());
2406         }
2407         this.mergeUnknownFields(other.getUnknownFields());
2408         onChanged();
2409         return this;
2410       }
2411 
2412       @java.lang.Override
isInitialized()2413       public final boolean isInitialized() {
2414         return true;
2415       }
2416 
2417       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2418       public Builder mergeFrom(
2419           com.google.protobuf.CodedInputStream input,
2420           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2421           throws java.io.IOException {
2422         if (extensionRegistry == null) {
2423           throw new java.lang.NullPointerException();
2424         }
2425         try {
2426           boolean done = false;
2427           while (!done) {
2428             int tag = input.readTag();
2429             switch (tag) {
2430               case 0:
2431                 done = true;
2432                 break;
2433               case 10:
2434                 {
2435                   input.readMessage(getJobLocationFieldBuilder().getBuilder(), extensionRegistry);
2436                   bitField0_ |= 0x00000001;
2437                   break;
2438                 } // case 10
2439               case 18:
2440                 {
2441                   input.readMessage(
2442                       getTravelDurationFieldBuilder().getBuilder(), extensionRegistry);
2443                   bitField0_ |= 0x00000002;
2444                   break;
2445                 } // case 18
2446               default:
2447                 {
2448                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2449                     done = true; // was an endgroup tag
2450                   }
2451                   break;
2452                 } // default:
2453             } // switch (tag)
2454           } // while (!done)
2455         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2456           throw e.unwrapIOException();
2457         } finally {
2458           onChanged();
2459         } // finally
2460         return this;
2461       }
2462 
2463       private int bitField0_;
2464 
2465       private com.google.cloud.talent.v4.Location jobLocation_;
2466       private com.google.protobuf.SingleFieldBuilderV3<
2467               com.google.cloud.talent.v4.Location,
2468               com.google.cloud.talent.v4.Location.Builder,
2469               com.google.cloud.talent.v4.LocationOrBuilder>
2470           jobLocationBuilder_;
2471       /**
2472        *
2473        *
2474        * <pre>
2475        * Location used as the destination in the commute calculation.
2476        * </pre>
2477        *
2478        * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
2479        *
2480        * @return Whether the jobLocation field is set.
2481        */
hasJobLocation()2482       public boolean hasJobLocation() {
2483         return ((bitField0_ & 0x00000001) != 0);
2484       }
2485       /**
2486        *
2487        *
2488        * <pre>
2489        * Location used as the destination in the commute calculation.
2490        * </pre>
2491        *
2492        * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
2493        *
2494        * @return The jobLocation.
2495        */
getJobLocation()2496       public com.google.cloud.talent.v4.Location getJobLocation() {
2497         if (jobLocationBuilder_ == null) {
2498           return jobLocation_ == null
2499               ? com.google.cloud.talent.v4.Location.getDefaultInstance()
2500               : jobLocation_;
2501         } else {
2502           return jobLocationBuilder_.getMessage();
2503         }
2504       }
2505       /**
2506        *
2507        *
2508        * <pre>
2509        * Location used as the destination in the commute calculation.
2510        * </pre>
2511        *
2512        * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
2513        */
setJobLocation(com.google.cloud.talent.v4.Location value)2514       public Builder setJobLocation(com.google.cloud.talent.v4.Location value) {
2515         if (jobLocationBuilder_ == null) {
2516           if (value == null) {
2517             throw new NullPointerException();
2518           }
2519           jobLocation_ = value;
2520         } else {
2521           jobLocationBuilder_.setMessage(value);
2522         }
2523         bitField0_ |= 0x00000001;
2524         onChanged();
2525         return this;
2526       }
2527       /**
2528        *
2529        *
2530        * <pre>
2531        * Location used as the destination in the commute calculation.
2532        * </pre>
2533        *
2534        * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
2535        */
setJobLocation(com.google.cloud.talent.v4.Location.Builder builderForValue)2536       public Builder setJobLocation(com.google.cloud.talent.v4.Location.Builder builderForValue) {
2537         if (jobLocationBuilder_ == null) {
2538           jobLocation_ = builderForValue.build();
2539         } else {
2540           jobLocationBuilder_.setMessage(builderForValue.build());
2541         }
2542         bitField0_ |= 0x00000001;
2543         onChanged();
2544         return this;
2545       }
2546       /**
2547        *
2548        *
2549        * <pre>
2550        * Location used as the destination in the commute calculation.
2551        * </pre>
2552        *
2553        * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
2554        */
mergeJobLocation(com.google.cloud.talent.v4.Location value)2555       public Builder mergeJobLocation(com.google.cloud.talent.v4.Location value) {
2556         if (jobLocationBuilder_ == null) {
2557           if (((bitField0_ & 0x00000001) != 0)
2558               && jobLocation_ != null
2559               && jobLocation_ != com.google.cloud.talent.v4.Location.getDefaultInstance()) {
2560             getJobLocationBuilder().mergeFrom(value);
2561           } else {
2562             jobLocation_ = value;
2563           }
2564         } else {
2565           jobLocationBuilder_.mergeFrom(value);
2566         }
2567         bitField0_ |= 0x00000001;
2568         onChanged();
2569         return this;
2570       }
2571       /**
2572        *
2573        *
2574        * <pre>
2575        * Location used as the destination in the commute calculation.
2576        * </pre>
2577        *
2578        * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
2579        */
clearJobLocation()2580       public Builder clearJobLocation() {
2581         bitField0_ = (bitField0_ & ~0x00000001);
2582         jobLocation_ = null;
2583         if (jobLocationBuilder_ != null) {
2584           jobLocationBuilder_.dispose();
2585           jobLocationBuilder_ = null;
2586         }
2587         onChanged();
2588         return this;
2589       }
2590       /**
2591        *
2592        *
2593        * <pre>
2594        * Location used as the destination in the commute calculation.
2595        * </pre>
2596        *
2597        * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
2598        */
getJobLocationBuilder()2599       public com.google.cloud.talent.v4.Location.Builder getJobLocationBuilder() {
2600         bitField0_ |= 0x00000001;
2601         onChanged();
2602         return getJobLocationFieldBuilder().getBuilder();
2603       }
2604       /**
2605        *
2606        *
2607        * <pre>
2608        * Location used as the destination in the commute calculation.
2609        * </pre>
2610        *
2611        * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
2612        */
getJobLocationOrBuilder()2613       public com.google.cloud.talent.v4.LocationOrBuilder getJobLocationOrBuilder() {
2614         if (jobLocationBuilder_ != null) {
2615           return jobLocationBuilder_.getMessageOrBuilder();
2616         } else {
2617           return jobLocation_ == null
2618               ? com.google.cloud.talent.v4.Location.getDefaultInstance()
2619               : jobLocation_;
2620         }
2621       }
2622       /**
2623        *
2624        *
2625        * <pre>
2626        * Location used as the destination in the commute calculation.
2627        * </pre>
2628        *
2629        * <code>.google.cloud.talent.v4.Location job_location = 1;</code>
2630        */
2631       private com.google.protobuf.SingleFieldBuilderV3<
2632               com.google.cloud.talent.v4.Location,
2633               com.google.cloud.talent.v4.Location.Builder,
2634               com.google.cloud.talent.v4.LocationOrBuilder>
getJobLocationFieldBuilder()2635           getJobLocationFieldBuilder() {
2636         if (jobLocationBuilder_ == null) {
2637           jobLocationBuilder_ =
2638               new com.google.protobuf.SingleFieldBuilderV3<
2639                   com.google.cloud.talent.v4.Location,
2640                   com.google.cloud.talent.v4.Location.Builder,
2641                   com.google.cloud.talent.v4.LocationOrBuilder>(
2642                   getJobLocation(), getParentForChildren(), isClean());
2643           jobLocation_ = null;
2644         }
2645         return jobLocationBuilder_;
2646       }
2647 
2648       private com.google.protobuf.Duration travelDuration_;
2649       private com.google.protobuf.SingleFieldBuilderV3<
2650               com.google.protobuf.Duration,
2651               com.google.protobuf.Duration.Builder,
2652               com.google.protobuf.DurationOrBuilder>
2653           travelDurationBuilder_;
2654       /**
2655        *
2656        *
2657        * <pre>
2658        * The number of seconds required to travel to the job location from the
2659        * query location. A duration of 0 seconds indicates that the job isn't
2660        * reachable within the requested duration, but was returned as part of an
2661        * expanded query.
2662        * </pre>
2663        *
2664        * <code>.google.protobuf.Duration travel_duration = 2;</code>
2665        *
2666        * @return Whether the travelDuration field is set.
2667        */
hasTravelDuration()2668       public boolean hasTravelDuration() {
2669         return ((bitField0_ & 0x00000002) != 0);
2670       }
2671       /**
2672        *
2673        *
2674        * <pre>
2675        * The number of seconds required to travel to the job location from the
2676        * query location. A duration of 0 seconds indicates that the job isn't
2677        * reachable within the requested duration, but was returned as part of an
2678        * expanded query.
2679        * </pre>
2680        *
2681        * <code>.google.protobuf.Duration travel_duration = 2;</code>
2682        *
2683        * @return The travelDuration.
2684        */
getTravelDuration()2685       public com.google.protobuf.Duration getTravelDuration() {
2686         if (travelDurationBuilder_ == null) {
2687           return travelDuration_ == null
2688               ? com.google.protobuf.Duration.getDefaultInstance()
2689               : travelDuration_;
2690         } else {
2691           return travelDurationBuilder_.getMessage();
2692         }
2693       }
2694       /**
2695        *
2696        *
2697        * <pre>
2698        * The number of seconds required to travel to the job location from the
2699        * query location. A duration of 0 seconds indicates that the job isn't
2700        * reachable within the requested duration, but was returned as part of an
2701        * expanded query.
2702        * </pre>
2703        *
2704        * <code>.google.protobuf.Duration travel_duration = 2;</code>
2705        */
setTravelDuration(com.google.protobuf.Duration value)2706       public Builder setTravelDuration(com.google.protobuf.Duration value) {
2707         if (travelDurationBuilder_ == null) {
2708           if (value == null) {
2709             throw new NullPointerException();
2710           }
2711           travelDuration_ = value;
2712         } else {
2713           travelDurationBuilder_.setMessage(value);
2714         }
2715         bitField0_ |= 0x00000002;
2716         onChanged();
2717         return this;
2718       }
2719       /**
2720        *
2721        *
2722        * <pre>
2723        * The number of seconds required to travel to the job location from the
2724        * query location. A duration of 0 seconds indicates that the job isn't
2725        * reachable within the requested duration, but was returned as part of an
2726        * expanded query.
2727        * </pre>
2728        *
2729        * <code>.google.protobuf.Duration travel_duration = 2;</code>
2730        */
setTravelDuration(com.google.protobuf.Duration.Builder builderForValue)2731       public Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue) {
2732         if (travelDurationBuilder_ == null) {
2733           travelDuration_ = builderForValue.build();
2734         } else {
2735           travelDurationBuilder_.setMessage(builderForValue.build());
2736         }
2737         bitField0_ |= 0x00000002;
2738         onChanged();
2739         return this;
2740       }
2741       /**
2742        *
2743        *
2744        * <pre>
2745        * The number of seconds required to travel to the job location from the
2746        * query location. A duration of 0 seconds indicates that the job isn't
2747        * reachable within the requested duration, but was returned as part of an
2748        * expanded query.
2749        * </pre>
2750        *
2751        * <code>.google.protobuf.Duration travel_duration = 2;</code>
2752        */
mergeTravelDuration(com.google.protobuf.Duration value)2753       public Builder mergeTravelDuration(com.google.protobuf.Duration value) {
2754         if (travelDurationBuilder_ == null) {
2755           if (((bitField0_ & 0x00000002) != 0)
2756               && travelDuration_ != null
2757               && travelDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
2758             getTravelDurationBuilder().mergeFrom(value);
2759           } else {
2760             travelDuration_ = value;
2761           }
2762         } else {
2763           travelDurationBuilder_.mergeFrom(value);
2764         }
2765         bitField0_ |= 0x00000002;
2766         onChanged();
2767         return this;
2768       }
2769       /**
2770        *
2771        *
2772        * <pre>
2773        * The number of seconds required to travel to the job location from the
2774        * query location. A duration of 0 seconds indicates that the job isn't
2775        * reachable within the requested duration, but was returned as part of an
2776        * expanded query.
2777        * </pre>
2778        *
2779        * <code>.google.protobuf.Duration travel_duration = 2;</code>
2780        */
clearTravelDuration()2781       public Builder clearTravelDuration() {
2782         bitField0_ = (bitField0_ & ~0x00000002);
2783         travelDuration_ = null;
2784         if (travelDurationBuilder_ != null) {
2785           travelDurationBuilder_.dispose();
2786           travelDurationBuilder_ = null;
2787         }
2788         onChanged();
2789         return this;
2790       }
2791       /**
2792        *
2793        *
2794        * <pre>
2795        * The number of seconds required to travel to the job location from the
2796        * query location. A duration of 0 seconds indicates that the job isn't
2797        * reachable within the requested duration, but was returned as part of an
2798        * expanded query.
2799        * </pre>
2800        *
2801        * <code>.google.protobuf.Duration travel_duration = 2;</code>
2802        */
getTravelDurationBuilder()2803       public com.google.protobuf.Duration.Builder getTravelDurationBuilder() {
2804         bitField0_ |= 0x00000002;
2805         onChanged();
2806         return getTravelDurationFieldBuilder().getBuilder();
2807       }
2808       /**
2809        *
2810        *
2811        * <pre>
2812        * The number of seconds required to travel to the job location from the
2813        * query location. A duration of 0 seconds indicates that the job isn't
2814        * reachable within the requested duration, but was returned as part of an
2815        * expanded query.
2816        * </pre>
2817        *
2818        * <code>.google.protobuf.Duration travel_duration = 2;</code>
2819        */
getTravelDurationOrBuilder()2820       public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder() {
2821         if (travelDurationBuilder_ != null) {
2822           return travelDurationBuilder_.getMessageOrBuilder();
2823         } else {
2824           return travelDuration_ == null
2825               ? com.google.protobuf.Duration.getDefaultInstance()
2826               : travelDuration_;
2827         }
2828       }
2829       /**
2830        *
2831        *
2832        * <pre>
2833        * The number of seconds required to travel to the job location from the
2834        * query location. A duration of 0 seconds indicates that the job isn't
2835        * reachable within the requested duration, but was returned as part of an
2836        * expanded query.
2837        * </pre>
2838        *
2839        * <code>.google.protobuf.Duration travel_duration = 2;</code>
2840        */
2841       private com.google.protobuf.SingleFieldBuilderV3<
2842               com.google.protobuf.Duration,
2843               com.google.protobuf.Duration.Builder,
2844               com.google.protobuf.DurationOrBuilder>
getTravelDurationFieldBuilder()2845           getTravelDurationFieldBuilder() {
2846         if (travelDurationBuilder_ == null) {
2847           travelDurationBuilder_ =
2848               new com.google.protobuf.SingleFieldBuilderV3<
2849                   com.google.protobuf.Duration,
2850                   com.google.protobuf.Duration.Builder,
2851                   com.google.protobuf.DurationOrBuilder>(
2852                   getTravelDuration(), getParentForChildren(), isClean());
2853           travelDuration_ = null;
2854         }
2855         return travelDurationBuilder_;
2856       }
2857 
2858       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2859       public final Builder setUnknownFields(
2860           final com.google.protobuf.UnknownFieldSet unknownFields) {
2861         return super.setUnknownFields(unknownFields);
2862       }
2863 
2864       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2865       public final Builder mergeUnknownFields(
2866           final com.google.protobuf.UnknownFieldSet unknownFields) {
2867         return super.mergeUnknownFields(unknownFields);
2868       }
2869 
2870       // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4.SearchJobsResponse.CommuteInfo)
2871     }
2872 
2873     // @@protoc_insertion_point(class_scope:google.cloud.talent.v4.SearchJobsResponse.CommuteInfo)
2874     private static final com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo DEFAULT_INSTANCE;
2875 
2876     static {
2877       DEFAULT_INSTANCE = new com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo();
2878     }
2879 
getDefaultInstance()2880     public static com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo getDefaultInstance() {
2881       return DEFAULT_INSTANCE;
2882     }
2883 
2884     private static final com.google.protobuf.Parser<CommuteInfo> PARSER =
2885         new com.google.protobuf.AbstractParser<CommuteInfo>() {
2886           @java.lang.Override
2887           public CommuteInfo parsePartialFrom(
2888               com.google.protobuf.CodedInputStream input,
2889               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2890               throws com.google.protobuf.InvalidProtocolBufferException {
2891             Builder builder = newBuilder();
2892             try {
2893               builder.mergeFrom(input, extensionRegistry);
2894             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2895               throw e.setUnfinishedMessage(builder.buildPartial());
2896             } catch (com.google.protobuf.UninitializedMessageException e) {
2897               throw e.asInvalidProtocolBufferException()
2898                   .setUnfinishedMessage(builder.buildPartial());
2899             } catch (java.io.IOException e) {
2900               throw new com.google.protobuf.InvalidProtocolBufferException(e)
2901                   .setUnfinishedMessage(builder.buildPartial());
2902             }
2903             return builder.buildPartial();
2904           }
2905         };
2906 
parser()2907     public static com.google.protobuf.Parser<CommuteInfo> parser() {
2908       return PARSER;
2909     }
2910 
2911     @java.lang.Override
getParserForType()2912     public com.google.protobuf.Parser<CommuteInfo> getParserForType() {
2913       return PARSER;
2914     }
2915 
2916     @java.lang.Override
getDefaultInstanceForType()2917     public com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo getDefaultInstanceForType() {
2918       return DEFAULT_INSTANCE;
2919     }
2920   }
2921 
2922   public static final int MATCHING_JOBS_FIELD_NUMBER = 1;
2923 
2924   @SuppressWarnings("serial")
2925   private java.util.List<com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob> matchingJobs_;
2926   /**
2927    *
2928    *
2929    * <pre>
2930    * The Job entities that match the specified
2931    * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
2932    * </pre>
2933    *
2934    * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;</code>
2935    */
2936   @java.lang.Override
2937   public java.util.List<com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob>
getMatchingJobsList()2938       getMatchingJobsList() {
2939     return matchingJobs_;
2940   }
2941   /**
2942    *
2943    *
2944    * <pre>
2945    * The Job entities that match the specified
2946    * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
2947    * </pre>
2948    *
2949    * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;</code>
2950    */
2951   @java.lang.Override
2952   public java.util.List<
2953           ? extends com.google.cloud.talent.v4.SearchJobsResponse.MatchingJobOrBuilder>
getMatchingJobsOrBuilderList()2954       getMatchingJobsOrBuilderList() {
2955     return matchingJobs_;
2956   }
2957   /**
2958    *
2959    *
2960    * <pre>
2961    * The Job entities that match the specified
2962    * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
2963    * </pre>
2964    *
2965    * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;</code>
2966    */
2967   @java.lang.Override
getMatchingJobsCount()2968   public int getMatchingJobsCount() {
2969     return matchingJobs_.size();
2970   }
2971   /**
2972    *
2973    *
2974    * <pre>
2975    * The Job entities that match the specified
2976    * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
2977    * </pre>
2978    *
2979    * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;</code>
2980    */
2981   @java.lang.Override
getMatchingJobs(int index)2982   public com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob getMatchingJobs(int index) {
2983     return matchingJobs_.get(index);
2984   }
2985   /**
2986    *
2987    *
2988    * <pre>
2989    * The Job entities that match the specified
2990    * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
2991    * </pre>
2992    *
2993    * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;</code>
2994    */
2995   @java.lang.Override
2996   public com.google.cloud.talent.v4.SearchJobsResponse.MatchingJobOrBuilder
getMatchingJobsOrBuilder(int index)2997       getMatchingJobsOrBuilder(int index) {
2998     return matchingJobs_.get(index);
2999   }
3000 
3001   public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER = 2;
3002 
3003   @SuppressWarnings("serial")
3004   private java.util.List<com.google.cloud.talent.v4.HistogramQueryResult> histogramQueryResults_;
3005   /**
3006    *
3007    *
3008    * <pre>
3009    * The histogram results that match with specified
3010    * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
3011    * </pre>
3012    *
3013    * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;</code>
3014    */
3015   @java.lang.Override
3016   public java.util.List<com.google.cloud.talent.v4.HistogramQueryResult>
getHistogramQueryResultsList()3017       getHistogramQueryResultsList() {
3018     return histogramQueryResults_;
3019   }
3020   /**
3021    *
3022    *
3023    * <pre>
3024    * The histogram results that match with specified
3025    * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
3026    * </pre>
3027    *
3028    * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;</code>
3029    */
3030   @java.lang.Override
3031   public java.util.List<? extends com.google.cloud.talent.v4.HistogramQueryResultOrBuilder>
getHistogramQueryResultsOrBuilderList()3032       getHistogramQueryResultsOrBuilderList() {
3033     return histogramQueryResults_;
3034   }
3035   /**
3036    *
3037    *
3038    * <pre>
3039    * The histogram results that match with specified
3040    * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
3041    * </pre>
3042    *
3043    * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;</code>
3044    */
3045   @java.lang.Override
getHistogramQueryResultsCount()3046   public int getHistogramQueryResultsCount() {
3047     return histogramQueryResults_.size();
3048   }
3049   /**
3050    *
3051    *
3052    * <pre>
3053    * The histogram results that match with specified
3054    * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
3055    * </pre>
3056    *
3057    * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;</code>
3058    */
3059   @java.lang.Override
getHistogramQueryResults(int index)3060   public com.google.cloud.talent.v4.HistogramQueryResult getHistogramQueryResults(int index) {
3061     return histogramQueryResults_.get(index);
3062   }
3063   /**
3064    *
3065    *
3066    * <pre>
3067    * The histogram results that match with specified
3068    * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
3069    * </pre>
3070    *
3071    * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;</code>
3072    */
3073   @java.lang.Override
getHistogramQueryResultsOrBuilder( int index)3074   public com.google.cloud.talent.v4.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder(
3075       int index) {
3076     return histogramQueryResults_.get(index);
3077   }
3078 
3079   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3;
3080 
3081   @SuppressWarnings("serial")
3082   private volatile java.lang.Object nextPageToken_ = "";
3083   /**
3084    *
3085    *
3086    * <pre>
3087    * The token that specifies the starting position of the next page of results.
3088    * This field is empty if there are no more results.
3089    * </pre>
3090    *
3091    * <code>string next_page_token = 3;</code>
3092    *
3093    * @return The nextPageToken.
3094    */
3095   @java.lang.Override
getNextPageToken()3096   public java.lang.String getNextPageToken() {
3097     java.lang.Object ref = nextPageToken_;
3098     if (ref instanceof java.lang.String) {
3099       return (java.lang.String) ref;
3100     } else {
3101       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
3102       java.lang.String s = bs.toStringUtf8();
3103       nextPageToken_ = s;
3104       return s;
3105     }
3106   }
3107   /**
3108    *
3109    *
3110    * <pre>
3111    * The token that specifies the starting position of the next page of results.
3112    * This field is empty if there are no more results.
3113    * </pre>
3114    *
3115    * <code>string next_page_token = 3;</code>
3116    *
3117    * @return The bytes for nextPageToken.
3118    */
3119   @java.lang.Override
getNextPageTokenBytes()3120   public com.google.protobuf.ByteString getNextPageTokenBytes() {
3121     java.lang.Object ref = nextPageToken_;
3122     if (ref instanceof java.lang.String) {
3123       com.google.protobuf.ByteString b =
3124           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
3125       nextPageToken_ = b;
3126       return b;
3127     } else {
3128       return (com.google.protobuf.ByteString) ref;
3129     }
3130   }
3131 
3132   public static final int LOCATION_FILTERS_FIELD_NUMBER = 4;
3133 
3134   @SuppressWarnings("serial")
3135   private java.util.List<com.google.cloud.talent.v4.Location> locationFilters_;
3136   /**
3137    *
3138    *
3139    * <pre>
3140    * The location filters that the service applied to the specified query. If
3141    * any filters are lat-lng based, the
3142    * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
3143    * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
3144    * </pre>
3145    *
3146    * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
3147    */
3148   @java.lang.Override
getLocationFiltersList()3149   public java.util.List<com.google.cloud.talent.v4.Location> getLocationFiltersList() {
3150     return locationFilters_;
3151   }
3152   /**
3153    *
3154    *
3155    * <pre>
3156    * The location filters that the service applied to the specified query. If
3157    * any filters are lat-lng based, the
3158    * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
3159    * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
3160    * </pre>
3161    *
3162    * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
3163    */
3164   @java.lang.Override
3165   public java.util.List<? extends com.google.cloud.talent.v4.LocationOrBuilder>
getLocationFiltersOrBuilderList()3166       getLocationFiltersOrBuilderList() {
3167     return locationFilters_;
3168   }
3169   /**
3170    *
3171    *
3172    * <pre>
3173    * The location filters that the service applied to the specified query. If
3174    * any filters are lat-lng based, the
3175    * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
3176    * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
3177    * </pre>
3178    *
3179    * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
3180    */
3181   @java.lang.Override
getLocationFiltersCount()3182   public int getLocationFiltersCount() {
3183     return locationFilters_.size();
3184   }
3185   /**
3186    *
3187    *
3188    * <pre>
3189    * The location filters that the service applied to the specified query. If
3190    * any filters are lat-lng based, the
3191    * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
3192    * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
3193    * </pre>
3194    *
3195    * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
3196    */
3197   @java.lang.Override
getLocationFilters(int index)3198   public com.google.cloud.talent.v4.Location getLocationFilters(int index) {
3199     return locationFilters_.get(index);
3200   }
3201   /**
3202    *
3203    *
3204    * <pre>
3205    * The location filters that the service applied to the specified query. If
3206    * any filters are lat-lng based, the
3207    * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
3208    * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
3209    * </pre>
3210    *
3211    * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
3212    */
3213   @java.lang.Override
getLocationFiltersOrBuilder(int index)3214   public com.google.cloud.talent.v4.LocationOrBuilder getLocationFiltersOrBuilder(int index) {
3215     return locationFilters_.get(index);
3216   }
3217 
3218   public static final int TOTAL_SIZE_FIELD_NUMBER = 6;
3219   private int totalSize_ = 0;
3220   /**
3221    *
3222    *
3223    * <pre>
3224    * Number of jobs that match the specified query.
3225    * Note: This size is precise only if the total is less than 100,000.
3226    * </pre>
3227    *
3228    * <code>int32 total_size = 6;</code>
3229    *
3230    * @return The totalSize.
3231    */
3232   @java.lang.Override
getTotalSize()3233   public int getTotalSize() {
3234     return totalSize_;
3235   }
3236 
3237   public static final int METADATA_FIELD_NUMBER = 7;
3238   private com.google.cloud.talent.v4.ResponseMetadata metadata_;
3239   /**
3240    *
3241    *
3242    * <pre>
3243    * Additional information for the API invocation, such as the request
3244    * tracking id.
3245    * </pre>
3246    *
3247    * <code>.google.cloud.talent.v4.ResponseMetadata metadata = 7;</code>
3248    *
3249    * @return Whether the metadata field is set.
3250    */
3251   @java.lang.Override
hasMetadata()3252   public boolean hasMetadata() {
3253     return metadata_ != null;
3254   }
3255   /**
3256    *
3257    *
3258    * <pre>
3259    * Additional information for the API invocation, such as the request
3260    * tracking id.
3261    * </pre>
3262    *
3263    * <code>.google.cloud.talent.v4.ResponseMetadata metadata = 7;</code>
3264    *
3265    * @return The metadata.
3266    */
3267   @java.lang.Override
getMetadata()3268   public com.google.cloud.talent.v4.ResponseMetadata getMetadata() {
3269     return metadata_ == null
3270         ? com.google.cloud.talent.v4.ResponseMetadata.getDefaultInstance()
3271         : metadata_;
3272   }
3273   /**
3274    *
3275    *
3276    * <pre>
3277    * Additional information for the API invocation, such as the request
3278    * tracking id.
3279    * </pre>
3280    *
3281    * <code>.google.cloud.talent.v4.ResponseMetadata metadata = 7;</code>
3282    */
3283   @java.lang.Override
getMetadataOrBuilder()3284   public com.google.cloud.talent.v4.ResponseMetadataOrBuilder getMetadataOrBuilder() {
3285     return metadata_ == null
3286         ? com.google.cloud.talent.v4.ResponseMetadata.getDefaultInstance()
3287         : metadata_;
3288   }
3289 
3290   public static final int BROADENED_QUERY_JOBS_COUNT_FIELD_NUMBER = 8;
3291   private int broadenedQueryJobsCount_ = 0;
3292   /**
3293    *
3294    *
3295    * <pre>
3296    * If query broadening is enabled, we may append additional results from the
3297    * broadened query. This number indicates how many of the jobs returned in the
3298    * jobs field are from the broadened query. These results are always at the
3299    * end of the jobs list. In particular, a value of 0, or if the field isn't
3300    * set, all the jobs in the jobs list are from the original
3301    * (without broadening) query. If this field is non-zero, subsequent requests
3302    * with offset after this result set should contain all broadened results.
3303    * </pre>
3304    *
3305    * <code>int32 broadened_query_jobs_count = 8;</code>
3306    *
3307    * @return The broadenedQueryJobsCount.
3308    */
3309   @java.lang.Override
getBroadenedQueryJobsCount()3310   public int getBroadenedQueryJobsCount() {
3311     return broadenedQueryJobsCount_;
3312   }
3313 
3314   public static final int SPELL_CORRECTION_FIELD_NUMBER = 9;
3315   private com.google.cloud.talent.v4.SpellingCorrection spellCorrection_;
3316   /**
3317    *
3318    *
3319    * <pre>
3320    * The spell checking result, and correction.
3321    * </pre>
3322    *
3323    * <code>.google.cloud.talent.v4.SpellingCorrection spell_correction = 9;</code>
3324    *
3325    * @return Whether the spellCorrection field is set.
3326    */
3327   @java.lang.Override
hasSpellCorrection()3328   public boolean hasSpellCorrection() {
3329     return spellCorrection_ != null;
3330   }
3331   /**
3332    *
3333    *
3334    * <pre>
3335    * The spell checking result, and correction.
3336    * </pre>
3337    *
3338    * <code>.google.cloud.talent.v4.SpellingCorrection spell_correction = 9;</code>
3339    *
3340    * @return The spellCorrection.
3341    */
3342   @java.lang.Override
getSpellCorrection()3343   public com.google.cloud.talent.v4.SpellingCorrection getSpellCorrection() {
3344     return spellCorrection_ == null
3345         ? com.google.cloud.talent.v4.SpellingCorrection.getDefaultInstance()
3346         : spellCorrection_;
3347   }
3348   /**
3349    *
3350    *
3351    * <pre>
3352    * The spell checking result, and correction.
3353    * </pre>
3354    *
3355    * <code>.google.cloud.talent.v4.SpellingCorrection spell_correction = 9;</code>
3356    */
3357   @java.lang.Override
getSpellCorrectionOrBuilder()3358   public com.google.cloud.talent.v4.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder() {
3359     return spellCorrection_ == null
3360         ? com.google.cloud.talent.v4.SpellingCorrection.getDefaultInstance()
3361         : spellCorrection_;
3362   }
3363 
3364   private byte memoizedIsInitialized = -1;
3365 
3366   @java.lang.Override
isInitialized()3367   public final boolean isInitialized() {
3368     byte isInitialized = memoizedIsInitialized;
3369     if (isInitialized == 1) return true;
3370     if (isInitialized == 0) return false;
3371 
3372     memoizedIsInitialized = 1;
3373     return true;
3374   }
3375 
3376   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)3377   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
3378     for (int i = 0; i < matchingJobs_.size(); i++) {
3379       output.writeMessage(1, matchingJobs_.get(i));
3380     }
3381     for (int i = 0; i < histogramQueryResults_.size(); i++) {
3382       output.writeMessage(2, histogramQueryResults_.get(i));
3383     }
3384     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
3385       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_);
3386     }
3387     for (int i = 0; i < locationFilters_.size(); i++) {
3388       output.writeMessage(4, locationFilters_.get(i));
3389     }
3390     if (totalSize_ != 0) {
3391       output.writeInt32(6, totalSize_);
3392     }
3393     if (metadata_ != null) {
3394       output.writeMessage(7, getMetadata());
3395     }
3396     if (broadenedQueryJobsCount_ != 0) {
3397       output.writeInt32(8, broadenedQueryJobsCount_);
3398     }
3399     if (spellCorrection_ != null) {
3400       output.writeMessage(9, getSpellCorrection());
3401     }
3402     getUnknownFields().writeTo(output);
3403   }
3404 
3405   @java.lang.Override
getSerializedSize()3406   public int getSerializedSize() {
3407     int size = memoizedSize;
3408     if (size != -1) return size;
3409 
3410     size = 0;
3411     for (int i = 0; i < matchingJobs_.size(); i++) {
3412       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchingJobs_.get(i));
3413     }
3414     for (int i = 0; i < histogramQueryResults_.size(); i++) {
3415       size +=
3416           com.google.protobuf.CodedOutputStream.computeMessageSize(
3417               2, histogramQueryResults_.get(i));
3418     }
3419     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
3420       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_);
3421     }
3422     for (int i = 0; i < locationFilters_.size(); i++) {
3423       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, locationFilters_.get(i));
3424     }
3425     if (totalSize_ != 0) {
3426       size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, totalSize_);
3427     }
3428     if (metadata_ != null) {
3429       size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetadata());
3430     }
3431     if (broadenedQueryJobsCount_ != 0) {
3432       size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, broadenedQueryJobsCount_);
3433     }
3434     if (spellCorrection_ != null) {
3435       size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSpellCorrection());
3436     }
3437     size += getUnknownFields().getSerializedSize();
3438     memoizedSize = size;
3439     return size;
3440   }
3441 
3442   @java.lang.Override
equals(final java.lang.Object obj)3443   public boolean equals(final java.lang.Object obj) {
3444     if (obj == this) {
3445       return true;
3446     }
3447     if (!(obj instanceof com.google.cloud.talent.v4.SearchJobsResponse)) {
3448       return super.equals(obj);
3449     }
3450     com.google.cloud.talent.v4.SearchJobsResponse other =
3451         (com.google.cloud.talent.v4.SearchJobsResponse) obj;
3452 
3453     if (!getMatchingJobsList().equals(other.getMatchingJobsList())) return false;
3454     if (!getHistogramQueryResultsList().equals(other.getHistogramQueryResultsList())) return false;
3455     if (!getNextPageToken().equals(other.getNextPageToken())) return false;
3456     if (!getLocationFiltersList().equals(other.getLocationFiltersList())) return false;
3457     if (getTotalSize() != other.getTotalSize()) return false;
3458     if (hasMetadata() != other.hasMetadata()) return false;
3459     if (hasMetadata()) {
3460       if (!getMetadata().equals(other.getMetadata())) return false;
3461     }
3462     if (getBroadenedQueryJobsCount() != other.getBroadenedQueryJobsCount()) return false;
3463     if (hasSpellCorrection() != other.hasSpellCorrection()) return false;
3464     if (hasSpellCorrection()) {
3465       if (!getSpellCorrection().equals(other.getSpellCorrection())) return false;
3466     }
3467     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
3468     return true;
3469   }
3470 
3471   @java.lang.Override
hashCode()3472   public int hashCode() {
3473     if (memoizedHashCode != 0) {
3474       return memoizedHashCode;
3475     }
3476     int hash = 41;
3477     hash = (19 * hash) + getDescriptor().hashCode();
3478     if (getMatchingJobsCount() > 0) {
3479       hash = (37 * hash) + MATCHING_JOBS_FIELD_NUMBER;
3480       hash = (53 * hash) + getMatchingJobsList().hashCode();
3481     }
3482     if (getHistogramQueryResultsCount() > 0) {
3483       hash = (37 * hash) + HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER;
3484       hash = (53 * hash) + getHistogramQueryResultsList().hashCode();
3485     }
3486     hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
3487     hash = (53 * hash) + getNextPageToken().hashCode();
3488     if (getLocationFiltersCount() > 0) {
3489       hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER;
3490       hash = (53 * hash) + getLocationFiltersList().hashCode();
3491     }
3492     hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER;
3493     hash = (53 * hash) + getTotalSize();
3494     if (hasMetadata()) {
3495       hash = (37 * hash) + METADATA_FIELD_NUMBER;
3496       hash = (53 * hash) + getMetadata().hashCode();
3497     }
3498     hash = (37 * hash) + BROADENED_QUERY_JOBS_COUNT_FIELD_NUMBER;
3499     hash = (53 * hash) + getBroadenedQueryJobsCount();
3500     if (hasSpellCorrection()) {
3501       hash = (37 * hash) + SPELL_CORRECTION_FIELD_NUMBER;
3502       hash = (53 * hash) + getSpellCorrection().hashCode();
3503     }
3504     hash = (29 * hash) + getUnknownFields().hashCode();
3505     memoizedHashCode = hash;
3506     return hash;
3507   }
3508 
parseFrom(java.nio.ByteBuffer data)3509   public static com.google.cloud.talent.v4.SearchJobsResponse parseFrom(java.nio.ByteBuffer data)
3510       throws com.google.protobuf.InvalidProtocolBufferException {
3511     return PARSER.parseFrom(data);
3512   }
3513 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3514   public static com.google.cloud.talent.v4.SearchJobsResponse parseFrom(
3515       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3516       throws com.google.protobuf.InvalidProtocolBufferException {
3517     return PARSER.parseFrom(data, extensionRegistry);
3518   }
3519 
parseFrom( com.google.protobuf.ByteString data)3520   public static com.google.cloud.talent.v4.SearchJobsResponse parseFrom(
3521       com.google.protobuf.ByteString data)
3522       throws com.google.protobuf.InvalidProtocolBufferException {
3523     return PARSER.parseFrom(data);
3524   }
3525 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3526   public static com.google.cloud.talent.v4.SearchJobsResponse parseFrom(
3527       com.google.protobuf.ByteString data,
3528       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3529       throws com.google.protobuf.InvalidProtocolBufferException {
3530     return PARSER.parseFrom(data, extensionRegistry);
3531   }
3532 
parseFrom(byte[] data)3533   public static com.google.cloud.talent.v4.SearchJobsResponse parseFrom(byte[] data)
3534       throws com.google.protobuf.InvalidProtocolBufferException {
3535     return PARSER.parseFrom(data);
3536   }
3537 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3538   public static com.google.cloud.talent.v4.SearchJobsResponse parseFrom(
3539       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3540       throws com.google.protobuf.InvalidProtocolBufferException {
3541     return PARSER.parseFrom(data, extensionRegistry);
3542   }
3543 
parseFrom(java.io.InputStream input)3544   public static com.google.cloud.talent.v4.SearchJobsResponse parseFrom(java.io.InputStream input)
3545       throws java.io.IOException {
3546     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3547   }
3548 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3549   public static com.google.cloud.talent.v4.SearchJobsResponse parseFrom(
3550       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3551       throws java.io.IOException {
3552     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
3553         PARSER, input, extensionRegistry);
3554   }
3555 
parseDelimitedFrom( java.io.InputStream input)3556   public static com.google.cloud.talent.v4.SearchJobsResponse parseDelimitedFrom(
3557       java.io.InputStream input) throws java.io.IOException {
3558     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
3559   }
3560 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3561   public static com.google.cloud.talent.v4.SearchJobsResponse parseDelimitedFrom(
3562       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3563       throws java.io.IOException {
3564     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
3565         PARSER, input, extensionRegistry);
3566   }
3567 
parseFrom( com.google.protobuf.CodedInputStream input)3568   public static com.google.cloud.talent.v4.SearchJobsResponse parseFrom(
3569       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
3570     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3571   }
3572 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3573   public static com.google.cloud.talent.v4.SearchJobsResponse parseFrom(
3574       com.google.protobuf.CodedInputStream input,
3575       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3576       throws java.io.IOException {
3577     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
3578         PARSER, input, extensionRegistry);
3579   }
3580 
3581   @java.lang.Override
newBuilderForType()3582   public Builder newBuilderForType() {
3583     return newBuilder();
3584   }
3585 
newBuilder()3586   public static Builder newBuilder() {
3587     return DEFAULT_INSTANCE.toBuilder();
3588   }
3589 
newBuilder(com.google.cloud.talent.v4.SearchJobsResponse prototype)3590   public static Builder newBuilder(com.google.cloud.talent.v4.SearchJobsResponse prototype) {
3591     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
3592   }
3593 
3594   @java.lang.Override
toBuilder()3595   public Builder toBuilder() {
3596     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
3597   }
3598 
3599   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3600   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3601     Builder builder = new Builder(parent);
3602     return builder;
3603   }
3604   /**
3605    *
3606    *
3607    * <pre>
3608    * Response for SearchJob method.
3609    * </pre>
3610    *
3611    * Protobuf type {@code google.cloud.talent.v4.SearchJobsResponse}
3612    */
3613   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
3614       implements
3615       // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4.SearchJobsResponse)
3616       com.google.cloud.talent.v4.SearchJobsResponseOrBuilder {
getDescriptor()3617     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
3618       return com.google.cloud.talent.v4.JobServiceProto
3619           .internal_static_google_cloud_talent_v4_SearchJobsResponse_descriptor;
3620     }
3621 
3622     @java.lang.Override
3623     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()3624         internalGetFieldAccessorTable() {
3625       return com.google.cloud.talent.v4.JobServiceProto
3626           .internal_static_google_cloud_talent_v4_SearchJobsResponse_fieldAccessorTable
3627           .ensureFieldAccessorsInitialized(
3628               com.google.cloud.talent.v4.SearchJobsResponse.class,
3629               com.google.cloud.talent.v4.SearchJobsResponse.Builder.class);
3630     }
3631 
3632     // Construct using com.google.cloud.talent.v4.SearchJobsResponse.newBuilder()
Builder()3633     private Builder() {}
3634 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3635     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3636       super(parent);
3637     }
3638 
3639     @java.lang.Override
clear()3640     public Builder clear() {
3641       super.clear();
3642       bitField0_ = 0;
3643       if (matchingJobsBuilder_ == null) {
3644         matchingJobs_ = java.util.Collections.emptyList();
3645       } else {
3646         matchingJobs_ = null;
3647         matchingJobsBuilder_.clear();
3648       }
3649       bitField0_ = (bitField0_ & ~0x00000001);
3650       if (histogramQueryResultsBuilder_ == null) {
3651         histogramQueryResults_ = java.util.Collections.emptyList();
3652       } else {
3653         histogramQueryResults_ = null;
3654         histogramQueryResultsBuilder_.clear();
3655       }
3656       bitField0_ = (bitField0_ & ~0x00000002);
3657       nextPageToken_ = "";
3658       if (locationFiltersBuilder_ == null) {
3659         locationFilters_ = java.util.Collections.emptyList();
3660       } else {
3661         locationFilters_ = null;
3662         locationFiltersBuilder_.clear();
3663       }
3664       bitField0_ = (bitField0_ & ~0x00000008);
3665       totalSize_ = 0;
3666       metadata_ = null;
3667       if (metadataBuilder_ != null) {
3668         metadataBuilder_.dispose();
3669         metadataBuilder_ = null;
3670       }
3671       broadenedQueryJobsCount_ = 0;
3672       spellCorrection_ = null;
3673       if (spellCorrectionBuilder_ != null) {
3674         spellCorrectionBuilder_.dispose();
3675         spellCorrectionBuilder_ = null;
3676       }
3677       return this;
3678     }
3679 
3680     @java.lang.Override
getDescriptorForType()3681     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
3682       return com.google.cloud.talent.v4.JobServiceProto
3683           .internal_static_google_cloud_talent_v4_SearchJobsResponse_descriptor;
3684     }
3685 
3686     @java.lang.Override
getDefaultInstanceForType()3687     public com.google.cloud.talent.v4.SearchJobsResponse getDefaultInstanceForType() {
3688       return com.google.cloud.talent.v4.SearchJobsResponse.getDefaultInstance();
3689     }
3690 
3691     @java.lang.Override
build()3692     public com.google.cloud.talent.v4.SearchJobsResponse build() {
3693       com.google.cloud.talent.v4.SearchJobsResponse result = buildPartial();
3694       if (!result.isInitialized()) {
3695         throw newUninitializedMessageException(result);
3696       }
3697       return result;
3698     }
3699 
3700     @java.lang.Override
buildPartial()3701     public com.google.cloud.talent.v4.SearchJobsResponse buildPartial() {
3702       com.google.cloud.talent.v4.SearchJobsResponse result =
3703           new com.google.cloud.talent.v4.SearchJobsResponse(this);
3704       buildPartialRepeatedFields(result);
3705       if (bitField0_ != 0) {
3706         buildPartial0(result);
3707       }
3708       onBuilt();
3709       return result;
3710     }
3711 
buildPartialRepeatedFields(com.google.cloud.talent.v4.SearchJobsResponse result)3712     private void buildPartialRepeatedFields(com.google.cloud.talent.v4.SearchJobsResponse result) {
3713       if (matchingJobsBuilder_ == null) {
3714         if (((bitField0_ & 0x00000001) != 0)) {
3715           matchingJobs_ = java.util.Collections.unmodifiableList(matchingJobs_);
3716           bitField0_ = (bitField0_ & ~0x00000001);
3717         }
3718         result.matchingJobs_ = matchingJobs_;
3719       } else {
3720         result.matchingJobs_ = matchingJobsBuilder_.build();
3721       }
3722       if (histogramQueryResultsBuilder_ == null) {
3723         if (((bitField0_ & 0x00000002) != 0)) {
3724           histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_);
3725           bitField0_ = (bitField0_ & ~0x00000002);
3726         }
3727         result.histogramQueryResults_ = histogramQueryResults_;
3728       } else {
3729         result.histogramQueryResults_ = histogramQueryResultsBuilder_.build();
3730       }
3731       if (locationFiltersBuilder_ == null) {
3732         if (((bitField0_ & 0x00000008) != 0)) {
3733           locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_);
3734           bitField0_ = (bitField0_ & ~0x00000008);
3735         }
3736         result.locationFilters_ = locationFilters_;
3737       } else {
3738         result.locationFilters_ = locationFiltersBuilder_.build();
3739       }
3740     }
3741 
buildPartial0(com.google.cloud.talent.v4.SearchJobsResponse result)3742     private void buildPartial0(com.google.cloud.talent.v4.SearchJobsResponse result) {
3743       int from_bitField0_ = bitField0_;
3744       if (((from_bitField0_ & 0x00000004) != 0)) {
3745         result.nextPageToken_ = nextPageToken_;
3746       }
3747       if (((from_bitField0_ & 0x00000010) != 0)) {
3748         result.totalSize_ = totalSize_;
3749       }
3750       if (((from_bitField0_ & 0x00000020) != 0)) {
3751         result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
3752       }
3753       if (((from_bitField0_ & 0x00000040) != 0)) {
3754         result.broadenedQueryJobsCount_ = broadenedQueryJobsCount_;
3755       }
3756       if (((from_bitField0_ & 0x00000080) != 0)) {
3757         result.spellCorrection_ =
3758             spellCorrectionBuilder_ == null ? spellCorrection_ : spellCorrectionBuilder_.build();
3759       }
3760     }
3761 
3762     @java.lang.Override
clone()3763     public Builder clone() {
3764       return super.clone();
3765     }
3766 
3767     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3768     public Builder setField(
3769         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
3770       return super.setField(field, value);
3771     }
3772 
3773     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)3774     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
3775       return super.clearField(field);
3776     }
3777 
3778     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)3779     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
3780       return super.clearOneof(oneof);
3781     }
3782 
3783     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)3784     public Builder setRepeatedField(
3785         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
3786       return super.setRepeatedField(field, index, value);
3787     }
3788 
3789     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3790     public Builder addRepeatedField(
3791         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
3792       return super.addRepeatedField(field, value);
3793     }
3794 
3795     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)3796     public Builder mergeFrom(com.google.protobuf.Message other) {
3797       if (other instanceof com.google.cloud.talent.v4.SearchJobsResponse) {
3798         return mergeFrom((com.google.cloud.talent.v4.SearchJobsResponse) other);
3799       } else {
3800         super.mergeFrom(other);
3801         return this;
3802       }
3803     }
3804 
mergeFrom(com.google.cloud.talent.v4.SearchJobsResponse other)3805     public Builder mergeFrom(com.google.cloud.talent.v4.SearchJobsResponse other) {
3806       if (other == com.google.cloud.talent.v4.SearchJobsResponse.getDefaultInstance()) return this;
3807       if (matchingJobsBuilder_ == null) {
3808         if (!other.matchingJobs_.isEmpty()) {
3809           if (matchingJobs_.isEmpty()) {
3810             matchingJobs_ = other.matchingJobs_;
3811             bitField0_ = (bitField0_ & ~0x00000001);
3812           } else {
3813             ensureMatchingJobsIsMutable();
3814             matchingJobs_.addAll(other.matchingJobs_);
3815           }
3816           onChanged();
3817         }
3818       } else {
3819         if (!other.matchingJobs_.isEmpty()) {
3820           if (matchingJobsBuilder_.isEmpty()) {
3821             matchingJobsBuilder_.dispose();
3822             matchingJobsBuilder_ = null;
3823             matchingJobs_ = other.matchingJobs_;
3824             bitField0_ = (bitField0_ & ~0x00000001);
3825             matchingJobsBuilder_ =
3826                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
3827                     ? getMatchingJobsFieldBuilder()
3828                     : null;
3829           } else {
3830             matchingJobsBuilder_.addAllMessages(other.matchingJobs_);
3831           }
3832         }
3833       }
3834       if (histogramQueryResultsBuilder_ == null) {
3835         if (!other.histogramQueryResults_.isEmpty()) {
3836           if (histogramQueryResults_.isEmpty()) {
3837             histogramQueryResults_ = other.histogramQueryResults_;
3838             bitField0_ = (bitField0_ & ~0x00000002);
3839           } else {
3840             ensureHistogramQueryResultsIsMutable();
3841             histogramQueryResults_.addAll(other.histogramQueryResults_);
3842           }
3843           onChanged();
3844         }
3845       } else {
3846         if (!other.histogramQueryResults_.isEmpty()) {
3847           if (histogramQueryResultsBuilder_.isEmpty()) {
3848             histogramQueryResultsBuilder_.dispose();
3849             histogramQueryResultsBuilder_ = null;
3850             histogramQueryResults_ = other.histogramQueryResults_;
3851             bitField0_ = (bitField0_ & ~0x00000002);
3852             histogramQueryResultsBuilder_ =
3853                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
3854                     ? getHistogramQueryResultsFieldBuilder()
3855                     : null;
3856           } else {
3857             histogramQueryResultsBuilder_.addAllMessages(other.histogramQueryResults_);
3858           }
3859         }
3860       }
3861       if (!other.getNextPageToken().isEmpty()) {
3862         nextPageToken_ = other.nextPageToken_;
3863         bitField0_ |= 0x00000004;
3864         onChanged();
3865       }
3866       if (locationFiltersBuilder_ == null) {
3867         if (!other.locationFilters_.isEmpty()) {
3868           if (locationFilters_.isEmpty()) {
3869             locationFilters_ = other.locationFilters_;
3870             bitField0_ = (bitField0_ & ~0x00000008);
3871           } else {
3872             ensureLocationFiltersIsMutable();
3873             locationFilters_.addAll(other.locationFilters_);
3874           }
3875           onChanged();
3876         }
3877       } else {
3878         if (!other.locationFilters_.isEmpty()) {
3879           if (locationFiltersBuilder_.isEmpty()) {
3880             locationFiltersBuilder_.dispose();
3881             locationFiltersBuilder_ = null;
3882             locationFilters_ = other.locationFilters_;
3883             bitField0_ = (bitField0_ & ~0x00000008);
3884             locationFiltersBuilder_ =
3885                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
3886                     ? getLocationFiltersFieldBuilder()
3887                     : null;
3888           } else {
3889             locationFiltersBuilder_.addAllMessages(other.locationFilters_);
3890           }
3891         }
3892       }
3893       if (other.getTotalSize() != 0) {
3894         setTotalSize(other.getTotalSize());
3895       }
3896       if (other.hasMetadata()) {
3897         mergeMetadata(other.getMetadata());
3898       }
3899       if (other.getBroadenedQueryJobsCount() != 0) {
3900         setBroadenedQueryJobsCount(other.getBroadenedQueryJobsCount());
3901       }
3902       if (other.hasSpellCorrection()) {
3903         mergeSpellCorrection(other.getSpellCorrection());
3904       }
3905       this.mergeUnknownFields(other.getUnknownFields());
3906       onChanged();
3907       return this;
3908     }
3909 
3910     @java.lang.Override
isInitialized()3911     public final boolean isInitialized() {
3912       return true;
3913     }
3914 
3915     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3916     public Builder mergeFrom(
3917         com.google.protobuf.CodedInputStream input,
3918         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3919         throws java.io.IOException {
3920       if (extensionRegistry == null) {
3921         throw new java.lang.NullPointerException();
3922       }
3923       try {
3924         boolean done = false;
3925         while (!done) {
3926           int tag = input.readTag();
3927           switch (tag) {
3928             case 0:
3929               done = true;
3930               break;
3931             case 10:
3932               {
3933                 com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob m =
3934                     input.readMessage(
3935                         com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.parser(),
3936                         extensionRegistry);
3937                 if (matchingJobsBuilder_ == null) {
3938                   ensureMatchingJobsIsMutable();
3939                   matchingJobs_.add(m);
3940                 } else {
3941                   matchingJobsBuilder_.addMessage(m);
3942                 }
3943                 break;
3944               } // case 10
3945             case 18:
3946               {
3947                 com.google.cloud.talent.v4.HistogramQueryResult m =
3948                     input.readMessage(
3949                         com.google.cloud.talent.v4.HistogramQueryResult.parser(),
3950                         extensionRegistry);
3951                 if (histogramQueryResultsBuilder_ == null) {
3952                   ensureHistogramQueryResultsIsMutable();
3953                   histogramQueryResults_.add(m);
3954                 } else {
3955                   histogramQueryResultsBuilder_.addMessage(m);
3956                 }
3957                 break;
3958               } // case 18
3959             case 26:
3960               {
3961                 nextPageToken_ = input.readStringRequireUtf8();
3962                 bitField0_ |= 0x00000004;
3963                 break;
3964               } // case 26
3965             case 34:
3966               {
3967                 com.google.cloud.talent.v4.Location m =
3968                     input.readMessage(
3969                         com.google.cloud.talent.v4.Location.parser(), extensionRegistry);
3970                 if (locationFiltersBuilder_ == null) {
3971                   ensureLocationFiltersIsMutable();
3972                   locationFilters_.add(m);
3973                 } else {
3974                   locationFiltersBuilder_.addMessage(m);
3975                 }
3976                 break;
3977               } // case 34
3978             case 48:
3979               {
3980                 totalSize_ = input.readInt32();
3981                 bitField0_ |= 0x00000010;
3982                 break;
3983               } // case 48
3984             case 58:
3985               {
3986                 input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
3987                 bitField0_ |= 0x00000020;
3988                 break;
3989               } // case 58
3990             case 64:
3991               {
3992                 broadenedQueryJobsCount_ = input.readInt32();
3993                 bitField0_ |= 0x00000040;
3994                 break;
3995               } // case 64
3996             case 74:
3997               {
3998                 input.readMessage(getSpellCorrectionFieldBuilder().getBuilder(), extensionRegistry);
3999                 bitField0_ |= 0x00000080;
4000                 break;
4001               } // case 74
4002             default:
4003               {
4004                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
4005                   done = true; // was an endgroup tag
4006                 }
4007                 break;
4008               } // default:
4009           } // switch (tag)
4010         } // while (!done)
4011       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4012         throw e.unwrapIOException();
4013       } finally {
4014         onChanged();
4015       } // finally
4016       return this;
4017     }
4018 
4019     private int bitField0_;
4020 
4021     private java.util.List<com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob>
4022         matchingJobs_ = java.util.Collections.emptyList();
4023 
ensureMatchingJobsIsMutable()4024     private void ensureMatchingJobsIsMutable() {
4025       if (!((bitField0_ & 0x00000001) != 0)) {
4026         matchingJobs_ =
4027             new java.util.ArrayList<com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob>(
4028                 matchingJobs_);
4029         bitField0_ |= 0x00000001;
4030       }
4031     }
4032 
4033     private com.google.protobuf.RepeatedFieldBuilderV3<
4034             com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob,
4035             com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder,
4036             com.google.cloud.talent.v4.SearchJobsResponse.MatchingJobOrBuilder>
4037         matchingJobsBuilder_;
4038 
4039     /**
4040      *
4041      *
4042      * <pre>
4043      * The Job entities that match the specified
4044      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4045      * </pre>
4046      *
4047      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4048      * </code>
4049      */
4050     public java.util.List<com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob>
getMatchingJobsList()4051         getMatchingJobsList() {
4052       if (matchingJobsBuilder_ == null) {
4053         return java.util.Collections.unmodifiableList(matchingJobs_);
4054       } else {
4055         return matchingJobsBuilder_.getMessageList();
4056       }
4057     }
4058     /**
4059      *
4060      *
4061      * <pre>
4062      * The Job entities that match the specified
4063      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4064      * </pre>
4065      *
4066      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4067      * </code>
4068      */
getMatchingJobsCount()4069     public int getMatchingJobsCount() {
4070       if (matchingJobsBuilder_ == null) {
4071         return matchingJobs_.size();
4072       } else {
4073         return matchingJobsBuilder_.getCount();
4074       }
4075     }
4076     /**
4077      *
4078      *
4079      * <pre>
4080      * The Job entities that match the specified
4081      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4082      * </pre>
4083      *
4084      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4085      * </code>
4086      */
getMatchingJobs(int index)4087     public com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob getMatchingJobs(int index) {
4088       if (matchingJobsBuilder_ == null) {
4089         return matchingJobs_.get(index);
4090       } else {
4091         return matchingJobsBuilder_.getMessage(index);
4092       }
4093     }
4094     /**
4095      *
4096      *
4097      * <pre>
4098      * The Job entities that match the specified
4099      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4100      * </pre>
4101      *
4102      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4103      * </code>
4104      */
setMatchingJobs( int index, com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob value)4105     public Builder setMatchingJobs(
4106         int index, com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob value) {
4107       if (matchingJobsBuilder_ == null) {
4108         if (value == null) {
4109           throw new NullPointerException();
4110         }
4111         ensureMatchingJobsIsMutable();
4112         matchingJobs_.set(index, value);
4113         onChanged();
4114       } else {
4115         matchingJobsBuilder_.setMessage(index, value);
4116       }
4117       return this;
4118     }
4119     /**
4120      *
4121      *
4122      * <pre>
4123      * The Job entities that match the specified
4124      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4125      * </pre>
4126      *
4127      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4128      * </code>
4129      */
setMatchingJobs( int index, com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder builderForValue)4130     public Builder setMatchingJobs(
4131         int index,
4132         com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder builderForValue) {
4133       if (matchingJobsBuilder_ == null) {
4134         ensureMatchingJobsIsMutable();
4135         matchingJobs_.set(index, builderForValue.build());
4136         onChanged();
4137       } else {
4138         matchingJobsBuilder_.setMessage(index, builderForValue.build());
4139       }
4140       return this;
4141     }
4142     /**
4143      *
4144      *
4145      * <pre>
4146      * The Job entities that match the specified
4147      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4148      * </pre>
4149      *
4150      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4151      * </code>
4152      */
addMatchingJobs( com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob value)4153     public Builder addMatchingJobs(
4154         com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob value) {
4155       if (matchingJobsBuilder_ == null) {
4156         if (value == null) {
4157           throw new NullPointerException();
4158         }
4159         ensureMatchingJobsIsMutable();
4160         matchingJobs_.add(value);
4161         onChanged();
4162       } else {
4163         matchingJobsBuilder_.addMessage(value);
4164       }
4165       return this;
4166     }
4167     /**
4168      *
4169      *
4170      * <pre>
4171      * The Job entities that match the specified
4172      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4173      * </pre>
4174      *
4175      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4176      * </code>
4177      */
addMatchingJobs( int index, com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob value)4178     public Builder addMatchingJobs(
4179         int index, com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob value) {
4180       if (matchingJobsBuilder_ == null) {
4181         if (value == null) {
4182           throw new NullPointerException();
4183         }
4184         ensureMatchingJobsIsMutable();
4185         matchingJobs_.add(index, value);
4186         onChanged();
4187       } else {
4188         matchingJobsBuilder_.addMessage(index, value);
4189       }
4190       return this;
4191     }
4192     /**
4193      *
4194      *
4195      * <pre>
4196      * The Job entities that match the specified
4197      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4198      * </pre>
4199      *
4200      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4201      * </code>
4202      */
addMatchingJobs( com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder builderForValue)4203     public Builder addMatchingJobs(
4204         com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder builderForValue) {
4205       if (matchingJobsBuilder_ == null) {
4206         ensureMatchingJobsIsMutable();
4207         matchingJobs_.add(builderForValue.build());
4208         onChanged();
4209       } else {
4210         matchingJobsBuilder_.addMessage(builderForValue.build());
4211       }
4212       return this;
4213     }
4214     /**
4215      *
4216      *
4217      * <pre>
4218      * The Job entities that match the specified
4219      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4220      * </pre>
4221      *
4222      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4223      * </code>
4224      */
addMatchingJobs( int index, com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder builderForValue)4225     public Builder addMatchingJobs(
4226         int index,
4227         com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder builderForValue) {
4228       if (matchingJobsBuilder_ == null) {
4229         ensureMatchingJobsIsMutable();
4230         matchingJobs_.add(index, builderForValue.build());
4231         onChanged();
4232       } else {
4233         matchingJobsBuilder_.addMessage(index, builderForValue.build());
4234       }
4235       return this;
4236     }
4237     /**
4238      *
4239      *
4240      * <pre>
4241      * The Job entities that match the specified
4242      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4243      * </pre>
4244      *
4245      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4246      * </code>
4247      */
addAllMatchingJobs( java.lang.Iterable<? extends com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob> values)4248     public Builder addAllMatchingJobs(
4249         java.lang.Iterable<? extends com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob>
4250             values) {
4251       if (matchingJobsBuilder_ == null) {
4252         ensureMatchingJobsIsMutable();
4253         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchingJobs_);
4254         onChanged();
4255       } else {
4256         matchingJobsBuilder_.addAllMessages(values);
4257       }
4258       return this;
4259     }
4260     /**
4261      *
4262      *
4263      * <pre>
4264      * The Job entities that match the specified
4265      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4266      * </pre>
4267      *
4268      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4269      * </code>
4270      */
clearMatchingJobs()4271     public Builder clearMatchingJobs() {
4272       if (matchingJobsBuilder_ == null) {
4273         matchingJobs_ = java.util.Collections.emptyList();
4274         bitField0_ = (bitField0_ & ~0x00000001);
4275         onChanged();
4276       } else {
4277         matchingJobsBuilder_.clear();
4278       }
4279       return this;
4280     }
4281     /**
4282      *
4283      *
4284      * <pre>
4285      * The Job entities that match the specified
4286      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4287      * </pre>
4288      *
4289      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4290      * </code>
4291      */
removeMatchingJobs(int index)4292     public Builder removeMatchingJobs(int index) {
4293       if (matchingJobsBuilder_ == null) {
4294         ensureMatchingJobsIsMutable();
4295         matchingJobs_.remove(index);
4296         onChanged();
4297       } else {
4298         matchingJobsBuilder_.remove(index);
4299       }
4300       return this;
4301     }
4302     /**
4303      *
4304      *
4305      * <pre>
4306      * The Job entities that match the specified
4307      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4308      * </pre>
4309      *
4310      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4311      * </code>
4312      */
getMatchingJobsBuilder( int index)4313     public com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder getMatchingJobsBuilder(
4314         int index) {
4315       return getMatchingJobsFieldBuilder().getBuilder(index);
4316     }
4317     /**
4318      *
4319      *
4320      * <pre>
4321      * The Job entities that match the specified
4322      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4323      * </pre>
4324      *
4325      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4326      * </code>
4327      */
4328     public com.google.cloud.talent.v4.SearchJobsResponse.MatchingJobOrBuilder
getMatchingJobsOrBuilder(int index)4329         getMatchingJobsOrBuilder(int index) {
4330       if (matchingJobsBuilder_ == null) {
4331         return matchingJobs_.get(index);
4332       } else {
4333         return matchingJobsBuilder_.getMessageOrBuilder(index);
4334       }
4335     }
4336     /**
4337      *
4338      *
4339      * <pre>
4340      * The Job entities that match the specified
4341      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4342      * </pre>
4343      *
4344      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4345      * </code>
4346      */
4347     public java.util.List<
4348             ? extends com.google.cloud.talent.v4.SearchJobsResponse.MatchingJobOrBuilder>
getMatchingJobsOrBuilderList()4349         getMatchingJobsOrBuilderList() {
4350       if (matchingJobsBuilder_ != null) {
4351         return matchingJobsBuilder_.getMessageOrBuilderList();
4352       } else {
4353         return java.util.Collections.unmodifiableList(matchingJobs_);
4354       }
4355     }
4356     /**
4357      *
4358      *
4359      * <pre>
4360      * The Job entities that match the specified
4361      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4362      * </pre>
4363      *
4364      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4365      * </code>
4366      */
4367     public com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder
addMatchingJobsBuilder()4368         addMatchingJobsBuilder() {
4369       return getMatchingJobsFieldBuilder()
4370           .addBuilder(
4371               com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.getDefaultInstance());
4372     }
4373     /**
4374      *
4375      *
4376      * <pre>
4377      * The Job entities that match the specified
4378      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4379      * </pre>
4380      *
4381      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4382      * </code>
4383      */
addMatchingJobsBuilder( int index)4384     public com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder addMatchingJobsBuilder(
4385         int index) {
4386       return getMatchingJobsFieldBuilder()
4387           .addBuilder(
4388               index,
4389               com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.getDefaultInstance());
4390     }
4391     /**
4392      *
4393      *
4394      * <pre>
4395      * The Job entities that match the specified
4396      * [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
4397      * </pre>
4398      *
4399      * <code>repeated .google.cloud.talent.v4.SearchJobsResponse.MatchingJob matching_jobs = 1;
4400      * </code>
4401      */
4402     public java.util.List<com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder>
getMatchingJobsBuilderList()4403         getMatchingJobsBuilderList() {
4404       return getMatchingJobsFieldBuilder().getBuilderList();
4405     }
4406 
4407     private com.google.protobuf.RepeatedFieldBuilderV3<
4408             com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob,
4409             com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder,
4410             com.google.cloud.talent.v4.SearchJobsResponse.MatchingJobOrBuilder>
getMatchingJobsFieldBuilder()4411         getMatchingJobsFieldBuilder() {
4412       if (matchingJobsBuilder_ == null) {
4413         matchingJobsBuilder_ =
4414             new com.google.protobuf.RepeatedFieldBuilderV3<
4415                 com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob,
4416                 com.google.cloud.talent.v4.SearchJobsResponse.MatchingJob.Builder,
4417                 com.google.cloud.talent.v4.SearchJobsResponse.MatchingJobOrBuilder>(
4418                 matchingJobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
4419         matchingJobs_ = null;
4420       }
4421       return matchingJobsBuilder_;
4422     }
4423 
4424     private java.util.List<com.google.cloud.talent.v4.HistogramQueryResult> histogramQueryResults_ =
4425         java.util.Collections.emptyList();
4426 
ensureHistogramQueryResultsIsMutable()4427     private void ensureHistogramQueryResultsIsMutable() {
4428       if (!((bitField0_ & 0x00000002) != 0)) {
4429         histogramQueryResults_ =
4430             new java.util.ArrayList<com.google.cloud.talent.v4.HistogramQueryResult>(
4431                 histogramQueryResults_);
4432         bitField0_ |= 0x00000002;
4433       }
4434     }
4435 
4436     private com.google.protobuf.RepeatedFieldBuilderV3<
4437             com.google.cloud.talent.v4.HistogramQueryResult,
4438             com.google.cloud.talent.v4.HistogramQueryResult.Builder,
4439             com.google.cloud.talent.v4.HistogramQueryResultOrBuilder>
4440         histogramQueryResultsBuilder_;
4441 
4442     /**
4443      *
4444      *
4445      * <pre>
4446      * The histogram results that match with specified
4447      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4448      * </pre>
4449      *
4450      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4451      * </code>
4452      */
4453     public java.util.List<com.google.cloud.talent.v4.HistogramQueryResult>
getHistogramQueryResultsList()4454         getHistogramQueryResultsList() {
4455       if (histogramQueryResultsBuilder_ == null) {
4456         return java.util.Collections.unmodifiableList(histogramQueryResults_);
4457       } else {
4458         return histogramQueryResultsBuilder_.getMessageList();
4459       }
4460     }
4461     /**
4462      *
4463      *
4464      * <pre>
4465      * The histogram results that match with specified
4466      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4467      * </pre>
4468      *
4469      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4470      * </code>
4471      */
getHistogramQueryResultsCount()4472     public int getHistogramQueryResultsCount() {
4473       if (histogramQueryResultsBuilder_ == null) {
4474         return histogramQueryResults_.size();
4475       } else {
4476         return histogramQueryResultsBuilder_.getCount();
4477       }
4478     }
4479     /**
4480      *
4481      *
4482      * <pre>
4483      * The histogram results that match with specified
4484      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4485      * </pre>
4486      *
4487      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4488      * </code>
4489      */
getHistogramQueryResults(int index)4490     public com.google.cloud.talent.v4.HistogramQueryResult getHistogramQueryResults(int index) {
4491       if (histogramQueryResultsBuilder_ == null) {
4492         return histogramQueryResults_.get(index);
4493       } else {
4494         return histogramQueryResultsBuilder_.getMessage(index);
4495       }
4496     }
4497     /**
4498      *
4499      *
4500      * <pre>
4501      * The histogram results that match with specified
4502      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4503      * </pre>
4504      *
4505      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4506      * </code>
4507      */
setHistogramQueryResults( int index, com.google.cloud.talent.v4.HistogramQueryResult value)4508     public Builder setHistogramQueryResults(
4509         int index, com.google.cloud.talent.v4.HistogramQueryResult value) {
4510       if (histogramQueryResultsBuilder_ == null) {
4511         if (value == null) {
4512           throw new NullPointerException();
4513         }
4514         ensureHistogramQueryResultsIsMutable();
4515         histogramQueryResults_.set(index, value);
4516         onChanged();
4517       } else {
4518         histogramQueryResultsBuilder_.setMessage(index, value);
4519       }
4520       return this;
4521     }
4522     /**
4523      *
4524      *
4525      * <pre>
4526      * The histogram results that match with specified
4527      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4528      * </pre>
4529      *
4530      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4531      * </code>
4532      */
setHistogramQueryResults( int index, com.google.cloud.talent.v4.HistogramQueryResult.Builder builderForValue)4533     public Builder setHistogramQueryResults(
4534         int index, com.google.cloud.talent.v4.HistogramQueryResult.Builder builderForValue) {
4535       if (histogramQueryResultsBuilder_ == null) {
4536         ensureHistogramQueryResultsIsMutable();
4537         histogramQueryResults_.set(index, builderForValue.build());
4538         onChanged();
4539       } else {
4540         histogramQueryResultsBuilder_.setMessage(index, builderForValue.build());
4541       }
4542       return this;
4543     }
4544     /**
4545      *
4546      *
4547      * <pre>
4548      * The histogram results that match with specified
4549      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4550      * </pre>
4551      *
4552      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4553      * </code>
4554      */
addHistogramQueryResults(com.google.cloud.talent.v4.HistogramQueryResult value)4555     public Builder addHistogramQueryResults(com.google.cloud.talent.v4.HistogramQueryResult value) {
4556       if (histogramQueryResultsBuilder_ == null) {
4557         if (value == null) {
4558           throw new NullPointerException();
4559         }
4560         ensureHistogramQueryResultsIsMutable();
4561         histogramQueryResults_.add(value);
4562         onChanged();
4563       } else {
4564         histogramQueryResultsBuilder_.addMessage(value);
4565       }
4566       return this;
4567     }
4568     /**
4569      *
4570      *
4571      * <pre>
4572      * The histogram results that match with specified
4573      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4574      * </pre>
4575      *
4576      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4577      * </code>
4578      */
addHistogramQueryResults( int index, com.google.cloud.talent.v4.HistogramQueryResult value)4579     public Builder addHistogramQueryResults(
4580         int index, com.google.cloud.talent.v4.HistogramQueryResult value) {
4581       if (histogramQueryResultsBuilder_ == null) {
4582         if (value == null) {
4583           throw new NullPointerException();
4584         }
4585         ensureHistogramQueryResultsIsMutable();
4586         histogramQueryResults_.add(index, value);
4587         onChanged();
4588       } else {
4589         histogramQueryResultsBuilder_.addMessage(index, value);
4590       }
4591       return this;
4592     }
4593     /**
4594      *
4595      *
4596      * <pre>
4597      * The histogram results that match with specified
4598      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4599      * </pre>
4600      *
4601      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4602      * </code>
4603      */
addHistogramQueryResults( com.google.cloud.talent.v4.HistogramQueryResult.Builder builderForValue)4604     public Builder addHistogramQueryResults(
4605         com.google.cloud.talent.v4.HistogramQueryResult.Builder builderForValue) {
4606       if (histogramQueryResultsBuilder_ == null) {
4607         ensureHistogramQueryResultsIsMutable();
4608         histogramQueryResults_.add(builderForValue.build());
4609         onChanged();
4610       } else {
4611         histogramQueryResultsBuilder_.addMessage(builderForValue.build());
4612       }
4613       return this;
4614     }
4615     /**
4616      *
4617      *
4618      * <pre>
4619      * The histogram results that match with specified
4620      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4621      * </pre>
4622      *
4623      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4624      * </code>
4625      */
addHistogramQueryResults( int index, com.google.cloud.talent.v4.HistogramQueryResult.Builder builderForValue)4626     public Builder addHistogramQueryResults(
4627         int index, com.google.cloud.talent.v4.HistogramQueryResult.Builder builderForValue) {
4628       if (histogramQueryResultsBuilder_ == null) {
4629         ensureHistogramQueryResultsIsMutable();
4630         histogramQueryResults_.add(index, builderForValue.build());
4631         onChanged();
4632       } else {
4633         histogramQueryResultsBuilder_.addMessage(index, builderForValue.build());
4634       }
4635       return this;
4636     }
4637     /**
4638      *
4639      *
4640      * <pre>
4641      * The histogram results that match with specified
4642      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4643      * </pre>
4644      *
4645      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4646      * </code>
4647      */
addAllHistogramQueryResults( java.lang.Iterable<? extends com.google.cloud.talent.v4.HistogramQueryResult> values)4648     public Builder addAllHistogramQueryResults(
4649         java.lang.Iterable<? extends com.google.cloud.talent.v4.HistogramQueryResult> values) {
4650       if (histogramQueryResultsBuilder_ == null) {
4651         ensureHistogramQueryResultsIsMutable();
4652         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueryResults_);
4653         onChanged();
4654       } else {
4655         histogramQueryResultsBuilder_.addAllMessages(values);
4656       }
4657       return this;
4658     }
4659     /**
4660      *
4661      *
4662      * <pre>
4663      * The histogram results that match with specified
4664      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4665      * </pre>
4666      *
4667      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4668      * </code>
4669      */
clearHistogramQueryResults()4670     public Builder clearHistogramQueryResults() {
4671       if (histogramQueryResultsBuilder_ == null) {
4672         histogramQueryResults_ = java.util.Collections.emptyList();
4673         bitField0_ = (bitField0_ & ~0x00000002);
4674         onChanged();
4675       } else {
4676         histogramQueryResultsBuilder_.clear();
4677       }
4678       return this;
4679     }
4680     /**
4681      *
4682      *
4683      * <pre>
4684      * The histogram results that match with specified
4685      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4686      * </pre>
4687      *
4688      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4689      * </code>
4690      */
removeHistogramQueryResults(int index)4691     public Builder removeHistogramQueryResults(int index) {
4692       if (histogramQueryResultsBuilder_ == null) {
4693         ensureHistogramQueryResultsIsMutable();
4694         histogramQueryResults_.remove(index);
4695         onChanged();
4696       } else {
4697         histogramQueryResultsBuilder_.remove(index);
4698       }
4699       return this;
4700     }
4701     /**
4702      *
4703      *
4704      * <pre>
4705      * The histogram results that match with specified
4706      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4707      * </pre>
4708      *
4709      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4710      * </code>
4711      */
getHistogramQueryResultsBuilder( int index)4712     public com.google.cloud.talent.v4.HistogramQueryResult.Builder getHistogramQueryResultsBuilder(
4713         int index) {
4714       return getHistogramQueryResultsFieldBuilder().getBuilder(index);
4715     }
4716     /**
4717      *
4718      *
4719      * <pre>
4720      * The histogram results that match with specified
4721      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4722      * </pre>
4723      *
4724      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4725      * </code>
4726      */
4727     public com.google.cloud.talent.v4.HistogramQueryResultOrBuilder
getHistogramQueryResultsOrBuilder(int index)4728         getHistogramQueryResultsOrBuilder(int index) {
4729       if (histogramQueryResultsBuilder_ == null) {
4730         return histogramQueryResults_.get(index);
4731       } else {
4732         return histogramQueryResultsBuilder_.getMessageOrBuilder(index);
4733       }
4734     }
4735     /**
4736      *
4737      *
4738      * <pre>
4739      * The histogram results that match with specified
4740      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4741      * </pre>
4742      *
4743      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4744      * </code>
4745      */
4746     public java.util.List<? extends com.google.cloud.talent.v4.HistogramQueryResultOrBuilder>
getHistogramQueryResultsOrBuilderList()4747         getHistogramQueryResultsOrBuilderList() {
4748       if (histogramQueryResultsBuilder_ != null) {
4749         return histogramQueryResultsBuilder_.getMessageOrBuilderList();
4750       } else {
4751         return java.util.Collections.unmodifiableList(histogramQueryResults_);
4752       }
4753     }
4754     /**
4755      *
4756      *
4757      * <pre>
4758      * The histogram results that match with specified
4759      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4760      * </pre>
4761      *
4762      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4763      * </code>
4764      */
4765     public com.google.cloud.talent.v4.HistogramQueryResult.Builder
addHistogramQueryResultsBuilder()4766         addHistogramQueryResultsBuilder() {
4767       return getHistogramQueryResultsFieldBuilder()
4768           .addBuilder(com.google.cloud.talent.v4.HistogramQueryResult.getDefaultInstance());
4769     }
4770     /**
4771      *
4772      *
4773      * <pre>
4774      * The histogram results that match with specified
4775      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4776      * </pre>
4777      *
4778      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4779      * </code>
4780      */
addHistogramQueryResultsBuilder( int index)4781     public com.google.cloud.talent.v4.HistogramQueryResult.Builder addHistogramQueryResultsBuilder(
4782         int index) {
4783       return getHistogramQueryResultsFieldBuilder()
4784           .addBuilder(index, com.google.cloud.talent.v4.HistogramQueryResult.getDefaultInstance());
4785     }
4786     /**
4787      *
4788      *
4789      * <pre>
4790      * The histogram results that match with specified
4791      * [SearchJobsRequest.histogram_queries][google.cloud.talent.v4.SearchJobsRequest.histogram_queries].
4792      * </pre>
4793      *
4794      * <code>repeated .google.cloud.talent.v4.HistogramQueryResult histogram_query_results = 2;
4795      * </code>
4796      */
4797     public java.util.List<com.google.cloud.talent.v4.HistogramQueryResult.Builder>
getHistogramQueryResultsBuilderList()4798         getHistogramQueryResultsBuilderList() {
4799       return getHistogramQueryResultsFieldBuilder().getBuilderList();
4800     }
4801 
4802     private com.google.protobuf.RepeatedFieldBuilderV3<
4803             com.google.cloud.talent.v4.HistogramQueryResult,
4804             com.google.cloud.talent.v4.HistogramQueryResult.Builder,
4805             com.google.cloud.talent.v4.HistogramQueryResultOrBuilder>
getHistogramQueryResultsFieldBuilder()4806         getHistogramQueryResultsFieldBuilder() {
4807       if (histogramQueryResultsBuilder_ == null) {
4808         histogramQueryResultsBuilder_ =
4809             new com.google.protobuf.RepeatedFieldBuilderV3<
4810                 com.google.cloud.talent.v4.HistogramQueryResult,
4811                 com.google.cloud.talent.v4.HistogramQueryResult.Builder,
4812                 com.google.cloud.talent.v4.HistogramQueryResultOrBuilder>(
4813                 histogramQueryResults_,
4814                 ((bitField0_ & 0x00000002) != 0),
4815                 getParentForChildren(),
4816                 isClean());
4817         histogramQueryResults_ = null;
4818       }
4819       return histogramQueryResultsBuilder_;
4820     }
4821 
4822     private java.lang.Object nextPageToken_ = "";
4823     /**
4824      *
4825      *
4826      * <pre>
4827      * The token that specifies the starting position of the next page of results.
4828      * This field is empty if there are no more results.
4829      * </pre>
4830      *
4831      * <code>string next_page_token = 3;</code>
4832      *
4833      * @return The nextPageToken.
4834      */
getNextPageToken()4835     public java.lang.String getNextPageToken() {
4836       java.lang.Object ref = nextPageToken_;
4837       if (!(ref instanceof java.lang.String)) {
4838         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4839         java.lang.String s = bs.toStringUtf8();
4840         nextPageToken_ = s;
4841         return s;
4842       } else {
4843         return (java.lang.String) ref;
4844       }
4845     }
4846     /**
4847      *
4848      *
4849      * <pre>
4850      * The token that specifies the starting position of the next page of results.
4851      * This field is empty if there are no more results.
4852      * </pre>
4853      *
4854      * <code>string next_page_token = 3;</code>
4855      *
4856      * @return The bytes for nextPageToken.
4857      */
getNextPageTokenBytes()4858     public com.google.protobuf.ByteString getNextPageTokenBytes() {
4859       java.lang.Object ref = nextPageToken_;
4860       if (ref instanceof String) {
4861         com.google.protobuf.ByteString b =
4862             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4863         nextPageToken_ = b;
4864         return b;
4865       } else {
4866         return (com.google.protobuf.ByteString) ref;
4867       }
4868     }
4869     /**
4870      *
4871      *
4872      * <pre>
4873      * The token that specifies the starting position of the next page of results.
4874      * This field is empty if there are no more results.
4875      * </pre>
4876      *
4877      * <code>string next_page_token = 3;</code>
4878      *
4879      * @param value The nextPageToken to set.
4880      * @return This builder for chaining.
4881      */
setNextPageToken(java.lang.String value)4882     public Builder setNextPageToken(java.lang.String value) {
4883       if (value == null) {
4884         throw new NullPointerException();
4885       }
4886       nextPageToken_ = value;
4887       bitField0_ |= 0x00000004;
4888       onChanged();
4889       return this;
4890     }
4891     /**
4892      *
4893      *
4894      * <pre>
4895      * The token that specifies the starting position of the next page of results.
4896      * This field is empty if there are no more results.
4897      * </pre>
4898      *
4899      * <code>string next_page_token = 3;</code>
4900      *
4901      * @return This builder for chaining.
4902      */
clearNextPageToken()4903     public Builder clearNextPageToken() {
4904       nextPageToken_ = getDefaultInstance().getNextPageToken();
4905       bitField0_ = (bitField0_ & ~0x00000004);
4906       onChanged();
4907       return this;
4908     }
4909     /**
4910      *
4911      *
4912      * <pre>
4913      * The token that specifies the starting position of the next page of results.
4914      * This field is empty if there are no more results.
4915      * </pre>
4916      *
4917      * <code>string next_page_token = 3;</code>
4918      *
4919      * @param value The bytes for nextPageToken to set.
4920      * @return This builder for chaining.
4921      */
setNextPageTokenBytes(com.google.protobuf.ByteString value)4922     public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
4923       if (value == null) {
4924         throw new NullPointerException();
4925       }
4926       checkByteStringIsUtf8(value);
4927       nextPageToken_ = value;
4928       bitField0_ |= 0x00000004;
4929       onChanged();
4930       return this;
4931     }
4932 
4933     private java.util.List<com.google.cloud.talent.v4.Location> locationFilters_ =
4934         java.util.Collections.emptyList();
4935 
ensureLocationFiltersIsMutable()4936     private void ensureLocationFiltersIsMutable() {
4937       if (!((bitField0_ & 0x00000008) != 0)) {
4938         locationFilters_ =
4939             new java.util.ArrayList<com.google.cloud.talent.v4.Location>(locationFilters_);
4940         bitField0_ |= 0x00000008;
4941       }
4942     }
4943 
4944     private com.google.protobuf.RepeatedFieldBuilderV3<
4945             com.google.cloud.talent.v4.Location,
4946             com.google.cloud.talent.v4.Location.Builder,
4947             com.google.cloud.talent.v4.LocationOrBuilder>
4948         locationFiltersBuilder_;
4949 
4950     /**
4951      *
4952      *
4953      * <pre>
4954      * The location filters that the service applied to the specified query. If
4955      * any filters are lat-lng based, the
4956      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
4957      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
4958      * </pre>
4959      *
4960      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
4961      */
getLocationFiltersList()4962     public java.util.List<com.google.cloud.talent.v4.Location> getLocationFiltersList() {
4963       if (locationFiltersBuilder_ == null) {
4964         return java.util.Collections.unmodifiableList(locationFilters_);
4965       } else {
4966         return locationFiltersBuilder_.getMessageList();
4967       }
4968     }
4969     /**
4970      *
4971      *
4972      * <pre>
4973      * The location filters that the service applied to the specified query. If
4974      * any filters are lat-lng based, the
4975      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
4976      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
4977      * </pre>
4978      *
4979      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
4980      */
getLocationFiltersCount()4981     public int getLocationFiltersCount() {
4982       if (locationFiltersBuilder_ == null) {
4983         return locationFilters_.size();
4984       } else {
4985         return locationFiltersBuilder_.getCount();
4986       }
4987     }
4988     /**
4989      *
4990      *
4991      * <pre>
4992      * The location filters that the service applied to the specified query. If
4993      * any filters are lat-lng based, the
4994      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
4995      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
4996      * </pre>
4997      *
4998      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
4999      */
getLocationFilters(int index)5000     public com.google.cloud.talent.v4.Location getLocationFilters(int index) {
5001       if (locationFiltersBuilder_ == null) {
5002         return locationFilters_.get(index);
5003       } else {
5004         return locationFiltersBuilder_.getMessage(index);
5005       }
5006     }
5007     /**
5008      *
5009      *
5010      * <pre>
5011      * The location filters that the service applied to the specified query. If
5012      * any filters are lat-lng based, the
5013      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5014      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5015      * </pre>
5016      *
5017      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5018      */
setLocationFilters(int index, com.google.cloud.talent.v4.Location value)5019     public Builder setLocationFilters(int index, com.google.cloud.talent.v4.Location value) {
5020       if (locationFiltersBuilder_ == null) {
5021         if (value == null) {
5022           throw new NullPointerException();
5023         }
5024         ensureLocationFiltersIsMutable();
5025         locationFilters_.set(index, value);
5026         onChanged();
5027       } else {
5028         locationFiltersBuilder_.setMessage(index, value);
5029       }
5030       return this;
5031     }
5032     /**
5033      *
5034      *
5035      * <pre>
5036      * The location filters that the service applied to the specified query. If
5037      * any filters are lat-lng based, the
5038      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5039      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5040      * </pre>
5041      *
5042      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5043      */
setLocationFilters( int index, com.google.cloud.talent.v4.Location.Builder builderForValue)5044     public Builder setLocationFilters(
5045         int index, com.google.cloud.talent.v4.Location.Builder builderForValue) {
5046       if (locationFiltersBuilder_ == null) {
5047         ensureLocationFiltersIsMutable();
5048         locationFilters_.set(index, builderForValue.build());
5049         onChanged();
5050       } else {
5051         locationFiltersBuilder_.setMessage(index, builderForValue.build());
5052       }
5053       return this;
5054     }
5055     /**
5056      *
5057      *
5058      * <pre>
5059      * The location filters that the service applied to the specified query. If
5060      * any filters are lat-lng based, the
5061      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5062      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5063      * </pre>
5064      *
5065      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5066      */
addLocationFilters(com.google.cloud.talent.v4.Location value)5067     public Builder addLocationFilters(com.google.cloud.talent.v4.Location value) {
5068       if (locationFiltersBuilder_ == null) {
5069         if (value == null) {
5070           throw new NullPointerException();
5071         }
5072         ensureLocationFiltersIsMutable();
5073         locationFilters_.add(value);
5074         onChanged();
5075       } else {
5076         locationFiltersBuilder_.addMessage(value);
5077       }
5078       return this;
5079     }
5080     /**
5081      *
5082      *
5083      * <pre>
5084      * The location filters that the service applied to the specified query. If
5085      * any filters are lat-lng based, the
5086      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5087      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5088      * </pre>
5089      *
5090      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5091      */
addLocationFilters(int index, com.google.cloud.talent.v4.Location value)5092     public Builder addLocationFilters(int index, com.google.cloud.talent.v4.Location value) {
5093       if (locationFiltersBuilder_ == null) {
5094         if (value == null) {
5095           throw new NullPointerException();
5096         }
5097         ensureLocationFiltersIsMutable();
5098         locationFilters_.add(index, value);
5099         onChanged();
5100       } else {
5101         locationFiltersBuilder_.addMessage(index, value);
5102       }
5103       return this;
5104     }
5105     /**
5106      *
5107      *
5108      * <pre>
5109      * The location filters that the service applied to the specified query. If
5110      * any filters are lat-lng based, the
5111      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5112      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5113      * </pre>
5114      *
5115      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5116      */
addLocationFilters(com.google.cloud.talent.v4.Location.Builder builderForValue)5117     public Builder addLocationFilters(com.google.cloud.talent.v4.Location.Builder builderForValue) {
5118       if (locationFiltersBuilder_ == null) {
5119         ensureLocationFiltersIsMutable();
5120         locationFilters_.add(builderForValue.build());
5121         onChanged();
5122       } else {
5123         locationFiltersBuilder_.addMessage(builderForValue.build());
5124       }
5125       return this;
5126     }
5127     /**
5128      *
5129      *
5130      * <pre>
5131      * The location filters that the service applied to the specified query. If
5132      * any filters are lat-lng based, the
5133      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5134      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5135      * </pre>
5136      *
5137      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5138      */
addLocationFilters( int index, com.google.cloud.talent.v4.Location.Builder builderForValue)5139     public Builder addLocationFilters(
5140         int index, com.google.cloud.talent.v4.Location.Builder builderForValue) {
5141       if (locationFiltersBuilder_ == null) {
5142         ensureLocationFiltersIsMutable();
5143         locationFilters_.add(index, builderForValue.build());
5144         onChanged();
5145       } else {
5146         locationFiltersBuilder_.addMessage(index, builderForValue.build());
5147       }
5148       return this;
5149     }
5150     /**
5151      *
5152      *
5153      * <pre>
5154      * The location filters that the service applied to the specified query. If
5155      * any filters are lat-lng based, the
5156      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5157      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5158      * </pre>
5159      *
5160      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5161      */
addAllLocationFilters( java.lang.Iterable<? extends com.google.cloud.talent.v4.Location> values)5162     public Builder addAllLocationFilters(
5163         java.lang.Iterable<? extends com.google.cloud.talent.v4.Location> values) {
5164       if (locationFiltersBuilder_ == null) {
5165         ensureLocationFiltersIsMutable();
5166         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationFilters_);
5167         onChanged();
5168       } else {
5169         locationFiltersBuilder_.addAllMessages(values);
5170       }
5171       return this;
5172     }
5173     /**
5174      *
5175      *
5176      * <pre>
5177      * The location filters that the service applied to the specified query. If
5178      * any filters are lat-lng based, the
5179      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5180      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5181      * </pre>
5182      *
5183      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5184      */
clearLocationFilters()5185     public Builder clearLocationFilters() {
5186       if (locationFiltersBuilder_ == null) {
5187         locationFilters_ = java.util.Collections.emptyList();
5188         bitField0_ = (bitField0_ & ~0x00000008);
5189         onChanged();
5190       } else {
5191         locationFiltersBuilder_.clear();
5192       }
5193       return this;
5194     }
5195     /**
5196      *
5197      *
5198      * <pre>
5199      * The location filters that the service applied to the specified query. If
5200      * any filters are lat-lng based, the
5201      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5202      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5203      * </pre>
5204      *
5205      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5206      */
removeLocationFilters(int index)5207     public Builder removeLocationFilters(int index) {
5208       if (locationFiltersBuilder_ == null) {
5209         ensureLocationFiltersIsMutable();
5210         locationFilters_.remove(index);
5211         onChanged();
5212       } else {
5213         locationFiltersBuilder_.remove(index);
5214       }
5215       return this;
5216     }
5217     /**
5218      *
5219      *
5220      * <pre>
5221      * The location filters that the service applied to the specified query. If
5222      * any filters are lat-lng based, the
5223      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5224      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5225      * </pre>
5226      *
5227      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5228      */
getLocationFiltersBuilder(int index)5229     public com.google.cloud.talent.v4.Location.Builder getLocationFiltersBuilder(int index) {
5230       return getLocationFiltersFieldBuilder().getBuilder(index);
5231     }
5232     /**
5233      *
5234      *
5235      * <pre>
5236      * The location filters that the service applied to the specified query. If
5237      * any filters are lat-lng based, the
5238      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5239      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5240      * </pre>
5241      *
5242      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5243      */
getLocationFiltersOrBuilder(int index)5244     public com.google.cloud.talent.v4.LocationOrBuilder getLocationFiltersOrBuilder(int index) {
5245       if (locationFiltersBuilder_ == null) {
5246         return locationFilters_.get(index);
5247       } else {
5248         return locationFiltersBuilder_.getMessageOrBuilder(index);
5249       }
5250     }
5251     /**
5252      *
5253      *
5254      * <pre>
5255      * The location filters that the service applied to the specified query. If
5256      * any filters are lat-lng based, the
5257      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5258      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5259      * </pre>
5260      *
5261      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5262      */
5263     public java.util.List<? extends com.google.cloud.talent.v4.LocationOrBuilder>
getLocationFiltersOrBuilderList()5264         getLocationFiltersOrBuilderList() {
5265       if (locationFiltersBuilder_ != null) {
5266         return locationFiltersBuilder_.getMessageOrBuilderList();
5267       } else {
5268         return java.util.Collections.unmodifiableList(locationFilters_);
5269       }
5270     }
5271     /**
5272      *
5273      *
5274      * <pre>
5275      * The location filters that the service applied to the specified query. If
5276      * any filters are lat-lng based, the
5277      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5278      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5279      * </pre>
5280      *
5281      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5282      */
addLocationFiltersBuilder()5283     public com.google.cloud.talent.v4.Location.Builder addLocationFiltersBuilder() {
5284       return getLocationFiltersFieldBuilder()
5285           .addBuilder(com.google.cloud.talent.v4.Location.getDefaultInstance());
5286     }
5287     /**
5288      *
5289      *
5290      * <pre>
5291      * The location filters that the service applied to the specified query. If
5292      * any filters are lat-lng based, the
5293      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5294      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5295      * </pre>
5296      *
5297      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5298      */
addLocationFiltersBuilder(int index)5299     public com.google.cloud.talent.v4.Location.Builder addLocationFiltersBuilder(int index) {
5300       return getLocationFiltersFieldBuilder()
5301           .addBuilder(index, com.google.cloud.talent.v4.Location.getDefaultInstance());
5302     }
5303     /**
5304      *
5305      *
5306      * <pre>
5307      * The location filters that the service applied to the specified query. If
5308      * any filters are lat-lng based, the
5309      * [Location.location_type][google.cloud.talent.v4.Location.location_type] is
5310      * [Location.LocationType.LOCATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.Location.LocationType.LOCATION_TYPE_UNSPECIFIED].
5311      * </pre>
5312      *
5313      * <code>repeated .google.cloud.talent.v4.Location location_filters = 4;</code>
5314      */
5315     public java.util.List<com.google.cloud.talent.v4.Location.Builder>
getLocationFiltersBuilderList()5316         getLocationFiltersBuilderList() {
5317       return getLocationFiltersFieldBuilder().getBuilderList();
5318     }
5319 
5320     private com.google.protobuf.RepeatedFieldBuilderV3<
5321             com.google.cloud.talent.v4.Location,
5322             com.google.cloud.talent.v4.Location.Builder,
5323             com.google.cloud.talent.v4.LocationOrBuilder>
getLocationFiltersFieldBuilder()5324         getLocationFiltersFieldBuilder() {
5325       if (locationFiltersBuilder_ == null) {
5326         locationFiltersBuilder_ =
5327             new com.google.protobuf.RepeatedFieldBuilderV3<
5328                 com.google.cloud.talent.v4.Location,
5329                 com.google.cloud.talent.v4.Location.Builder,
5330                 com.google.cloud.talent.v4.LocationOrBuilder>(
5331                 locationFilters_,
5332                 ((bitField0_ & 0x00000008) != 0),
5333                 getParentForChildren(),
5334                 isClean());
5335         locationFilters_ = null;
5336       }
5337       return locationFiltersBuilder_;
5338     }
5339 
5340     private int totalSize_;
5341     /**
5342      *
5343      *
5344      * <pre>
5345      * Number of jobs that match the specified query.
5346      * Note: This size is precise only if the total is less than 100,000.
5347      * </pre>
5348      *
5349      * <code>int32 total_size = 6;</code>
5350      *
5351      * @return The totalSize.
5352      */
5353     @java.lang.Override
getTotalSize()5354     public int getTotalSize() {
5355       return totalSize_;
5356     }
5357     /**
5358      *
5359      *
5360      * <pre>
5361      * Number of jobs that match the specified query.
5362      * Note: This size is precise only if the total is less than 100,000.
5363      * </pre>
5364      *
5365      * <code>int32 total_size = 6;</code>
5366      *
5367      * @param value The totalSize to set.
5368      * @return This builder for chaining.
5369      */
setTotalSize(int value)5370     public Builder setTotalSize(int value) {
5371 
5372       totalSize_ = value;
5373       bitField0_ |= 0x00000010;
5374       onChanged();
5375       return this;
5376     }
5377     /**
5378      *
5379      *
5380      * <pre>
5381      * Number of jobs that match the specified query.
5382      * Note: This size is precise only if the total is less than 100,000.
5383      * </pre>
5384      *
5385      * <code>int32 total_size = 6;</code>
5386      *
5387      * @return This builder for chaining.
5388      */
clearTotalSize()5389     public Builder clearTotalSize() {
5390       bitField0_ = (bitField0_ & ~0x00000010);
5391       totalSize_ = 0;
5392       onChanged();
5393       return this;
5394     }
5395 
5396     private com.google.cloud.talent.v4.ResponseMetadata metadata_;
5397     private com.google.protobuf.SingleFieldBuilderV3<
5398             com.google.cloud.talent.v4.ResponseMetadata,
5399             com.google.cloud.talent.v4.ResponseMetadata.Builder,
5400             com.google.cloud.talent.v4.ResponseMetadataOrBuilder>
5401         metadataBuilder_;
5402     /**
5403      *
5404      *
5405      * <pre>
5406      * Additional information for the API invocation, such as the request
5407      * tracking id.
5408      * </pre>
5409      *
5410      * <code>.google.cloud.talent.v4.ResponseMetadata metadata = 7;</code>
5411      *
5412      * @return Whether the metadata field is set.
5413      */
hasMetadata()5414     public boolean hasMetadata() {
5415       return ((bitField0_ & 0x00000020) != 0);
5416     }
5417     /**
5418      *
5419      *
5420      * <pre>
5421      * Additional information for the API invocation, such as the request
5422      * tracking id.
5423      * </pre>
5424      *
5425      * <code>.google.cloud.talent.v4.ResponseMetadata metadata = 7;</code>
5426      *
5427      * @return The metadata.
5428      */
getMetadata()5429     public com.google.cloud.talent.v4.ResponseMetadata getMetadata() {
5430       if (metadataBuilder_ == null) {
5431         return metadata_ == null
5432             ? com.google.cloud.talent.v4.ResponseMetadata.getDefaultInstance()
5433             : metadata_;
5434       } else {
5435         return metadataBuilder_.getMessage();
5436       }
5437     }
5438     /**
5439      *
5440      *
5441      * <pre>
5442      * Additional information for the API invocation, such as the request
5443      * tracking id.
5444      * </pre>
5445      *
5446      * <code>.google.cloud.talent.v4.ResponseMetadata metadata = 7;</code>
5447      */
setMetadata(com.google.cloud.talent.v4.ResponseMetadata value)5448     public Builder setMetadata(com.google.cloud.talent.v4.ResponseMetadata value) {
5449       if (metadataBuilder_ == null) {
5450         if (value == null) {
5451           throw new NullPointerException();
5452         }
5453         metadata_ = value;
5454       } else {
5455         metadataBuilder_.setMessage(value);
5456       }
5457       bitField0_ |= 0x00000020;
5458       onChanged();
5459       return this;
5460     }
5461     /**
5462      *
5463      *
5464      * <pre>
5465      * Additional information for the API invocation, such as the request
5466      * tracking id.
5467      * </pre>
5468      *
5469      * <code>.google.cloud.talent.v4.ResponseMetadata metadata = 7;</code>
5470      */
setMetadata( com.google.cloud.talent.v4.ResponseMetadata.Builder builderForValue)5471     public Builder setMetadata(
5472         com.google.cloud.talent.v4.ResponseMetadata.Builder builderForValue) {
5473       if (metadataBuilder_ == null) {
5474         metadata_ = builderForValue.build();
5475       } else {
5476         metadataBuilder_.setMessage(builderForValue.build());
5477       }
5478       bitField0_ |= 0x00000020;
5479       onChanged();
5480       return this;
5481     }
5482     /**
5483      *
5484      *
5485      * <pre>
5486      * Additional information for the API invocation, such as the request
5487      * tracking id.
5488      * </pre>
5489      *
5490      * <code>.google.cloud.talent.v4.ResponseMetadata metadata = 7;</code>
5491      */
mergeMetadata(com.google.cloud.talent.v4.ResponseMetadata value)5492     public Builder mergeMetadata(com.google.cloud.talent.v4.ResponseMetadata value) {
5493       if (metadataBuilder_ == null) {
5494         if (((bitField0_ & 0x00000020) != 0)
5495             && metadata_ != null
5496             && metadata_ != com.google.cloud.talent.v4.ResponseMetadata.getDefaultInstance()) {
5497           getMetadataBuilder().mergeFrom(value);
5498         } else {
5499           metadata_ = value;
5500         }
5501       } else {
5502         metadataBuilder_.mergeFrom(value);
5503       }
5504       bitField0_ |= 0x00000020;
5505       onChanged();
5506       return this;
5507     }
5508     /**
5509      *
5510      *
5511      * <pre>
5512      * Additional information for the API invocation, such as the request
5513      * tracking id.
5514      * </pre>
5515      *
5516      * <code>.google.cloud.talent.v4.ResponseMetadata metadata = 7;</code>
5517      */
clearMetadata()5518     public Builder clearMetadata() {
5519       bitField0_ = (bitField0_ & ~0x00000020);
5520       metadata_ = null;
5521       if (metadataBuilder_ != null) {
5522         metadataBuilder_.dispose();
5523         metadataBuilder_ = null;
5524       }
5525       onChanged();
5526       return this;
5527     }
5528     /**
5529      *
5530      *
5531      * <pre>
5532      * Additional information for the API invocation, such as the request
5533      * tracking id.
5534      * </pre>
5535      *
5536      * <code>.google.cloud.talent.v4.ResponseMetadata metadata = 7;</code>
5537      */
getMetadataBuilder()5538     public com.google.cloud.talent.v4.ResponseMetadata.Builder getMetadataBuilder() {
5539       bitField0_ |= 0x00000020;
5540       onChanged();
5541       return getMetadataFieldBuilder().getBuilder();
5542     }
5543     /**
5544      *
5545      *
5546      * <pre>
5547      * Additional information for the API invocation, such as the request
5548      * tracking id.
5549      * </pre>
5550      *
5551      * <code>.google.cloud.talent.v4.ResponseMetadata metadata = 7;</code>
5552      */
getMetadataOrBuilder()5553     public com.google.cloud.talent.v4.ResponseMetadataOrBuilder getMetadataOrBuilder() {
5554       if (metadataBuilder_ != null) {
5555         return metadataBuilder_.getMessageOrBuilder();
5556       } else {
5557         return metadata_ == null
5558             ? com.google.cloud.talent.v4.ResponseMetadata.getDefaultInstance()
5559             : metadata_;
5560       }
5561     }
5562     /**
5563      *
5564      *
5565      * <pre>
5566      * Additional information for the API invocation, such as the request
5567      * tracking id.
5568      * </pre>
5569      *
5570      * <code>.google.cloud.talent.v4.ResponseMetadata metadata = 7;</code>
5571      */
5572     private com.google.protobuf.SingleFieldBuilderV3<
5573             com.google.cloud.talent.v4.ResponseMetadata,
5574             com.google.cloud.talent.v4.ResponseMetadata.Builder,
5575             com.google.cloud.talent.v4.ResponseMetadataOrBuilder>
getMetadataFieldBuilder()5576         getMetadataFieldBuilder() {
5577       if (metadataBuilder_ == null) {
5578         metadataBuilder_ =
5579             new com.google.protobuf.SingleFieldBuilderV3<
5580                 com.google.cloud.talent.v4.ResponseMetadata,
5581                 com.google.cloud.talent.v4.ResponseMetadata.Builder,
5582                 com.google.cloud.talent.v4.ResponseMetadataOrBuilder>(
5583                 getMetadata(), getParentForChildren(), isClean());
5584         metadata_ = null;
5585       }
5586       return metadataBuilder_;
5587     }
5588 
5589     private int broadenedQueryJobsCount_;
5590     /**
5591      *
5592      *
5593      * <pre>
5594      * If query broadening is enabled, we may append additional results from the
5595      * broadened query. This number indicates how many of the jobs returned in the
5596      * jobs field are from the broadened query. These results are always at the
5597      * end of the jobs list. In particular, a value of 0, or if the field isn't
5598      * set, all the jobs in the jobs list are from the original
5599      * (without broadening) query. If this field is non-zero, subsequent requests
5600      * with offset after this result set should contain all broadened results.
5601      * </pre>
5602      *
5603      * <code>int32 broadened_query_jobs_count = 8;</code>
5604      *
5605      * @return The broadenedQueryJobsCount.
5606      */
5607     @java.lang.Override
getBroadenedQueryJobsCount()5608     public int getBroadenedQueryJobsCount() {
5609       return broadenedQueryJobsCount_;
5610     }
5611     /**
5612      *
5613      *
5614      * <pre>
5615      * If query broadening is enabled, we may append additional results from the
5616      * broadened query. This number indicates how many of the jobs returned in the
5617      * jobs field are from the broadened query. These results are always at the
5618      * end of the jobs list. In particular, a value of 0, or if the field isn't
5619      * set, all the jobs in the jobs list are from the original
5620      * (without broadening) query. If this field is non-zero, subsequent requests
5621      * with offset after this result set should contain all broadened results.
5622      * </pre>
5623      *
5624      * <code>int32 broadened_query_jobs_count = 8;</code>
5625      *
5626      * @param value The broadenedQueryJobsCount to set.
5627      * @return This builder for chaining.
5628      */
setBroadenedQueryJobsCount(int value)5629     public Builder setBroadenedQueryJobsCount(int value) {
5630 
5631       broadenedQueryJobsCount_ = value;
5632       bitField0_ |= 0x00000040;
5633       onChanged();
5634       return this;
5635     }
5636     /**
5637      *
5638      *
5639      * <pre>
5640      * If query broadening is enabled, we may append additional results from the
5641      * broadened query. This number indicates how many of the jobs returned in the
5642      * jobs field are from the broadened query. These results are always at the
5643      * end of the jobs list. In particular, a value of 0, or if the field isn't
5644      * set, all the jobs in the jobs list are from the original
5645      * (without broadening) query. If this field is non-zero, subsequent requests
5646      * with offset after this result set should contain all broadened results.
5647      * </pre>
5648      *
5649      * <code>int32 broadened_query_jobs_count = 8;</code>
5650      *
5651      * @return This builder for chaining.
5652      */
clearBroadenedQueryJobsCount()5653     public Builder clearBroadenedQueryJobsCount() {
5654       bitField0_ = (bitField0_ & ~0x00000040);
5655       broadenedQueryJobsCount_ = 0;
5656       onChanged();
5657       return this;
5658     }
5659 
5660     private com.google.cloud.talent.v4.SpellingCorrection spellCorrection_;
5661     private com.google.protobuf.SingleFieldBuilderV3<
5662             com.google.cloud.talent.v4.SpellingCorrection,
5663             com.google.cloud.talent.v4.SpellingCorrection.Builder,
5664             com.google.cloud.talent.v4.SpellingCorrectionOrBuilder>
5665         spellCorrectionBuilder_;
5666     /**
5667      *
5668      *
5669      * <pre>
5670      * The spell checking result, and correction.
5671      * </pre>
5672      *
5673      * <code>.google.cloud.talent.v4.SpellingCorrection spell_correction = 9;</code>
5674      *
5675      * @return Whether the spellCorrection field is set.
5676      */
hasSpellCorrection()5677     public boolean hasSpellCorrection() {
5678       return ((bitField0_ & 0x00000080) != 0);
5679     }
5680     /**
5681      *
5682      *
5683      * <pre>
5684      * The spell checking result, and correction.
5685      * </pre>
5686      *
5687      * <code>.google.cloud.talent.v4.SpellingCorrection spell_correction = 9;</code>
5688      *
5689      * @return The spellCorrection.
5690      */
getSpellCorrection()5691     public com.google.cloud.talent.v4.SpellingCorrection getSpellCorrection() {
5692       if (spellCorrectionBuilder_ == null) {
5693         return spellCorrection_ == null
5694             ? com.google.cloud.talent.v4.SpellingCorrection.getDefaultInstance()
5695             : spellCorrection_;
5696       } else {
5697         return spellCorrectionBuilder_.getMessage();
5698       }
5699     }
5700     /**
5701      *
5702      *
5703      * <pre>
5704      * The spell checking result, and correction.
5705      * </pre>
5706      *
5707      * <code>.google.cloud.talent.v4.SpellingCorrection spell_correction = 9;</code>
5708      */
setSpellCorrection(com.google.cloud.talent.v4.SpellingCorrection value)5709     public Builder setSpellCorrection(com.google.cloud.talent.v4.SpellingCorrection value) {
5710       if (spellCorrectionBuilder_ == null) {
5711         if (value == null) {
5712           throw new NullPointerException();
5713         }
5714         spellCorrection_ = value;
5715       } else {
5716         spellCorrectionBuilder_.setMessage(value);
5717       }
5718       bitField0_ |= 0x00000080;
5719       onChanged();
5720       return this;
5721     }
5722     /**
5723      *
5724      *
5725      * <pre>
5726      * The spell checking result, and correction.
5727      * </pre>
5728      *
5729      * <code>.google.cloud.talent.v4.SpellingCorrection spell_correction = 9;</code>
5730      */
setSpellCorrection( com.google.cloud.talent.v4.SpellingCorrection.Builder builderForValue)5731     public Builder setSpellCorrection(
5732         com.google.cloud.talent.v4.SpellingCorrection.Builder builderForValue) {
5733       if (spellCorrectionBuilder_ == null) {
5734         spellCorrection_ = builderForValue.build();
5735       } else {
5736         spellCorrectionBuilder_.setMessage(builderForValue.build());
5737       }
5738       bitField0_ |= 0x00000080;
5739       onChanged();
5740       return this;
5741     }
5742     /**
5743      *
5744      *
5745      * <pre>
5746      * The spell checking result, and correction.
5747      * </pre>
5748      *
5749      * <code>.google.cloud.talent.v4.SpellingCorrection spell_correction = 9;</code>
5750      */
mergeSpellCorrection(com.google.cloud.talent.v4.SpellingCorrection value)5751     public Builder mergeSpellCorrection(com.google.cloud.talent.v4.SpellingCorrection value) {
5752       if (spellCorrectionBuilder_ == null) {
5753         if (((bitField0_ & 0x00000080) != 0)
5754             && spellCorrection_ != null
5755             && spellCorrection_
5756                 != com.google.cloud.talent.v4.SpellingCorrection.getDefaultInstance()) {
5757           getSpellCorrectionBuilder().mergeFrom(value);
5758         } else {
5759           spellCorrection_ = value;
5760         }
5761       } else {
5762         spellCorrectionBuilder_.mergeFrom(value);
5763       }
5764       bitField0_ |= 0x00000080;
5765       onChanged();
5766       return this;
5767     }
5768     /**
5769      *
5770      *
5771      * <pre>
5772      * The spell checking result, and correction.
5773      * </pre>
5774      *
5775      * <code>.google.cloud.talent.v4.SpellingCorrection spell_correction = 9;</code>
5776      */
clearSpellCorrection()5777     public Builder clearSpellCorrection() {
5778       bitField0_ = (bitField0_ & ~0x00000080);
5779       spellCorrection_ = null;
5780       if (spellCorrectionBuilder_ != null) {
5781         spellCorrectionBuilder_.dispose();
5782         spellCorrectionBuilder_ = null;
5783       }
5784       onChanged();
5785       return this;
5786     }
5787     /**
5788      *
5789      *
5790      * <pre>
5791      * The spell checking result, and correction.
5792      * </pre>
5793      *
5794      * <code>.google.cloud.talent.v4.SpellingCorrection spell_correction = 9;</code>
5795      */
getSpellCorrectionBuilder()5796     public com.google.cloud.talent.v4.SpellingCorrection.Builder getSpellCorrectionBuilder() {
5797       bitField0_ |= 0x00000080;
5798       onChanged();
5799       return getSpellCorrectionFieldBuilder().getBuilder();
5800     }
5801     /**
5802      *
5803      *
5804      * <pre>
5805      * The spell checking result, and correction.
5806      * </pre>
5807      *
5808      * <code>.google.cloud.talent.v4.SpellingCorrection spell_correction = 9;</code>
5809      */
getSpellCorrectionOrBuilder()5810     public com.google.cloud.talent.v4.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder() {
5811       if (spellCorrectionBuilder_ != null) {
5812         return spellCorrectionBuilder_.getMessageOrBuilder();
5813       } else {
5814         return spellCorrection_ == null
5815             ? com.google.cloud.talent.v4.SpellingCorrection.getDefaultInstance()
5816             : spellCorrection_;
5817       }
5818     }
5819     /**
5820      *
5821      *
5822      * <pre>
5823      * The spell checking result, and correction.
5824      * </pre>
5825      *
5826      * <code>.google.cloud.talent.v4.SpellingCorrection spell_correction = 9;</code>
5827      */
5828     private com.google.protobuf.SingleFieldBuilderV3<
5829             com.google.cloud.talent.v4.SpellingCorrection,
5830             com.google.cloud.talent.v4.SpellingCorrection.Builder,
5831             com.google.cloud.talent.v4.SpellingCorrectionOrBuilder>
getSpellCorrectionFieldBuilder()5832         getSpellCorrectionFieldBuilder() {
5833       if (spellCorrectionBuilder_ == null) {
5834         spellCorrectionBuilder_ =
5835             new com.google.protobuf.SingleFieldBuilderV3<
5836                 com.google.cloud.talent.v4.SpellingCorrection,
5837                 com.google.cloud.talent.v4.SpellingCorrection.Builder,
5838                 com.google.cloud.talent.v4.SpellingCorrectionOrBuilder>(
5839                 getSpellCorrection(), getParentForChildren(), isClean());
5840         spellCorrection_ = null;
5841       }
5842       return spellCorrectionBuilder_;
5843     }
5844 
5845     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)5846     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
5847       return super.setUnknownFields(unknownFields);
5848     }
5849 
5850     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5851     public final Builder mergeUnknownFields(
5852         final com.google.protobuf.UnknownFieldSet unknownFields) {
5853       return super.mergeUnknownFields(unknownFields);
5854     }
5855 
5856     // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4.SearchJobsResponse)
5857   }
5858 
5859   // @@protoc_insertion_point(class_scope:google.cloud.talent.v4.SearchJobsResponse)
5860   private static final com.google.cloud.talent.v4.SearchJobsResponse DEFAULT_INSTANCE;
5861 
5862   static {
5863     DEFAULT_INSTANCE = new com.google.cloud.talent.v4.SearchJobsResponse();
5864   }
5865 
getDefaultInstance()5866   public static com.google.cloud.talent.v4.SearchJobsResponse getDefaultInstance() {
5867     return DEFAULT_INSTANCE;
5868   }
5869 
5870   private static final com.google.protobuf.Parser<SearchJobsResponse> PARSER =
5871       new com.google.protobuf.AbstractParser<SearchJobsResponse>() {
5872         @java.lang.Override
5873         public SearchJobsResponse parsePartialFrom(
5874             com.google.protobuf.CodedInputStream input,
5875             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5876             throws com.google.protobuf.InvalidProtocolBufferException {
5877           Builder builder = newBuilder();
5878           try {
5879             builder.mergeFrom(input, extensionRegistry);
5880           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5881             throw e.setUnfinishedMessage(builder.buildPartial());
5882           } catch (com.google.protobuf.UninitializedMessageException e) {
5883             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
5884           } catch (java.io.IOException e) {
5885             throw new com.google.protobuf.InvalidProtocolBufferException(e)
5886                 .setUnfinishedMessage(builder.buildPartial());
5887           }
5888           return builder.buildPartial();
5889         }
5890       };
5891 
parser()5892   public static com.google.protobuf.Parser<SearchJobsResponse> parser() {
5893     return PARSER;
5894   }
5895 
5896   @java.lang.Override
getParserForType()5897   public com.google.protobuf.Parser<SearchJobsResponse> getParserForType() {
5898     return PARSER;
5899   }
5900 
5901   @java.lang.Override
getDefaultInstanceForType()5902   public com.google.cloud.talent.v4.SearchJobsResponse getDefaultInstanceForType() {
5903     return DEFAULT_INSTANCE;
5904   }
5905 }
5906