public Builder setRestartType(
        com.google.cloud.vmmigration.v1.ComputeScheduling.RestartType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000002;
      restartType_ = value.getNumber();
      onChanged();
      return this;
    }
<pre>
Whether the Instance should be automatically restarted whenever it is
terminated by Compute Engine (not terminated by user).
This configuration is identical to `automaticRestart` field in Compute
Engine create instance under scheduling.
It was changed to an enum (instead of a boolean) to match the default
value in Compute Engine which is automatic restart.
</pre>

<code>.google.cloud.vmmigration.v1.ComputeScheduling.RestartType restart_type = 5;</code>

@param value The restartType to set.
@return This builder for chaining.
java-vmmigration/proto-google-cloud-vmmigration-v1/src/main/java/com/google/cloud/vmmigration/v1/ComputeScheduling.java