@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (mode_
        != com.google.cloud.memorystore.v1.ZoneDistributionConfig.ZoneDistributionMode
            .ZONE_DISTRIBUTION_MODE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(1, mode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_);
    }
    getUnknownFields().writeTo(output);
  }
<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