public Builder setOndemandMaintenance(boolean value) {

      ondemandMaintenance_ = value;
      bitField0_ |= 0x02000000;
      onChanged();
      return this;
    }
<pre>
Optional. Input only. Ondemand maintenance for the instance.
</pre>

<code>
optional bool ondemand_maintenance = 28 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
</code>

@param value The ondemandMaintenance to set.
@return This builder for chaining.
java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java