Record Class ProviderDescriptor
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ProviderDescriptor
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record ProviderDescriptor(LoginProviderKind kind, String label, Boolean available)
extends Record
A provider offered for interactive login.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionProviderDescriptor(LoginProviderKind kind, String label, Boolean available) Creates an instance of aProviderDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavailablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProviderDescriptor
Creates an instance of aProviderDescriptorrecord class.- Parameters:
kind- the value for thekindrecord componentlabel- the value for thelabelrecord componentavailable- the value for theavailablerecord 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
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
available
Returns the value of theavailablerecord component.- Returns:
- the value of the
availablerecord component
-