forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandWireDefinition.java
More file actions
58 lines (47 loc) · 1.71 KB
/
CommandWireDefinition.java
File metadata and controls
58 lines (47 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/
package com.github.copilot.sdk.json;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Wire-format representation of a command definition for RPC serialization.
* <p>
* This is a low-level class used internally. Use {@link CommandDefinition} to
* define commands for a session.
*
* @since 1.0.0
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public final class CommandWireDefinition {
@JsonProperty("name")
private String name;
@JsonProperty("description")
private String description;
/** Creates an empty definition. */
public CommandWireDefinition() {
}
/** Creates a definition with name and description. */
public CommandWireDefinition(String name, String description) {
this.name = name;
this.description = description;
}
/** Gets the command name. @return the name */
public String getName() {
return name;
}
/** Sets the command name. @param name the name @return this */
public CommandWireDefinition setName(String name) {
this.name = name;
return this;
}
/** Gets the description. @return the description */
public String getDescription() {
return description;
}
/** Sets the description. @param description the description @return this */
public CommandWireDefinition setDescription(String description) {
this.description = description;
return this;
}
}