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

    if (!getParent().equals(other.getParent())) return false;
    if (hasQueue() != other.hasQueue()) return false;
    if (hasQueue()) {
      if (!getQueue().equals(other.getQueue())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Required. The queue to create.

[Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an
existing queue.
</pre>

<code>.google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];</code>
java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java