Class ChatResponse
- java.lang.Object
- 
- com.oracle.bmc.responses.BmcResponse
- 
- com.oracle.bmc.generativeaiinference.responses.ChatResponse
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20231130") public class ChatResponse extends BmcResponse
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classChatResponse.Builder
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChatResponse.Builderbuilder()Return a new builder for this response object.booleanequals(Object o)ChatResultgetChatResult()The returned ChatResult instance.StringgetEtag()For optimistic concurrency control.InputStreamgetEventStream()Returns the event-stream for operations that support ‘text/event-stream’ media type.StringgetModelDeprecationInfo()Provides deprecation details for models, included only when a model is deprecated.StringgetOpcRequestId()Unique Oracle-assigned identifier for the request.inthashCode()StringtoString()- 
Methods inherited from class com.oracle.bmc.responses.BmcResponsecanEqual, get__httpStatusCode__, getHeaders
 
- 
 
- 
- 
- 
Method Detail- 
getEtagpublic String getEtag() For optimistic concurrency control.See if-match. - Returns:
- the value
 
 - 
getOpcRequestIdpublic String getOpcRequestId() Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID. - Returns:
- the value
 
 - 
getModelDeprecationInfopublic String getModelDeprecationInfo() Provides deprecation details for models, included only when a model is deprecated.- Returns:
- the value
 
 - 
getChatResultpublic ChatResult getChatResult() The returned ChatResult instance.- Returns:
- the value
 
 - 
getEventStreampublic InputStream getEventStream() Returns the event-stream for operations that support ‘text/event-stream’ media type.The value can be null in-case a non-streamed response is returned by the server. NOTE : Use try-with-resources or explicitly call getEventStream().close() to close the stream. This is important to avoid the issue mentioned in the link below https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdktroubleshooting.htm#javasdktroubleshooting_topic_program_hangs_for_an_indefinite_time - Returns:
- the event-stream
 
 - 
builderpublic static ChatResponse.Builder builder() Return a new builder for this response object.- Returns:
- builder for the response object
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- BmcResponse
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- BmcResponse
 
 
- 
 
-