Skip to content

Commit f49d74a

Browse files
author
BitsAdmin
committed
Merge branch 'waf-Java-2023-12-25-online-1403-2025_07_29_22_51_03' into 'integration_2025-07-31_1022673037826'
feat: [development task] waf-1403-Java (1504126) See merge request iaasng/volcengine-java-sdk!591
2 parents 76dbb5a + cb33012 commit f49d74a

12 files changed

+717
-15
lines changed

volcengine-java-sdk-waf/src/main/java/com/volcengine/waf/model/CheckLLMPromptResponse.java

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,33 @@
3131

3232

3333
public class CheckLLMPromptResponse extends com.volcengine.model.AbstractResponse {
34+
@SerializedName("ContextID")
35+
private String contextID = null;
36+
3437
@SerializedName("Decision")
3538
private DecisionForCheckLLMPromptOutput decision = null;
3639

3740
@SerializedName("MsgID")
3841
private String msgID = null;
3942

43+
public CheckLLMPromptResponse contextID(String contextID) {
44+
this.contextID = contextID;
45+
return this;
46+
}
47+
48+
/**
49+
* Get contextID
50+
* @return contextID
51+
**/
52+
@Schema(description = "")
53+
public String getContextID() {
54+
return contextID;
55+
}
56+
57+
public void setContextID(String contextID) {
58+
this.contextID = contextID;
59+
}
60+
4061
public CheckLLMPromptResponse decision(DecisionForCheckLLMPromptOutput decision) {
4162
this.decision = decision;
4263
return this;
@@ -84,13 +105,14 @@ public boolean equals(java.lang.Object o) {
84105
return false;
85106
}
86107
CheckLLMPromptResponse checkLLMPromptResponse = (CheckLLMPromptResponse) o;
87-
return Objects.equals(this.decision, checkLLMPromptResponse.decision) &&
108+
return Objects.equals(this.contextID, checkLLMPromptResponse.contextID) &&
109+
Objects.equals(this.decision, checkLLMPromptResponse.decision) &&
88110
Objects.equals(this.msgID, checkLLMPromptResponse.msgID);
89111
}
90112

91113
@Override
92114
public int hashCode() {
93-
return Objects.hash(decision, msgID);
115+
return Objects.hash(contextID, decision, msgID);
94116
}
95117

96118

@@ -99,6 +121,7 @@ public String toString() {
99121
StringBuilder sb = new StringBuilder();
100122
sb.append("class CheckLLMPromptResponse {\n");
101123

124+
sb.append(" contextID: ").append(toIndentedString(contextID)).append("\n");
102125
sb.append(" decision: ").append(toIndentedString(decision)).append("\n");
103126
sb.append(" msgID: ").append(toIndentedString(msgID)).append("\n");
104127
sb.append("}");

volcengine-java-sdk-waf/src/main/java/com/volcengine/waf/model/CheckLLMResponseStreamRequest.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public class CheckLLMResponseStreamRequest {
3636
@SerializedName("ContentType")
3737
private Integer contentType = null;
3838

39+
@SerializedName("ContextID")
40+
private String contextID = null;
41+
3942
@SerializedName("Host")
4043
private String host = null;
4144

@@ -92,6 +95,24 @@ public void setContentType(Integer contentType) {
9295
this.contentType = contentType;
9396
}
9497

98+
public CheckLLMResponseStreamRequest contextID(String contextID) {
99+
this.contextID = contextID;
100+
return this;
101+
}
102+
103+
/**
104+
* Get contextID
105+
* @return contextID
106+
**/
107+
@Schema(description = "")
108+
public String getContextID() {
109+
return contextID;
110+
}
111+
112+
public void setContextID(String contextID) {
113+
this.contextID = contextID;
114+
}
115+
95116
public CheckLLMResponseStreamRequest host(String host) {
96117
this.host = host;
97118
return this;
@@ -217,6 +238,7 @@ public boolean equals(java.lang.Object o) {
217238
CheckLLMResponseStreamRequest checkLLMResponseStreamRequest = (CheckLLMResponseStreamRequest) o;
218239
return Objects.equals(this.content, checkLLMResponseStreamRequest.content) &&
219240
Objects.equals(this.contentType, checkLLMResponseStreamRequest.contentType) &&
241+
Objects.equals(this.contextID, checkLLMResponseStreamRequest.contextID) &&
220242
Objects.equals(this.host, checkLLMResponseStreamRequest.host) &&
221243
Objects.equals(this.msgClass, checkLLMResponseStreamRequest.msgClass) &&
222244
Objects.equals(this.msgID, checkLLMResponseStreamRequest.msgID) &&
@@ -227,7 +249,7 @@ public boolean equals(java.lang.Object o) {
227249

228250
@Override
229251
public int hashCode() {
230-
return Objects.hash(content, contentType, host, msgClass, msgID, region, timeout, useStream);
252+
return Objects.hash(content, contentType, contextID, host, msgClass, msgID, region, timeout, useStream);
231253
}
232254

233255

@@ -238,6 +260,7 @@ public String toString() {
238260

239261
sb.append(" content: ").append(toIndentedString(content)).append("\n");
240262
sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n");
263+
sb.append(" contextID: ").append(toIndentedString(contextID)).append("\n");
241264
sb.append(" host: ").append(toIndentedString(host)).append("\n");
242265
sb.append(" msgClass: ").append(toIndentedString(msgClass)).append("\n");
243266
sb.append(" msgID: ").append(toIndentedString(msgID)).append("\n");

volcengine-java-sdk-waf/src/main/java/com/volcengine/waf/model/CheckLLMResponseStreamResponse.java

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,33 @@
3131

3232

3333
public class CheckLLMResponseStreamResponse extends com.volcengine.model.AbstractResponse {
34+
@SerializedName("ContextID")
35+
private String contextID = null;
36+
3437
@SerializedName("Decision")
3538
private DecisionForCheckLLMResponseStreamOutput decision = null;
3639

3740
@SerializedName("MsgID")
3841
private String msgID = null;
3942

43+
public CheckLLMResponseStreamResponse contextID(String contextID) {
44+
this.contextID = contextID;
45+
return this;
46+
}
47+
48+
/**
49+
* Get contextID
50+
* @return contextID
51+
**/
52+
@Schema(description = "")
53+
public String getContextID() {
54+
return contextID;
55+
}
56+
57+
public void setContextID(String contextID) {
58+
this.contextID = contextID;
59+
}
60+
4061
public CheckLLMResponseStreamResponse decision(DecisionForCheckLLMResponseStreamOutput decision) {
4162
this.decision = decision;
4263
return this;
@@ -84,13 +105,14 @@ public boolean equals(java.lang.Object o) {
84105
return false;
85106
}
86107
CheckLLMResponseStreamResponse checkLLMResponseStreamResponse = (CheckLLMResponseStreamResponse) o;
87-
return Objects.equals(this.decision, checkLLMResponseStreamResponse.decision) &&
108+
return Objects.equals(this.contextID, checkLLMResponseStreamResponse.contextID) &&
109+
Objects.equals(this.decision, checkLLMResponseStreamResponse.decision) &&
88110
Objects.equals(this.msgID, checkLLMResponseStreamResponse.msgID);
89111
}
90112

91113
@Override
92114
public int hashCode() {
93-
return Objects.hash(decision, msgID);
115+
return Objects.hash(contextID, decision, msgID);
94116
}
95117

96118

@@ -99,6 +121,7 @@ public String toString() {
99121
StringBuilder sb = new StringBuilder();
100122
sb.append("class CheckLLMResponseStreamResponse {\n");
101123

124+
sb.append(" contextID: ").append(toIndentedString(contextID)).append("\n");
102125
sb.append(" decision: ").append(toIndentedString(decision)).append("\n");
103126
sb.append(" msgID: ").append(toIndentedString(msgID)).append("\n");
104127
sb.append("}");

volcengine-java-sdk-waf/src/main/java/com/volcengine/waf/model/DataForListCustomBotConfigOutput.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class DataForListCustomBotConfigOutput {
5252
private Integer enable = null;
5353

5454
@SerializedName("Id")
55-
private String id = null;
55+
private Integer id = null;
5656

5757
@SerializedName("RuleTag")
5858
private String ruleTag = null;
@@ -177,7 +177,7 @@ public void setEnable(Integer enable) {
177177
this.enable = enable;
178178
}
179179

180-
public DataForListCustomBotConfigOutput id(String id) {
180+
public DataForListCustomBotConfigOutput id(Integer id) {
181181
this.id = id;
182182
return this;
183183
}
@@ -187,11 +187,11 @@ public DataForListCustomBotConfigOutput id(String id) {
187187
* @return id
188188
**/
189189
@Schema(description = "")
190-
public String getId() {
190+
public Integer getId() {
191191
return id;
192192
}
193193

194-
public void setId(String id) {
194+
public void setId(Integer id) {
195195
this.id = id;
196196
}
197197

0 commit comments

Comments
 (0)