# Cloud Tasks V2beta3 API - Class Google::Cloud::Tasks::V2beta3::UriOverride (v0.19.0)

0.19.0 (latest) 0.18.0 0.17.1 0.16.0 0.15.1 0.14.0 0.13.1 0.12.3 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.6 Reference documentation and code samples for the Cloud Tasks V2beta3 API class Google::Cloud::Tasks::V2beta3::UriOverride.

URI Override.


<br />

When specified, all the HTTP tasks inside the queue will be partially or
fully overridden depending on the configured values.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #host

    def host() -> ::String

**Returns**

- (::String) --- Host override.

  When specified, replaces the host part of the task URL. For example,
  if the task URL is "https://www.google.com," and host value is set to
  "example.net", the overridden URI will be changed to "https://example.net."
  Host value cannot be an empty string (INVALID_ARGUMENT).

### #host=

    def host=(value) -> ::String

**Parameter**

- **value** (::String) --- Host override.


  When specified, replaces the host part of the task URL. For example,
  if the task URL is "https://www.google.com," and host value is set to
  "example.net", the overridden URI will be changed to "https://example.net."
  Host value cannot be an empty string (INVALID_ARGUMENT).
**Returns**

- (::String) --- Host override.

  When specified, replaces the host part of the task URL. For example,
  if the task URL is "https://www.google.com," and host value is set to
  "example.net", the overridden URI will be changed to "https://example.net."
  Host value cannot be an empty string (INVALID_ARGUMENT).

### #path_override

    def path_override() -> ::Google::Cloud::Tasks::V2beta3::PathOverride

**Returns**

- ([::Google::Cloud::Tasks::V2beta3::PathOverride](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-PathOverride)) --- URI path.


  When specified, replaces the existing path of the task URL. Setting the
  path value to an empty string clears the URI path segment.

### #path_override=

    def path_override=(value) -> ::Google::Cloud::Tasks::V2beta3::PathOverride

**Parameter**

- **value** ([::Google::Cloud::Tasks::V2beta3::PathOverride](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-PathOverride)) --- URI path.


  When specified, replaces the existing path of the task URL. Setting the
  path value to an empty string clears the URI path segment.
**Returns**

- ([::Google::Cloud::Tasks::V2beta3::PathOverride](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-PathOverride)) --- URI path.


  When specified, replaces the existing path of the task URL. Setting the
  path value to an empty string clears the URI path segment.

### #port

    def port() -> ::Integer

**Returns**

- (::Integer) --- Port override.

  When specified, replaces the port part of the task URI. For instance,
  for a URI http://www.google.com/foo and port=123, the overridden URI
  becomes http://www.google.com:123/foo. Note that the port value must be a
  positive integer. Setting the port to 0 (Zero) clears the URI port.

### #port=

    def port=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Port override.


  When specified, replaces the port part of the task URI. For instance,
  for a URI http://www.google.com/foo and port=123, the overridden URI
  becomes http://www.google.com:123/foo. Note that the port value must be a
  positive integer. Setting the port to 0 (Zero) clears the URI port.
**Returns**

- (::Integer) --- Port override.

  When specified, replaces the port part of the task URI. For instance,
  for a URI http://www.google.com/foo and port=123, the overridden URI
  becomes http://www.google.com:123/foo. Note that the port value must be a
  positive integer. Setting the port to 0 (Zero) clears the URI port.

### #query_override

    def query_override() -> ::Google::Cloud::Tasks::V2beta3::QueryOverride

**Returns**

- ([::Google::Cloud::Tasks::V2beta3::QueryOverride](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-QueryOverride)) --- URI Query.


  When specified, replaces the query part of the task URI. Setting the
  query value to an empty string clears the URI query segment.

### #query_override=

    def query_override=(value) -> ::Google::Cloud::Tasks::V2beta3::QueryOverride

**Parameter**

- **value** ([::Google::Cloud::Tasks::V2beta3::QueryOverride](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-QueryOverride)) --- URI Query.


  When specified, replaces the query part of the task URI. Setting the
  query value to an empty string clears the URI query segment.
**Returns**

- ([::Google::Cloud::Tasks::V2beta3::QueryOverride](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-QueryOverride)) --- URI Query.


  When specified, replaces the query part of the task URI. Setting the
  query value to an empty string clears the URI query segment.

### #scheme

    def scheme() -> ::Google::Cloud::Tasks::V2beta3::UriOverride::Scheme

**Returns**

- ([::Google::Cloud::Tasks::V2beta3::UriOverride::Scheme](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-UriOverride-Scheme)) --- Scheme override.


  When specified, the task URI scheme is replaced by the provided value (HTTP
  or HTTPS).

### #scheme=

    def scheme=(value) -> ::Google::Cloud::Tasks::V2beta3::UriOverride::Scheme

**Parameter**

- **value** ([::Google::Cloud::Tasks::V2beta3::UriOverride::Scheme](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-UriOverride-Scheme)) --- Scheme override.


  When specified, the task URI scheme is replaced by the provided value (HTTP
  or HTTPS).
**Returns**

- ([::Google::Cloud::Tasks::V2beta3::UriOverride::Scheme](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-UriOverride-Scheme)) --- Scheme override.


  When specified, the task URI scheme is replaced by the provided value (HTTP
  or HTTPS).

### #uri_override_enforce_mode

    def uri_override_enforce_mode() -> ::Google::Cloud::Tasks::V2beta3::UriOverride::UriOverrideEnforceMode

**Returns**

- ([::Google::Cloud::Tasks::V2beta3::UriOverride::UriOverrideEnforceMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-UriOverride-UriOverrideEnforceMode)) --- URI Override Enforce Mode


  When specified, determines the Target UriOverride mode. If not specified,
  it defaults to ALWAYS.

### #uri_override_enforce_mode=

    def uri_override_enforce_mode=(value) -> ::Google::Cloud::Tasks::V2beta3::UriOverride::UriOverrideEnforceMode

**Parameter**

- **value** ([::Google::Cloud::Tasks::V2beta3::UriOverride::UriOverrideEnforceMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-UriOverride-UriOverrideEnforceMode)) --- URI Override Enforce Mode


  When specified, determines the Target UriOverride mode. If not specified,
  it defaults to ALWAYS.
**Returns**

- ([::Google::Cloud::Tasks::V2beta3::UriOverride::UriOverrideEnforceMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-tasks-v2beta3/latest/Google-Cloud-Tasks-V2beta3-UriOverride-UriOverrideEnforceMode)) --- URI Override Enforce Mode


  When specified, determines the Target UriOverride mode. If not specified,
  it defaults to ALWAYS.