From 2c7070b90110fe5be809826867fdc47197713dbf Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 22 Oct 2024 04:58:25 +0000 Subject: [PATCH] Init. --- aliyun-java-sdk-eduinterpreting/ChangeLog.txt | 3 + aliyun-java-sdk-eduinterpreting/pom.xml | 119 ++++++++++++++++ .../v20240828/RecognizeAudioRequest.java | 90 ++++++++++++ .../v20240828/RecognizeAudioResponse.java | 100 ++++++++++++++ .../SubmitEvaluationTaskRequest.java | 129 ++++++++++++++++++ .../SubmitEvaluationTaskResponse.java | 56 ++++++++ .../RecognizeAudioResponseUnmarshaller.java | 45 ++++++ ...mitEvaluationTaskResponseUnmarshaller.java | 30 ++++ 8 files changed, 572 insertions(+) create mode 100644 aliyun-java-sdk-eduinterpreting/ChangeLog.txt create mode 100644 aliyun-java-sdk-eduinterpreting/pom.xml create mode 100644 aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/RecognizeAudioRequest.java create mode 100644 aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/RecognizeAudioResponse.java create mode 100644 aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/SubmitEvaluationTaskRequest.java create mode 100644 aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/SubmitEvaluationTaskResponse.java create mode 100644 aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/transform/v20240828/RecognizeAudioResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/transform/v20240828/SubmitEvaluationTaskResponseUnmarshaller.java diff --git a/aliyun-java-sdk-eduinterpreting/ChangeLog.txt b/aliyun-java-sdk-eduinterpreting/ChangeLog.txt new file mode 100644 index 0000000000..9bd4020ab1 --- /dev/null +++ b/aliyun-java-sdk-eduinterpreting/ChangeLog.txt @@ -0,0 +1,3 @@ +2024-10-22 Version: 1.0.0 +- Init. + diff --git a/aliyun-java-sdk-eduinterpreting/pom.xml b/aliyun-java-sdk-eduinterpreting/pom.xml new file mode 100644 index 0000000000..a291f5739e --- /dev/null +++ b/aliyun-java-sdk-eduinterpreting/pom.xml @@ -0,0 +1,119 @@ + + + 4.0.0 + com.aliyun + aliyun-java-sdk-eduinterpreting + jar + 1.0.0 + aliyun-java-sdk-eduinterpreting + http://www.aliyun.com + Aliyun Open API SDK for Java +Copyright (C) Alibaba Cloud Computing +All rights reserved. +版权所有 (C)阿里云计算有限公司 +http://www.aliyun.com + + + sonatype-nexus-snapshots + https://s01.oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + com.aliyun + aliyun-java-sdk-core + true + [4.4.9,5.0.0) + + + com.google.code.gson + gson + 2.8.9 + + + + + The Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + scm:git:git://github.com/aliyun/aliyun-openapi-java-sdk.git + scm:git:git@github.com:aliyun/aliyun-openapi-java-sdk.git + https://github.com/aliyun/aliyun-openapi-java-sdk + + + + aliyunproducts + Aliyun SDK + aliyunsdk@aliyun.com + + + + + + maven-compiler-plugin + 2.3.2 + + 1.6 + 1.6 + UTF-8 + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.2 + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.10 + + -Dfile.encoding=UTF-8 + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + UTF-8 + none + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.3 + true + + sonatype-nexus-staging + https://s01.oss.sonatype.org/ + true + + + + + \ No newline at end of file diff --git a/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/RecognizeAudioRequest.java b/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/RecognizeAudioRequest.java new file mode 100644 index 0000000000..11e3920cce --- /dev/null +++ b/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/RecognizeAudioRequest.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.eduinterpreting.model.v20240828; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class RecognizeAudioRequest extends RpcAcsRequest { + + + private String outerBizId; + + private Boolean enableCallBack; + + private String callbackUrl; + + private String audioFileUrl; + public RecognizeAudioRequest() { + super("EduInterpreting", "2024-08-28", "RecognizeAudio"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getOuterBizId() { + return this.outerBizId; + } + + public void setOuterBizId(String outerBizId) { + this.outerBizId = outerBizId; + if(outerBizId != null){ + putBodyParameter("OuterBizId", outerBizId); + } + } + + public Boolean getEnableCallBack() { + return this.enableCallBack; + } + + public void setEnableCallBack(Boolean enableCallBack) { + this.enableCallBack = enableCallBack; + if(enableCallBack != null){ + putQueryParameter("EnableCallBack", enableCallBack.toString()); + } + } + + public String getCallbackUrl() { + return this.callbackUrl; + } + + public void setCallbackUrl(String callbackUrl) { + this.callbackUrl = callbackUrl; + if(callbackUrl != null){ + putBodyParameter("CallbackUrl", callbackUrl); + } + } + + public String getAudioFileUrl() { + return this.audioFileUrl; + } + + public void setAudioFileUrl(String audioFileUrl) { + this.audioFileUrl = audioFileUrl; + if(audioFileUrl != null){ + putBodyParameter("AudioFileUrl", audioFileUrl); + } + } + + @Override + public Class getResponseClass() { + return RecognizeAudioResponse.class; + } + +} diff --git a/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/RecognizeAudioResponse.java b/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/RecognizeAudioResponse.java new file mode 100644 index 0000000000..6536fe820e --- /dev/null +++ b/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/RecognizeAudioResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.eduinterpreting.model.v20240828; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eduinterpreting.transform.v20240828.RecognizeAudioResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RecognizeAudioResponse extends AcsResponse { + + private String requestId; + + private String taskId; + + private List itemList; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public List getItemList() { + return this.itemList; + } + + public void setItemList(List itemList) { + this.itemList = itemList; + } + + public static class ItemListItem { + + private String beginTime; + + private String endTime; + + private String text; + + public String getBeginTime() { + return this.beginTime; + } + + public void setBeginTime(String beginTime) { + this.beginTime = beginTime; + } + + public String getEndTime() { + return this.endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public String getText() { + return this.text; + } + + public void setText(String text) { + this.text = text; + } + } + + @Override + public RecognizeAudioResponse getInstance(UnmarshallerContext context) { + return RecognizeAudioResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/SubmitEvaluationTaskRequest.java b/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/SubmitEvaluationTaskRequest.java new file mode 100644 index 0000000000..bf79800bff --- /dev/null +++ b/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/SubmitEvaluationTaskRequest.java @@ -0,0 +1,129 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.eduinterpreting.model.v20240828; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class SubmitEvaluationTaskRequest extends RpcAcsRequest { + + + private String materialText; + + private String suggestedAnswer; + + private String outerBizId; + + private String type; + + private String audioUrl; + + private String text; + + private String callbackUrl; + public SubmitEvaluationTaskRequest() { + super("EduInterpreting", "2024-08-28", "SubmitEvaluationTask"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getMaterialText() { + return this.materialText; + } + + public void setMaterialText(String materialText) { + this.materialText = materialText; + if(materialText != null){ + putBodyParameter("MaterialText", materialText); + } + } + + public String getSuggestedAnswer() { + return this.suggestedAnswer; + } + + public void setSuggestedAnswer(String suggestedAnswer) { + this.suggestedAnswer = suggestedAnswer; + if(suggestedAnswer != null){ + putBodyParameter("SuggestedAnswer", suggestedAnswer); + } + } + + public String getOuterBizId() { + return this.outerBizId; + } + + public void setOuterBizId(String outerBizId) { + this.outerBizId = outerBizId; + if(outerBizId != null){ + putBodyParameter("OuterBizId", outerBizId); + } + } + + public String getType() { + return this.type; + } + + public void setType(String type) { + this.type = type; + if(type != null){ + putBodyParameter("Type", type); + } + } + + public String getAudioUrl() { + return this.audioUrl; + } + + public void setAudioUrl(String audioUrl) { + this.audioUrl = audioUrl; + if(audioUrl != null){ + putBodyParameter("AudioUrl", audioUrl); + } + } + + public String getText() { + return this.text; + } + + public void setText(String text) { + this.text = text; + if(text != null){ + putBodyParameter("Text", text); + } + } + + public String getCallbackUrl() { + return this.callbackUrl; + } + + public void setCallbackUrl(String callbackUrl) { + this.callbackUrl = callbackUrl; + if(callbackUrl != null){ + putBodyParameter("CallbackUrl", callbackUrl); + } + } + + @Override + public Class getResponseClass() { + return SubmitEvaluationTaskResponse.class; + } + +} diff --git a/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/SubmitEvaluationTaskResponse.java b/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/SubmitEvaluationTaskResponse.java new file mode 100644 index 0000000000..3819dca8eb --- /dev/null +++ b/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/model/v20240828/SubmitEvaluationTaskResponse.java @@ -0,0 +1,56 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.eduinterpreting.model.v20240828; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.eduinterpreting.transform.v20240828.SubmitEvaluationTaskResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class SubmitEvaluationTaskResponse extends AcsResponse { + + private String requestId; + + private String taskId; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getTaskId() { + return this.taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + @Override + public SubmitEvaluationTaskResponse getInstance(UnmarshallerContext context) { + return SubmitEvaluationTaskResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/transform/v20240828/RecognizeAudioResponseUnmarshaller.java b/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/transform/v20240828/RecognizeAudioResponseUnmarshaller.java new file mode 100644 index 0000000000..46b7332427 --- /dev/null +++ b/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/transform/v20240828/RecognizeAudioResponseUnmarshaller.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.eduinterpreting.transform.v20240828; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.eduinterpreting.model.v20240828.RecognizeAudioResponse; +import com.aliyuncs.eduinterpreting.model.v20240828.RecognizeAudioResponse.ItemListItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RecognizeAudioResponseUnmarshaller { + + public static RecognizeAudioResponse unmarshall(RecognizeAudioResponse recognizeAudioResponse, UnmarshallerContext _ctx) { + + recognizeAudioResponse.setRequestId(_ctx.stringValue("RecognizeAudioResponse.RequestId")); + recognizeAudioResponse.setTaskId(_ctx.stringValue("RecognizeAudioResponse.TaskId")); + + List itemList = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("RecognizeAudioResponse.ItemList.Length"); i++) { + ItemListItem itemListItem = new ItemListItem(); + itemListItem.setBeginTime(_ctx.stringValue("RecognizeAudioResponse.ItemList["+ i +"].BeginTime")); + itemListItem.setEndTime(_ctx.stringValue("RecognizeAudioResponse.ItemList["+ i +"].EndTime")); + itemListItem.setText(_ctx.stringValue("RecognizeAudioResponse.ItemList["+ i +"].Text")); + + itemList.add(itemListItem); + } + recognizeAudioResponse.setItemList(itemList); + + return recognizeAudioResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/transform/v20240828/SubmitEvaluationTaskResponseUnmarshaller.java b/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/transform/v20240828/SubmitEvaluationTaskResponseUnmarshaller.java new file mode 100644 index 0000000000..72a1265b5e --- /dev/null +++ b/aliyun-java-sdk-eduinterpreting/src/main/java/com/aliyuncs/eduinterpreting/transform/v20240828/SubmitEvaluationTaskResponseUnmarshaller.java @@ -0,0 +1,30 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.aliyuncs.eduinterpreting.transform.v20240828; + +import com.aliyuncs.eduinterpreting.model.v20240828.SubmitEvaluationTaskResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class SubmitEvaluationTaskResponseUnmarshaller { + + public static SubmitEvaluationTaskResponse unmarshall(SubmitEvaluationTaskResponse submitEvaluationTaskResponse, UnmarshallerContext _ctx) { + + submitEvaluationTaskResponse.setRequestId(_ctx.stringValue("SubmitEvaluationTaskResponse.RequestId")); + submitEvaluationTaskResponse.setTaskId(_ctx.stringValue("SubmitEvaluationTaskResponse.TaskId")); + + return submitEvaluationTaskResponse; + } +} \ No newline at end of file