@java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (enablePrivateEndpoint_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateEndpoint_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterHostname_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterHostname_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachmentUri_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceAttachmentUri_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < allowedProjects_.size(); i++) {
          dataSize += computeStringSizeNoTag(allowedProjects_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getAllowedProjectsList().size();
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
<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