Record Class LlmInferenceHttpResponseChunkParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.LlmInferenceHttpResponseChunkParams
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record LlmInferenceHttpResponseChunkParams(String requestId, String data, Boolean binary, Boolean end, LlmInferenceHttpResponseChunkError error)
extends Record
A response body chunk or terminal error.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionLlmInferenceHttpResponseChunkParams(String requestId, String data, Boolean binary, Boolean end, LlmInferenceHttpResponseChunkError error) Creates an instance of aLlmInferenceHttpResponseChunkParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbinary()Returns the value of thebinaryrecord component.data()Returns the value of thedatarecord component.end()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LlmInferenceHttpResponseChunkParams
public LlmInferenceHttpResponseChunkParams(String requestId, String data, Boolean binary, Boolean end, LlmInferenceHttpResponseChunkError error) Creates an instance of aLlmInferenceHttpResponseChunkParamsrecord class.- Parameters:
requestId- the value for therequestIdrecord componentdata- the value for thedatarecord componentbinary- the value for thebinaryrecord componentend- the value for theendrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
binary
Returns the value of thebinaryrecord component.- Returns:
- the value of the
binaryrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-