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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < command_.size(); i++) {
          dataSize += computeStringSizeNoTag(command_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getCommandList().size();
      }
      {
        int dataSize = 0;
        for (int i = 0; i < args_.size(); i++) {
          dataSize += computeStringSizeNoTag(args_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getArgsList().size();
      }
      for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
          internalGetEnv().getMap().entrySet()) {
        com.google.protobuf.MapEntry<java.lang.String, java.lang.String> env__ =
            EnvDefaultEntryHolder.defaultEntry
                .newBuilderForType()
                .setKey(entry.getKey())
                .setValue(entry.getValue())
                .build();
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, env__);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_);
      }
      if (runAsUser_ != 0) {
        size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, runAsUser_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
<pre>
Optional. If set, overrides the USER specified in the image with the
given uid.
</pre>

<code>int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL];</code>

@return The runAsUser.
java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java