@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstationId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workstationId_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(3, getWorkstation());
    }
    if (validateOnly_ != false) {
      output.writeBool(4, validateOnly_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Optional. If set, validate the request and preview the review, but do not
actually apply it.
</pre>

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

@return The validateOnly.
java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java