Class ResponseItemList.Builder
-
- All Implemented Interfaces:
public final class ResponseItemList.BuilderA builder for ResponseItemList.
-
-
Method Summary
Modifier and Type Method Description final ResponseItemList.Builderdata(List<ResponseItem> data)A list of items used to generate this response. final ResponseItemList.Builderdata(JsonField<List<ResponseItem>> data)Sets Builder.data to an arbitrary JSON value. final ResponseItemList.BuilderaddData(ResponseItem data)Adds a single ResponseItem to Builder.data. final ResponseItemList.BuilderaddData(ResponseInputMessageItem responseInputMessageItem)Alias for calling addData with ResponseItem.ofResponseInputMessageItem(responseInputMessageItem).final ResponseItemList.BuilderaddData(ResponseOutputMessage responseOutputMessage)Alias for calling addData with ResponseItem.ofResponseOutputMessage(responseOutputMessage).final ResponseItemList.BuilderaddData(ResponseFileSearchToolCall fileSearchCall)Alias for calling addData with ResponseItem.ofFileSearchCall(fileSearchCall).final ResponseItemList.BuilderaddData(ResponseComputerToolCall computerCall)Alias for calling addData with ResponseItem.ofComputerCall(computerCall).final ResponseItemList.BuilderaddData(ResponseComputerToolCallOutputItem computerCallOutput)Alias for calling addData with ResponseItem.ofComputerCallOutput(computerCallOutput).final ResponseItemList.BuilderaddData(ResponseFunctionWebSearch webSearchCall)Alias for calling addData with ResponseItem.ofWebSearchCall(webSearchCall).final ResponseItemList.BuilderaddData(ResponseFunctionToolCallItem functionCall)Alias for calling addData with ResponseItem.ofFunctionCall(functionCall).final ResponseItemList.BuilderaddData(ResponseFunctionToolCallOutputItem functionCallOutput)Alias for calling addData with ResponseItem.ofFunctionCallOutput(functionCallOutput).final ResponseItemList.BuilderaddData(ResponseItem.ImageGenerationCall imageGenerationCall)Alias for calling addData with ResponseItem.ofImageGenerationCall(imageGenerationCall).final ResponseItemList.BuilderaddData(ResponseCodeInterpreterToolCall codeInterpreterCall)Alias for calling addData with ResponseItem.ofCodeInterpreterCall(codeInterpreterCall).final ResponseItemList.BuilderaddData(ResponseItem.LocalShellCall localShellCall)Alias for calling addData with ResponseItem.ofLocalShellCall(localShellCall).final ResponseItemList.BuilderaddData(ResponseItem.LocalShellCallOutput localShellCallOutput)Alias for calling addData with ResponseItem.ofLocalShellCallOutput(localShellCallOutput).final ResponseItemList.BuilderaddData(ResponseFunctionShellToolCall shellCall)Alias for calling addData with ResponseItem.ofShellCall(shellCall).final ResponseItemList.BuilderaddData(ResponseFunctionShellToolCallOutput shellCallOutput)Alias for calling addData with ResponseItem.ofShellCallOutput(shellCallOutput).final ResponseItemList.BuilderaddData(ResponseApplyPatchToolCall applyPatchCall)Alias for calling addData with ResponseItem.ofApplyPatchCall(applyPatchCall).final ResponseItemList.BuilderaddData(ResponseApplyPatchToolCallOutput applyPatchCallOutput)Alias for calling addData with ResponseItem.ofApplyPatchCallOutput(applyPatchCallOutput).final ResponseItemList.BuilderaddData(ResponseItem.McpListTools mcpListTools)Alias for calling addData with ResponseItem.ofMcpListTools(mcpListTools).final ResponseItemList.BuilderaddData(ResponseItem.McpApprovalRequest mcpApprovalRequest)Alias for calling addData with ResponseItem.ofMcpApprovalRequest(mcpApprovalRequest).final ResponseItemList.BuilderaddData(ResponseItem.McpApprovalResponse mcpApprovalResponse)Alias for calling addData with ResponseItem.ofMcpApprovalResponse(mcpApprovalResponse).final ResponseItemList.BuilderaddData(ResponseItem.McpCall mcpCall)Alias for calling addData with ResponseItem.ofMcpCall(mcpCall).final ResponseItemList.BuilderfirstId(String firstId)The ID of the first item in the list. final ResponseItemList.BuilderfirstId(JsonField<String> firstId)Sets Builder.firstId to an arbitrary JSON value. final ResponseItemList.BuilderhasMore(Boolean hasMore)Whether there are more items available. final ResponseItemList.BuilderhasMore(JsonField<Boolean> hasMore)Sets Builder.hasMore to an arbitrary JSON value. final ResponseItemList.BuilderlastId(String lastId)The ID of the last item in the list. final ResponseItemList.BuilderlastId(JsonField<String> lastId)Sets Builder.lastId to an arbitrary JSON value. final ResponseItemList.Builderobject_(JsonValue object_)Sets the field to an arbitrary JSON value. final ResponseItemList.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ResponseItemList.BuilderputAdditionalProperty(String key, JsonValue value)final ResponseItemList.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ResponseItemList.BuilderremoveAdditionalProperty(String key)final ResponseItemList.BuilderremoveAllAdditionalProperties(Set<String> keys)final ResponseItemListbuild()Returns an immutable instance of ResponseItemList. -
-
Method Detail
-
data
final ResponseItemList.Builder data(List<ResponseItem> data)
A list of items used to generate this response.
-
data
final ResponseItemList.Builder data(JsonField<List<ResponseItem>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<ResponseItem>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addData
final ResponseItemList.Builder addData(ResponseItem data)
Adds a single ResponseItem to Builder.data.
-
addData
final ResponseItemList.Builder addData(ResponseInputMessageItem responseInputMessageItem)
Alias for calling addData with
ResponseItem.ofResponseInputMessageItem(responseInputMessageItem).
-
addData
final ResponseItemList.Builder addData(ResponseOutputMessage responseOutputMessage)
Alias for calling addData with
ResponseItem.ofResponseOutputMessage(responseOutputMessage).
-
addData
final ResponseItemList.Builder addData(ResponseFileSearchToolCall fileSearchCall)
Alias for calling addData with
ResponseItem.ofFileSearchCall(fileSearchCall).
-
addData
final ResponseItemList.Builder addData(ResponseComputerToolCall computerCall)
Alias for calling addData with
ResponseItem.ofComputerCall(computerCall).
-
addData
final ResponseItemList.Builder addData(ResponseComputerToolCallOutputItem computerCallOutput)
Alias for calling addData with
ResponseItem.ofComputerCallOutput(computerCallOutput).
-
addData
final ResponseItemList.Builder addData(ResponseFunctionWebSearch webSearchCall)
Alias for calling addData with
ResponseItem.ofWebSearchCall(webSearchCall).
-
addData
final ResponseItemList.Builder addData(ResponseFunctionToolCallItem functionCall)
Alias for calling addData with
ResponseItem.ofFunctionCall(functionCall).
-
addData
final ResponseItemList.Builder addData(ResponseFunctionToolCallOutputItem functionCallOutput)
Alias for calling addData with
ResponseItem.ofFunctionCallOutput(functionCallOutput).
-
addData
final ResponseItemList.Builder addData(ResponseItem.ImageGenerationCall imageGenerationCall)
Alias for calling addData with
ResponseItem.ofImageGenerationCall(imageGenerationCall).
-
addData
final ResponseItemList.Builder addData(ResponseCodeInterpreterToolCall codeInterpreterCall)
Alias for calling addData with
ResponseItem.ofCodeInterpreterCall(codeInterpreterCall).
-
addData
final ResponseItemList.Builder addData(ResponseItem.LocalShellCall localShellCall)
Alias for calling addData with
ResponseItem.ofLocalShellCall(localShellCall).
-
addData
final ResponseItemList.Builder addData(ResponseItem.LocalShellCallOutput localShellCallOutput)
Alias for calling addData with
ResponseItem.ofLocalShellCallOutput(localShellCallOutput).
-
addData
final ResponseItemList.Builder addData(ResponseFunctionShellToolCall shellCall)
Alias for calling addData with
ResponseItem.ofShellCall(shellCall).
-
addData
final ResponseItemList.Builder addData(ResponseFunctionShellToolCallOutput shellCallOutput)
Alias for calling addData with
ResponseItem.ofShellCallOutput(shellCallOutput).
-
addData
final ResponseItemList.Builder addData(ResponseApplyPatchToolCall applyPatchCall)
Alias for calling addData with
ResponseItem.ofApplyPatchCall(applyPatchCall).
-
addData
final ResponseItemList.Builder addData(ResponseApplyPatchToolCallOutput applyPatchCallOutput)
Alias for calling addData with
ResponseItem.ofApplyPatchCallOutput(applyPatchCallOutput).
-
addData
final ResponseItemList.Builder addData(ResponseItem.McpListTools mcpListTools)
Alias for calling addData with
ResponseItem.ofMcpListTools(mcpListTools).
-
addData
final ResponseItemList.Builder addData(ResponseItem.McpApprovalRequest mcpApprovalRequest)
Alias for calling addData with
ResponseItem.ofMcpApprovalRequest(mcpApprovalRequest).
-
addData
final ResponseItemList.Builder addData(ResponseItem.McpApprovalResponse mcpApprovalResponse)
Alias for calling addData with
ResponseItem.ofMcpApprovalResponse(mcpApprovalResponse).
-
addData
final ResponseItemList.Builder addData(ResponseItem.McpCall mcpCall)
Alias for calling addData with
ResponseItem.ofMcpCall(mcpCall).
-
firstId
final ResponseItemList.Builder firstId(String firstId)
The ID of the first item in the list.
-
firstId
final ResponseItemList.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 ResponseItemList.Builder hasMore(Boolean hasMore)
Whether there are more items available.
-
hasMore
final ResponseItemList.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 ResponseItemList.Builder lastId(String lastId)
The ID of the last item in the list.
-
lastId
final ResponseItemList.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 ResponseItemList.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 ResponseItemList.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseItemList.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseItemList.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseItemList.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseItemList.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseItemList build()
Returns an immutable instance of ResponseItemList.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data() .firstId() .hasMore() .lastId()
-
-
-
-