Class JobEvent.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<JobEvent.Builder>
com.google.cloud.talent.v4.JobEvent.Builder
All Implemented Interfaces:
JobEventOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
JobEvent

public static final class JobEvent.Builder extends com.google.protobuf.GeneratedMessage.Builder<JobEvent.Builder> implements JobEventOrBuilder
 An event issued when a job seeker interacts with the application that
 implements Cloud Talent Solution.
 
Protobuf type google.cloud.talent.v4.JobEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    Required.
    addJobs(String value)
    Required.
    addJobsBytes(com.google.protobuf.ByteString value)
    Required.
     
     
     
    Required.
    Required.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    getJobs(int index)
    Required.
    com.google.protobuf.ByteString
    getJobsBytes(int index)
    Required.
    int
    Required.
    com.google.protobuf.ProtocolStringList
    Required.
    Required.
    int
    Required.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setJobs(int index, String value)
    Required.
    Required.
    setTypeValue(int value)
    Required.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<JobEvent.Builder>
    • clear

      public JobEvent.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<JobEvent.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<JobEvent.Builder>
    • getDefaultInstanceForType

      public JobEvent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public JobEvent build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public JobEvent buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public JobEvent.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<JobEvent.Builder>
    • mergeFrom

      public JobEvent.Builder mergeFrom(JobEvent other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<JobEvent.Builder>
    • mergeFrom

      public JobEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<JobEvent.Builder>
      Throws:
      IOException
    • getTypeValue

      public int getTypeValue()
       Required. The type of the event (see
       [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
       
      .google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTypeValue in interface JobEventOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public JobEvent.Builder setTypeValue(int value)
       Required. The type of the event (see
       [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
       
      .google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public JobEvent.JobEventType getType()
       Required. The type of the event (see
       [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
       
      .google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface JobEventOrBuilder
      Returns:
      The type.
    • setType

      public JobEvent.Builder setType(JobEvent.JobEventType value)
       Required. The type of the event (see
       [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
       
      .google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public JobEvent.Builder clearType()
       Required. The type of the event (see
       [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
       
      .google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getJobsList

      public com.google.protobuf.ProtocolStringList getJobsList()
       Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
       with this event. For example, if this is an
       [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
       event, this field contains the identifiers of all jobs shown to the job
       seeker. If this was a
       [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
       contains the identifier of the viewed job.
      
       The format is
       "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
       example, "projects/foo/tenants/bar/jobs/baz".
       
      repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobsList in interface JobEventOrBuilder
      Returns:
      A list containing the jobs.
    • getJobsCount

      public int getJobsCount()
       Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
       with this event. For example, if this is an
       [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
       event, this field contains the identifiers of all jobs shown to the job
       seeker. If this was a
       [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
       contains the identifier of the viewed job.
      
       The format is
       "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
       example, "projects/foo/tenants/bar/jobs/baz".
       
      repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobsCount in interface JobEventOrBuilder
      Returns:
      The count of jobs.
    • getJobs

      public String getJobs(int index)
       Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
       with this event. For example, if this is an
       [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
       event, this field contains the identifiers of all jobs shown to the job
       seeker. If this was a
       [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
       contains the identifier of the viewed job.
      
       The format is
       "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
       example, "projects/foo/tenants/bar/jobs/baz".
       
      repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobs in interface JobEventOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The jobs at the given index.
    • getJobsBytes

      public com.google.protobuf.ByteString getJobsBytes(int index)
       Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
       with this event. For example, if this is an
       [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
       event, this field contains the identifiers of all jobs shown to the job
       seeker. If this was a
       [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
       contains the identifier of the viewed job.
      
       The format is
       "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
       example, "projects/foo/tenants/bar/jobs/baz".
       
      repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobsBytes in interface JobEventOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the jobs at the given index.
    • setJobs

      public JobEvent.Builder setJobs(int index, String value)
       Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
       with this event. For example, if this is an
       [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
       event, this field contains the identifiers of all jobs shown to the job
       seeker. If this was a
       [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
       contains the identifier of the viewed job.
      
       The format is
       "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
       example, "projects/foo/tenants/bar/jobs/baz".
       
      repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The jobs to set.
      Returns:
      This builder for chaining.
    • addJobs

      public JobEvent.Builder addJobs(String value)
       Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
       with this event. For example, if this is an
       [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
       event, this field contains the identifiers of all jobs shown to the job
       seeker. If this was a
       [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
       contains the identifier of the viewed job.
      
       The format is
       "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
       example, "projects/foo/tenants/bar/jobs/baz".
       
      repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The jobs to add.
      Returns:
      This builder for chaining.
    • addAllJobs

      public JobEvent.Builder addAllJobs(Iterable<String> values)
       Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
       with this event. For example, if this is an
       [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
       event, this field contains the identifiers of all jobs shown to the job
       seeker. If this was a
       [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
       contains the identifier of the viewed job.
      
       The format is
       "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
       example, "projects/foo/tenants/bar/jobs/baz".
       
      repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The jobs to add.
      Returns:
      This builder for chaining.
    • clearJobs

      public JobEvent.Builder clearJobs()
       Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
       with this event. For example, if this is an
       [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
       event, this field contains the identifiers of all jobs shown to the job
       seeker. If this was a
       [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
       contains the identifier of the viewed job.
      
       The format is
       "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
       example, "projects/foo/tenants/bar/jobs/baz".
       
      repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addJobsBytes

      public JobEvent.Builder addJobsBytes(com.google.protobuf.ByteString value)
       Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated
       with this event. For example, if this is an
       [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]
       event, this field contains the identifiers of all jobs shown to the job
       seeker. If this was a
       [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field
       contains the identifier of the viewed job.
      
       The format is
       "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
       example, "projects/foo/tenants/bar/jobs/baz".
       
      repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the jobs to add.
      Returns:
      This builder for chaining.