Record Class ModelProviderDescriptor
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ModelProviderDescriptor
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record ModelProviderDescriptor(ModelProviderKind kind, String id, String label, Long ordering)
extends Record
One model provider available to the session — the model analog of the account `ProviderDescriptor`. Opaque id/label/kind plus a stable ordering; central code never branches on kind.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionModelProviderDescriptor(ModelProviderKind kind, String id, String label, Long ordering) Creates an instance of aModelProviderDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.label()Returns the value of thelabelrecord component.ordering()Returns the value of theorderingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelProviderDescriptor
Creates an instance of aModelProviderDescriptorrecord class.- Parameters:
kind- the value for thekindrecord componentid- the value for theidrecord componentlabel- the value for thelabelrecord componentordering- the value for theorderingrecord 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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
ordering
Returns the value of theorderingrecord component.- Returns:
- the value of the
orderingrecord component
-