Package com.google.cloud.tasks.v2beta2
Class UriOverride
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.tasks.v2beta2.UriOverride
- All Implemented Interfaces:
UriOverrideOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class UriOverride
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classUri Override.static enumThe Scheme for an HTTP request.static enumUriOverrideEnforceMode mode is to define enforcing mode for the override modes.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UriOverridestatic final com.google.protobuf.Descriptors.DescriptorgetHost()Host override.com.google.protobuf.ByteStringHost override.com.google.protobuf.Parser<UriOverride>URI path.URI path.longgetPort()Port override.URI Query.URI Query.Scheme override.intScheme override.intURI Override Enforce Mode When specified, determines the Target UriOverride mode.intURI Override Enforce Mode When specified, determines the Target UriOverride mode.inthashCode()booleanhasHost()Host override.booleanURI path.booleanhasPort()Port override.booleanURI Query.booleanScheme override.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic UriOverride.Builderstatic UriOverride.BuildernewBuilder(UriOverride prototype) protected UriOverride.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static UriOverrideparseDelimitedFrom(InputStream input) static UriOverrideparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UriOverrideparseFrom(byte[] data) static UriOverrideparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UriOverrideparseFrom(com.google.protobuf.ByteString data) static UriOverrideparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UriOverrideparseFrom(com.google.protobuf.CodedInputStream input) static UriOverrideparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UriOverrideparseFrom(InputStream input) static UriOverrideparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UriOverrideparseFrom(ByteBuffer data) static UriOverrideparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<UriOverride>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SCHEME_FIELD_NUMBER
public static final int SCHEME_FIELD_NUMBER- See Also:
-
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER- See Also:
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER- See Also:
-
PATH_OVERRIDE_FIELD_NUMBER
public static final int PATH_OVERRIDE_FIELD_NUMBER- See Also:
-
QUERY_OVERRIDE_FIELD_NUMBER
public static final int QUERY_OVERRIDE_FIELD_NUMBER- See Also:
-
URI_OVERRIDE_ENFORCE_MODE_FIELD_NUMBER
public static final int URI_OVERRIDE_ENFORCE_MODE_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static UriOverride parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UriOverride parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UriOverride parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UriOverride parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UriOverride parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UriOverride parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static UriOverride parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static UriOverride parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static UriOverride parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected UriOverride.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-