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