Record Class HooksDiscoverResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.HooksDiscoverResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record HooksDiscoverResult(List<DiscoveredHook> hooks, List<String> warnings, List<String> errors)
extends Record
Server-discovered hook actions and partial-load diagnostics from user, repository, plugin, and managed-policy sources. Concrete sessions may include additional session-specific hook sources.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionHooksDiscoverResult(List<DiscoveredHook> hooks, List<String> warnings, List<String> errors) Creates an instance of aHooksDiscoverResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.hooks()Returns the value of thehooksrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
HooksDiscoverResult
Creates an instance of aHooksDiscoverResultrecord class.- Parameters:
hooks- the value for thehooksrecord componentwarnings- the value for thewarningsrecord componenterrors- the value for theerrorsrecord 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). -
hooks
Returns the value of thehooksrecord component.- Returns:
- the value of the
hooksrecord component
-
warnings
-
errors
-