@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeEnum(1, scheme_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, host_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeInt64(3, port_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(4, getPathOverride());
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeMessage(5, getQueryOverride());
    }
    if (uriOverrideEnforceMode_
        != com.google.cloud.tasks.v2beta2.UriOverride.UriOverrideEnforceMode
            .URI_OVERRIDE_ENFORCE_MODE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(6, uriOverrideEnforceMode_);
    }
    getUnknownFields().writeTo(output);
  }
<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