@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_);
    }
    if (acceleratorType_
        != com.google.cloud.visionai.v1.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) {
      output.writeEnum(2, acceleratorType_);
    }
    if (acceleratorCount_ != 0) {
      output.writeInt32(3, acceleratorCount_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
The number of accelerators to attach to the machine.
</pre>

<code>int32 accelerator_count = 3;</code>

@return The acceleratorCount.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/MachineSpec.java