Record Class DashScopeApiSpec.EmbeddingRequestInputParameters
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.spec.DashScopeApiSpec.EmbeddingRequestInputParameters
- Enclosing class:
- DashScopeApiSpec
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionEmbeddingRequestInputParameters(String textType) Deprecated.EmbeddingRequestInputParameters(String textType, Integer dimension) Creates an instance of aEmbeddingRequestInputParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.textType()Returns the value of thetextTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EmbeddingRequestInputParameters
Deprecated. -
EmbeddingRequestInputParameters
Creates an instance of aEmbeddingRequestInputParametersrecord class.- Parameters:
textType- the value for thetextTyperecord componentdimension- the value for thedimensionrecord component
-
-
Method Details
-
builder
-
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). -
textType
Returns the value of thetextTyperecord component.- Returns:
- the value of the
textTyperecord component
-
dimension
Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-