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, Boolean codexAgentEnabled, Object isMcpEnabled, String quotaResetDate, CopilotUserResponseQuotaSnapshots quotaSnapshots, Boolean restrictedTelemetry, Boolean tokenBasedBilling, 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
-
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, Boolean codexAgentEnabled, Object isMcpEnabled, String quotaResetDate, CopilotUserResponseQuotaSnapshots quotaSnapshots, Boolean restrictedTelemetry, Boolean tokenBasedBilling, 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 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.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.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.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, Boolean codexAgentEnabled, Object isMcpEnabled, String quotaResetDate, CopilotUserResponseQuotaSnapshots quotaSnapshots, Boolean restrictedTelemetry, Boolean tokenBasedBilling, 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 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 componenttokenBasedBilling- the value for thetokenBasedBillingrecord 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
-
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
-
tokenBasedBilling
Returns the value of thetokenBasedBillingrecord component.- Returns:
- the value of the
tokenBasedBillingrecord 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
-