Record Class BatchRequestResponse.BatchError<T>
java.lang.Object
java.lang.Record
dev.langchain4j.model.googleai.BatchRequestResponse.BatchError<T>
- All Implemented Interfaces:
BatchRequestResponse.BatchResponse<T>
- Enclosing class:
BatchRequestResponse
public static record BatchRequestResponse.BatchError<T>(BatchRequestResponse.BatchName batchName, int code, String message, BatchRequestResponse.BatchJobState state, List<Map<String,Object>> details)
extends Record
implements BatchRequestResponse.BatchResponse<T>
Represents an error that occurred during a batch operation.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchError(BatchRequestResponse.BatchName batchName, int code, String message, BatchRequestResponse.BatchJobState state, List<Map<String, Object>> details) Creates an instance of aBatchErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebatchNamerecord component.intcode()Returns the value of thecoderecord component.details()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BatchError
public BatchError(BatchRequestResponse.BatchName batchName, int code, String message, BatchRequestResponse.BatchJobState state, List<Map<String, Object>> details) Creates an instance of aBatchErrorrecord class.- Parameters:
batchName- the value for thebatchNamerecord componentcode- the value for thecoderecord componentmessage- the value for themessagerecord componentstate- the value for thestaterecord componentdetails- the value for thedetailsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
batchName
Returns the value of thebatchNamerecord component.- Returns:
- the value of the
batchNamerecord component
-
code
public int code()Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
details
-