Class CommandWireDefinition

java.lang.Object
com.github.copilot.sdk.json.CommandWireDefinition

public final class CommandWireDefinition extends Object
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 Details

    • CommandWireDefinition

      public CommandWireDefinition()
      Creates an empty definition.
    • CommandWireDefinition

      public CommandWireDefinition(String name, String description)
      Creates a definition with name and description.
  • Method Details

    • getName

      public String getName()
      Gets the command name. @return the name
    • setName

      public CommandWireDefinition setName(String name)
      Sets the command name. @param name the name @return this
    • getDescription

      public String getDescription()
      Gets the description. @return the description
    • setDescription

      public CommandWireDefinition setDescription(String description)
      Sets the description. @param description the description @return this