public int getAcceleratorsCount() {
          if (acceleratorsBuilder_ == null) {
            return accelerators_.size();
          } else {
            return acceleratorsBuilder_.getCount();
          }
        }
<pre>
Optional. A list of the type and count of accelerator cards attached to
the instance.
</pre>

<code>
repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java