Record Class DashScopeApiSpec.DocumentSplitRequest
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.DocumentSplitRequest
- Enclosing class:
- DashScopeApiSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkSizerecord component.final booleanIndicates whether some other object is "equal to" this one.fileType()Returns the value of thefileTyperecord component.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.Returns the value of theoverlapSizerecord component.Returns the value of theseparatorrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DocumentSplitRequest
public DocumentSplitRequest(String text, Integer chunkSize, Integer overlapSize, String fileType, String language, String separator) Creates an instance of aDocumentSplitRequestrecord class.- Parameters:
text- the value for thetextrecord componentchunkSize- the value for thechunkSizerecord componentoverlapSize- the value for theoverlapSizerecord componentfileType- the value for thefileTyperecord componentlanguage- the value for thelanguagerecord componentseparator- the value for theseparatorrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
chunkSize
Returns the value of thechunkSizerecord component.- Returns:
- the value of the
chunkSizerecord component
-
overlapSize
Returns the value of theoverlapSizerecord component.- Returns:
- the value of the
overlapSizerecord component
-
fileType
Returns the value of thefileTyperecord component.- Returns:
- the value of the
fileTyperecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
separator
Returns the value of theseparatorrecord component.- Returns:
- the value of the
separatorrecord component
-