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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UriOverride.Builder>
    • clear

      public UriOverride.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<UriOverride.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UriOverride.Builder>
    • getDefaultInstanceForType

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

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

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

      public UriOverride.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UriOverride.Builder>
    • mergeFrom

      public UriOverride.Builder mergeFrom(UriOverride other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      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.v2beta2.UriOverride.Scheme scheme = 1;
      Specified by:
      getSchemeValue in interface UriOverrideOrBuilder
      Returns:
      The enum numeric value on the wire for scheme.
    • setSchemeValue

      public UriOverride.Builder setSchemeValue(int value)
       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

      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;
      Specified by:
      getScheme in interface UriOverrideOrBuilder
      Returns:
      The scheme.
    • setScheme

      public UriOverride.Builder setScheme(UriOverride.Scheme value)
       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

      public UriOverride.Builder 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:
      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.
    • setHost

      public UriOverride.Builder setHost(String value)
       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

      public UriOverride.Builder 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

      public UriOverride.Builder setHostBytes(com.google.protobuf.ByteString value)
       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:
      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.
    • setPort

      public UriOverride.Builder setPort(long value)
       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

      public UriOverride.Builder 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:
      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.v2beta2.PathOverride path_override = 4;
      Specified by:
      getPathOverride in interface UriOverrideOrBuilder
      Returns:
      The pathOverride.
    • setPathOverride

      public UriOverride.Builder setPathOverride(PathOverride value)
       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

      public UriOverride.Builder setPathOverride(PathOverride.Builder builderForValue)
       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

      public UriOverride.Builder mergePathOverride(PathOverride value)
       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

      public UriOverride.Builder 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

      public PathOverride.Builder 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

      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;
      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.v2beta2.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.v2beta2.QueryOverride query_override = 5;
      Specified by:
      getQueryOverride in interface UriOverrideOrBuilder
      Returns:
      The queryOverride.
    • setQueryOverride

      public UriOverride.Builder setQueryOverride(QueryOverride value)
       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

      public UriOverride.Builder setQueryOverride(QueryOverride.Builder builderForValue)
       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

      public UriOverride.Builder mergeQueryOverride(QueryOverride value)
       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

      public UriOverride.Builder 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

      public QueryOverride.Builder 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

      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;
      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.v2beta2.UriOverride.UriOverrideEnforceMode uri_override_enforce_mode = 6;
      Specified by:
      getUriOverrideEnforceModeValue in interface UriOverrideOrBuilder
      Returns:
      The enum numeric value on the wire for uriOverrideEnforceMode.
    • setUriOverrideEnforceModeValue

      public UriOverride.Builder setUriOverrideEnforceModeValue(int value)
       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

      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;
      Specified by:
      getUriOverrideEnforceMode in interface UriOverrideOrBuilder
      Returns:
      The uriOverrideEnforceMode.
    • setUriOverrideEnforceMode

      public UriOverride.Builder setUriOverrideEnforceMode(UriOverride.UriOverrideEnforceMode value)
       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

      public UriOverride.Builder 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.