Skip to content

Commit

Permalink
Adds the canonical toBuilder method to the LlmInferenceOptions ob…
Browse files Browse the repository at this point in the history
…ject.

PiperOrigin-RevId: 690617797
  • Loading branch information
MediaPipe Team authored and copybara-github committed Oct 28, 2024
1 parent 7a05846 commit 51d1f3b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ public final LlmInferenceOptions build() {
/** The error listener to use for the {@link LlmInference#generateAsync} API. */
public abstract Optional<ErrorListener> errorListener();

/** Returns a new builder with the same values as this instance. */
public abstract Builder toBuilder();

/** Instantiates a new LlmInferenceOptions builder. */
public static Builder builder() {
return new AutoValue_LlmInference_LlmInferenceOptions.Builder()
Expand Down

0 comments on commit 51d1f3b

Please sign in to comment.