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

    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (!getCreateTime().equals(other.getCreateTime())) return false;
    }
    if (hasUpdateTime() != other.hasUpdateTime()) return false;
    if (hasUpdateTime()) {
      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
    }
    if (!getWeeklyMaintenanceWindowList().equals(other.getWeeklyMaintenanceWindowList()))
      return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Optional. Maintenance window that is applied to resources covered by this
policy. Minimum 1. For the current version, the maximum number of
weekly_window is expected to be one.
</pre>

<code>
repeated .google.cloud.memorystore.v1.WeeklyMaintenanceWindow weekly_maintenance_window = 3 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MaintenancePolicy.java