maxOutputTokens

public final GenerationConfig.Builder maxOutputTokens(Integer maxOutputTokens)

The maximum number of tokens to include in the response.


public final GenerationConfig.Builder maxOutputTokens(JsonField<Integer> maxOutputTokens)

Sets Builder.maxOutputTokens to an arbitrary JSON value.

You should usually call Builder.maxOutputTokens with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.