@java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (enablePrivateEndpoint_ != false) {
        output.writeBool(1, enablePrivateEndpoint_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterHostname_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterHostname_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachmentUri_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAttachmentUri_);
      }
      for (int i = 0; i < allowedProjects_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, allowedProjects_.getRaw(i));
      }
      getUnknownFields().writeTo(output);
    }
<pre>
Optional. Additional projects that are allowed to attach to the
workstation cluster's service attachment. By default, the workstation
cluster's project and the VPC host project (if different) are allowed.
</pre>

<code>repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL];</code>

@param index The index of the value to return.
@return The bytes of the allowedProjects at the given index.
java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java