Record Class DiscoveredExtension
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.DiscoveredExtension
@Generated("copilot-sdk-codegen")
public record DiscoveredExtension(String id, String name, String path, DiscoveredExtensionSource source, Boolean enabled, DiscoveredExtensionPlugin plugin)
extends Record
Discovered extension metadata and persistent enablement state.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveredExtension(String id, String name, String path, DiscoveredExtensionSource source, Boolean enabled, DiscoveredExtensionPlugin plugin) Creates an instance of aDiscoveredExtensionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.path()Returns the value of thepathrecord component.plugin()Returns the value of thepluginrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiscoveredExtension
public DiscoveredExtension(String id, String name, String path, DiscoveredExtensionSource source, Boolean enabled, DiscoveredExtensionPlugin plugin) Creates an instance of aDiscoveredExtensionrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentpath- the value for thepathrecord componentsource- the value for thesourcerecord componentenabled- the value for theenabledrecord componentplugin- the value for thepluginrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
plugin
Returns the value of thepluginrecord component.- Returns:
- the value of the
pluginrecord component
-