Record Class CopilotUserResponse
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.CopilotUserResponse
@Generated("copilot-sdk-codegen")
public record CopilotUserResponse(String login, String accessTypeSku, String analyticsTrackingId, Object assignedDate, Boolean canSignupForLimited, Boolean chatEnabled, String copilotPlan, Boolean copilotignoreEnabled, CopilotUserResponseEndpoints endpoints, List<String> organizationLoginList, Object organizationList, List<CopilotUserResponse.CopilotUserResponseEnterpriseListItem> enterpriseList, Boolean codexAgentEnabled, Object isMcpEnabled, String quotaResetDate, CopilotUserResponseQuotaSnapshots quotaSnapshots, Boolean restrictedTelemetry, Boolean isStaff, Boolean te, Boolean tokenBasedBilling, Boolean canUpgradePlan, String quotaResetDateUtc, Map<String,Double> limitedUserQuotas, String limitedUserResetDate, Map<String,Double> monthlyQuotas, Boolean cloudSessionStorageEnabled, Boolean cliRemoteControlEnabled)
extends Record
Snapshot of the authenticated user's Copilot subscription info, if known. Mirrors the GitHub API `/copilot_internal/v2/token` user response shape — the runtime trusts this verbatim and does not re-fetch when set.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionCopilotUserResponse(String login, String accessTypeSku, String analyticsTrackingId, Object assignedDate, Boolean canSignupForLimited, Boolean chatEnabled, String copilotPlan, Boolean copilotignoreEnabled, CopilotUserResponseEndpoints endpoints, List<String> organizationLoginList, Object organizationList, List<CopilotUserResponse.CopilotUserResponseEnterpriseListItem> enterpriseList, Boolean codexAgentEnabled, Object isMcpEnabled, String quotaResetDate, CopilotUserResponseQuotaSnapshots quotaSnapshots, Boolean restrictedTelemetry, Boolean isStaff, Boolean te, Boolean tokenBasedBilling, Boolean canUpgradePlan, String quotaResetDateUtc, Map<String, Double> limitedUserQuotas, String limitedUserResetDate, Map<String, Double> monthlyQuotas, Boolean cloudSessionStorageEnabled, Boolean cliRemoteControlEnabled) Creates an instance of aCopilotUserResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTypeSkurecord component.Returns the value of theanalyticsTrackingIdrecord component.Returns the value of theassignedDaterecord component.Returns the value of thecanSignupForLimitedrecord component.Returns the value of thecanUpgradePlanrecord component.Returns the value of thechatEnabledrecord component.Returns the value of thecliRemoteControlEnabledrecord component.Returns the value of thecloudSessionStorageEnabledrecord component.Returns the value of thecodexAgentEnabledrecord component.Returns the value of thecopilotignoreEnabledrecord component.Returns the value of thecopilotPlanrecord component.Returns the value of theendpointsrecord component.Returns the value of theenterpriseListrecord 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 theisMcpEnabledrecord component.isStaff()Returns the value of theisStaffrecord component.Returns the value of thelimitedUserQuotasrecord component.Returns the value of thelimitedUserResetDaterecord component.login()Returns the value of theloginrecord component.Returns the value of themonthlyQuotasrecord component.Returns the value of theorganizationListrecord component.Returns the value of theorganizationLoginListrecord component.Returns the value of thequotaResetDaterecord component.Returns the value of thequotaResetDateUtcrecord component.Returns the value of thequotaSnapshotsrecord component.Returns the value of therestrictedTelemetryrecord component.te()Returns the value of theterecord component.Returns the value of thetokenBasedBillingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CopilotUserResponse
public CopilotUserResponse(String login, String accessTypeSku, String analyticsTrackingId, Object assignedDate, Boolean canSignupForLimited, Boolean chatEnabled, String copilotPlan, Boolean copilotignoreEnabled, CopilotUserResponseEndpoints endpoints, List<String> organizationLoginList, Object organizationList, List<CopilotUserResponse.CopilotUserResponseEnterpriseListItem> enterpriseList, Boolean codexAgentEnabled, Object isMcpEnabled, String quotaResetDate, CopilotUserResponseQuotaSnapshots quotaSnapshots, Boolean restrictedTelemetry, Boolean isStaff, Boolean te, Boolean tokenBasedBilling, Boolean canUpgradePlan, String quotaResetDateUtc, Map<String, Double> limitedUserQuotas, String limitedUserResetDate, Map<String, Double> monthlyQuotas, Boolean cloudSessionStorageEnabled, Boolean cliRemoteControlEnabled) Creates an instance of aCopilotUserResponserecord class.- Parameters:
login- the value for theloginrecord componentaccessTypeSku- the value for theaccessTypeSkurecord componentanalyticsTrackingId- the value for theanalyticsTrackingIdrecord componentassignedDate- the value for theassignedDaterecord componentcanSignupForLimited- the value for thecanSignupForLimitedrecord componentchatEnabled- the value for thechatEnabledrecord componentcopilotPlan- the value for thecopilotPlanrecord componentcopilotignoreEnabled- the value for thecopilotignoreEnabledrecord componentendpoints- the value for theendpointsrecord componentorganizationLoginList- the value for theorganizationLoginListrecord componentorganizationList- the value for theorganizationListrecord componententerpriseList- the value for theenterpriseListrecord componentcodexAgentEnabled- the value for thecodexAgentEnabledrecord componentisMcpEnabled- the value for theisMcpEnabledrecord componentquotaResetDate- the value for thequotaResetDaterecord componentquotaSnapshots- the value for thequotaSnapshotsrecord componentrestrictedTelemetry- the value for therestrictedTelemetryrecord componentisStaff- the value for theisStaffrecord componentte- the value for theterecord componenttokenBasedBilling- the value for thetokenBasedBillingrecord componentcanUpgradePlan- the value for thecanUpgradePlanrecord componentquotaResetDateUtc- the value for thequotaResetDateUtcrecord componentlimitedUserQuotas- the value for thelimitedUserQuotasrecord componentlimitedUserResetDate- the value for thelimitedUserResetDaterecord componentmonthlyQuotas- the value for themonthlyQuotasrecord componentcloudSessionStorageEnabled- the value for thecloudSessionStorageEnabledrecord componentcliRemoteControlEnabled- the value for thecliRemoteControlEnabledrecord 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). -
login
Returns the value of theloginrecord component.- Returns:
- the value of the
loginrecord component
-
accessTypeSku
Returns the value of theaccessTypeSkurecord component.- Returns:
- the value of the
accessTypeSkurecord component
-
analyticsTrackingId
Returns the value of theanalyticsTrackingIdrecord component.- Returns:
- the value of the
analyticsTrackingIdrecord component
-
assignedDate
Returns the value of theassignedDaterecord component.- Returns:
- the value of the
assignedDaterecord component
-
canSignupForLimited
Returns the value of thecanSignupForLimitedrecord component.- Returns:
- the value of the
canSignupForLimitedrecord component
-
chatEnabled
Returns the value of thechatEnabledrecord component.- Returns:
- the value of the
chatEnabledrecord component
-
copilotPlan
Returns the value of thecopilotPlanrecord component.- Returns:
- the value of the
copilotPlanrecord component
-
copilotignoreEnabled
Returns the value of thecopilotignoreEnabledrecord component.- Returns:
- the value of the
copilotignoreEnabledrecord component
-
endpoints
Returns the value of theendpointsrecord component.- Returns:
- the value of the
endpointsrecord component
-
organizationLoginList
-
organizationList
Returns the value of theorganizationListrecord component.- Returns:
- the value of the
organizationListrecord component
-
enterpriseList
Returns the value of theenterpriseListrecord component.- Returns:
- the value of the
enterpriseListrecord component
-
codexAgentEnabled
Returns the value of thecodexAgentEnabledrecord component.- Returns:
- the value of the
codexAgentEnabledrecord component
-
isMcpEnabled
Returns the value of theisMcpEnabledrecord component.- Returns:
- the value of the
isMcpEnabledrecord component
-
quotaResetDate
Returns the value of thequotaResetDaterecord component.- Returns:
- the value of the
quotaResetDaterecord component
-
quotaSnapshots
Returns the value of thequotaSnapshotsrecord component.- Returns:
- the value of the
quotaSnapshotsrecord component
-
restrictedTelemetry
Returns the value of therestrictedTelemetryrecord component.- Returns:
- the value of the
restrictedTelemetryrecord component
-
isStaff
Returns the value of theisStaffrecord component.- Returns:
- the value of the
isStaffrecord component
-
te
Returns the value of theterecord component.- Returns:
- the value of the
terecord component
-
tokenBasedBilling
Returns the value of thetokenBasedBillingrecord component.- Returns:
- the value of the
tokenBasedBillingrecord component
-
canUpgradePlan
Returns the value of thecanUpgradePlanrecord component.- Returns:
- the value of the
canUpgradePlanrecord component
-
quotaResetDateUtc
Returns the value of thequotaResetDateUtcrecord component.- Returns:
- the value of the
quotaResetDateUtcrecord component
-
limitedUserQuotas
-
limitedUserResetDate
Returns the value of thelimitedUserResetDaterecord component.- Returns:
- the value of the
limitedUserResetDaterecord component
-
monthlyQuotas
-
cloudSessionStorageEnabled
Returns the value of thecloudSessionStorageEnabledrecord component.- Returns:
- the value of the
cloudSessionStorageEnabledrecord component
-
cliRemoteControlEnabled
Returns the value of thecliRemoteControlEnabledrecord component.- Returns:
- the value of the
cliRemoteControlEnabledrecord component
-