Skip to content

Commit 3397c67

Browse files
committed
Generated java-async 2022-03-02 for Green.
1 parent 8ea431c commit 3397c67

File tree

67 files changed

+1592
-95
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1592
-95
lines changed

green-20220302/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-06-12 Version: 2.18.8
2+
- Generated java-async 2022-03-02 for Green.
3+
14
2025-03-21 Version: 2.18.7
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>2.18.7</version>
6+
<version>2.18.8</version>
77
<packaging>jar</packaging>
88
<name>alibabacloud-green20220302</name>
99
<description>Alibaba Cloud Green (20220302) Async SDK for Java
@@ -76,7 +76,7 @@
7676
<plugin>
7777
<groupId>org.apache.maven.plugins</groupId>
7878
<artifactId>maven-gpg-plugin</artifactId>
79-
<version>1.6</version>
79+
<version>3.1.0</version>
8080
<executions>
8181
<execution>
8282
<id>sign-artifacts</id>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ static AsyncClient create() {
108108
CompletableFuture<ManualModerationResultResponse> manualModerationResult(ManualModerationResultRequest request);
109109

110110
/**
111+
* <b>description</b> :
112+
* <p>Before you call this operation, make sure that you are familiar with the <a href="https://help.aliyun.com/document_detail/464388.html?#section-itm-m2s-ugq">billing</a> of Text Moderation 2.0.</p>
113+
*
111114
* @param request the request parameters of TextModeration TextModerationRequest
112115
* @return TextModerationResponse
113116
*/

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ public CompletableFuture<ManualModerationResultResponse> manualModerationResult(
291291
}
292292

293293
/**
294+
* <b>description</b> :
295+
* <p>Before you call this operation, make sure that you are familiar with the <a href="https://help.aliyun.com/document_detail/464388.html?#section-itm-m2s-ugq">billing</a> of Text Moderation 2.0.</p>
296+
*
294297
* @param request the request parameters of TextModeration TextModerationRequest
295298
* @return TextModerationResponse
296299
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static DescribeFileModerationResultRequest create() {
3939
return builder().build();
4040
}
4141

42-
@Override
42+
@Override
4343
public Builder toBuilder() {
4444
return new Builder(this);
4545
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static DescribeFileModerationResultResponse create() {
3737
return new BuilderImpl().build();
3838
}
3939

40-
@Override
40+
@Override
4141
public Builder toBuilder() {
4242
return new BuilderImpl(this);
4343
}

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

Lines changed: 131 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ public static DescribeFileModerationResultResponseBody create() {
4444
return builder().build();
4545
}
4646

47+
public Builder toBuilder() {
48+
return new Builder(this);
49+
}
50+
4751
/**
4852
* @return code
4953
*/
@@ -78,6 +82,16 @@ public static final class Builder {
7882
private String message;
7983
private String requestId;
8084

85+
private Builder() {
86+
}
87+
88+
private Builder(DescribeFileModerationResultResponseBody model) {
89+
this.code = model.code;
90+
this.data = model.data;
91+
this.message = model.message;
92+
this.requestId = model.requestId;
93+
}
94+
8195
/**
8296
* <p>The returned HTTP status code. The status code 200 indicates that the request was successful.</p>
8397
*
@@ -181,6 +195,15 @@ public static final class Builder {
181195
private String description;
182196
private String label;
183197

198+
private Builder() {
199+
}
200+
201+
private Builder(LabelResult model) {
202+
this.confidence = model.confidence;
203+
this.description = model.description;
204+
this.label = model.label;
205+
}
206+
184207
/**
185208
* <p>The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.</p>
186209
*
@@ -289,6 +312,16 @@ public static final class Builder {
289312
private Integer x;
290313
private Integer y;
291314

315+
private Builder() {
316+
}
317+
318+
private Builder(Location model) {
319+
this.h = model.h;
320+
this.w = model.w;
321+
this.x = model.x;
322+
this.y = model.y;
323+
}
324+
292325
/**
293326
* <p>The H value of the coordinate point.</p>
294327
*
@@ -420,6 +453,17 @@ public static final class Builder {
420453
private String riskLevel;
421454
private String service;
422455

456+
private Builder() {
457+
}
458+
459+
private Builder(ImageResult model) {
460+
this.description = model.description;
461+
this.labelResult = model.labelResult;
462+
this.location = model.location;
463+
this.riskLevel = model.riskLevel;
464+
this.service = model.service;
465+
}
466+
423467
/**
424468
* <p>The description.</p>
425469
*
@@ -604,6 +648,21 @@ public static final class Builder {
604648
private String text;
605649
private String textSegment;
606650

651+
private Builder() {
652+
}
653+
654+
private Builder(TextResult model) {
655+
this.description = model.description;
656+
this.descriptions = model.descriptions;
657+
this.labels = model.labels;
658+
this.riskLevel = model.riskLevel;
659+
this.riskTips = model.riskTips;
660+
this.riskWords = model.riskWords;
661+
this.service = model.service;
662+
this.text = model.text;
663+
this.textSegment = model.textSegment;
664+
}
665+
607666
/**
608667
* <p>The description.</p>
609668
*
@@ -616,7 +675,10 @@ public Builder description(String description) {
616675
}
617676

618677
/**
619-
* Descriptions.
678+
* <p>The description of the labels.</p>
679+
*
680+
* <strong>example:</strong>
681+
* <p>no risk</p>
620682
*/
621683
public Builder descriptions(String descriptions) {
622684
this.descriptions = descriptions;
@@ -787,6 +849,17 @@ public static final class Builder {
787849
private java.util.List<TextResult> textResult;
788850
private String textUrl;
789851

852+
private Builder() {
853+
}
854+
855+
private Builder(PageResult model) {
856+
this.imageResult = model.imageResult;
857+
this.imageUrl = model.imageUrl;
858+
this.pageNum = model.pageNum;
859+
this.textResult = model.textResult;
860+
this.textUrl = model.textUrl;
861+
}
862+
790863
/**
791864
* <p>The image moderation results.</p>
792865
*/
@@ -899,6 +972,15 @@ public static final class Builder {
899972
private String label;
900973
private Integer labelSum;
901974

975+
private Builder() {
976+
}
977+
978+
private Builder(ImageLabels model) {
979+
this.description = model.description;
980+
this.label = model.label;
981+
this.labelSum = model.labelSum;
982+
}
983+
902984
/**
903985
* <p>The description.</p>
904986
*
@@ -983,6 +1065,14 @@ public static final class Builder {
9831065
private java.util.List<ImageLabels> imageLabels;
9841066
private String riskLevel;
9851067

1068+
private Builder() {
1069+
}
1070+
1071+
private Builder(ImageSummary model) {
1072+
this.imageLabels = model.imageLabels;
1073+
this.riskLevel = model.riskLevel;
1074+
}
1075+
9861076
/**
9871077
* <p>Image Label</p>
9881078
*/
@@ -1065,11 +1155,20 @@ public static final class Builder {
10651155
private String label;
10661156
private Integer labelSum;
10671157

1158+
private Builder() {
1159+
}
1160+
1161+
private Builder(TextLabels model) {
1162+
this.description = model.description;
1163+
this.label = model.label;
1164+
this.labelSum = model.labelSum;
1165+
}
1166+
10681167
/**
1069-
* <p>The description.</p>
1168+
* <p>The description of the labels.</p>
10701169
*
10711170
* <strong>example:</strong>
1072-
* <p>test</p>
1171+
* <p>no risk</p>
10731172
*/
10741173
public Builder description(String description) {
10751174
this.description = description;
@@ -1149,6 +1248,14 @@ public static final class Builder {
11491248
private String riskLevel;
11501249
private java.util.List<TextLabels> textLabels;
11511250

1251+
private Builder() {
1252+
}
1253+
1254+
private Builder(TextSummary model) {
1255+
this.riskLevel = model.riskLevel;
1256+
this.textLabels = model.textLabels;
1257+
}
1258+
11521259
/**
11531260
* <p>Risk Level</p>
11541261
*
@@ -1231,6 +1338,15 @@ public static final class Builder {
12311338
private Integer pageSum;
12321339
private TextSummary textSummary;
12331340

1341+
private Builder() {
1342+
}
1343+
1344+
private Builder(PageSummary model) {
1345+
this.imageSummary = model.imageSummary;
1346+
this.pageSum = model.pageSum;
1347+
this.textSummary = model.textSummary;
1348+
}
1349+
12341350
/**
12351351
* <p>Image Results Summary</p>
12361352
*/
@@ -1357,6 +1473,18 @@ public static final class Builder {
13571473
private String riskLevel;
13581474
private String url;
13591475

1476+
private Builder() {
1477+
}
1478+
1479+
private Builder(Data model) {
1480+
this.dataId = model.dataId;
1481+
this.docType = model.docType;
1482+
this.pageResult = model.pageResult;
1483+
this.pageSummary = model.pageSummary;
1484+
this.riskLevel = model.riskLevel;
1485+
this.url = model.url;
1486+
}
1487+
13601488
/**
13611489
* <p>The ID of the moderated object.</p>
13621490
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static DescribeImageModerationResultRequest create() {
3434
return builder().build();
3535
}
3636

37-
@Override
37+
@Override
3838
public Builder toBuilder() {
3939
return new Builder(this);
4040
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static DescribeImageModerationResultResponse create() {
3737
return new BuilderImpl().build();
3838
}
3939

40-
@Override
40+
@Override
4141
public Builder toBuilder() {
4242
return new BuilderImpl(this);
4343
}

0 commit comments

Comments
 (0)