Record Class GitHubTelemetryNotification
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.GitHubTelemetryNotification
@Generated("copilot-sdk-codegen")
public record GitHubTelemetryNotification(String sessionId, Boolean restricted, GitHubTelemetryEvent event)
extends Record
Payload for a `gitHubTelemetry.event` notification: a single GitHub telemetry event the runtime forwards to a host connection that opted into telemetry forwarding for the session.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionGitHubTelemetryNotification(String sessionId, Boolean restricted, GitHubTelemetryEvent event) Creates an instance of aGitHubTelemetryNotificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of therestrictedrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GitHubTelemetryNotification
public GitHubTelemetryNotification(String sessionId, Boolean restricted, GitHubTelemetryEvent event) Creates an instance of aGitHubTelemetryNotificationrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentrestricted- the value for therestrictedrecord componentevent- the value for theeventrecord 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). -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
restricted
Returns the value of therestrictedrecord component.- Returns:
- the value of the
restrictedrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-