public Builder setValidateOnly(boolean value) {

      validateOnly_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
<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>

@param value The validateOnly to set.
@return This builder for chaining.
java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/CreateSubscriptionRequest.java