@java.lang.Override
  public java.lang.String getMachineType() {
    java.lang.Object ref = machineType_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      machineType_ = s;
      return s;
    }
  }
<pre>
Immutable. The type of the machine.

See the [list of machine types supported for
prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types)

See the [list of machine types supported for custom
training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types).

For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is
optional, and the default value is `n1-standard-2`. For
[BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as
part of [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this
field is required.
</pre>

<code>string machine_type = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>

@return The machineType.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/MachineSpec.java