Interface UriOverrideOrBuilder (2.36.0)

public interface UriOverrideOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHost()

public abstract String getHost()

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).

optional string host = 2;

Returns
TypeDescription
String

The host.

getHostBytes()

public abstract ByteString getHostBytes()

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).

optional string host = 2;

Returns
TypeDescription
ByteString

The bytes for host.

getPathOverride()

public abstract PathOverride getPathOverride()

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.

.google.cloud.tasks.v2beta2.PathOverride path_override = 4;

Returns
TypeDescription
PathOverride

The pathOverride.

getPathOverrideOrBuilder()

public abstract PathOverrideOrBuilder getPathOverrideOrBuilder()

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.

.google.cloud.tasks.v2beta2.PathOverride path_override = 4;

Returns
TypeDescription
PathOverrideOrBuilder

getPort()

public abstract long getPort()

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.

optional int64 port = 3;

Returns
TypeDescription
long

The port.

getQueryOverride()

public abstract QueryOverride getQueryOverride()

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.

.google.cloud.tasks.v2beta2.QueryOverride query_override = 5;

Returns
TypeDescription
QueryOverride

The queryOverride.

getQueryOverrideOrBuilder()

public abstract QueryOverrideOrBuilder getQueryOverrideOrBuilder()

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.

.google.cloud.tasks.v2beta2.QueryOverride query_override = 5;

Returns
TypeDescription
QueryOverrideOrBuilder

getScheme()

public abstract UriOverride.Scheme getScheme()

Scheme override.

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

optional .google.cloud.tasks.v2beta2.UriOverride.Scheme scheme = 1;

Returns
TypeDescription
UriOverride.Scheme

The scheme.

getSchemeValue()

public abstract int getSchemeValue()

Scheme override.

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

optional .google.cloud.tasks.v2beta2.UriOverride.Scheme scheme = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for scheme.

getUriOverrideEnforceMode()

public abstract UriOverride.UriOverrideEnforceMode getUriOverrideEnforceMode()

URI Override Enforce Mode

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

.google.cloud.tasks.v2beta2.UriOverride.UriOverrideEnforceMode uri_override_enforce_mode = 6;

Returns
TypeDescription
UriOverride.UriOverrideEnforceMode

The uriOverrideEnforceMode.

getUriOverrideEnforceModeValue()

public abstract int getUriOverrideEnforceModeValue()

URI Override Enforce Mode

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

.google.cloud.tasks.v2beta2.UriOverride.UriOverrideEnforceMode uri_override_enforce_mode = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for uriOverrideEnforceMode.

hasHost()

public abstract boolean hasHost()

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).

optional string host = 2;

Returns
TypeDescription
boolean

Whether the host field is set.

hasPathOverride()

public abstract boolean hasPathOverride()

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.

.google.cloud.tasks.v2beta2.PathOverride path_override = 4;

Returns
TypeDescription
boolean

Whether the pathOverride field is set.

hasPort()

public abstract boolean hasPort()

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.

optional int64 port = 3;

Returns
TypeDescription
boolean

Whether the port field is set.

hasQueryOverride()

public abstract boolean hasQueryOverride()

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.

.google.cloud.tasks.v2beta2.QueryOverride query_override = 5;

Returns
TypeDescription
boolean

Whether the queryOverride field is set.

hasScheme()

public abstract boolean hasScheme()

Scheme override.

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

optional .google.cloud.tasks.v2beta2.UriOverride.Scheme scheme = 1;

Returns
TypeDescription
boolean

Whether the scheme field is set.