• 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/event.proto
18 
19 package com.google.cloud.talent.v4;
20 
21 /**
22  *
23  *
24  * <pre>
25  * An event issued when a job seeker interacts with the application that
26  * implements Cloud Talent Solution.
27  * </pre>
28  *
29  * Protobuf type {@code google.cloud.talent.v4.JobEvent}
30  */
31 public final class JobEvent extends com.google.protobuf.GeneratedMessageV3
32     implements
33     // @@protoc_insertion_point(message_implements:google.cloud.talent.v4.JobEvent)
34     JobEventOrBuilder {
35   private static final long serialVersionUID = 0L;
36   // Use JobEvent.newBuilder() to construct.
JobEvent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37   private JobEvent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
JobEvent()41   private JobEvent() {
42     type_ = 0;
43     jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
44   }
45 
46   @java.lang.Override
47   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)48   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
49     return new JobEvent();
50   }
51 
52   @java.lang.Override
getUnknownFields()53   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
54     return this.unknownFields;
55   }
56 
getDescriptor()57   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
58     return com.google.cloud.talent.v4.EventProto
59         .internal_static_google_cloud_talent_v4_JobEvent_descriptor;
60   }
61 
62   @java.lang.Override
63   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()64       internalGetFieldAccessorTable() {
65     return com.google.cloud.talent.v4.EventProto
66         .internal_static_google_cloud_talent_v4_JobEvent_fieldAccessorTable
67         .ensureFieldAccessorsInitialized(
68             com.google.cloud.talent.v4.JobEvent.class,
69             com.google.cloud.talent.v4.JobEvent.Builder.class);
70   }
71 
72   /**
73    *
74    *
75    * <pre>
76    * An enumeration of an event attributed to the behavior of the end user,
77    * such as a job seeker.
78    * </pre>
79    *
80    * Protobuf enum {@code google.cloud.talent.v4.JobEvent.JobEventType}
81    */
82   public enum JobEventType implements com.google.protobuf.ProtocolMessageEnum {
83     /**
84      *
85      *
86      * <pre>
87      * The event is unspecified by other provided values.
88      * </pre>
89      *
90      * <code>JOB_EVENT_TYPE_UNSPECIFIED = 0;</code>
91      */
92     JOB_EVENT_TYPE_UNSPECIFIED(0),
93     /**
94      *
95      *
96      * <pre>
97      * The job seeker or other entity interacting with the service has
98      * had a job rendered in their view, such as in a list of search results in
99      * a compressed or clipped format. This event is typically associated with
100      * the viewing of a jobs list on a single page by a job seeker.
101      * </pre>
102      *
103      * <code>IMPRESSION = 1;</code>
104      */
105     IMPRESSION(1),
106     /**
107      *
108      *
109      * <pre>
110      * The job seeker, or other entity interacting with the service, has
111      * viewed the details of a job, including the full description. This
112      * event doesn't apply to the viewing a snippet of a job appearing as a
113      * part of the job search results. Viewing a snippet is associated with an
114      * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]).
115      * </pre>
116      *
117      * <code>VIEW = 2;</code>
118      */
119     VIEW(2),
120     /**
121      *
122      *
123      * <pre>
124      * The job seeker or other entity interacting with the service
125      * performed an action to view a job and was redirected to a different
126      * website for job.
127      * </pre>
128      *
129      * <code>VIEW_REDIRECT = 3;</code>
130      */
131     VIEW_REDIRECT(3),
132     /**
133      *
134      *
135      * <pre>
136      * The job seeker or other entity interacting with the service
137      * began the process or demonstrated the intention of applying for a job.
138      * </pre>
139      *
140      * <code>APPLICATION_START = 4;</code>
141      */
142     APPLICATION_START(4),
143     /**
144      *
145      *
146      * <pre>
147      * The job seeker or other entity interacting with the service
148      * submitted an application for a job.
149      * </pre>
150      *
151      * <code>APPLICATION_FINISH = 5;</code>
152      */
153     APPLICATION_FINISH(5),
154     /**
155      *
156      *
157      * <pre>
158      * The job seeker or other entity interacting with the service
159      * submitted an application for a job with a single click without
160      * entering information. If a job seeker performs this action, send only
161      * this event to the service. Do not also send
162      * [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START]
163      * or
164      * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
165      * events.
166      * </pre>
167      *
168      * <code>APPLICATION_QUICK_SUBMISSION = 6;</code>
169      */
170     APPLICATION_QUICK_SUBMISSION(6),
171     /**
172      *
173      *
174      * <pre>
175      * The job seeker or other entity interacting with the service
176      * performed an action to apply to a job and was redirected to a different
177      * website to complete the application.
178      * </pre>
179      *
180      * <code>APPLICATION_REDIRECT = 7;</code>
181      */
182     APPLICATION_REDIRECT(7),
183     /**
184      *
185      *
186      * <pre>
187      * The job seeker or other entity interacting with the service began the
188      * process or demonstrated the intention of applying for a job from the
189      * search results page without viewing the details of the job posting.
190      * If sending this event, JobEventType.VIEW event shouldn't be sent.
191      * </pre>
192      *
193      * <code>APPLICATION_START_FROM_SEARCH = 8;</code>
194      */
195     APPLICATION_START_FROM_SEARCH(8),
196     /**
197      *
198      *
199      * <pre>
200      * The job seeker, or other entity interacting with the service, performs an
201      * action with a single click from the search results page to apply to a job
202      * (without viewing the details of the job posting), and is redirected
203      * to a different website to complete the application. If a candidate
204      * performs this action, send only this event to the service. Do not also
205      * send
206      * [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START],
207      * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
208      * or [JobEventType.VIEW][google.cloud.talent.v4.JobEvent.JobEventType.VIEW]
209      * events.
210      * </pre>
211      *
212      * <code>APPLICATION_REDIRECT_FROM_SEARCH = 9;</code>
213      */
214     APPLICATION_REDIRECT_FROM_SEARCH(9),
215     /**
216      *
217      *
218      * <pre>
219      * This event should be used when a company submits an application
220      * on behalf of a job seeker. This event is intended for use by staffing
221      * agencies attempting to place candidates.
222      * </pre>
223      *
224      * <code>APPLICATION_COMPANY_SUBMIT = 10;</code>
225      */
226     APPLICATION_COMPANY_SUBMIT(10),
227     /**
228      *
229      *
230      * <pre>
231      * The job seeker or other entity interacting with the service demonstrated
232      * an interest in a job by bookmarking or saving it.
233      * </pre>
234      *
235      * <code>BOOKMARK = 11;</code>
236      */
237     BOOKMARK(11),
238     /**
239      *
240      *
241      * <pre>
242      * The job seeker or other entity interacting with the service was
243      * sent a notification, such as an email alert or device notification,
244      * containing one or more jobs listings generated by the service.
245      * </pre>
246      *
247      * <code>NOTIFICATION = 12;</code>
248      */
249     NOTIFICATION(12),
250     /**
251      *
252      *
253      * <pre>
254      * The job seeker or other entity interacting with the service was
255      * employed by the hiring entity (employer). Send this event
256      * only if the job seeker was hired through an application that was
257      * initiated by a search conducted through the Cloud Talent Solution
258      * service.
259      * </pre>
260      *
261      * <code>HIRED = 13;</code>
262      */
263     HIRED(13),
264     /**
265      *
266      *
267      * <pre>
268      * A recruiter or staffing agency submitted an application on behalf of the
269      * candidate after interacting with the service to identify a suitable job
270      * posting.
271      * </pre>
272      *
273      * <code>SENT_CV = 14;</code>
274      */
275     SENT_CV(14),
276     /**
277      *
278      *
279      * <pre>
280      * The entity interacting with the service (for example, the job seeker),
281      * was granted an initial interview by the hiring entity (employer). This
282      * event should only be sent if the job seeker was granted an interview as
283      * part of an application that was initiated by a search conducted through /
284      * recommendation provided by the Cloud Talent Solution service.
285      * </pre>
286      *
287      * <code>INTERVIEW_GRANTED = 15;</code>
288      */
289     INTERVIEW_GRANTED(15),
290     UNRECOGNIZED(-1),
291     ;
292 
293     /**
294      *
295      *
296      * <pre>
297      * The event is unspecified by other provided values.
298      * </pre>
299      *
300      * <code>JOB_EVENT_TYPE_UNSPECIFIED = 0;</code>
301      */
302     public static final int JOB_EVENT_TYPE_UNSPECIFIED_VALUE = 0;
303     /**
304      *
305      *
306      * <pre>
307      * The job seeker or other entity interacting with the service has
308      * had a job rendered in their view, such as in a list of search results in
309      * a compressed or clipped format. This event is typically associated with
310      * the viewing of a jobs list on a single page by a job seeker.
311      * </pre>
312      *
313      * <code>IMPRESSION = 1;</code>
314      */
315     public static final int IMPRESSION_VALUE = 1;
316     /**
317      *
318      *
319      * <pre>
320      * The job seeker, or other entity interacting with the service, has
321      * viewed the details of a job, including the full description. This
322      * event doesn't apply to the viewing a snippet of a job appearing as a
323      * part of the job search results. Viewing a snippet is associated with an
324      * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]).
325      * </pre>
326      *
327      * <code>VIEW = 2;</code>
328      */
329     public static final int VIEW_VALUE = 2;
330     /**
331      *
332      *
333      * <pre>
334      * The job seeker or other entity interacting with the service
335      * performed an action to view a job and was redirected to a different
336      * website for job.
337      * </pre>
338      *
339      * <code>VIEW_REDIRECT = 3;</code>
340      */
341     public static final int VIEW_REDIRECT_VALUE = 3;
342     /**
343      *
344      *
345      * <pre>
346      * The job seeker or other entity interacting with the service
347      * began the process or demonstrated the intention of applying for a job.
348      * </pre>
349      *
350      * <code>APPLICATION_START = 4;</code>
351      */
352     public static final int APPLICATION_START_VALUE = 4;
353     /**
354      *
355      *
356      * <pre>
357      * The job seeker or other entity interacting with the service
358      * submitted an application for a job.
359      * </pre>
360      *
361      * <code>APPLICATION_FINISH = 5;</code>
362      */
363     public static final int APPLICATION_FINISH_VALUE = 5;
364     /**
365      *
366      *
367      * <pre>
368      * The job seeker or other entity interacting with the service
369      * submitted an application for a job with a single click without
370      * entering information. If a job seeker performs this action, send only
371      * this event to the service. Do not also send
372      * [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START]
373      * or
374      * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
375      * events.
376      * </pre>
377      *
378      * <code>APPLICATION_QUICK_SUBMISSION = 6;</code>
379      */
380     public static final int APPLICATION_QUICK_SUBMISSION_VALUE = 6;
381     /**
382      *
383      *
384      * <pre>
385      * The job seeker or other entity interacting with the service
386      * performed an action to apply to a job and was redirected to a different
387      * website to complete the application.
388      * </pre>
389      *
390      * <code>APPLICATION_REDIRECT = 7;</code>
391      */
392     public static final int APPLICATION_REDIRECT_VALUE = 7;
393     /**
394      *
395      *
396      * <pre>
397      * The job seeker or other entity interacting with the service began the
398      * process or demonstrated the intention of applying for a job from the
399      * search results page without viewing the details of the job posting.
400      * If sending this event, JobEventType.VIEW event shouldn't be sent.
401      * </pre>
402      *
403      * <code>APPLICATION_START_FROM_SEARCH = 8;</code>
404      */
405     public static final int APPLICATION_START_FROM_SEARCH_VALUE = 8;
406     /**
407      *
408      *
409      * <pre>
410      * The job seeker, or other entity interacting with the service, performs an
411      * action with a single click from the search results page to apply to a job
412      * (without viewing the details of the job posting), and is redirected
413      * to a different website to complete the application. If a candidate
414      * performs this action, send only this event to the service. Do not also
415      * send
416      * [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START],
417      * [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
418      * or [JobEventType.VIEW][google.cloud.talent.v4.JobEvent.JobEventType.VIEW]
419      * events.
420      * </pre>
421      *
422      * <code>APPLICATION_REDIRECT_FROM_SEARCH = 9;</code>
423      */
424     public static final int APPLICATION_REDIRECT_FROM_SEARCH_VALUE = 9;
425     /**
426      *
427      *
428      * <pre>
429      * This event should be used when a company submits an application
430      * on behalf of a job seeker. This event is intended for use by staffing
431      * agencies attempting to place candidates.
432      * </pre>
433      *
434      * <code>APPLICATION_COMPANY_SUBMIT = 10;</code>
435      */
436     public static final int APPLICATION_COMPANY_SUBMIT_VALUE = 10;
437     /**
438      *
439      *
440      * <pre>
441      * The job seeker or other entity interacting with the service demonstrated
442      * an interest in a job by bookmarking or saving it.
443      * </pre>
444      *
445      * <code>BOOKMARK = 11;</code>
446      */
447     public static final int BOOKMARK_VALUE = 11;
448     /**
449      *
450      *
451      * <pre>
452      * The job seeker or other entity interacting with the service was
453      * sent a notification, such as an email alert or device notification,
454      * containing one or more jobs listings generated by the service.
455      * </pre>
456      *
457      * <code>NOTIFICATION = 12;</code>
458      */
459     public static final int NOTIFICATION_VALUE = 12;
460     /**
461      *
462      *
463      * <pre>
464      * The job seeker or other entity interacting with the service was
465      * employed by the hiring entity (employer). Send this event
466      * only if the job seeker was hired through an application that was
467      * initiated by a search conducted through the Cloud Talent Solution
468      * service.
469      * </pre>
470      *
471      * <code>HIRED = 13;</code>
472      */
473     public static final int HIRED_VALUE = 13;
474     /**
475      *
476      *
477      * <pre>
478      * A recruiter or staffing agency submitted an application on behalf of the
479      * candidate after interacting with the service to identify a suitable job
480      * posting.
481      * </pre>
482      *
483      * <code>SENT_CV = 14;</code>
484      */
485     public static final int SENT_CV_VALUE = 14;
486     /**
487      *
488      *
489      * <pre>
490      * The entity interacting with the service (for example, the job seeker),
491      * was granted an initial interview by the hiring entity (employer). This
492      * event should only be sent if the job seeker was granted an interview as
493      * part of an application that was initiated by a search conducted through /
494      * recommendation provided by the Cloud Talent Solution service.
495      * </pre>
496      *
497      * <code>INTERVIEW_GRANTED = 15;</code>
498      */
499     public static final int INTERVIEW_GRANTED_VALUE = 15;
500 
getNumber()501     public final int getNumber() {
502       if (this == UNRECOGNIZED) {
503         throw new java.lang.IllegalArgumentException(
504             "Can't get the number of an unknown enum value.");
505       }
506       return value;
507     }
508 
509     /**
510      * @param value The numeric wire value of the corresponding enum entry.
511      * @return The enum associated with the given numeric wire value.
512      * @deprecated Use {@link #forNumber(int)} instead.
513      */
514     @java.lang.Deprecated
valueOf(int value)515     public static JobEventType valueOf(int value) {
516       return forNumber(value);
517     }
518 
519     /**
520      * @param value The numeric wire value of the corresponding enum entry.
521      * @return The enum associated with the given numeric wire value.
522      */
forNumber(int value)523     public static JobEventType forNumber(int value) {
524       switch (value) {
525         case 0:
526           return JOB_EVENT_TYPE_UNSPECIFIED;
527         case 1:
528           return IMPRESSION;
529         case 2:
530           return VIEW;
531         case 3:
532           return VIEW_REDIRECT;
533         case 4:
534           return APPLICATION_START;
535         case 5:
536           return APPLICATION_FINISH;
537         case 6:
538           return APPLICATION_QUICK_SUBMISSION;
539         case 7:
540           return APPLICATION_REDIRECT;
541         case 8:
542           return APPLICATION_START_FROM_SEARCH;
543         case 9:
544           return APPLICATION_REDIRECT_FROM_SEARCH;
545         case 10:
546           return APPLICATION_COMPANY_SUBMIT;
547         case 11:
548           return BOOKMARK;
549         case 12:
550           return NOTIFICATION;
551         case 13:
552           return HIRED;
553         case 14:
554           return SENT_CV;
555         case 15:
556           return INTERVIEW_GRANTED;
557         default:
558           return null;
559       }
560     }
561 
internalGetValueMap()562     public static com.google.protobuf.Internal.EnumLiteMap<JobEventType> internalGetValueMap() {
563       return internalValueMap;
564     }
565 
566     private static final com.google.protobuf.Internal.EnumLiteMap<JobEventType> internalValueMap =
567         new com.google.protobuf.Internal.EnumLiteMap<JobEventType>() {
568           public JobEventType findValueByNumber(int number) {
569             return JobEventType.forNumber(number);
570           }
571         };
572 
getValueDescriptor()573     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
574       if (this == UNRECOGNIZED) {
575         throw new java.lang.IllegalStateException(
576             "Can't get the descriptor of an unrecognized enum value.");
577       }
578       return getDescriptor().getValues().get(ordinal());
579     }
580 
getDescriptorForType()581     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
582       return getDescriptor();
583     }
584 
getDescriptor()585     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
586       return com.google.cloud.talent.v4.JobEvent.getDescriptor().getEnumTypes().get(0);
587     }
588 
589     private static final JobEventType[] VALUES = values();
590 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)591     public static JobEventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
592       if (desc.getType() != getDescriptor()) {
593         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
594       }
595       if (desc.getIndex() == -1) {
596         return UNRECOGNIZED;
597       }
598       return VALUES[desc.getIndex()];
599     }
600 
601     private final int value;
602 
JobEventType(int value)603     private JobEventType(int value) {
604       this.value = value;
605     }
606 
607     // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4.JobEvent.JobEventType)
608   }
609 
610   public static final int TYPE_FIELD_NUMBER = 1;
611   private int type_ = 0;
612   /**
613    *
614    *
615    * <pre>
616    * Required. The type of the event (see
617    * [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
618    * </pre>
619    *
620    * <code>
621    * .google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];
622    * </code>
623    *
624    * @return The enum numeric value on the wire for type.
625    */
626   @java.lang.Override
getTypeValue()627   public int getTypeValue() {
628     return type_;
629   }
630   /**
631    *
632    *
633    * <pre>
634    * Required. The type of the event (see
635    * [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
636    * </pre>
637    *
638    * <code>
639    * .google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];
640    * </code>
641    *
642    * @return The type.
643    */
644   @java.lang.Override
getType()645   public com.google.cloud.talent.v4.JobEvent.JobEventType getType() {
646     com.google.cloud.talent.v4.JobEvent.JobEventType result =
647         com.google.cloud.talent.v4.JobEvent.JobEventType.forNumber(type_);
648     return result == null ? com.google.cloud.talent.v4.JobEvent.JobEventType.UNRECOGNIZED : result;
649   }
650 
651   public static final int JOBS_FIELD_NUMBER = 2;
652 
653   @SuppressWarnings("serial")
654   private com.google.protobuf.LazyStringList jobs_;
655   /**
656    *
657    *
658    * <pre>
659    * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
660    * with this event. For example, if this is an
661    * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
662    * event, this field contains the identifiers of all jobs shown to the job
663    * seeker. If this was a
664    * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
665    * contains the identifier of the viewed job.
666    * The format is
667    * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
668    * example, "projects/foo/tenants/bar/jobs/baz".
669    * </pre>
670    *
671    * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
672    *
673    * @return A list containing the jobs.
674    */
getJobsList()675   public com.google.protobuf.ProtocolStringList getJobsList() {
676     return jobs_;
677   }
678   /**
679    *
680    *
681    * <pre>
682    * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
683    * with this event. For example, if this is an
684    * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
685    * event, this field contains the identifiers of all jobs shown to the job
686    * seeker. If this was a
687    * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
688    * contains the identifier of the viewed job.
689    * The format is
690    * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
691    * example, "projects/foo/tenants/bar/jobs/baz".
692    * </pre>
693    *
694    * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
695    *
696    * @return The count of jobs.
697    */
getJobsCount()698   public int getJobsCount() {
699     return jobs_.size();
700   }
701   /**
702    *
703    *
704    * <pre>
705    * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
706    * with this event. For example, if this is an
707    * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
708    * event, this field contains the identifiers of all jobs shown to the job
709    * seeker. If this was a
710    * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
711    * contains the identifier of the viewed job.
712    * The format is
713    * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
714    * example, "projects/foo/tenants/bar/jobs/baz".
715    * </pre>
716    *
717    * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
718    *
719    * @param index The index of the element to return.
720    * @return The jobs at the given index.
721    */
getJobs(int index)722   public java.lang.String getJobs(int index) {
723     return jobs_.get(index);
724   }
725   /**
726    *
727    *
728    * <pre>
729    * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
730    * with this event. For example, if this is an
731    * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
732    * event, this field contains the identifiers of all jobs shown to the job
733    * seeker. If this was a
734    * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
735    * contains the identifier of the viewed job.
736    * The format is
737    * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
738    * example, "projects/foo/tenants/bar/jobs/baz".
739    * </pre>
740    *
741    * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
742    *
743    * @param index The index of the value to return.
744    * @return The bytes of the jobs at the given index.
745    */
getJobsBytes(int index)746   public com.google.protobuf.ByteString getJobsBytes(int index) {
747     return jobs_.getByteString(index);
748   }
749 
750   private byte memoizedIsInitialized = -1;
751 
752   @java.lang.Override
isInitialized()753   public final boolean isInitialized() {
754     byte isInitialized = memoizedIsInitialized;
755     if (isInitialized == 1) return true;
756     if (isInitialized == 0) return false;
757 
758     memoizedIsInitialized = 1;
759     return true;
760   }
761 
762   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)763   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
764     if (type_
765         != com.google.cloud.talent.v4.JobEvent.JobEventType.JOB_EVENT_TYPE_UNSPECIFIED
766             .getNumber()) {
767       output.writeEnum(1, type_);
768     }
769     for (int i = 0; i < jobs_.size(); i++) {
770       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobs_.getRaw(i));
771     }
772     getUnknownFields().writeTo(output);
773   }
774 
775   @java.lang.Override
getSerializedSize()776   public int getSerializedSize() {
777     int size = memoizedSize;
778     if (size != -1) return size;
779 
780     size = 0;
781     if (type_
782         != com.google.cloud.talent.v4.JobEvent.JobEventType.JOB_EVENT_TYPE_UNSPECIFIED
783             .getNumber()) {
784       size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
785     }
786     {
787       int dataSize = 0;
788       for (int i = 0; i < jobs_.size(); i++) {
789         dataSize += computeStringSizeNoTag(jobs_.getRaw(i));
790       }
791       size += dataSize;
792       size += 1 * getJobsList().size();
793     }
794     size += getUnknownFields().getSerializedSize();
795     memoizedSize = size;
796     return size;
797   }
798 
799   @java.lang.Override
equals(final java.lang.Object obj)800   public boolean equals(final java.lang.Object obj) {
801     if (obj == this) {
802       return true;
803     }
804     if (!(obj instanceof com.google.cloud.talent.v4.JobEvent)) {
805       return super.equals(obj);
806     }
807     com.google.cloud.talent.v4.JobEvent other = (com.google.cloud.talent.v4.JobEvent) obj;
808 
809     if (type_ != other.type_) return false;
810     if (!getJobsList().equals(other.getJobsList())) return false;
811     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
812     return true;
813   }
814 
815   @java.lang.Override
hashCode()816   public int hashCode() {
817     if (memoizedHashCode != 0) {
818       return memoizedHashCode;
819     }
820     int hash = 41;
821     hash = (19 * hash) + getDescriptor().hashCode();
822     hash = (37 * hash) + TYPE_FIELD_NUMBER;
823     hash = (53 * hash) + type_;
824     if (getJobsCount() > 0) {
825       hash = (37 * hash) + JOBS_FIELD_NUMBER;
826       hash = (53 * hash) + getJobsList().hashCode();
827     }
828     hash = (29 * hash) + getUnknownFields().hashCode();
829     memoizedHashCode = hash;
830     return hash;
831   }
832 
parseFrom(java.nio.ByteBuffer data)833   public static com.google.cloud.talent.v4.JobEvent parseFrom(java.nio.ByteBuffer data)
834       throws com.google.protobuf.InvalidProtocolBufferException {
835     return PARSER.parseFrom(data);
836   }
837 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)838   public static com.google.cloud.talent.v4.JobEvent parseFrom(
839       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
840       throws com.google.protobuf.InvalidProtocolBufferException {
841     return PARSER.parseFrom(data, extensionRegistry);
842   }
843 
parseFrom(com.google.protobuf.ByteString data)844   public static com.google.cloud.talent.v4.JobEvent parseFrom(com.google.protobuf.ByteString data)
845       throws com.google.protobuf.InvalidProtocolBufferException {
846     return PARSER.parseFrom(data);
847   }
848 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)849   public static com.google.cloud.talent.v4.JobEvent parseFrom(
850       com.google.protobuf.ByteString data,
851       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
852       throws com.google.protobuf.InvalidProtocolBufferException {
853     return PARSER.parseFrom(data, extensionRegistry);
854   }
855 
parseFrom(byte[] data)856   public static com.google.cloud.talent.v4.JobEvent parseFrom(byte[] data)
857       throws com.google.protobuf.InvalidProtocolBufferException {
858     return PARSER.parseFrom(data);
859   }
860 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)861   public static com.google.cloud.talent.v4.JobEvent parseFrom(
862       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
863       throws com.google.protobuf.InvalidProtocolBufferException {
864     return PARSER.parseFrom(data, extensionRegistry);
865   }
866 
parseFrom(java.io.InputStream input)867   public static com.google.cloud.talent.v4.JobEvent parseFrom(java.io.InputStream input)
868       throws java.io.IOException {
869     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
870   }
871 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)872   public static com.google.cloud.talent.v4.JobEvent parseFrom(
873       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
874       throws java.io.IOException {
875     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
876         PARSER, input, extensionRegistry);
877   }
878 
parseDelimitedFrom(java.io.InputStream input)879   public static com.google.cloud.talent.v4.JobEvent parseDelimitedFrom(java.io.InputStream input)
880       throws java.io.IOException {
881     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
882   }
883 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)884   public static com.google.cloud.talent.v4.JobEvent parseDelimitedFrom(
885       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
886       throws java.io.IOException {
887     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
888         PARSER, input, extensionRegistry);
889   }
890 
parseFrom( com.google.protobuf.CodedInputStream input)891   public static com.google.cloud.talent.v4.JobEvent parseFrom(
892       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
893     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
894   }
895 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)896   public static com.google.cloud.talent.v4.JobEvent parseFrom(
897       com.google.protobuf.CodedInputStream input,
898       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
899       throws java.io.IOException {
900     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
901         PARSER, input, extensionRegistry);
902   }
903 
904   @java.lang.Override
newBuilderForType()905   public Builder newBuilderForType() {
906     return newBuilder();
907   }
908 
newBuilder()909   public static Builder newBuilder() {
910     return DEFAULT_INSTANCE.toBuilder();
911   }
912 
newBuilder(com.google.cloud.talent.v4.JobEvent prototype)913   public static Builder newBuilder(com.google.cloud.talent.v4.JobEvent prototype) {
914     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
915   }
916 
917   @java.lang.Override
toBuilder()918   public Builder toBuilder() {
919     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
920   }
921 
922   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)923   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
924     Builder builder = new Builder(parent);
925     return builder;
926   }
927   /**
928    *
929    *
930    * <pre>
931    * An event issued when a job seeker interacts with the application that
932    * implements Cloud Talent Solution.
933    * </pre>
934    *
935    * Protobuf type {@code google.cloud.talent.v4.JobEvent}
936    */
937   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
938       implements
939       // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4.JobEvent)
940       com.google.cloud.talent.v4.JobEventOrBuilder {
getDescriptor()941     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
942       return com.google.cloud.talent.v4.EventProto
943           .internal_static_google_cloud_talent_v4_JobEvent_descriptor;
944     }
945 
946     @java.lang.Override
947     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()948         internalGetFieldAccessorTable() {
949       return com.google.cloud.talent.v4.EventProto
950           .internal_static_google_cloud_talent_v4_JobEvent_fieldAccessorTable
951           .ensureFieldAccessorsInitialized(
952               com.google.cloud.talent.v4.JobEvent.class,
953               com.google.cloud.talent.v4.JobEvent.Builder.class);
954     }
955 
956     // Construct using com.google.cloud.talent.v4.JobEvent.newBuilder()
Builder()957     private Builder() {}
958 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)959     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
960       super(parent);
961     }
962 
963     @java.lang.Override
clear()964     public Builder clear() {
965       super.clear();
966       bitField0_ = 0;
967       type_ = 0;
968       jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
969       bitField0_ = (bitField0_ & ~0x00000002);
970       return this;
971     }
972 
973     @java.lang.Override
getDescriptorForType()974     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
975       return com.google.cloud.talent.v4.EventProto
976           .internal_static_google_cloud_talent_v4_JobEvent_descriptor;
977     }
978 
979     @java.lang.Override
getDefaultInstanceForType()980     public com.google.cloud.talent.v4.JobEvent getDefaultInstanceForType() {
981       return com.google.cloud.talent.v4.JobEvent.getDefaultInstance();
982     }
983 
984     @java.lang.Override
build()985     public com.google.cloud.talent.v4.JobEvent build() {
986       com.google.cloud.talent.v4.JobEvent result = buildPartial();
987       if (!result.isInitialized()) {
988         throw newUninitializedMessageException(result);
989       }
990       return result;
991     }
992 
993     @java.lang.Override
buildPartial()994     public com.google.cloud.talent.v4.JobEvent buildPartial() {
995       com.google.cloud.talent.v4.JobEvent result = new com.google.cloud.talent.v4.JobEvent(this);
996       buildPartialRepeatedFields(result);
997       if (bitField0_ != 0) {
998         buildPartial0(result);
999       }
1000       onBuilt();
1001       return result;
1002     }
1003 
buildPartialRepeatedFields(com.google.cloud.talent.v4.JobEvent result)1004     private void buildPartialRepeatedFields(com.google.cloud.talent.v4.JobEvent result) {
1005       if (((bitField0_ & 0x00000002) != 0)) {
1006         jobs_ = jobs_.getUnmodifiableView();
1007         bitField0_ = (bitField0_ & ~0x00000002);
1008       }
1009       result.jobs_ = jobs_;
1010     }
1011 
buildPartial0(com.google.cloud.talent.v4.JobEvent result)1012     private void buildPartial0(com.google.cloud.talent.v4.JobEvent result) {
1013       int from_bitField0_ = bitField0_;
1014       if (((from_bitField0_ & 0x00000001) != 0)) {
1015         result.type_ = type_;
1016       }
1017     }
1018 
1019     @java.lang.Override
clone()1020     public Builder clone() {
1021       return super.clone();
1022     }
1023 
1024     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1025     public Builder setField(
1026         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1027       return super.setField(field, value);
1028     }
1029 
1030     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1031     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1032       return super.clearField(field);
1033     }
1034 
1035     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1036     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1037       return super.clearOneof(oneof);
1038     }
1039 
1040     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1041     public Builder setRepeatedField(
1042         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1043       return super.setRepeatedField(field, index, value);
1044     }
1045 
1046     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1047     public Builder addRepeatedField(
1048         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1049       return super.addRepeatedField(field, value);
1050     }
1051 
1052     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1053     public Builder mergeFrom(com.google.protobuf.Message other) {
1054       if (other instanceof com.google.cloud.talent.v4.JobEvent) {
1055         return mergeFrom((com.google.cloud.talent.v4.JobEvent) other);
1056       } else {
1057         super.mergeFrom(other);
1058         return this;
1059       }
1060     }
1061 
mergeFrom(com.google.cloud.talent.v4.JobEvent other)1062     public Builder mergeFrom(com.google.cloud.talent.v4.JobEvent other) {
1063       if (other == com.google.cloud.talent.v4.JobEvent.getDefaultInstance()) return this;
1064       if (other.type_ != 0) {
1065         setTypeValue(other.getTypeValue());
1066       }
1067       if (!other.jobs_.isEmpty()) {
1068         if (jobs_.isEmpty()) {
1069           jobs_ = other.jobs_;
1070           bitField0_ = (bitField0_ & ~0x00000002);
1071         } else {
1072           ensureJobsIsMutable();
1073           jobs_.addAll(other.jobs_);
1074         }
1075         onChanged();
1076       }
1077       this.mergeUnknownFields(other.getUnknownFields());
1078       onChanged();
1079       return this;
1080     }
1081 
1082     @java.lang.Override
isInitialized()1083     public final boolean isInitialized() {
1084       return true;
1085     }
1086 
1087     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1088     public Builder mergeFrom(
1089         com.google.protobuf.CodedInputStream input,
1090         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1091         throws java.io.IOException {
1092       if (extensionRegistry == null) {
1093         throw new java.lang.NullPointerException();
1094       }
1095       try {
1096         boolean done = false;
1097         while (!done) {
1098           int tag = input.readTag();
1099           switch (tag) {
1100             case 0:
1101               done = true;
1102               break;
1103             case 8:
1104               {
1105                 type_ = input.readEnum();
1106                 bitField0_ |= 0x00000001;
1107                 break;
1108               } // case 8
1109             case 18:
1110               {
1111                 java.lang.String s = input.readStringRequireUtf8();
1112                 ensureJobsIsMutable();
1113                 jobs_.add(s);
1114                 break;
1115               } // case 18
1116             default:
1117               {
1118                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1119                   done = true; // was an endgroup tag
1120                 }
1121                 break;
1122               } // default:
1123           } // switch (tag)
1124         } // while (!done)
1125       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1126         throw e.unwrapIOException();
1127       } finally {
1128         onChanged();
1129       } // finally
1130       return this;
1131     }
1132 
1133     private int bitField0_;
1134 
1135     private int type_ = 0;
1136     /**
1137      *
1138      *
1139      * <pre>
1140      * Required. The type of the event (see
1141      * [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
1142      * </pre>
1143      *
1144      * <code>
1145      * .google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];
1146      * </code>
1147      *
1148      * @return The enum numeric value on the wire for type.
1149      */
1150     @java.lang.Override
getTypeValue()1151     public int getTypeValue() {
1152       return type_;
1153     }
1154     /**
1155      *
1156      *
1157      * <pre>
1158      * Required. The type of the event (see
1159      * [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
1160      * </pre>
1161      *
1162      * <code>
1163      * .google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];
1164      * </code>
1165      *
1166      * @param value The enum numeric value on the wire for type to set.
1167      * @return This builder for chaining.
1168      */
setTypeValue(int value)1169     public Builder setTypeValue(int value) {
1170       type_ = value;
1171       bitField0_ |= 0x00000001;
1172       onChanged();
1173       return this;
1174     }
1175     /**
1176      *
1177      *
1178      * <pre>
1179      * Required. The type of the event (see
1180      * [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
1181      * </pre>
1182      *
1183      * <code>
1184      * .google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];
1185      * </code>
1186      *
1187      * @return The type.
1188      */
1189     @java.lang.Override
getType()1190     public com.google.cloud.talent.v4.JobEvent.JobEventType getType() {
1191       com.google.cloud.talent.v4.JobEvent.JobEventType result =
1192           com.google.cloud.talent.v4.JobEvent.JobEventType.forNumber(type_);
1193       return result == null
1194           ? com.google.cloud.talent.v4.JobEvent.JobEventType.UNRECOGNIZED
1195           : result;
1196     }
1197     /**
1198      *
1199      *
1200      * <pre>
1201      * Required. The type of the event (see
1202      * [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
1203      * </pre>
1204      *
1205      * <code>
1206      * .google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];
1207      * </code>
1208      *
1209      * @param value The type to set.
1210      * @return This builder for chaining.
1211      */
setType(com.google.cloud.talent.v4.JobEvent.JobEventType value)1212     public Builder setType(com.google.cloud.talent.v4.JobEvent.JobEventType value) {
1213       if (value == null) {
1214         throw new NullPointerException();
1215       }
1216       bitField0_ |= 0x00000001;
1217       type_ = value.getNumber();
1218       onChanged();
1219       return this;
1220     }
1221     /**
1222      *
1223      *
1224      * <pre>
1225      * Required. The type of the event (see
1226      * [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
1227      * </pre>
1228      *
1229      * <code>
1230      * .google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];
1231      * </code>
1232      *
1233      * @return This builder for chaining.
1234      */
clearType()1235     public Builder clearType() {
1236       bitField0_ = (bitField0_ & ~0x00000001);
1237       type_ = 0;
1238       onChanged();
1239       return this;
1240     }
1241 
1242     private com.google.protobuf.LazyStringList jobs_ =
1243         com.google.protobuf.LazyStringArrayList.EMPTY;
1244 
ensureJobsIsMutable()1245     private void ensureJobsIsMutable() {
1246       if (!((bitField0_ & 0x00000002) != 0)) {
1247         jobs_ = new com.google.protobuf.LazyStringArrayList(jobs_);
1248         bitField0_ |= 0x00000002;
1249       }
1250     }
1251     /**
1252      *
1253      *
1254      * <pre>
1255      * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
1256      * with this event. For example, if this is an
1257      * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
1258      * event, this field contains the identifiers of all jobs shown to the job
1259      * seeker. If this was a
1260      * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
1261      * contains the identifier of the viewed job.
1262      * The format is
1263      * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
1264      * example, "projects/foo/tenants/bar/jobs/baz".
1265      * </pre>
1266      *
1267      * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1268      *
1269      * @return A list containing the jobs.
1270      */
getJobsList()1271     public com.google.protobuf.ProtocolStringList getJobsList() {
1272       return jobs_.getUnmodifiableView();
1273     }
1274     /**
1275      *
1276      *
1277      * <pre>
1278      * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
1279      * with this event. For example, if this is an
1280      * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
1281      * event, this field contains the identifiers of all jobs shown to the job
1282      * seeker. If this was a
1283      * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
1284      * contains the identifier of the viewed job.
1285      * The format is
1286      * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
1287      * example, "projects/foo/tenants/bar/jobs/baz".
1288      * </pre>
1289      *
1290      * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1291      *
1292      * @return The count of jobs.
1293      */
getJobsCount()1294     public int getJobsCount() {
1295       return jobs_.size();
1296     }
1297     /**
1298      *
1299      *
1300      * <pre>
1301      * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
1302      * with this event. For example, if this is an
1303      * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
1304      * event, this field contains the identifiers of all jobs shown to the job
1305      * seeker. If this was a
1306      * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
1307      * contains the identifier of the viewed job.
1308      * The format is
1309      * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
1310      * example, "projects/foo/tenants/bar/jobs/baz".
1311      * </pre>
1312      *
1313      * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1314      *
1315      * @param index The index of the element to return.
1316      * @return The jobs at the given index.
1317      */
getJobs(int index)1318     public java.lang.String getJobs(int index) {
1319       return jobs_.get(index);
1320     }
1321     /**
1322      *
1323      *
1324      * <pre>
1325      * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
1326      * with this event. For example, if this is an
1327      * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
1328      * event, this field contains the identifiers of all jobs shown to the job
1329      * seeker. If this was a
1330      * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
1331      * contains the identifier of the viewed job.
1332      * The format is
1333      * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
1334      * example, "projects/foo/tenants/bar/jobs/baz".
1335      * </pre>
1336      *
1337      * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1338      *
1339      * @param index The index of the value to return.
1340      * @return The bytes of the jobs at the given index.
1341      */
getJobsBytes(int index)1342     public com.google.protobuf.ByteString getJobsBytes(int index) {
1343       return jobs_.getByteString(index);
1344     }
1345     /**
1346      *
1347      *
1348      * <pre>
1349      * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
1350      * with this event. For example, if this is an
1351      * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
1352      * event, this field contains the identifiers of all jobs shown to the job
1353      * seeker. If this was a
1354      * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
1355      * contains the identifier of the viewed job.
1356      * The format is
1357      * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
1358      * example, "projects/foo/tenants/bar/jobs/baz".
1359      * </pre>
1360      *
1361      * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1362      *
1363      * @param index The index to set the value at.
1364      * @param value The jobs to set.
1365      * @return This builder for chaining.
1366      */
setJobs(int index, java.lang.String value)1367     public Builder setJobs(int index, java.lang.String value) {
1368       if (value == null) {
1369         throw new NullPointerException();
1370       }
1371       ensureJobsIsMutable();
1372       jobs_.set(index, value);
1373       onChanged();
1374       return this;
1375     }
1376     /**
1377      *
1378      *
1379      * <pre>
1380      * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
1381      * with this event. For example, if this is an
1382      * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
1383      * event, this field contains the identifiers of all jobs shown to the job
1384      * seeker. If this was a
1385      * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
1386      * contains the identifier of the viewed job.
1387      * The format is
1388      * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
1389      * example, "projects/foo/tenants/bar/jobs/baz".
1390      * </pre>
1391      *
1392      * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1393      *
1394      * @param value The jobs to add.
1395      * @return This builder for chaining.
1396      */
addJobs(java.lang.String value)1397     public Builder addJobs(java.lang.String value) {
1398       if (value == null) {
1399         throw new NullPointerException();
1400       }
1401       ensureJobsIsMutable();
1402       jobs_.add(value);
1403       onChanged();
1404       return this;
1405     }
1406     /**
1407      *
1408      *
1409      * <pre>
1410      * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
1411      * with this event. For example, if this is an
1412      * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
1413      * event, this field contains the identifiers of all jobs shown to the job
1414      * seeker. If this was a
1415      * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
1416      * contains the identifier of the viewed job.
1417      * The format is
1418      * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
1419      * example, "projects/foo/tenants/bar/jobs/baz".
1420      * </pre>
1421      *
1422      * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1423      *
1424      * @param values The jobs to add.
1425      * @return This builder for chaining.
1426      */
addAllJobs(java.lang.Iterable<java.lang.String> values)1427     public Builder addAllJobs(java.lang.Iterable<java.lang.String> values) {
1428       ensureJobsIsMutable();
1429       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_);
1430       onChanged();
1431       return this;
1432     }
1433     /**
1434      *
1435      *
1436      * <pre>
1437      * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
1438      * with this event. For example, if this is an
1439      * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
1440      * event, this field contains the identifiers of all jobs shown to the job
1441      * seeker. If this was a
1442      * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
1443      * contains the identifier of the viewed job.
1444      * The format is
1445      * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
1446      * example, "projects/foo/tenants/bar/jobs/baz".
1447      * </pre>
1448      *
1449      * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1450      *
1451      * @return This builder for chaining.
1452      */
clearJobs()1453     public Builder clearJobs() {
1454       jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
1455       bitField0_ = (bitField0_ & ~0x00000002);
1456       onChanged();
1457       return this;
1458     }
1459     /**
1460      *
1461      *
1462      * <pre>
1463      * Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
1464      * with this event. For example, if this is an
1465      * [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
1466      * event, this field contains the identifiers of all jobs shown to the job
1467      * seeker. If this was a
1468      * [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
1469      * contains the identifier of the viewed job.
1470      * The format is
1471      * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
1472      * example, "projects/foo/tenants/bar/jobs/baz".
1473      * </pre>
1474      *
1475      * <code>repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];</code>
1476      *
1477      * @param value The bytes of the jobs to add.
1478      * @return This builder for chaining.
1479      */
addJobsBytes(com.google.protobuf.ByteString value)1480     public Builder addJobsBytes(com.google.protobuf.ByteString value) {
1481       if (value == null) {
1482         throw new NullPointerException();
1483       }
1484       checkByteStringIsUtf8(value);
1485       ensureJobsIsMutable();
1486       jobs_.add(value);
1487       onChanged();
1488       return this;
1489     }
1490 
1491     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1492     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1493       return super.setUnknownFields(unknownFields);
1494     }
1495 
1496     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1497     public final Builder mergeUnknownFields(
1498         final com.google.protobuf.UnknownFieldSet unknownFields) {
1499       return super.mergeUnknownFields(unknownFields);
1500     }
1501 
1502     // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4.JobEvent)
1503   }
1504 
1505   // @@protoc_insertion_point(class_scope:google.cloud.talent.v4.JobEvent)
1506   private static final com.google.cloud.talent.v4.JobEvent DEFAULT_INSTANCE;
1507 
1508   static {
1509     DEFAULT_INSTANCE = new com.google.cloud.talent.v4.JobEvent();
1510   }
1511 
getDefaultInstance()1512   public static com.google.cloud.talent.v4.JobEvent getDefaultInstance() {
1513     return DEFAULT_INSTANCE;
1514   }
1515 
1516   private static final com.google.protobuf.Parser<JobEvent> PARSER =
1517       new com.google.protobuf.AbstractParser<JobEvent>() {
1518         @java.lang.Override
1519         public JobEvent parsePartialFrom(
1520             com.google.protobuf.CodedInputStream input,
1521             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1522             throws com.google.protobuf.InvalidProtocolBufferException {
1523           Builder builder = newBuilder();
1524           try {
1525             builder.mergeFrom(input, extensionRegistry);
1526           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1527             throw e.setUnfinishedMessage(builder.buildPartial());
1528           } catch (com.google.protobuf.UninitializedMessageException e) {
1529             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1530           } catch (java.io.IOException e) {
1531             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1532                 .setUnfinishedMessage(builder.buildPartial());
1533           }
1534           return builder.buildPartial();
1535         }
1536       };
1537 
parser()1538   public static com.google.protobuf.Parser<JobEvent> parser() {
1539     return PARSER;
1540   }
1541 
1542   @java.lang.Override
getParserForType()1543   public com.google.protobuf.Parser<JobEvent> getParserForType() {
1544     return PARSER;
1545   }
1546 
1547   @java.lang.Override
getDefaultInstanceForType()1548   public com.google.cloud.talent.v4.JobEvent getDefaultInstanceForType() {
1549     return DEFAULT_INSTANCE;
1550   }
1551 }
1552