@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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_);
    }
    if (reconciling_ != false) {
      output.writeBool(4, reconciling_);
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5);
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(6, getCreateTime());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(7, getUpdateTime());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(8, getDeleteTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(10, getIdleTimeout());
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeMessage(11, getRunningTimeout());
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeMessage(12, getHost());
    }
    for (int i = 0; i < persistentDirectories_.size(); i++) {
      output.writeMessage(13, persistentDirectories_.get(i));
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      output.writeMessage(14, getContainer());
    }
    if (degraded_ != false) {
      output.writeBool(15, degraded_);
    }
    for (int i = 0; i < conditions_.size(); i++) {
      output.writeMessage(16, conditions_.get(i));
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      output.writeMessage(17, getEncryptionKey());
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18);
    for (int i = 0; i < readinessChecks_.size(); i++) {
      output.writeMessage(19, readinessChecks_.get(i));
    }
    if (enableAuditAgent_ != false) {
      output.writeBool(20, enableAuditAgent_);
    }
    for (int i = 0; i < ephemeralDirectories_.size(); i++) {
      output.writeMessage(22, ephemeralDirectories_.get(i));
    }
    for (int i = 0; i < replicaZones_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 23, replicaZones_.getRaw(i));
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Optional. Whether to enable Linux `auditd` logging on the workstation. When
enabled, a service account must also be specified that has
`logging.buckets.write` permission on the project. Operating system audit
logging is distinct from [Cloud Audit
Logs](https://cloud.google.com/workstations/docs/audit-logging).
</pre>

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

@return The enableAuditAgent.
java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java