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

    if (!getZone().equals(other.getZone())) return false;
    if (mode_ != other.mode_) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Optional. Current zone distribution mode. Defaults to MULTI_ZONE.
</pre>

<code>
.google.cloud.memorystore.v1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
</code>

@return The mode.
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ZoneDistributionConfig.java