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 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 a SessionConnectorsGetCapabilitiesResult record class.
      Parameters:
      apiVersion - the value for the apiVersion record component
      availability - the value for the availability record component
      consentContinuation - the value for the consentContinuation record component
      opaqueAccountSelection - the value for the opaqueAccountSelection record component
      sessionAccountSelection - the value for the sessionAccountSelection record component
      targetedReconcile - the value for the targetedReconcile record component
      maxPollAttempts - the value for the maxPollAttempts record component
      maxPollIntervalMs - the value for the maxPollIntervalMs record component
      maxDeadlineMs - the value for the maxDeadlineMs record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • apiVersion

      public Long apiVersion()
      Returns the value of the apiVersion record component.
      Returns:
      the value of the apiVersion record component
    • availability

      public ConnectorAvailability availability()
      Returns the value of the availability record component.
      Returns:
      the value of the availability record component
    • consentContinuation

      public Boolean consentContinuation()
      Returns the value of the consentContinuation record component.
      Returns:
      the value of the consentContinuation record component
    • opaqueAccountSelection

      public Boolean opaqueAccountSelection()
      Returns the value of the opaqueAccountSelection record component.
      Returns:
      the value of the opaqueAccountSelection record component
    • sessionAccountSelection

      public Boolean sessionAccountSelection()
      Returns the value of the sessionAccountSelection record component.
      Returns:
      the value of the sessionAccountSelection record component
    • targetedReconcile

      public Boolean targetedReconcile()
      Returns the value of the targetedReconcile record component.
      Returns:
      the value of the targetedReconcile record component
    • maxPollAttempts

      public Long maxPollAttempts()
      Returns the value of the maxPollAttempts record component.
      Returns:
      the value of the maxPollAttempts record component
    • maxPollIntervalMs

      public Long maxPollIntervalMs()
      Returns the value of the maxPollIntervalMs record component.
      Returns:
      the value of the maxPollIntervalMs record component
    • maxDeadlineMs

      public Long maxDeadlineMs()
      Returns the value of the maxDeadlineMs record component.
      Returns:
      the value of the maxDeadlineMs record component