@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.apps.events.subscriptions.v1.CreateSubscriptionRequest)) {
      return super.equals(obj);
    }
    com.google.apps.events.subscriptions.v1.CreateSubscriptionRequest other =
        (com.google.apps.events.subscriptions.v1.CreateSubscriptionRequest) obj;

    if (hasSubscription() != other.hasSubscription()) return false;
    if (hasSubscription()) {
      if (!getSubscription().equals(other.getSubscription())) return false;
    }
    if (getValidateOnly() != other.getValidateOnly()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Optional. If set to `true`, validates and previews the request, but doesn't
create the subscription.
</pre>

<code>bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];</code>

@return The validateOnly.
java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/CreateSubscriptionRequest.java