Package com.github.copilot.sdk.json
Class CommandWireDefinition
java.lang.Object
com.github.copilot.sdk.json.CommandWireDefinition
Wire-format representation of a command definition for RPC serialization.
This is a low-level class used internally. Use CommandDefinition to
define commands for a session.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty definition.CommandWireDefinition(String name, String description) Creates a definition with name and description. -
Method Summary
Modifier and TypeMethodDescriptionGets the description.getName()Gets the command name.setDescription(String description) Sets the description.Sets the command name.
-
Constructor Details
-
CommandWireDefinition
public CommandWireDefinition()Creates an empty definition. -
CommandWireDefinition
Creates a definition with name and description.
-
-
Method Details
-
getName
Gets the command name. @return the name -
setName
Sets the command name. @param name the name @return this -
getDescription
Gets the description. @return the description -
setDescription
Sets the description. @param description the description @return this
-