Record Class McpSourceRef
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.McpSourceRef
@Generated("copilot-sdk-codegen")
public record McpSourceRef(String kind, String id, String editability, McpSourceFile file, McpSourcePlugin plugin)
extends Record
Canonical identity and location of the effective MCP server declaration. The declaration is uniquely addressed by this source id together with the discovered server name.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionMcpSourceRef(String kind, String id, String editability, McpSourceFile file, McpSourcePlugin plugin) Creates an instance of aMcpSourceRefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theeditabilityrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.plugin()Returns the value of thepluginrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpSourceRef
public McpSourceRef(String kind, String id, String editability, McpSourceFile file, McpSourcePlugin plugin) Creates an instance of aMcpSourceRefrecord class.- Parameters:
kind- the value for thekindrecord componentid- the value for theidrecord componenteditability- the value for theeditabilityrecord componentfile- the value for thefilerecord 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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
editability
Returns the value of theeditabilityrecord component.- Returns:
- the value of the
editabilityrecord component
-
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
plugin
Returns the value of thepluginrecord component.- Returns:
- the value of the
pluginrecord component
-