Struct google_api_proto::google::cloud::talent::v4beta1::RequestMetadata
source · pub struct RequestMetadata {
pub domain: String,
pub session_id: String,
pub user_id: String,
pub allow_missing_ids: bool,
pub device_info: Option<DeviceInfo>,
}
Expand description
Meta information related to the job searcher or entity conducting the job search. This information is used to improve the performance of the service.
Fields§
§domain: String
Required if
[allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
is unset or false
.
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 Foo, Inc., 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.
Note that any improvements to the model for a particular tenant site rely on this field being set correctly to a unique domain.
The maximum number of allowed characters is 255.
session_id: String
Required if
[allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
is unset or false
.
A unique session identification string. A session is defined as the duration of an end user’s interaction with the service over a certain period. Obfuscate this field for privacy concerns before providing it to the service.
Note that any improvements to the model for a particular tenant site rely on this field being set correctly to a unique session ID.
The maximum number of allowed characters is 255.
user_id: String
Required if
[allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
is unset or false
.
A unique user identification string, as determined by the client. To have the strongest positive impact on search quality make sure the client-level is unique. Obfuscate this field for privacy concerns before providing it to the service.
Note that any improvements to the model for a particular tenant site rely on this field being set correctly to a unique user ID.
The maximum number of allowed characters is 255.
allow_missing_ids: bool
Only set when any of [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] isn’t available for some reason. It is highly recommended not to set this field and provide accurate [domain][google.cloud.talent.v4beta1.RequestMetadata.domain], [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best service experience.
device_info: Option<DeviceInfo>
The type of device used by the job seeker at the time of the call to the service.
Trait Implementations§
source§impl Clone for RequestMetadata
impl Clone for RequestMetadata
source§fn clone(&self) -> RequestMetadata
fn clone(&self) -> RequestMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RequestMetadata
impl Debug for RequestMetadata
source§impl Default for RequestMetadata
impl Default for RequestMetadata
source§impl Message for RequestMetadata
impl Message for RequestMetadata
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for RequestMetadata
impl PartialEq for RequestMetadata
source§fn eq(&self, other: &RequestMetadata) -> bool
fn eq(&self, other: &RequestMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RequestMetadata
Auto Trait Implementations§
impl Freeze for RequestMetadata
impl RefUnwindSafe for RequestMetadata
impl Send for RequestMetadata
impl Sync for RequestMetadata
impl Unpin for RequestMetadata
impl UnwindSafe for RequestMetadata
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request