Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/main/java/com/google/genai/types/GenerateContentConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,13 @@ public abstract class GenerateContentConfig extends JsonSerializable {
@JsonProperty("serviceTier")
public abstract Optional<ServiceTier> serviceTier();

/**
* The timeout for the private inference request. e.g. '120s'. If not set, the default timeout of
* the corresponding `request` is used.
*/
@JsonProperty("requestTtl")
public abstract Optional<String> requestTtl();

/** Instantiates a builder for GenerateContentConfig. */
@ExcludeFromGeneratedCoverageReport
public static Builder builder() {
Expand Down Expand Up @@ -1145,6 +1152,25 @@ public Builder serviceTier(String serviceTier) {
return serviceTier(new ServiceTier(serviceTier));
}

/**
* Setter for requestTtl.
*
* <p>requestTtl: The timeout for the private inference request. e.g. '120s'. If not set, the
* default timeout of the corresponding `request` is used.
*/
@JsonProperty("requestTtl")
public abstract Builder requestTtl(String requestTtl);

@ExcludeFromGeneratedCoverageReport
abstract Builder requestTtl(Optional<String> requestTtl);

/** Clears the value of requestTtl field. */
@ExcludeFromGeneratedCoverageReport
@CanIgnoreReturnValue
public Builder clearRequestTtl() {
return requestTtl(Optional.empty());
}

public abstract GenerateContentConfig build();
}

Expand Down
Loading