@java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasMachineSpec()) {
      hash = (37 * hash) + MACHINE_SPEC_FIELD_NUMBER;
      hash = (53 * hash) + getMachineSpec().hashCode();
    }
    hash = (37 * hash) + MIN_REPLICA_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getMinReplicaCount();
    hash = (37 * hash) + MAX_REPLICA_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getMaxReplicaCount();
    hash = (37 * hash) + REQUIRED_REPLICA_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getRequiredReplicaCount();
    if (getAutoscalingMetricSpecsCount() > 0) {
      hash = (37 * hash) + AUTOSCALING_METRIC_SPECS_FIELD_NUMBER;
      hash = (53 * hash) + getAutoscalingMetricSpecsList().hashCode();
    }
    hash = (37 * hash) + SPOT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSpot());
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }
<pre>
Optional. If true, schedule the deployment workload on [spot
VMs](https://cloud.google.com/kubernetes-engine/docs/concepts/spot-vms).
</pre>

<code>bool spot = 5 [(.google.api.field_behavior) = OPTIONAL];</code>

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