Record Class SessionConnectorsGetCapabilitiesResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionConnectorsGetCapabilitiesResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionConnectorsGetCapabilitiesResult(Long apiVersion, ConnectorAvailability availability, Boolean consentContinuation, Boolean opaqueAccountSelection, Boolean sessionAccountSelection, Boolean targetedReconcile, Long maxPollAttempts, Long maxPollIntervalMs, Long maxDeadlineMs)
extends Record
Feature detection and hard polling limits for the EXPERIMENTAL session connector API.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionConnectorsGetCapabilitiesResult(Long apiVersion, ConnectorAvailability availability, Boolean consentContinuation, Boolean opaqueAccountSelection, Boolean sessionAccountSelection, Boolean targetedReconcile, Long maxPollAttempts, Long maxPollIntervalMs, Long maxDeadlineMs) Creates an instance of aSessionConnectorsGetCapabilitiesResultrecord class.SessionConnectorsGetCapabilitiesResult(Long apiVersion, ConnectorAvailability availability, Boolean consentContinuation, Boolean opaqueAccountSelection, Long maxPollAttempts, Long maxPollIntervalMs, Long maxDeadlineMs) Creates a record with the components it had before later optional fields were added. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapiVersionrecord component.Returns the value of theavailabilityrecord component.Returns the value of theconsentContinuationrecord 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 themaxDeadlineMsrecord component.Returns the value of themaxPollAttemptsrecord component.Returns the value of themaxPollIntervalMsrecord component.Returns the value of theopaqueAccountSelectionrecord component.Returns the value of thesessionAccountSelectionrecord component.Returns the value of thetargetedReconcilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionConnectorsGetCapabilitiesResult
public SessionConnectorsGetCapabilitiesResult(Long apiVersion, ConnectorAvailability availability, Boolean consentContinuation, Boolean opaqueAccountSelection, Long maxPollAttempts, Long maxPollIntervalMs, Long maxDeadlineMs) Creates a record with the components it had before later optional fields were added.- Parameters:
apiVersion- Connector API contract version.availability- Current session availability. Disabled availability is reported without making a Connector request.consentContinuation- Whether connect and reconnect can return an opaque continuation for bounded consent polling.opaqueAccountSelection- Whether callers select a host-owned GitHub account through an opaque selection ID rather than supplying a provider token.maxPollAttempts- Maximum accepted polling attempts for one continuation call.maxPollIntervalMs- Maximum accepted delay in milliseconds between polling attempts.maxDeadlineMs- Maximum accepted wall-clock deadline in milliseconds for one continuation call.
-
SessionConnectorsGetCapabilitiesResult
public SessionConnectorsGetCapabilitiesResult(Long apiVersion, ConnectorAvailability availability, Boolean consentContinuation, Boolean opaqueAccountSelection, Boolean sessionAccountSelection, Boolean targetedReconcile, Long maxPollAttempts, Long maxPollIntervalMs, Long maxDeadlineMs) Creates an instance of aSessionConnectorsGetCapabilitiesResultrecord class.- Parameters:
apiVersion- the value for theapiVersionrecord componentavailability- the value for theavailabilityrecord componentconsentContinuation- the value for theconsentContinuationrecord componentopaqueAccountSelection- the value for theopaqueAccountSelectionrecord componentsessionAccountSelection- the value for thesessionAccountSelectionrecord componenttargetedReconcile- the value for thetargetedReconcilerecord componentmaxPollAttempts- the value for themaxPollAttemptsrecord componentmaxPollIntervalMs- the value for themaxPollIntervalMsrecord componentmaxDeadlineMs- the value for themaxDeadlineMsrecord 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). -
apiVersion
Returns the value of theapiVersionrecord component.- Returns:
- the value of the
apiVersionrecord component
-
availability
Returns the value of theavailabilityrecord component.- Returns:
- the value of the
availabilityrecord component
-
consentContinuation
Returns the value of theconsentContinuationrecord component.- Returns:
- the value of the
consentContinuationrecord component
-
opaqueAccountSelection
Returns the value of theopaqueAccountSelectionrecord component.- Returns:
- the value of the
opaqueAccountSelectionrecord component
-
sessionAccountSelection
Returns the value of thesessionAccountSelectionrecord component.- Returns:
- the value of the
sessionAccountSelectionrecord component
-
targetedReconcile
Returns the value of thetargetedReconcilerecord component.- Returns:
- the value of the
targetedReconcilerecord component
-
maxPollAttempts
Returns the value of themaxPollAttemptsrecord component.- Returns:
- the value of the
maxPollAttemptsrecord component
-
maxPollIntervalMs
Returns the value of themaxPollIntervalMsrecord component.- Returns:
- the value of the
maxPollIntervalMsrecord component
-
maxDeadlineMs
Returns the value of themaxDeadlineMsrecord component.- Returns:
- the value of the
maxDeadlineMsrecord component
-