Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public JobEvent.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<JobEvent.Builder>
      • setField

        public JobEvent.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<JobEvent.Builder>
      • clearField

        public JobEvent.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<JobEvent.Builder>
      • clearOneof

        public JobEvent.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<JobEvent.Builder>
      • setRepeatedField

        public JobEvent.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<JobEvent.Builder>
      • addRepeatedField

        public JobEvent.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<JobEvent.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setUnknownFields

        public final JobEvent.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JobEvent.Builder>
      • mergeUnknownFields

        public final JobEvent.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JobEvent.Builder>