@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.tasks.v2beta2.UriOverride)) {
      return super.equals(obj);
    }
    com.google.cloud.tasks.v2beta2.UriOverride other =
        (com.google.cloud.tasks.v2beta2.UriOverride) obj;

    if (hasScheme() != other.hasScheme()) return false;
    if (hasScheme()) {
      if (scheme_ != other.scheme_) return false;
    }
    if (hasHost() != other.hasHost()) return false;
    if (hasHost()) {
      if (!getHost().equals(other.getHost())) return false;
    }
    if (hasPort() != other.hasPort()) return false;
    if (hasPort()) {
      if (getPort() != other.getPort()) return false;
    }
    if (hasPathOverride() != other.hasPathOverride()) return false;
    if (hasPathOverride()) {
      if (!getPathOverride().equals(other.getPathOverride())) return false;
    }
    if (hasQueryOverride() != other.hasQueryOverride()) return false;
    if (hasQueryOverride()) {
      if (!getQueryOverride().equals(other.getQueryOverride())) return false;
    }
    if (uriOverrideEnforceMode_ != other.uriOverrideEnforceMode_) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
URI Override Enforce Mode

When specified, determines the Target UriOverride mode. If not specified,
it defaults to ALWAYS.
</pre>

<code>
.google.cloud.tasks.v2beta2.UriOverride.UriOverrideEnforceMode uri_override_enforce_mode = 6;
</code>

@return The uriOverrideEnforceMode.
java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UriOverride.java