Record Class ModelProviderAdapterDescriptor
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ModelProviderAdapterDescriptor
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record ModelProviderAdapterDescriptor(String adapterId, String providerKind, String displayName, ModelProviderAttribution provenance, ModelProviderAutomaticDiscoveryPolicy automaticDiscovery, List<ModelProviderAdapterOperationDescriptor> operations)
extends Record
A normalized model-provider adapter in the session's effective catalog.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionModelProviderAdapterDescriptor(String adapterId, String providerKind, String displayName, ModelProviderAttribution provenance, ModelProviderAutomaticDiscoveryPolicy automaticDiscovery, List<ModelProviderAdapterOperationDescriptor> operations) Creates an instance of aModelProviderAdapterDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadapterIdrecord component.Returns the value of theautomaticDiscoveryrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationsrecord component.Returns the value of theprovenancerecord component.Returns the value of theproviderKindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelProviderAdapterDescriptor
public ModelProviderAdapterDescriptor(String adapterId, String providerKind, String displayName, ModelProviderAttribution provenance, ModelProviderAutomaticDiscoveryPolicy automaticDiscovery, List<ModelProviderAdapterOperationDescriptor> operations) Creates an instance of aModelProviderAdapterDescriptorrecord class.- Parameters:
adapterId- the value for theadapterIdrecord componentproviderKind- the value for theproviderKindrecord componentdisplayName- the value for thedisplayNamerecord componentprovenance- the value for theprovenancerecord componentautomaticDiscovery- the value for theautomaticDiscoveryrecord componentoperations- the value for theoperationsrecord 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). -
adapterId
Returns the value of theadapterIdrecord component.- Returns:
- the value of the
adapterIdrecord component
-
providerKind
Returns the value of theproviderKindrecord component.- Returns:
- the value of the
providerKindrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
provenance
Returns the value of theprovenancerecord component.- Returns:
- the value of the
provenancerecord component
-
automaticDiscovery
Returns the value of theautomaticDiscoveryrecord component.- Returns:
- the value of the
automaticDiscoveryrecord component
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-