Skip to content

Commit b95388a

Browse files
committed
feat(Assistant v2): Add system prop to MessageContentSkill
1 parent 08f3359 commit b95388a

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

assistant/src/main/java/com/ibm/watson/assistant/v2/model/MessageContextSkill.java

+29-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2019.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -23,16 +23,19 @@
2323
public class MessageContextSkill extends GenericModel {
2424

2525
@SerializedName("user_defined")
26-
private Map<String, Object> userDefined;
26+
protected Map<String, Object> userDefined;
27+
protected Map<String, Object> system;
2728

2829
/**
2930
* Builder.
3031
*/
3132
public static class Builder {
3233
private Map<String, Object> userDefined;
34+
private Map<String, Object> system;
3335

3436
private Builder(MessageContextSkill messageContextSkill) {
3537
this.userDefined = messageContextSkill.userDefined;
38+
this.system = messageContextSkill.system;
3639
}
3740

3841
/**
@@ -60,10 +63,22 @@ public Builder userDefined(Map<String, Object> userDefined) {
6063
this.userDefined = userDefined;
6164
return this;
6265
}
66+
67+
/**
68+
* Set the system.
69+
*
70+
* @param system the system
71+
* @return the MessageContextSkill builder
72+
*/
73+
public Builder system(Map<String, Object> system) {
74+
this.system = system;
75+
return this;
76+
}
6377
}
6478

65-
private MessageContextSkill(Builder builder) {
79+
protected MessageContextSkill(Builder builder) {
6680
userDefined = builder.userDefined;
81+
system = builder.system;
6782
}
6883

6984
/**
@@ -85,4 +100,15 @@ public Builder newBuilder() {
85100
public Map<String, Object> userDefined() {
86101
return userDefined;
87102
}
103+
104+
/**
105+
* Gets the system.
106+
*
107+
* For internal use only.
108+
*
109+
* @return the system
110+
*/
111+
public Map<String, Object> system() {
112+
return system;
113+
}
88114
}

0 commit comments

Comments
 (0)