Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfd239b

Browse files
committed
SDK version 107.
1 parent f5587ce commit cfd239b

File tree

8 files changed

+383
-1
lines changed

8 files changed

+383
-1
lines changed

aliyun-java-sdk-imageseg/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-03-23 Version: 1.0.7
2+
- SDK version 107.
3+
14
2020-02-27 Version: 1.0.6
25
- Sixth sdk version.
36

aliyun-java-sdk-imageseg/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-imageseg</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.6</version>
7+
<version>1.0.7</version>
88
<name>aliyun-java-sdk-imageseg</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.imageseg.model.v20191230;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.imageseg.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class RefineMaskRequest extends RpcAcsRequest<RefineMaskResponse> {
26+
27+
28+
private String maskImageURL;
29+
30+
private String imageURL;
31+
public RefineMaskRequest() {
32+
super("imageseg", "2019-12-30", "RefineMask", "imageseg");
33+
setMethod(MethodType.POST);
34+
try {
35+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
36+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
37+
} catch (Exception e) {}
38+
}
39+
40+
public String getMaskImageURL() {
41+
return this.maskImageURL;
42+
}
43+
44+
public void setMaskImageURL(String maskImageURL) {
45+
this.maskImageURL = maskImageURL;
46+
if(maskImageURL != null){
47+
putBodyParameter("MaskImageURL", maskImageURL);
48+
}
49+
}
50+
51+
public String getImageURL() {
52+
return this.imageURL;
53+
}
54+
55+
public void setImageURL(String imageURL) {
56+
this.imageURL = imageURL;
57+
if(imageURL != null){
58+
putBodyParameter("ImageURL", imageURL);
59+
}
60+
}
61+
62+
@Override
63+
public Class<RefineMaskResponse> getResponseClass() {
64+
return RefineMaskResponse.class;
65+
}
66+
67+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.imageseg.model.v20191230;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.imageseg.transform.v20191230.RefineMaskResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class RefineMaskResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private Data data;
31+
32+
public String getRequestId() {
33+
return this.requestId;
34+
}
35+
36+
public void setRequestId(String requestId) {
37+
this.requestId = requestId;
38+
}
39+
40+
public Data getData() {
41+
return this.data;
42+
}
43+
44+
public void setData(Data data) {
45+
this.data = data;
46+
}
47+
48+
public static class Data {
49+
50+
private List<Element> elements;
51+
52+
public List<Element> getElements() {
53+
return this.elements;
54+
}
55+
56+
public void setElements(List<Element> elements) {
57+
this.elements = elements;
58+
}
59+
60+
public static class Element {
61+
62+
private String imageURL;
63+
64+
public String getImageURL() {
65+
return this.imageURL;
66+
}
67+
68+
public void setImageURL(String imageURL) {
69+
this.imageURL = imageURL;
70+
}
71+
}
72+
}
73+
74+
@Override
75+
public RefineMaskResponse getInstance(UnmarshallerContext context) {
76+
return RefineMaskResponseUnmarshaller.unmarshall(this, context);
77+
}
78+
79+
@Override
80+
public boolean checkShowJsonItemName() {
81+
return false;
82+
}
83+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.imageseg.model.v20191230;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.imageseg.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class SegmentFurnitureRequest extends RpcAcsRequest<SegmentFurnitureResponse> {
26+
27+
28+
private String imageURL;
29+
public SegmentFurnitureRequest() {
30+
super("imageseg", "2019-12-30", "SegmentFurniture", "imageseg");
31+
setMethod(MethodType.POST);
32+
try {
33+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
34+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
35+
} catch (Exception e) {}
36+
}
37+
38+
public String getImageURL() {
39+
return this.imageURL;
40+
}
41+
42+
public void setImageURL(String imageURL) {
43+
this.imageURL = imageURL;
44+
if(imageURL != null){
45+
putBodyParameter("ImageURL", imageURL);
46+
}
47+
}
48+
49+
@Override
50+
public Class<SegmentFurnitureResponse> getResponseClass() {
51+
return SegmentFurnitureResponse.class;
52+
}
53+
54+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.imageseg.model.v20191230;
16+
17+
import java.util.List;
18+
import com.aliyuncs.AcsResponse;
19+
import com.aliyuncs.imageseg.transform.v20191230.SegmentFurnitureResponseUnmarshaller;
20+
import com.aliyuncs.transform.UnmarshallerContext;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class SegmentFurnitureResponse extends AcsResponse {
27+
28+
private String requestId;
29+
30+
private Data data;
31+
32+
public String getRequestId() {
33+
return this.requestId;
34+
}
35+
36+
public void setRequestId(String requestId) {
37+
this.requestId = requestId;
38+
}
39+
40+
public Data getData() {
41+
return this.data;
42+
}
43+
44+
public void setData(Data data) {
45+
this.data = data;
46+
}
47+
48+
public static class Data {
49+
50+
private List<Element> elements;
51+
52+
public List<Element> getElements() {
53+
return this.elements;
54+
}
55+
56+
public void setElements(List<Element> elements) {
57+
this.elements = elements;
58+
}
59+
60+
public static class Element {
61+
62+
private String imageURL;
63+
64+
public String getImageURL() {
65+
return this.imageURL;
66+
}
67+
68+
public void setImageURL(String imageURL) {
69+
this.imageURL = imageURL;
70+
}
71+
}
72+
}
73+
74+
@Override
75+
public SegmentFurnitureResponse getInstance(UnmarshallerContext context) {
76+
return SegmentFurnitureResponseUnmarshaller.unmarshall(this, context);
77+
}
78+
79+
@Override
80+
public boolean checkShowJsonItemName() {
81+
return false;
82+
}
83+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.imageseg.transform.v20191230;
16+
17+
import java.util.ArrayList;
18+
import java.util.List;
19+
20+
import com.aliyuncs.imageseg.model.v20191230.RefineMaskResponse;
21+
import com.aliyuncs.imageseg.model.v20191230.RefineMaskResponse.Data;
22+
import com.aliyuncs.imageseg.model.v20191230.RefineMaskResponse.Data.Element;
23+
import com.aliyuncs.transform.UnmarshallerContext;
24+
25+
26+
public class RefineMaskResponseUnmarshaller {
27+
28+
public static RefineMaskResponse unmarshall(RefineMaskResponse refineMaskResponse, UnmarshallerContext _ctx) {
29+
30+
refineMaskResponse.setRequestId(_ctx.stringValue("RefineMaskResponse.RequestId"));
31+
32+
Data data = new Data();
33+
34+
List<Element> elements = new ArrayList<Element>();
35+
for (int i = 0; i < _ctx.lengthValue("RefineMaskResponse.Data.Elements.Length"); i++) {
36+
Element element = new Element();
37+
element.setImageURL(_ctx.stringValue("RefineMaskResponse.Data.Elements["+ i +"].ImageURL"));
38+
39+
elements.add(element);
40+
}
41+
data.setElements(elements);
42+
refineMaskResponse.setData(data);
43+
44+
return refineMaskResponse;
45+
}
46+
}

0 commit comments

Comments
 (0)