Class: Google::Apis::JobsV3p1beta1::ClientEvent
- Inherits:
-
Object
- Object
- Google::Apis::JobsV3p1beta1::ClientEvent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/jobs_v3p1beta1/classes.rb,
generated/google/apis/jobs_v3p1beta1/representations.rb,
generated/google/apis/jobs_v3p1beta1/representations.rb
Overview
An event issued when an end user interacts with the application that implements Cloud Talent Solution. Providing this information improves the quality of search and recommendation for the API clients, enabling the service to perform optimally. The number of events sent must be consistent with other calls, such as job searches, issued to the service by the client.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Required.
-
#event_id ⇒ String
Required.
-
#extra_info ⇒ Hash<String,String>
Optional.
-
#job_event ⇒ Google::Apis::JobsV3p1beta1::JobEvent
An event issued when a job seeker interacts with the application that implements Cloud Talent Solution.
-
#parent_event_id ⇒ String
Required except the first event.
-
#request_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClientEvent
constructor
A new instance of ClientEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ClientEvent
Returns a new instance of ClientEvent
207 208 209 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 207 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Required.
The timestamp of the event.
Corresponds to the JSON property createTime
162 163 164 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 162 def create_time @create_time end |
#event_id ⇒ String
Required.
A unique identifier, generated by the client application. This event_id
is used to establish the relationship between different events
(see parent_event_id).
Corresponds to the JSON property eventId
170 171 172 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 170 def event_id @event_id end |
#extra_info ⇒ Hash<String,String>
Optional.
Extra information about this event. Used for storing information with no
matching field in event payload, for example, user application specific
context or details.
At most 20 keys are supported. The maximum total size of all keys and
values is 2 KB.
Corresponds to the JSON property extraInfo
180 181 182 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 180 def extra_info @extra_info end |
#job_event ⇒ Google::Apis::JobsV3p1beta1::JobEvent
An event issued when a job seeker interacts with the application that
implements Cloud Talent Solution.
Corresponds to the JSON property jobEvent
186 187 188 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 186 def job_event @job_event end |
#parent_event_id ⇒ String
Required except the first event.
The event_id of an event that resulted in the current event. For example, a
Job view event usually follows a parent
impression event: A job seeker first does a
search where a list of jobs appears
(impression). The job seeker then selects a
result and views the description of a particular job (Job
view).
Corresponds to the JSON property parentEventId
198 199 200 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 198 def parent_event_id @parent_event_id end |
#request_id ⇒ String
Required.
A unique ID generated in the API responses. It can be found in
ResponseMetadata.request_id.
Corresponds to the JSON property requestId
205 206 207 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 205 def request_id @request_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
212 213 214 215 216 217 218 219 |
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 212 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @event_id = args[:event_id] if args.key?(:event_id) @extra_info = args[:extra_info] if args.key?(:extra_info) @job_event = args[:job_event] if args.key?(:job_event) @parent_event_id = args[:parent_event_id] if args.key?(:parent_event_id) @request_id = args[:request_id] if args.key?(:request_id) end |