Record Class ModelProviderProvenance
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ModelProviderProvenance
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record ModelProviderProvenance(String adapterId, String providerKind, ModelProviderProvenanceSource source, String ownerId, String ownerDisplayName)
extends Record
Attribution for the adapter that produced a provider row.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionModelProviderProvenance(String adapterId, String providerKind, ModelProviderProvenanceSource source, String ownerId, String ownerDisplayName) Creates an instance of aModelProviderProvenancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadapterIdrecord 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 theownerDisplayNamerecord component.ownerId()Returns the value of theownerIdrecord component.Returns the value of theproviderKindrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelProviderProvenance
public ModelProviderProvenance(String adapterId, String providerKind, ModelProviderProvenanceSource source, String ownerId, String ownerDisplayName) Creates an instance of aModelProviderProvenancerecord class.- Parameters:
adapterId- the value for theadapterIdrecord componentproviderKind- the value for theproviderKindrecord componentsource- the value for thesourcerecord componentownerId- the value for theownerIdrecord componentownerDisplayName- the value for theownerDisplayNamerecord 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
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
ownerId
Returns the value of theownerIdrecord component.- Returns:
- the value of the
ownerIdrecord component
-
ownerDisplayName
Returns the value of theownerDisplayNamerecord component.- Returns:
- the value of the
ownerDisplayNamerecord component
-