Class UriOverride

  • All Implemented Interfaces:
    UriOverrideOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class UriOverride
    extends com.google.protobuf.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.v2beta3.UriOverride
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.v2beta3.UriOverride.Scheme scheme = 1;
        Specified by:
        hasScheme in interface UriOverrideOrBuilder
        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.v2beta3.UriOverride.Scheme scheme = 1;
        Specified by:
        getSchemeValue in interface UriOverrideOrBuilder
        Returns:
        The enum numeric value on the wire for scheme.
      • 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.v2beta3.UriOverride.Scheme scheme = 1;
        Specified by:
        getScheme in interface UriOverrideOrBuilder
        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:
        hasHost in interface UriOverrideOrBuilder
        Returns:
        Whether the host field is set.
      • getHost

        public 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;
        Specified by:
        getHost in interface UriOverrideOrBuilder
        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:
        getHostBytes in interface UriOverrideOrBuilder
        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:
        hasPort in interface UriOverrideOrBuilder
        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:
        getPort in interface UriOverrideOrBuilder
        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.v2beta3.PathOverride path_override = 4;
        Specified by:
        hasPathOverride in interface UriOverrideOrBuilder
        Returns:
        Whether the pathOverride field is set.
      • 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.v2beta3.PathOverride path_override = 4;
        Specified by:
        getPathOverride in interface UriOverrideOrBuilder
        Returns:
        The pathOverride.
      • 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.v2beta3.PathOverride path_override = 4;
        Specified by:
        getPathOverrideOrBuilder in interface UriOverrideOrBuilder
      • 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.v2beta3.QueryOverride query_override = 5;
        Specified by:
        hasQueryOverride in interface UriOverrideOrBuilder
        Returns:
        Whether the queryOverride field is set.
      • 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.v2beta3.QueryOverride query_override = 5;
        Specified by:
        getQueryOverride in interface UriOverrideOrBuilder
        Returns:
        The queryOverride.
      • 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.v2beta3.QueryOverride query_override = 5;
        Specified by:
        getQueryOverrideOrBuilder in interface UriOverrideOrBuilder
      • 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.v2beta3.UriOverride.UriOverrideEnforceMode uri_override_enforce_mode = 6;
        Specified by:
        getUriOverrideEnforceModeValue in interface UriOverrideOrBuilder
        Returns:
        The enum numeric value on the wire for uriOverrideEnforceMode.
      • 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.v2beta3.UriOverride.UriOverrideEnforceMode uri_override_enforce_mode = 6;
        Specified by:
        getUriOverrideEnforceMode in interface UriOverrideOrBuilder
        Returns:
        The uriOverrideEnforceMode.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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

        public static UriOverride parseFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Throws:
        IOException
      • newBuilderForType

        public UriOverride.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public UriOverride.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected UriOverride.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static UriOverride getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<UriOverride> parser()
      • getParserForType

        public com.google.protobuf.Parser<UriOverride> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public UriOverride getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder