Builder

public abstract class Builder

Builder for GenerateContentResponse.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder automaticFunctionCallingHistory(Array<Content> automaticFunctionCallingHistory)
public abstract GenerateContentResponse.Builder automaticFunctionCallingHistory(List<Content> automaticFunctionCallingHistory)
Setter for automaticFunctionCallingHistory.
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder automaticFunctionCallingHistory(Array<Content.Builder> automaticFunctionCallingHistoryBuilders)
Setter for automaticFunctionCallingHistory builder.
Link copied to clipboard
public abstract GenerateContentResponse build()
Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder candidates(Array<Candidate> candidates)
Setter for candidates.
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder candidates(Array<Candidate.Builder> candidatesBuilders)
Setter for candidates builder.
Link copied to clipboard
Clears the value of automaticFunctionCallingHistory field.
Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder clearCandidates()
Clears the value of candidates field.
Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder clearCreateTime()
Clears the value of createTime field.
Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder clearModelStatus()
Clears the value of modelStatus field.
Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder clearModelVersion()
Clears the value of modelVersion field.
Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder clearPromptFeedback()
Clears the value of promptFeedback field.
Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder clearResponseId()
Clears the value of responseId field.
Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder clearSdkHttpResponse()
Clears the value of sdkHttpResponse field.
Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder clearUsageMetadata()
Clears the value of usageMetadata field.
Link copied to clipboard
public abstract GenerateContentResponse.Builder createTime(Instant createTime)
Setter for createTime.
Link copied to clipboard
Setter for modelStatus.
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder modelStatus(ModelStatus.Builder modelStatusBuilder)
Setter for modelStatus builder.
Link copied to clipboard
public abstract GenerateContentResponse.Builder modelVersion(String modelVersion)
Setter for modelVersion.
Link copied to clipboard
Setter for promptFeedback.
Setter for promptFeedback builder.
Link copied to clipboard
public abstract GenerateContentResponse.Builder responseId(String responseId)
Setter for responseId.
Link copied to clipboard
Setter for sdkHttpResponse.
@CanIgnoreReturnValue()
public GenerateContentResponse.Builder sdkHttpResponse(HttpResponse.Builder sdkHttpResponseBuilder)
Setter for sdkHttpResponse builder.
Link copied to clipboard
Setter for usageMetadata.
Setter for usageMetadata builder.