public final class UriOverride extends GeneratedMessageV3 implements UriOverrideOrBuilder
Uri Override.
When specified, all the HTTP tasks inside the queue will be partially or
fully overridden depending on the configured values.
Protobuf type google.cloud.tasks.v2beta2.UriOverride
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PATH_OVERRIDE_FIELD_NUMBER
public static final int PATH_OVERRIDE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
QUERY_OVERRIDE_FIELD_NUMBER
public static final int QUERY_OVERRIDE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SCHEME_FIELD_NUMBER
public static final int SCHEME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
URI_OVERRIDE_ENFORCE_MODE_FIELD_NUMBER
public static final int URI_OVERRIDE_ENFORCE_MODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static UriOverride getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static UriOverride.Builder newBuilder()
newBuilder(UriOverride prototype)
public static UriOverride.Builder newBuilder(UriOverride prototype)
public static UriOverride parseDelimitedFrom(InputStream input)
public static UriOverride parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static UriOverride parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UriOverride parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static UriOverride parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UriOverride parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UriOverride parseFrom(CodedInputStream input)
public static UriOverride parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static UriOverride parseFrom(InputStream input)
public static UriOverride parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static UriOverride parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UriOverride parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<UriOverride> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public UriOverride getDefaultInstanceForType()
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 |
Type |
Description |
String |
The host.
|
getHostBytes()
public 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 |
Type |
Description |
ByteString |
The bytes for host.
|
getParserForType()
public Parser<UriOverride> getParserForType()
Overrides
getPathOverride()
public 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;
getPathOverrideOrBuilder()
public 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;
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 |
Type |
Description |
long |
The port.
|
getQueryOverride()
public 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;
getQueryOverrideOrBuilder()
public 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;
getScheme()
public 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;
getSchemeValue()
public 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 |
Type |
Description |
int |
The enum numeric value on the wire for scheme.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getUriOverrideEnforceMode()
public 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;
getUriOverrideEnforceModeValue()
public 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 |
Type |
Description |
int |
The enum numeric value on the wire for uriOverrideEnforceMode.
|
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 |
Type |
Description |
boolean |
Whether the host field is set.
|
hasPathOverride()
public 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 |
Type |
Description |
boolean |
Whether the pathOverride field is set.
|
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 |
Type |
Description |
boolean |
Whether the port field is set.
|
hasQueryOverride()
public 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 |
Type |
Description |
boolean |
Whether the queryOverride field is set.
|
hasScheme()
public 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 |
Type |
Description |
boolean |
Whether the scheme field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public UriOverride.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UriOverride.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public UriOverride.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides