Record Class BatchRequestResponse.BatchSuccess<T>
java.lang.Object
java.lang.Record
dev.langchain4j.model.googleai.BatchRequestResponse.BatchSuccess<T>
- Type Parameters:
T- the type of the response payload- Record Components:
batchName- the name identifying the batch operationresponses- the list of successful responseserrors- the list of errors that occurred during processing, ornullif none
- All Implemented Interfaces:
BatchRequestResponse.BatchResponse<T>
- Enclosing class:
BatchRequestResponse
public static record BatchRequestResponse.BatchSuccess<T>(BatchRequestResponse.BatchName batchName, List<T> responses, @Nullable List<BatchRequestResponse.Operation.Status> errors)
extends Record
implements BatchRequestResponse.BatchResponse<T>
Represents a successful batch operation.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchSuccess(BatchRequestResponse.BatchName batchName, List<T> responses, @Nullable List<BatchRequestResponse.Operation.Status> errors) Creates an instance of aBatchSuccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebatchNamerecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable List<BatchRequestResponse.Operation.Status> errors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theresponsesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BatchSuccess
public BatchSuccess(BatchRequestResponse.BatchName batchName, List<T> responses, @Nullable List<BatchRequestResponse.Operation.Status> errors) Creates an instance of aBatchSuccessrecord class.
-
-
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). -
batchName
-
responses
-
errors
-