Skip to content

Commit 4760eff

Browse files
committed
Generated java-async 2022-03-02 for Green.
1 parent 5b5f52b commit 4760eff

9 files changed

Lines changed: 794 additions & 13 deletions

green-20220302/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2026-06-30 Version: 3.0.10
2+
- Generated java-async 2022-03-02 for Green.
3+
14
2026-05-22 Version: 3.0.9
25
- Generated java-async 2022-03-02 for Green.
36

green-20220302/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.aliyun</groupId>
55
<artifactId>alibabacloud-green20220302</artifactId>
6-
<version>3.0.9</version>
6+
<version>3.0.10</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-green20220302</name>
99
<description>Alibaba Cloud Green (20220302) Async SDK for Java
@@ -41,7 +41,7 @@
4141
<java.version>1.8</java.version>
4242
<maven.compiler.source>8</maven.compiler.source>
4343
<maven.compiler.target>8</maven.compiler.target>
44-
<service.version>0.3.5-beta</service.version>
44+
<service.version>0.4.0</service.version>
4545
</properties>
4646
<dependencies>
4747
<dependency>

green-20220302/src/main/java/com/aliyun/sdk/service/green20220302/AsyncClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ static AsyncClient create() {
149149
*/
150150
CompletableFuture<MultiModalGuardForBase64Response> multiModalGuardForBase64(MultiModalGuardForBase64Request request);
151151

152+
/**
153+
* @param request the request parameters of MultiModalGuardWs MultiModalGuardWsRequest
154+
* @return MultiModalGuardWsResponse
155+
*/
156+
CompletableFuture<MultiModalGuardWsResponse> multiModalGuardWs(MultiModalGuardWsRequest request);
157+
152158
/**
153159
* @param request the request parameters of MultimodalAsyncModeration MultimodalAsyncModerationRequest
154160
* @return MultimodalAsyncModerationResponse

green-20220302/src/main/java/com/aliyun/sdk/service/green20220302/DefaultAsyncClient.java

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ protected DefaultAsyncClient(ClientConfiguration configuration) {
4848
new TeaPair("cn-hangzhou-finance", "green.aliyuncs.com"),
4949
new TeaPair("cn-shenzhen-finance-1", "green.aliyuncs.com"),
5050
new TeaPair("cn-shanghai-finance-1", "green.aliyuncs.com"),
51-
new TeaPair("cn-north-2-gov-1", "green.aliyuncs.com")
51+
new TeaPair("cn-north-2-gov-1", "green.aliyuncs.com"),
52+
new TeaPair("cn-shenzhen", "green-cip.cn-shenzhen.aliyuncs.com"),
53+
new TeaPair("cn-shanghai", "green-cip.cn-shanghai.aliyuncs.com"),
54+
new TeaPair("cn-hangzhou", "green-cip.cn-hangzhou.aliyuncs.com"),
55+
new TeaPair("cn-beijing", "green-cip.cn-beijing.aliyuncs.com"),
56+
new TeaPair("ap-southeast-1", "green-cip.ap-southeast-1.aliyuncs.com")
5257
);
5358
this.REQUEST = TeaRequest.create().setProduct(product).setEndpointRule(endpointRule).setEndpointMap(endpointMap).setVersion(version);
5459
}
@@ -416,6 +421,24 @@ public CompletableFuture<MultiModalGuardForBase64Response> multiModalGuardForBas
416421
}
417422
}
418423

424+
/**
425+
* @param request the request parameters of MultiModalGuardWs MultiModalGuardWsRequest
426+
* @return MultiModalGuardWsResponse
427+
*/
428+
@Override
429+
public CompletableFuture<MultiModalGuardWsResponse> multiModalGuardWs(MultiModalGuardWsRequest request) {
430+
try {
431+
this.handler.validateRequestModel(request);
432+
TeaRequest teaRequest = REQUEST.copy().setStyle(RequestStyle.RPC).setAction("MultiModalGuardWs").setMethod(HttpMethod.GET).setPathRegex("/").setBodyType(BodyType.JSON).setBodyIsForm(false).setReqBodyType(BodyType.JSON).formModel(request);
433+
ClientExecutionParams params = new ClientExecutionParams().withInput(request).withRequest(teaRequest).withOutput(MultiModalGuardWsResponse.create());
434+
return this.handler.execute(params);
435+
} catch (Exception e) {
436+
CompletableFuture<MultiModalGuardWsResponse> future = new CompletableFuture<>();
437+
future.completeExceptionally(e);
438+
return future;
439+
}
440+
}
441+
419442
/**
420443
* @param request the request parameters of MultimodalAsyncModeration MultimodalAsyncModerationRequest
421444
* @return MultimodalAsyncModerationResponse

green-20220302/src/main/java/com/aliyun/sdk/service/green20220302/models/ManualModerationResultResponseBody.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ public static class Data extends TeaModel {
233233
@com.aliyun.core.annotation.NameInMap("Result")
234234
private java.util.List<Result> result;
235235

236+
@com.aliyun.core.annotation.NameInMap("ReviewCount")
237+
private String reviewCount;
238+
236239
@com.aliyun.core.annotation.NameInMap("RiskLevel")
237240
private String riskLevel;
238241

@@ -242,6 +245,7 @@ public static class Data extends TeaModel {
242245
private Data(Builder builder) {
243246
this.dataId = builder.dataId;
244247
this.result = builder.result;
248+
this.reviewCount = builder.reviewCount;
245249
this.riskLevel = builder.riskLevel;
246250
this.taskId = builder.taskId;
247251
}
@@ -268,6 +272,13 @@ public java.util.List<Result> getResult() {
268272
return this.result;
269273
}
270274

275+
/**
276+
* @return reviewCount
277+
*/
278+
public String getReviewCount() {
279+
return this.reviewCount;
280+
}
281+
271282
/**
272283
* @return riskLevel
273284
*/
@@ -285,6 +296,7 @@ public String getTaskId() {
285296
public static final class Builder {
286297
private String dataId;
287298
private java.util.List<Result> result;
299+
private String reviewCount;
288300
private String riskLevel;
289301
private String taskId;
290302

@@ -294,6 +306,7 @@ private Builder() {
294306
private Builder(Data model) {
295307
this.dataId = model.dataId;
296308
this.result = model.result;
309+
this.reviewCount = model.reviewCount;
297310
this.riskLevel = model.riskLevel;
298311
this.taskId = model.taskId;
299312
}
@@ -317,6 +330,14 @@ public Builder result(java.util.List<Result> result) {
317330
return this;
318331
}
319332

333+
/**
334+
* ReviewCount.
335+
*/
336+
public Builder reviewCount(String reviewCount) {
337+
this.reviewCount = reviewCount;
338+
return this;
339+
}
340+
320341
/**
321342
* <p>Risk level, returned based on the set high and low risk scores. Possible values include:</p>
322343
* <ul>
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package com.aliyun.sdk.service.green20220302.models;
3+
4+
import com.aliyun.sdk.gateway.pop.*;
5+
import darabonba.core.*;
6+
import darabonba.core.async.*;
7+
import darabonba.core.sync.*;
8+
import darabonba.core.client.*;
9+
import darabonba.core.RequestModel;
10+
import darabonba.core.TeaModel;
11+
import com.aliyun.sdk.gateway.pop.models.*;
12+
13+
/**
14+
*
15+
* {@link MultiModalGuardWsRequest} extends {@link RequestModel}
16+
*
17+
* <p>MultiModalGuardWsRequest</p>
18+
*/
19+
public class MultiModalGuardWsRequest extends Request {
20+
@com.aliyun.core.annotation.Query
21+
@com.aliyun.core.annotation.NameInMap("ModelType")
22+
private String modelType;
23+
24+
@com.aliyun.core.annotation.Query
25+
@com.aliyun.core.annotation.NameInMap("ProtocolType")
26+
private String protocolType;
27+
28+
@com.aliyun.core.annotation.Query
29+
@com.aliyun.core.annotation.NameInMap("Service")
30+
private String service;
31+
32+
@com.aliyun.core.annotation.Query
33+
@com.aliyun.core.annotation.NameInMap("ServiceParameters")
34+
private String serviceParameters;
35+
36+
private MultiModalGuardWsRequest(Builder builder) {
37+
super(builder);
38+
this.modelType = builder.modelType;
39+
this.protocolType = builder.protocolType;
40+
this.service = builder.service;
41+
this.serviceParameters = builder.serviceParameters;
42+
}
43+
44+
public static Builder builder() {
45+
return new Builder();
46+
}
47+
48+
public static MultiModalGuardWsRequest create() {
49+
return builder().build();
50+
}
51+
52+
@Override
53+
public Builder toBuilder() {
54+
return new Builder(this);
55+
}
56+
57+
/**
58+
* @return modelType
59+
*/
60+
public String getModelType() {
61+
return this.modelType;
62+
}
63+
64+
/**
65+
* @return protocolType
66+
*/
67+
public String getProtocolType() {
68+
return this.protocolType;
69+
}
70+
71+
/**
72+
* @return service
73+
*/
74+
public String getService() {
75+
return this.service;
76+
}
77+
78+
/**
79+
* @return serviceParameters
80+
*/
81+
public String getServiceParameters() {
82+
return this.serviceParameters;
83+
}
84+
85+
public static final class Builder extends Request.Builder<MultiModalGuardWsRequest, Builder> {
86+
private String modelType;
87+
private String protocolType;
88+
private String service;
89+
private String serviceParameters;
90+
91+
private Builder() {
92+
super();
93+
}
94+
95+
private Builder(MultiModalGuardWsRequest request) {
96+
super(request);
97+
this.modelType = request.modelType;
98+
this.protocolType = request.protocolType;
99+
this.service = request.service;
100+
this.serviceParameters = request.serviceParameters;
101+
}
102+
103+
/**
104+
* ModelType.
105+
*/
106+
public Builder modelType(String modelType) {
107+
this.putQueryParameter("ModelType", modelType);
108+
this.modelType = modelType;
109+
return this;
110+
}
111+
112+
/**
113+
* ProtocolType.
114+
*/
115+
public Builder protocolType(String protocolType) {
116+
this.putQueryParameter("ProtocolType", protocolType);
117+
this.protocolType = protocolType;
118+
return this;
119+
}
120+
121+
/**
122+
* Service.
123+
*/
124+
public Builder service(String service) {
125+
this.putQueryParameter("Service", service);
126+
this.service = service;
127+
return this;
128+
}
129+
130+
/**
131+
* ServiceParameters.
132+
*/
133+
public Builder serviceParameters(String serviceParameters) {
134+
this.putQueryParameter("ServiceParameters", serviceParameters);
135+
this.serviceParameters = serviceParameters;
136+
return this;
137+
}
138+
139+
@Override
140+
public MultiModalGuardWsRequest build() {
141+
return new MultiModalGuardWsRequest(this);
142+
}
143+
144+
}
145+
146+
}

0 commit comments

Comments
 (0)