Class GenerateTextResponse
- java.lang.Object
-
- com.oracle.bmc.responses.BmcResponse
-
- com.oracle.bmc.generativeaiinference.responses.GenerateTextResponse
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20231130") public class GenerateTextResponse extends BmcResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GenerateTextResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GenerateTextResponse.Builder
builder()
Return a new builder for this response object.boolean
equals(Object o)
String
getEtag()
For optimistic concurrency control.InputStream
getEventStream()
Returns the event-stream for operations that support ‘text/event-stream’ media type.GenerateTextResult
getGenerateTextResult()
The returned GenerateTextResult instance.String
getOpcRequestId()
Unique Oracle-assigned identifier for the request.int
hashCode()
String
toString()
-
Methods inherited from class com.oracle.bmc.responses.BmcResponse
canEqual, get__httpStatusCode__, getHeaders
-
-
-
-
Method Detail
-
getEtag
public String getEtag()
For optimistic concurrency control.See if-match.
- Returns:
- the value
-
getOpcRequestId
public 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
-
getGenerateTextResult
public GenerateTextResult getGenerateTextResult()
The returned GenerateTextResult instance.- Returns:
- the value
-
getEventStream
public 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
-
builder
public static GenerateTextResponse.Builder builder()
Return a new builder for this response object.- Returns:
- builder for the response object
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classBmcResponse
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBmcResponse
-
-