@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (validateOnly_ != false) {
      output.writeBool(2, validateOnly_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Optional. If set, the request will be rejected if the latest version of the
workstation on the server does not have this ETag.
</pre>

<code>string etag = 3 [(.google.api.field_behavior) = OPTIONAL];</code>

@return The bytes for etag.
java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java