Class BetaResponseItemList.Builder
-
- All Implemented Interfaces:
public final class BetaResponseItemList.BuilderA builder for BetaResponseItemList.
-
-
Method Summary
Modifier and Type Method Description final BetaResponseItemList.Builderdata(List<BetaResponseItem> data)A list of items used to generate this response. final BetaResponseItemList.Builderdata(JsonField<List<BetaResponseItem>> data)Sets Builder.data to an arbitrary JSON value. final BetaResponseItemList.BuilderaddData(BetaResponseItem data)Adds a single BetaResponseItem to Builder.data. final BetaResponseItemList.BuilderaddData(BetaResponseInputMessageItem betaResponseInputMessageItem)Alias for calling addData with BetaResponseItem.ofBetaResponseInputMessageItem(betaResponseInputMessageItem).final BetaResponseItemList.BuilderaddData(BetaResponseOutputMessage betaResponseOutputMessage)Alias for calling addData with BetaResponseItem.ofBetaResponseOutputMessage(betaResponseOutputMessage).final BetaResponseItemList.BuilderaddData(BetaResponseFileSearchToolCall fileSearchCall)Alias for calling addData with BetaResponseItem.ofFileSearchCall(fileSearchCall).final BetaResponseItemList.BuilderaddData(BetaResponseComputerToolCall computerCall)Alias for calling addData with BetaResponseItem.ofComputerCall(computerCall).final BetaResponseItemList.BuilderaddData(BetaResponseComputerToolCallOutputItem computerCallOutput)Alias for calling addData with BetaResponseItem.ofComputerCallOutput(computerCallOutput).final BetaResponseItemList.BuilderaddData(BetaResponseFunctionWebSearch webSearchCall)Alias for calling addData with BetaResponseItem.ofWebSearchCall(webSearchCall).final BetaResponseItemList.BuilderaddData(BetaResponseFunctionToolCallItem functionCall)Alias for calling addData with BetaResponseItem.ofFunctionCall(functionCall).final BetaResponseItemList.BuilderaddData(BetaResponseFunctionToolCallOutputItem functionCallOutput)Alias for calling addData with BetaResponseItem.ofFunctionCallOutput(functionCallOutput).final BetaResponseItemList.BuilderaddData(BetaResponseItem.AgentMessage agentMessage)Alias for calling addData with BetaResponseItem.ofAgentMessage(agentMessage).final BetaResponseItemList.BuilderaddData(BetaResponseItem.MultiAgentCall multiAgentCall)Alias for calling addData with BetaResponseItem.ofMultiAgentCall(multiAgentCall).final BetaResponseItemList.BuilderaddData(BetaResponseItem.MultiAgentCallOutput multiAgentCallOutput)Alias for calling addData with BetaResponseItem.ofMultiAgentCallOutput(multiAgentCallOutput).final BetaResponseItemList.BuilderaddData(BetaResponseToolSearchCall toolSearchCall)Alias for calling addData with BetaResponseItem.ofToolSearchCall(toolSearchCall).final BetaResponseItemList.BuilderaddData(BetaResponseToolSearchOutputItem toolSearchOutput)Alias for calling addData with BetaResponseItem.ofToolSearchOutput(toolSearchOutput).final BetaResponseItemList.BuilderaddData(BetaResponseItem.AdditionalTools additionalTools)Alias for calling addData with BetaResponseItem.ofAdditionalTools(additionalTools).final BetaResponseItemList.BuilderaddData(BetaResponseReasoningItem reasoning)Alias for calling addData with BetaResponseItem.ofReasoning(reasoning).final BetaResponseItemList.BuilderaddData(BetaResponseItem.Program program)Alias for calling addData with BetaResponseItem.ofProgram(program).final BetaResponseItemList.BuilderaddData(BetaResponseItem.ProgramOutput programOutput)Alias for calling addData with BetaResponseItem.ofProgramOutput(programOutput).final BetaResponseItemList.BuilderaddData(BetaResponseCompactionItem compaction)Alias for calling addData with BetaResponseItem.ofCompaction(compaction).final BetaResponseItemList.BuilderaddData(BetaResponseItem.ImageGenerationCall imageGenerationCall)Alias for calling addData with BetaResponseItem.ofImageGenerationCall(imageGenerationCall).final BetaResponseItemList.BuilderaddData(BetaResponseCodeInterpreterToolCall codeInterpreterCall)Alias for calling addData with BetaResponseItem.ofCodeInterpreterCall(codeInterpreterCall).final BetaResponseItemList.BuilderaddData(BetaResponseItem.LocalShellCall localShellCall)Alias for calling addData with BetaResponseItem.ofLocalShellCall(localShellCall).final BetaResponseItemList.BuilderaddData(BetaResponseItem.LocalShellCallOutput localShellCallOutput)Alias for calling addData with BetaResponseItem.ofLocalShellCallOutput(localShellCallOutput).final BetaResponseItemList.BuilderaddData(BetaResponseFunctionShellToolCall shellCall)Alias for calling addData with BetaResponseItem.ofShellCall(shellCall).final BetaResponseItemList.BuilderaddData(BetaResponseFunctionShellToolCallOutput shellCallOutput)Alias for calling addData with BetaResponseItem.ofShellCallOutput(shellCallOutput).final BetaResponseItemList.BuilderaddData(BetaResponseApplyPatchToolCall applyPatchCall)Alias for calling addData with BetaResponseItem.ofApplyPatchCall(applyPatchCall).final BetaResponseItemList.BuilderaddData(BetaResponseApplyPatchToolCallOutput applyPatchCallOutput)Alias for calling addData with BetaResponseItem.ofApplyPatchCallOutput(applyPatchCallOutput).final BetaResponseItemList.BuilderaddData(BetaResponseItem.McpListTools mcpListTools)Alias for calling addData with BetaResponseItem.ofMcpListTools(mcpListTools).final BetaResponseItemList.BuilderaddData(BetaResponseItem.McpApprovalRequest mcpApprovalRequest)Alias for calling addData with BetaResponseItem.ofMcpApprovalRequest(mcpApprovalRequest).final BetaResponseItemList.BuilderaddData(BetaResponseItem.McpApprovalResponse mcpApprovalResponse)Alias for calling addData with BetaResponseItem.ofMcpApprovalResponse(mcpApprovalResponse).final BetaResponseItemList.BuilderaddData(BetaResponseItem.McpCall mcpCall)Alias for calling addData with BetaResponseItem.ofMcpCall(mcpCall).final BetaResponseItemList.BuilderaddData(BetaResponseCustomToolCallItem customToolCall)Alias for calling addData with BetaResponseItem.ofCustomToolCall(customToolCall).final BetaResponseItemList.BuilderaddData(BetaResponseCustomToolCallOutputItem customToolCallOutput)Alias for calling addData with BetaResponseItem.ofCustomToolCallOutput(customToolCallOutput).final BetaResponseItemList.BuilderfirstId(String firstId)The ID of the first item in the list. final BetaResponseItemList.BuilderfirstId(JsonField<String> firstId)Sets Builder.firstId to an arbitrary JSON value. final BetaResponseItemList.BuilderhasMore(Boolean hasMore)Whether there are more items available. final BetaResponseItemList.BuilderhasMore(JsonField<Boolean> hasMore)Sets Builder.hasMore to an arbitrary JSON value. final BetaResponseItemList.BuilderlastId(String lastId)The ID of the last item in the list. final BetaResponseItemList.BuilderlastId(JsonField<String> lastId)Sets Builder.lastId to an arbitrary JSON value. final BetaResponseItemList.Builderobject_(JsonValue object_)Sets the field to an arbitrary JSON value. final BetaResponseItemList.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaResponseItemList.BuilderputAdditionalProperty(String key, JsonValue value)final BetaResponseItemList.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaResponseItemList.BuilderremoveAdditionalProperty(String key)final BetaResponseItemList.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaResponseItemListbuild()Returns an immutable instance of BetaResponseItemList. -
-
Method Detail
-
data
final BetaResponseItemList.Builder data(List<BetaResponseItem> data)
A list of items used to generate this response.
-
data
final BetaResponseItemList.Builder data(JsonField<List<BetaResponseItem>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<BetaResponseItem>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem data)
Adds a single BetaResponseItem to Builder.data.
-
addData
final BetaResponseItemList.Builder addData(BetaResponseInputMessageItem betaResponseInputMessageItem)
Alias for calling addData with
BetaResponseItem.ofBetaResponseInputMessageItem(betaResponseInputMessageItem).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseOutputMessage betaResponseOutputMessage)
Alias for calling addData with
BetaResponseItem.ofBetaResponseOutputMessage(betaResponseOutputMessage).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseFileSearchToolCall fileSearchCall)
Alias for calling addData with
BetaResponseItem.ofFileSearchCall(fileSearchCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseComputerToolCall computerCall)
Alias for calling addData with
BetaResponseItem.ofComputerCall(computerCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseComputerToolCallOutputItem computerCallOutput)
Alias for calling addData with
BetaResponseItem.ofComputerCallOutput(computerCallOutput).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseFunctionWebSearch webSearchCall)
Alias for calling addData with
BetaResponseItem.ofWebSearchCall(webSearchCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseFunctionToolCallItem functionCall)
Alias for calling addData with
BetaResponseItem.ofFunctionCall(functionCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseFunctionToolCallOutputItem functionCallOutput)
Alias for calling addData with
BetaResponseItem.ofFunctionCallOutput(functionCallOutput).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.AgentMessage agentMessage)
Alias for calling addData with
BetaResponseItem.ofAgentMessage(agentMessage).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.MultiAgentCall multiAgentCall)
Alias for calling addData with
BetaResponseItem.ofMultiAgentCall(multiAgentCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.MultiAgentCallOutput multiAgentCallOutput)
Alias for calling addData with
BetaResponseItem.ofMultiAgentCallOutput(multiAgentCallOutput).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseToolSearchCall toolSearchCall)
Alias for calling addData with
BetaResponseItem.ofToolSearchCall(toolSearchCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseToolSearchOutputItem toolSearchOutput)
Alias for calling addData with
BetaResponseItem.ofToolSearchOutput(toolSearchOutput).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.AdditionalTools additionalTools)
Alias for calling addData with
BetaResponseItem.ofAdditionalTools(additionalTools).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseReasoningItem reasoning)
Alias for calling addData with
BetaResponseItem.ofReasoning(reasoning).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.Program program)
Alias for calling addData with
BetaResponseItem.ofProgram(program).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.ProgramOutput programOutput)
Alias for calling addData with
BetaResponseItem.ofProgramOutput(programOutput).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseCompactionItem compaction)
Alias for calling addData with
BetaResponseItem.ofCompaction(compaction).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.ImageGenerationCall imageGenerationCall)
Alias for calling addData with
BetaResponseItem.ofImageGenerationCall(imageGenerationCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseCodeInterpreterToolCall codeInterpreterCall)
Alias for calling addData with
BetaResponseItem.ofCodeInterpreterCall(codeInterpreterCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.LocalShellCall localShellCall)
Alias for calling addData with
BetaResponseItem.ofLocalShellCall(localShellCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.LocalShellCallOutput localShellCallOutput)
Alias for calling addData with
BetaResponseItem.ofLocalShellCallOutput(localShellCallOutput).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseFunctionShellToolCall shellCall)
Alias for calling addData with
BetaResponseItem.ofShellCall(shellCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseFunctionShellToolCallOutput shellCallOutput)
Alias for calling addData with
BetaResponseItem.ofShellCallOutput(shellCallOutput).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseApplyPatchToolCall applyPatchCall)
Alias for calling addData with
BetaResponseItem.ofApplyPatchCall(applyPatchCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseApplyPatchToolCallOutput applyPatchCallOutput)
Alias for calling addData with
BetaResponseItem.ofApplyPatchCallOutput(applyPatchCallOutput).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.McpListTools mcpListTools)
Alias for calling addData with
BetaResponseItem.ofMcpListTools(mcpListTools).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.McpApprovalRequest mcpApprovalRequest)
Alias for calling addData with
BetaResponseItem.ofMcpApprovalRequest(mcpApprovalRequest).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.McpApprovalResponse mcpApprovalResponse)
Alias for calling addData with
BetaResponseItem.ofMcpApprovalResponse(mcpApprovalResponse).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseItem.McpCall mcpCall)
Alias for calling addData with
BetaResponseItem.ofMcpCall(mcpCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseCustomToolCallItem customToolCall)
Alias for calling addData with
BetaResponseItem.ofCustomToolCall(customToolCall).
-
addData
final BetaResponseItemList.Builder addData(BetaResponseCustomToolCallOutputItem customToolCallOutput)
Alias for calling addData with
BetaResponseItem.ofCustomToolCallOutput(customToolCallOutput).
-
firstId
final BetaResponseItemList.Builder firstId(String firstId)
The ID of the first item in the list.
-
firstId
final BetaResponseItemList.Builder firstId(JsonField<String> firstId)
Sets Builder.firstId to an arbitrary JSON value.
You should usually call Builder.firstId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
hasMore
final BetaResponseItemList.Builder hasMore(Boolean hasMore)
Whether there are more items available.
-
hasMore
final BetaResponseItemList.Builder hasMore(JsonField<Boolean> hasMore)
Sets Builder.hasMore to an arbitrary JSON value.
You should usually call Builder.hasMore with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lastId
final BetaResponseItemList.Builder lastId(String lastId)
The ID of the last item in the list.
-
lastId
final BetaResponseItemList.Builder lastId(JsonField<String> lastId)
Sets Builder.lastId to an arbitrary JSON value.
You should usually call Builder.lastId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final BetaResponseItemList.Builder object_(JsonValue object_)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("list")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseItemList.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseItemList.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseItemList.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseItemList.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseItemList.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseItemList build()
Returns an immutable instance of BetaResponseItemList.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data() .firstId() .hasMore() .lastId()
-
-
-
-