Package com.google.cloud.tasks.v2beta2
Class UriOverride.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UriOverride.Builder>
com.google.cloud.tasks.v2beta2.UriOverride.Builder
- All Implemented Interfaces:
UriOverrideOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UriOverride
public static final class UriOverride.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UriOverride.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Host override.URI path.Port override.URI Query.Scheme override.URI Override Enforce Mode When specified, determines the Target UriOverride mode.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHost()Host override.com.google.protobuf.ByteStringHost override.URI path.URI path.URI path.longgetPort()Port override.URI Query.URI Query.URI Query.Scheme override.intScheme override.URI Override Enforce Mode When specified, determines the Target UriOverride mode.intURI Override Enforce Mode When specified, determines the Target UriOverride mode.booleanhasHost()Host override.booleanURI path.booleanhasPort()Port override.booleanURI Query.booleanScheme override.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(UriOverride other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePathOverride(PathOverride value) URI path.mergeQueryOverride(QueryOverride value) URI Query.Host override.setHostBytes(com.google.protobuf.ByteString value) Host override.setPathOverride(PathOverride value) URI path.setPathOverride(PathOverride.Builder builderForValue) URI path.setPort(long value) Port override.setQueryOverride(QueryOverride value) URI Query.setQueryOverride(QueryOverride.Builder builderForValue) URI Query.setScheme(UriOverride.Scheme value) Scheme override.setSchemeValue(int value) Scheme override.URI Override Enforce Mode When specified, determines the Target UriOverride mode.setUriOverrideEnforceModeValue(int value) URI Override Enforce Mode When specified, determines the Target UriOverride mode.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UriOverride.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UriOverride.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UriOverride.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UriOverride.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UriOverride.Builder>
-
mergeFrom
public UriOverride.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UriOverride.Builder>- Throws:
IOException
-
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;- Specified by:
hasSchemein interfaceUriOverrideOrBuilder- Returns:
- Whether the scheme field is set.
-
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;- Specified by:
getSchemeValuein interfaceUriOverrideOrBuilder- Returns:
- The enum numeric value on the wire for scheme.
-
setSchemeValue
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;- Parameters:
value- The enum numeric value on the wire for scheme to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getSchemein interfaceUriOverrideOrBuilder- Returns:
- The scheme.
-
setScheme
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;- Parameters:
value- The scheme to set.- Returns:
- This builder for chaining.
-
clearScheme
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:
- This builder for chaining.
-
hasHost
public 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;- Specified by:
hasHostin interfaceUriOverrideOrBuilder- Returns:
- Whether the host field is set.
-
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;- Specified by:
getHostin interfaceUriOverrideOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.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;- Specified by:
getHostBytesin interfaceUriOverrideOrBuilder- Returns:
- The bytes for host.
-
setHost
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;- Parameters:
value- The host to set.- Returns:
- This builder for chaining.
-
clearHost
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:
- This builder for chaining.
-
setHostBytes
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;- Parameters:
value- The bytes for host to set.- Returns:
- This builder for chaining.
-
hasPort
public 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;- Specified by:
hasPortin interfaceUriOverrideOrBuilder- Returns:
- Whether the port field is set.
-
getPort
public 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;- Specified by:
getPortin interfaceUriOverrideOrBuilder- Returns:
- The port.
-
setPort
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;- Parameters:
value- The port to set.- Returns:
- This builder for chaining.
-
clearPort
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:
- This builder for chaining.
-
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;- Specified by:
hasPathOverridein interfaceUriOverrideOrBuilder- Returns:
- Whether the pathOverride field is set.
-
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;- Specified by:
getPathOverridein interfaceUriOverrideOrBuilder- Returns:
- The pathOverride.
-
setPathOverride
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; -
setPathOverride
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; -
mergePathOverride
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; -
clearPathOverride
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; -
getPathOverrideBuilder
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
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;- Specified by:
getPathOverrideOrBuilderin interfaceUriOverrideOrBuilder
-
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;- Specified by:
hasQueryOverridein interfaceUriOverrideOrBuilder- Returns:
- Whether the queryOverride field is set.
-
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;- Specified by:
getQueryOverridein interfaceUriOverrideOrBuilder- Returns:
- The queryOverride.
-
setQueryOverride
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; -
setQueryOverride
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; -
mergeQueryOverride
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; -
clearQueryOverride
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; -
getQueryOverrideBuilder
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
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;- Specified by:
getQueryOverrideOrBuilderin interfaceUriOverrideOrBuilder
-
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;- Specified by:
getUriOverrideEnforceModeValuein interfaceUriOverrideOrBuilder- Returns:
- The enum numeric value on the wire for uriOverrideEnforceMode.
-
setUriOverrideEnforceModeValue
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;- Parameters:
value- The enum numeric value on the wire for uriOverrideEnforceMode to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getUriOverrideEnforceModein interfaceUriOverrideOrBuilder- Returns:
- The uriOverrideEnforceMode.
-
setUriOverrideEnforceMode
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;- Parameters:
value- The uriOverrideEnforceMode to set.- Returns:
- This builder for chaining.
-
clearUriOverrideEnforceMode
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:
- This builder for chaining.
-