Packages
Cloud Talent Solution API client library. Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters.
Current section
Files
Jump to
Current section
Files
lib/google_api/jobs/v2/model/request_metadata.ex
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.
defmodule GoogleApi.Jobs.V2.Model.RequestMetadata do
@moduledoc """
Input only.
Meta information related to the job searcher or entity
conducting the job search. This information is used to improve the
performance of the service.
## Attributes
* `deviceInfo` (*type:* `GoogleApi.Jobs.V2.Model.DeviceInfo.t`, *default:* `nil`) - Optional. The type of device used by the job seeker at the time of the call to the
service.
* `domain` (*type:* `String.t`, *default:* `nil`) - Required. The client-defined scope or source of the service call, which typically
is the domain on
which the service has been implemented and is currently being run.
For example, if the service is being run by client <em>Foo, Inc.</em>, on
job board www.foo.com and career site www.bar.com, then this field is
set to "foo.com" for use on the job board, and "bar.com" for use on the
career site.
If this field is not available for some reason, send "UNKNOWN". Note that
any improvements to the service model for a particular tenant site rely on
this field being set correctly to some domain.
* `sessionId` (*type:* `String.t`, *default:* `nil`) - Required. A unique session identification string. A session is defined as the
duration of an end user's interaction with the service over a period.
Obfuscate this field for privacy concerns before
providing it to the API.
If this field is not available for some reason, please send "UNKNOWN". Note
that any improvements to the service model for a particular tenant site,
rely on this field being set correctly to some unique session_id.
* `userId` (*type:* `String.t`, *default:* `nil`) - Required. A unique user identification string, as determined by the client. The
client is responsible for ensuring client-level uniqueness of this value
in order to have the strongest positive impact on search quality.
Obfuscate this field for privacy concerns before
providing it to the service.
If this field is not available for some reason, please send "UNKNOWN". Note
that any improvements to the service model for a particular tenant site,
rely on this field being set correctly to some unique user_id.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:deviceInfo => GoogleApi.Jobs.V2.Model.DeviceInfo.t(),
:domain => String.t(),
:sessionId => String.t(),
:userId => String.t()
}
field(:deviceInfo, as: GoogleApi.Jobs.V2.Model.DeviceInfo)
field(:domain)
field(:sessionId)
field(:userId)
end
defimpl Poison.Decoder, for: GoogleApi.Jobs.V2.Model.RequestMetadata do
def decode(value, options) do
GoogleApi.Jobs.V2.Model.RequestMetadata.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Jobs.V2.Model.RequestMetadata do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end