Class CreateInteractionResponse
java.lang.Object
com.google.genai.gaos.models.operations.CreateInteractionResponse
- All Implemented Interfaces:
Response
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreateInteractionResponse(String contentType, int statusCode, HttpResponse<InputStream> rawResponse) CreateInteractionResponse(String contentType, int statusCode, HttpResponse<InputStream> rawResponse, Interaction interaction) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()HTTP response content type for this operationbooleanevents()The server-sent events of astream=trueinteraction.inthashCode()Successful operationRaw HTTP response; suitable for custom response parsingintHTTP response status code for this operationtoString()withContentType(String contentType) HTTP response content type for this operationReplaces the stream returned byevents()(used by automatic continuation).withInteraction(Interaction interaction) Successful operationwithRawResponse(HttpResponse<InputStream> rawResponse) Raw HTTP response; suitable for custom response parsingwithStatusCode(int statusCode) HTTP response status code for this operation
-
Constructor Details
-
CreateInteractionResponse
public CreateInteractionResponse(@Nonnull String contentType, int statusCode, @Nonnull HttpResponse<InputStream> rawResponse, @Nullable Interaction interaction) -
CreateInteractionResponse
public CreateInteractionResponse(@Nonnull String contentType, int statusCode, @Nonnull HttpResponse<InputStream> rawResponse)
-
-
Method Details
-
contentType
HTTP response content type for this operation- Specified by:
contentTypein interfaceResponse
-
statusCode
public int statusCode()HTTP response status code for this operation- Specified by:
statusCodein interfaceResponse
-
rawResponse
Raw HTTP response; suitable for custom response parsing- Specified by:
rawResponsein interfaceResponse
-
interaction
Successful operation -
events
The server-sent events of astream=trueinteraction.With automatic continuation enabled (the default), the same stream instance is returned on every call and spans every continuation hop; see
Interactions.create. -
withEvents
Replaces the stream returned byevents()(used by automatic continuation). -
builder
-
withContentType
HTTP response content type for this operation -
withStatusCode
HTTP response status code for this operation -
withRawResponse
Raw HTTP response; suitable for custom response parsing -
withInteraction
Successful operation -
equals
-
hashCode
public int hashCode() -
toString
-