@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.vertexai.api.DedicatedResources)) {
      return super.equals(obj);
    }
    com.google.cloud.vertexai.api.DedicatedResources other =
        (com.google.cloud.vertexai.api.DedicatedResources) obj;

    if (hasMachineSpec() != other.hasMachineSpec()) return false;
    if (hasMachineSpec()) {
      if (!getMachineSpec().equals(other.getMachineSpec())) return false;
    }
    if (getMinReplicaCount() != other.getMinReplicaCount()) return false;
    if (getMaxReplicaCount() != other.getMaxReplicaCount()) return false;
    if (getRequiredReplicaCount() != other.getRequiredReplicaCount()) return false;
    if (!getAutoscalingMetricSpecsList().equals(other.getAutoscalingMetricSpecsList()))
      return false;
    if (getSpot() != other.getSpot()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<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