# Cloud Talent Solution V4 API - Class Google::Cloud::Talent::V4::RequestMetadata (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.1 0.9.1 0.8.1 0.7.0 0.6.4 Reference documentation and code samples for the Cloud Talent Solution V4 API class Google::Cloud::Talent::V4::RequestMetadata.

Meta information related to the job searcher or entity
conducting the job search. This information is used to improve the
performance of the service.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allow_missing_ids

    def allow_missing_ids() -> ::Boolean

**Returns**

- (::Boolean) --- Only set when any of [domain](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_domain_instance_ "Google::Cloud::Talent::V4::RequestMetadata#domain (method)"), [session_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_session_id_instance_ "Google::Cloud::Talent::V4::RequestMetadata#session_id (method)") and [user_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_user_id_instance_ "Google::Cloud::Talent::V4::RequestMetadata#user_id (method)") isn't available for some reason. It is highly recommended not to set this field and provide accurate [domain](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_domain_instance_ "Google::Cloud::Talent::V4::RequestMetadata#domain (method)"), [session_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_session_id_instance_ "Google::Cloud::Talent::V4::RequestMetadata#session_id (method)") and [user_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_user_id_instance_ "Google::Cloud::Talent::V4::RequestMetadata#user_id (method)") for the best service experience.

### #allow_missing_ids=

    def allow_missing_ids=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Only set when any of [domain](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_domain_instance_ "Google::Cloud::Talent::V4::RequestMetadata#domain (method)"), [session_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_session_id_instance_ "Google::Cloud::Talent::V4::RequestMetadata#session_id (method)") and [user_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_user_id_instance_ "Google::Cloud::Talent::V4::RequestMetadata#user_id (method)") isn't available for some reason. It is highly recommended not to set this field and provide accurate [domain](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_domain_instance_ "Google::Cloud::Talent::V4::RequestMetadata#domain (method)"), [session_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_session_id_instance_ "Google::Cloud::Talent::V4::RequestMetadata#session_id (method)") and [user_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_user_id_instance_ "Google::Cloud::Talent::V4::RequestMetadata#user_id (method)") for the best service experience.
**Returns**

- (::Boolean) --- Only set when any of [domain](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_domain_instance_ "Google::Cloud::Talent::V4::RequestMetadata#domain (method)"), [session_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_session_id_instance_ "Google::Cloud::Talent::V4::RequestMetadata#session_id (method)") and [user_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_user_id_instance_ "Google::Cloud::Talent::V4::RequestMetadata#user_id (method)") isn't available for some reason. It is highly recommended not to set this field and provide accurate [domain](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_domain_instance_ "Google::Cloud::Talent::V4::RequestMetadata#domain (method)"), [session_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_session_id_instance_ "Google::Cloud::Talent::V4::RequestMetadata#session_id (method)") and [user_id](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_user_id_instance_ "Google::Cloud::Talent::V4::RequestMetadata#user_id (method)") for the best service experience.

### #device_info

    def device_info() -> ::Google::Cloud::Talent::V4::DeviceInfo

**Returns**

- ([::Google::Cloud::Talent::V4::DeviceInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-DeviceInfo)) --- The type of device used by the job seeker at the time of the call to the service.

### #device_info=

    def device_info=(value) -> ::Google::Cloud::Talent::V4::DeviceInfo

**Parameter**

- **value** ([::Google::Cloud::Talent::V4::DeviceInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-DeviceInfo)) --- The type of device used by the job seeker at the time of the call to the service.
**Returns**

- ([::Google::Cloud::Talent::V4::DeviceInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-DeviceInfo)) --- The type of device used by the job seeker at the time of the call to the service.

### #domain

    def domain() -> ::String

**Returns**

- (::String) --- Required if [allow_missing_ids](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_allow_missing_ids_instance_ "Google::Cloud::Talent::V4::RequestMetadata#allow_missing_ids (method)") 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.

### #domain=

    def domain=(value) -> ::String

**Parameter**

- **value** (::String) --- Required if [allow_missing_ids](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_allow_missing_ids_instance_ "Google::Cloud::Talent::V4::RequestMetadata#allow_missing_ids (method)") 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.
**Returns**

- (::String) --- Required if [allow_missing_ids](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_allow_missing_ids_instance_ "Google::Cloud::Talent::V4::RequestMetadata#allow_missing_ids (method)") 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

    def session_id() -> ::String

**Returns**

- (::String) --- Required if [allow_missing_ids](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_allow_missing_ids_instance_ "Google::Cloud::Talent::V4::RequestMetadata#allow_missing_ids (method)") 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.

### #session_id=

    def session_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required if [allow_missing_ids](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_allow_missing_ids_instance_ "Google::Cloud::Talent::V4::RequestMetadata#allow_missing_ids (method)") 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.
**Returns**

- (::String) --- Required if [allow_missing_ids](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_allow_missing_ids_instance_ "Google::Cloud::Talent::V4::RequestMetadata#allow_missing_ids (method)") 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

    def user_id() -> ::String

**Returns**

- (::String) --- Required if [allow_missing_ids](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_allow_missing_ids_instance_ "Google::Cloud::Talent::V4::RequestMetadata#allow_missing_ids (method)") 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.

### #user_id=

    def user_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required if [allow_missing_ids](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_allow_missing_ids_instance_ "Google::Cloud::Talent::V4::RequestMetadata#allow_missing_ids (method)") 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.
**Returns**

- (::String) --- Required if [allow_missing_ids](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-RequestMetadata#Google__Cloud__Talent__V4__RequestMetadata_allow_missing_ids_instance_ "Google::Cloud::Talent::V4::RequestMetadata#allow_missing_ids (method)") 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.