Package com.google.genai.types
Class StreamableHttpTransport.Builder
java.lang.Object
com.google.genai.types.StreamableHttpTransport.Builder
- Enclosing class:
- StreamableHttpTransport
Builder for StreamableHttpTransport.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StreamableHttpTransportbuild()Clears the value of headers field.Clears the value of sseReadTimeout field.Clears the value of terminateOnClose field.Clears the value of timeout field.clearUrl()Clears the value of url field.abstract StreamableHttpTransport.BuilderSetter for headers.abstract StreamableHttpTransport.BuildersseReadTimeout(Duration sseReadTimeout) Setter for sseReadTimeout.abstract StreamableHttpTransport.BuilderterminateOnClose(boolean terminateOnClose) Setter for terminateOnClose.abstract StreamableHttpTransport.BuilderSetter for timeout.abstract StreamableHttpTransport.BuilderSetter for url.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headers
Setter for headers.headers: Optional: Fields for authentication headers, timeouts, etc., if needed.
-
clearHeaders
Clears the value of headers field. -
sseReadTimeout
Setter for sseReadTimeout.sseReadTimeout: Timeout for SSE read operations.
-
clearSseReadTimeout
Clears the value of sseReadTimeout field. -
terminateOnClose
Setter for terminateOnClose.terminateOnClose: Whether to close the client session when the transport closes.
-
clearTerminateOnClose
Clears the value of terminateOnClose field. -
timeout
Setter for timeout.timeout: HTTP timeout for regular operations.
-
clearTimeout
Clears the value of timeout field. -
url
Setter for url.url: The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp".
-
clearUrl
Clears the value of url field. -
build
-