Record Class InstructionSource
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.InstructionSource
@Generated("copilot-sdk-codegen")
public record InstructionSource(String id, String label, String sourcePath, String content, InstructionSourceType type, InstructionSourceLocation location, List<String> applyTo, String description, Boolean defaultDisabled, String projectPath)
extends Record
Schema for the `InstructionSource` type.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionInstructionSource(String id, String label, String sourcePath, String content, InstructionSourceType type, InstructionSourceLocation location, List<String> applyTo, String description, Boolean defaultDisabled, String projectPath) Creates an instance of aInstructionSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionapplyTo()Returns the value of theapplyTorecord component.content()Returns the value of thecontentrecord component.Returns the value of thedefaultDisabledrecord component.Returns the value of thedescriptionrecord 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.label()Returns the value of thelabelrecord component.location()Returns the value of thelocationrecord component.Returns the value of theprojectPathrecord component.Returns the value of thesourcePathrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
InstructionSource
public InstructionSource(String id, String label, String sourcePath, String content, InstructionSourceType type, InstructionSourceLocation location, List<String> applyTo, String description, Boolean defaultDisabled, String projectPath) Creates an instance of aInstructionSourcerecord class.- Parameters:
id- the value for theidrecord componentlabel- the value for thelabelrecord componentsourcePath- the value for thesourcePathrecord componentcontent- the value for thecontentrecord componenttype- the value for thetyperecord componentlocation- the value for thelocationrecord componentapplyTo- the value for theapplyTorecord componentdescription- the value for thedescriptionrecord componentdefaultDisabled- the value for thedefaultDisabledrecord componentprojectPath- the value for theprojectPathrecord 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
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
applyTo
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
defaultDisabled
Returns the value of thedefaultDisabledrecord component.- Returns:
- the value of the
defaultDisabledrecord component
-
projectPath
Returns the value of theprojectPathrecord component.- Returns:
- the value of the
projectPathrecord component
-