repo
stringclasses
1k values
file_url
stringlengths
96
373
file_path
stringlengths
11
294
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
6 values
commit_sha
stringclasses
1k values
retrieved_at
stringdate
2026-01-04 14:45:56
2026-01-04 18:30:23
truncated
bool
2 classes
JsonChao/Awesome-Algorithm-Study
https://github.com/JsonChao/Awesome-Algorithm-Study/blob/f1c886eabf744b69e72a0b0a64b348032b439037/data_struct_study/src/binary_search_tree_problem/Solution129.java
data_struct_study/src/binary_search_tree_problem/Solution129.java
package binary_search_tree_problem; /** * 129 */ public class Solution129 { }
java
Apache-2.0
f1c886eabf744b69e72a0b0a64b348032b439037
2026-01-05T02:39:40.141219Z
false
JsonChao/Awesome-Algorithm-Study
https://github.com/JsonChao/Awesome-Algorithm-Study/blob/f1c886eabf744b69e72a0b0a64b348032b439037/data_struct_study/src/binary_search_tree_problem/Solution404.java
data_struct_study/src/binary_search_tree_problem/Solution404.java
package binary_search_tree_problem; public class Solution404 { public static class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x) { val = x; } } public int sumOfLeftLeaves(TreeNode root) { if (root == null) { return 0; } if (isLeaf(root.left)) { return root.left.val + sumOfLeftLeaves(root.right); } return sumOfLeftLeaves(root.left) + sumOfLeftLeaves(root.right); } private boolean isLeaf(TreeNode node) { if (node == null) { return false; } return node.left == null && node.right == null; } }
java
Apache-2.0
f1c886eabf744b69e72a0b0a64b348032b439037
2026-01-05T02:39:40.141219Z
false
JsonChao/Awesome-Algorithm-Study
https://github.com/JsonChao/Awesome-Algorithm-Study/blob/f1c886eabf744b69e72a0b0a64b348032b439037/data_struct_study/src/set/Solution2.java
data_struct_study/src/set/Solution2.java
package set; import java.util.ArrayList; import java.util.TreeSet; /** * Leetcode 349. Intersection of Two Arrays * https://leetcode.com/problems/intersection-of-two-arrays/description/ */ class Solution2 { public int[] intersection(int[] nums1, int[] nums2) { TreeSet<Integer> set = new TreeSet<>(); for (int item:nums1) { set.add(item); } ArrayList<Integer> list = new ArrayList<>(); for (int item:nums2) { if (set.contains(item)) { list.add(item); set.remove(item); } } int[] res = new int[list.size()]; for (int i = 0; i < list.size(); i++) { res[i] = list.get(i); } return res; } }
java
Apache-2.0
f1c886eabf744b69e72a0b0a64b348032b439037
2026-01-05T02:39:40.141219Z
false
JsonChao/Awesome-Algorithm-Study
https://github.com/JsonChao/Awesome-Algorithm-Study/blob/f1c886eabf744b69e72a0b0a64b348032b439037/data_struct_study/src/set/Solution1.java
data_struct_study/src/set/Solution1.java
package set; import java.util.TreeSet; /** * Leetcode 804. Unique Morse Code Words * https://leetcode.com/problems/unique-morse-code-words/description/ * * 有序集合中的元素具有顺序性:基于搜索树的实现。 * 无序集合中的元素没有顺序性:基于哈希表的实现。 * 多重集合:集合中的元素可以重复,可以在允许重复的二叉搜索树上包装一层即可实现。 * */ public class Solution1 { public int uniqueMorseRepresentations(String[] words) { String[] codes = {".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.--","--.."}; TreeSet<Object> set = new TreeSet<>(); for (String word : words) { StringBuilder sb = new StringBuilder(); for (int j = 0; j < word.length(); j++) { sb.append(codes[word.charAt(j) - 'a']); } set.add(sb.toString()); } return set.size(); } }
java
Apache-2.0
f1c886eabf744b69e72a0b0a64b348032b439037
2026-01-05T02:39:40.141219Z
false
JsonChao/Awesome-Algorithm-Study
https://github.com/JsonChao/Awesome-Algorithm-Study/blob/f1c886eabf744b69e72a0b0a64b348032b439037/data_struct_study/src/set/FileOperation.java
data_struct_study/src/set/FileOperation.java
package set; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Locale; import java.util.Scanner; // 文件相关操作 public class FileOperation { // 读取文件名称为filename中的内容,并将其中包含的所有词语放进words中 public static boolean readFile(String filename, ArrayList<String> words){ if (filename == null || words == null){ System.out.println("filename is null or words is null"); return false; } // 文件读取 Scanner scanner; try { File file = new File(filename); if(file.exists()){ FileInputStream fis = new FileInputStream(file); scanner = new Scanner(new BufferedInputStream(fis), "UTF-8"); scanner.useLocale(Locale.ENGLISH); } else return false; } catch(IOException ioe){ System.out.println("Cannot open " + filename); return false; } // 简单分词 // 这个分词方式相对简陋, 没有考虑很多文本处理中的特殊问题 // 在这里只做demo展示用 if (scanner.hasNextLine()) { String contents = scanner.useDelimiter("\\A").next().toLowerCase(); int start = firstCharacterIndex(contents, 0); for (int i = start + 1; i <= contents.length(); ) if (i == contents.length() || !isEnglishLetter(contents.charAt(i))) { String word = contents.substring(start, i).toLowerCase(); words.add(word); start = firstCharacterIndex(contents, i); i = start + 1; } else i++; } return true; } private static boolean isEnglishLetter(char ch){ return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'); } // 寻找字符串s中,从start的位置开始的第一个字母字符的位置 private static int firstCharacterIndex(String s, int start){ for( int i = start ; i < s.length() ; i ++ ) if(isEnglishLetter(s.charAt(i))) return i; return s.length(); } }
java
Apache-2.0
f1c886eabf744b69e72a0b0a64b348032b439037
2026-01-05T02:39:40.141219Z
false
JsonChao/Awesome-Algorithm-Study
https://github.com/JsonChao/Awesome-Algorithm-Study/blob/f1c886eabf744b69e72a0b0a64b348032b439037/data_struct_study/src/set/Main2.java
data_struct_study/src/set/Main2.java
package set; import java.util.ArrayList; public class Main2 { private static double testSet(Set<String> set, String filename){ long startTime = System.nanoTime(); System.out.println(filename); ArrayList<String> words = new ArrayList<>(); if(FileOperation.readFile(filename, words)) { System.out.println("Total words: " + words.size()); for (String word : words) set.add(word); System.out.println("Total different words: " + set.getSize()); } long endTime = System.nanoTime(); return (endTime - startTime) / 1000000000.0; } public static void main(String[] args) { String filename = "pride-and-prejudice.txt"; BSTSet<String> bstSet = new BSTSet<>(); double time1 = testSet(bstSet, filename); System.out.println("BST Set: " + time1 + " s"); System.out.println(); LinkedListSet<String> linkedListSet = new LinkedListSet<>(); double time2 = testSet(linkedListSet, filename); System.out.println("Linked List Set: " + time2 + " s"); } }
java
Apache-2.0
f1c886eabf744b69e72a0b0a64b348032b439037
2026-01-05T02:39:40.141219Z
false
JsonChao/Awesome-Algorithm-Study
https://github.com/JsonChao/Awesome-Algorithm-Study/blob/f1c886eabf744b69e72a0b0a64b348032b439037/data_struct_study/src/set/Set.java
data_struct_study/src/set/Set.java
package set; public interface Set<E> { void add(E e); void remove(E e); boolean isContains(E e); int getSize(); boolean isEmpty(); }
java
Apache-2.0
f1c886eabf744b69e72a0b0a64b348032b439037
2026-01-05T02:39:40.141219Z
false
JsonChao/Awesome-Algorithm-Study
https://github.com/JsonChao/Awesome-Algorithm-Study/blob/f1c886eabf744b69e72a0b0a64b348032b439037/data_struct_study/src/set/BSTSet.java
data_struct_study/src/set/BSTSet.java
package set; import binary_search_tree.BST; public class BSTSet<E extends Comparable<E>> implements Set<E> { private final BST<E> bst; public BSTSet() { bst = new BST<>(); } @Override public void add(E e) { bst.add(e); } @Override public void remove(E e) { bst.remove(e); } @Override public boolean isContains(E e) { return bst.contains(e); } @Override public int getSize() { return bst.getSize(); } @Override public boolean isEmpty() { return bst.isEmpty(); } }
java
Apache-2.0
f1c886eabf744b69e72a0b0a64b348032b439037
2026-01-05T02:39:40.141219Z
false
JsonChao/Awesome-Algorithm-Study
https://github.com/JsonChao/Awesome-Algorithm-Study/blob/f1c886eabf744b69e72a0b0a64b348032b439037/data_struct_study/src/set/LinkedListSet.java
data_struct_study/src/set/LinkedListSet.java
package set; import LinkedList.LinkedList; import java.util.ArrayList; /** * BST 和 LinkedList 都属于动态数据结构 * * BSTSet 和 LinkedListSet 时间复杂度对比(h 为二分搜索树的高度) * * LinkedListSet BSTSet 最优 平均 最差(二分搜索树退化为线性链表时) * 增 add O(n) O(h) O(logn) O(logn) O(n) * 查 isContains O(n) O(h) O(logn) O(logn) O(n) * 删 remove O(n) O(h) O(logn) O(logn) O(n) * * O(h) => O(logn) 过程? * * h = log2(n+1) => O(log2n) => O(logn) * * O(n) 与 O(logn) 的差距? * * log(n) n 对比结果 * n = 16 4 16 相差4倍 * n = 1024 10 1024 相差100倍 * n = 100万 20 100万 相差5万倍 * * 应用场景: * 1)、客户统计 * 2)、词汇量统计 * */ public class LinkedListSet<E> implements Set<E> { private LinkedList<E> list; public LinkedListSet() { this.list = new LinkedList<E>(); } @Override public void add(E e) { if (!list.isContains(e)) { list.addFirst(e); } } @Override public void remove(E e) { list.removeElement(e); } @Override public boolean isContains(E e) { return list.isContains(e); } @Override public int getSize() { return list.getSize(); } @Override public boolean isEmpty() { return list.isEmpty(); } public static void main(String[] args) { ArrayList<String> words1 = new ArrayList<>(); System.out.println("pride-and-prejudice"); if (FileOperation.readFile("pride-and-prejudice.txt", words1)) { System.out.println("Total words: " + words1.size()); LinkedListSet<String> set = new LinkedListSet<>(); for (String item:words1) { set.add(item); } System.out.println("Total different words: " + set.getSize()); } ArrayList<String> words2 = new ArrayList<>(); System.out.println("a-tale-of-two-cities"); if (FileOperation.readFile("a-tale-of-two-cities.txt", words2)) { System.out.println("Total words: " + words2.size()); LinkedListSet<String> set = new LinkedListSet<>(); for (String item:words2) { set.add(item); } System.out.println("Total different words: " + set.getSize()); } } }
java
Apache-2.0
f1c886eabf744b69e72a0b0a64b348032b439037
2026-01-05T02:39:40.141219Z
false
JsonChao/Awesome-Algorithm-Study
https://github.com/JsonChao/Awesome-Algorithm-Study/blob/f1c886eabf744b69e72a0b0a64b348032b439037/data_struct_study/src/set/Main1.java
data_struct_study/src/set/Main1.java
package set; import java.util.ArrayList; public class Main1 { public static void main(String[] args) { ArrayList<String> words1 = new ArrayList<>(); System.out.println("pride-and-prejudice"); if (FileOperation.readFile("pride-and-prejudice.txt", words1)) { System.out.println("Total words: " + words1.size()); BSTSet<String> set = new BSTSet<>(); for (String item:words1) { set.add(item); } System.out.println("Total different words: " + set.getSize()); } ArrayList<String> words2 = new ArrayList<>(); System.out.println("a-tale-of-two-cities"); if (FileOperation.readFile("a-tale-of-two-cities.txt", words2)) { System.out.println("Total words: " + words2.size()); BSTSet<String> set = new BSTSet<>(); for (String item:words2) { set.add(item); } System.out.println("Total different words: " + set.getSize()); } } }
java
Apache-2.0
f1c886eabf744b69e72a0b0a64b348032b439037
2026-01-05T02:39:40.141219Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/ApplicationExample.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/ApplicationExample.java
package com.example; import com.example.bluepoints.BluePointsSkill; import com.ibm.watson.conversationalskills.model.*; import com.ibm.watson.conversationalskills.sdk.Skill; import com.ibm.watson.conversationalskills.sdk.SkillOrchestrator; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.media.Content; import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.responses.ApiResponse; import jakarta.validation.Valid; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; @RestController @SpringBootApplication public class ApplicationExample { @RequestMapping("/") String home() { return "Hello World!"; } /** * GET /providers/{provider_id}/conversational_skills : Fetch a list of conversational skills * Retrieves a list of conversational skills associated to a particular provider. * * @param providerId Unique identifier of the provider that possesses the conversational skill. It represents the instance that is linked with the WxA instance. (required) * @param assistantId Assistant ID values that need to be considered for filtering (required) * @param environmentId Environment ID values that need to be considered for filtering (required) * @return Successful request. (status code 200) * or Invalid request. (status code 400) * or Internal error. (status code 500) */ @Operation( operationId = "fetchSkills", summary = "Fetch a list of conversational skills", description = "Retrieves a list of conversational skills associated to a particular provider.", tags = { "Conversational skill" }, responses = { @ApiResponse(responseCode = "200", description = "Successful request.", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ListSkillsResponse.class)) }), @ApiResponse(responseCode = "400", description = "Invalid request.", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponse.class)) }), @ApiResponse(responseCode = "500", description = "Internal error.", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponse.class)) }) } ) @RequestMapping( method = RequestMethod.GET, value = "/providers/{provider_id}/conversational_skills", produces = { "application/json" } ) ResponseEntity<ListSkillsResponse> fetchSkills( @PathVariable(value = "provider_id", required = true) String providerId, @RequestParam(value = "assistant_id", required = true, defaultValue = "available") String assistantId, @RequestParam(value = "environment_id", required = true, defaultValue = "available") String environmentId ) { // Initialize skill var skill = new BluePointsSkill(); // Format skill for response object var formattedSkill = skill.formatForListSkills(); // Add skill to response object var listSkillsResponse = new ListSkillsResponse(); listSkillsResponse.addConversationalSkillsItem(formattedSkill); // If you are adding more skills ex: // listSkillsResponse.addConversationalSkillsItem(formattedSkill2); // listSkillsResponse.addConversationalSkillsItem(formattedSkill3); return new ResponseEntity<>(listSkillsResponse, HttpStatus.OK); } /** * GET /providers/{provider_id}/conversational_skills/{conversational_skill_id} : Get a conversational skill * Get a conversational skill associated to a particular provider. * * @param providerId Unique identifier of the provider that possesses the conversational skill. It represents the instance that is linked with the WxA instance. (required) * @param conversationalSkillId Unique identifier of the conversational skill. (required) * @param assistantId Assistant ID values that need to be considered for filtering (required) * @param environmentId Environment ID values that need to be considered for filtering (required) * @return Successful request. (status code 200) * or Invalid request. (status code 400) * or Internal error. (status code 500) */ @Operation( operationId = "getSkill", summary = "Get a conversational skill", description = "Get a conversational skill associated to a particular provider.", tags = { "Conversational skill" }, responses = { @ApiResponse(responseCode = "200", description = "Successful request.", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = GetSkillResponse.class)) }), @ApiResponse(responseCode = "400", description = "Invalid request.", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponse.class)) }), @ApiResponse(responseCode = "500", description = "Internal error.", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponse.class)) }) } ) @RequestMapping( method = RequestMethod.GET, value = "/providers/{provider_id}/conversational_skills/{conversational_skill_id}", produces = { "application/json" } ) ResponseEntity<GetSkillResponse> getSkill( @PathVariable(value = "provider_id", required = true) String providerId, @PathVariable(value = "conversational_skill_id", required = true) String conversationalSkillId, @RequestParam(value = "assistant_id", required = true, defaultValue = "available") String assistantId, @RequestParam(value = "environment_id", required = true, defaultValue = "available") String environmentId ) { // Initialize skill var skill = new BluePointsSkill(); // Format skill for response object var formattedSkill = skill.formatForGetSkill(); return new ResponseEntity<>(formattedSkill, HttpStatus.OK); } /** * POST /providers/{provider_id}/conversational_skills/{conversational_skill_id}/orchestrate : Orchestrate a conversation * Sends user input along with conversation state (including slots and other context data) stored by watsonx Assistant, and the current turn output, to the conversational skill, to let it run its business logic and tell watsonx Assistant what to do next. * * @param providerId Unique identifier of the provider that possesses the conversational skill. It represents the instance that is linked with the WxA instance. (required) * @param conversationalSkillId Unique identifier of the conversational skill. It represents business logic to orchestrate a specific conversation. (required) * @param orchestrationRequest The request to be sent to conversational skill. This includes the user&#39;s input (relayed from WxA /message API), WxA context, slots value state, and conversational skill state. (optional) * @return Successful request. (status code 200) * or Invalid request. (status code 400) */ @Operation( operationId = "orchestrate", summary = "Orchestrate a conversation", description = "Sends user input along with conversation state (including slots and other context data) stored by watsonx Assistant, and the current turn output, to the conversational skill, to let it run its business logic and tell watsonx Assistant what to do next.", tags = { "Conversational skill" }, responses = { @ApiResponse(responseCode = "200", description = "Successful request.", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = OrchestrationResponse.class)) }), @ApiResponse(responseCode = "400", description = "Invalid request.", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = ErrorResponse.class)) }) } ) @RequestMapping( method = RequestMethod.POST, value = "/providers/{provider_id}/conversational_skills/{conversational_skill_id}/orchestrate", produces = { "application/json" }, consumes = { "application/json" } ) ResponseEntity<OrchestrationResponse> orchestrate( @PathVariable("provider_id") String providerId, @PathVariable("conversational_skill_id") String conversationalSkillId, @Valid @RequestBody(required = false) OrchestrationRequest orchestrationRequest ) throws Exception { Skill[] skills = {new BluePointsSkill()}; // Ensure that skill with provided ID exists Skill skillWithID = null; for (var skill : skills) { if (skill.getID().equals(conversationalSkillId)) { skillWithID = skill; } } if (skillWithID == null) { throw new IllegalArgumentException("Skill with ID '" + conversationalSkillId + "' does not exist"); } var skillOrchestrator = new SkillOrchestrator(); var orchestrationResponse = skillOrchestrator.orchestrate(skillWithID, orchestrationRequest); return new ResponseEntity<>(orchestrationResponse, HttpStatus.OK); } public static void main(String[] args) { SpringApplication.run(ApplicationExample.class, args); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/BluePointsSkill.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/BluePointsSkill.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints; import java.time.ZoneId; import java.time.ZonedDateTime; import java.util.Locale; import java.util.Map; import java.util.ResourceBundle; import com.example.bluepoints.slot_handlers.AmountSlotHandler; import com.example.bluepoints.slot_handlers.ReceiverCommentSlotHandler; import com.example.bluepoints.slot_handlers.RecipientSelectorSlotHandler; import com.example.bluepoints.slot_handlers.RecipientSlotHandler; import org.apache.commons.text.StringSubstitutor; import com.example.bluepoints.data.User; import com.ibm.watson.conversationalskills.model.ConversationalResponseGeneric; import com.ibm.watson.conversationalskills.sdk.Skill; import com.ibm.watson.conversationalskills.sdk.SlotHandler; import com.ibm.watson.conversationalskills.sdk.State; import jakarta.enterprise.context.RequestScoped; @RequestScoped public class BluePointsSkill extends Skill { private AmountSlotHandler amountSlotHandler = new AmountSlotHandler(); private ReceiverCommentSlotHandler receiverCommentSlotHandler = new ReceiverCommentSlotHandler(); private RecipientSelectorSlotHandler recipientSelectorSlotHandler = new RecipientSelectorSlotHandler(); private RecipientSlotHandler recipientSlotHandler = new RecipientSlotHandler(); @Override public String getConfirmationMessage(ResourceBundle resourceBundle, State state) { return getConfirmationStringSubstitutor(state).replace(resourceBundle.getString("confirmation_question")); } public ZonedDateTime getCreationTimestamp() { return ZonedDateTime.of(2024, 7, 16, 0, 0, 0, 0, ZoneId.of("UTC")); } @Override public String getDescription() { return "This feature allows an initiator to send BluePoints"; } @Override public String getID() { return "bluepoints"; } @Override public ZonedDateTime getModificationTimestamp() { return getCreationTimestamp(); } @Override public String getName() { return "Send BluePoints"; } @Override public ResourceBundle getResourceBundle(Locale locale) { return ResourceBundle.getBundle(com.example.bluepoints.i18n.BluePointsSkillResource.class.getName(), locale); } @Override public SlotHandler[] getSlotHandlers() { return new SlotHandler[] { this.recipientSlotHandler, this.recipientSelectorSlotHandler, this.amountSlotHandler, this.receiverCommentSlotHandler }; } @Override public ConversationalResponseGeneric onConfirmed(ResourceBundle resourceBundle, State state) { var conversationalResponseGeneric = new ConversationalResponseGeneric(); conversationalResponseGeneric.setResponseType("text"); conversationalResponseGeneric .setText(getConfirmationStringSubstitutor(state).replace(resourceBundle.getString("confirmation"))); return conversationalResponseGeneric; } private StringSubstitutor getConfirmationStringSubstitutor(State state) { var substitutes = Map.of("amount", state.getLocalVariable("amount", int.class), "recipientName", state.getLocalVariable("recipient", User.class).name); return new StringSubstitutor(substitutes); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/slot_handlers/AmountSlotHandler.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/slot_handlers/AmountSlotHandler.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints.slot_handlers; import com.example.bluepoints.qualifiers.*; import com.ibm.watson.conversationalskills.model.SlotInFlight; import com.ibm.watson.conversationalskills.sdk.SlotHandler; import com.ibm.watson.conversationalskills.sdk.State; import jakarta.enterprise.context.RequestScoped; @RequestScoped @Amount public class AmountSlotHandler extends SlotHandler { private static String SLOT_NAME = "amount"; public AmountSlotHandler() { super(new SlotInFlight().name(SLOT_NAME).type(SlotInFlight.TypeEnum.NUMBER)); } @Override public boolean isShownByDefault() { return true; } @Override public void onFill(State state) { state.getLocalVariables().put("amount", getNormalizedValue()); } @Override public void onRepair(State state) { onFill(state); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/slot_handlers/ReceiverCommentSlotHandler.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/slot_handlers/ReceiverCommentSlotHandler.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints.slot_handlers; import com.example.bluepoints.qualifiers.*; import com.ibm.watson.conversationalskills.model.SlotInFlight; import com.ibm.watson.conversationalskills.sdk.SlotHandler; import com.ibm.watson.conversationalskills.sdk.State; import jakarta.enterprise.context.RequestScoped; @RequestScoped @ReceiverComment public class ReceiverCommentSlotHandler extends SlotHandler { private static String SLOT_NAME = "receiver_comment"; public ReceiverCommentSlotHandler() { super(new SlotInFlight().name(SLOT_NAME).type(SlotInFlight.TypeEnum.STRING)); } @Override public boolean isShownByDefault() { return true; } @Override public void onFill(State state) { state.getLocalVariables().put("receiver_comment", getNormalizedValue()); } @Override public void onRepair(State state) { onFill(state); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/slot_handlers/RecipientSelectorSlotHandler.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/slot_handlers/RecipientSelectorSlotHandler.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints.slot_handlers; import com.example.bluepoints.data.User; import com.example.bluepoints.qualifiers.*; import com.ibm.watson.conversationalskills.model.SlotInFlight; import com.ibm.watson.conversationalskills.sdk.SlotHandler; import com.ibm.watson.conversationalskills.sdk.State; import jakarta.enterprise.context.RequestScoped; import jakarta.inject.Inject; @RequestScoped @RecipientSelector public class RecipientSelectorSlotHandler extends SlotHandler { private static String SLOT_NAME = "recipient_selector"; public RecipientSelectorSlotHandler() { super(new SlotInFlight().name(SLOT_NAME).type(SlotInFlight.TypeEnum.ENTITY)); } @Override public void onFill(State state) { var users = state.getLocalVariable("recipient_lookup_result", User[].class); var selectedPrediction = searchUser(users, getNormalizedValue()); if (selectedPrediction == null) { throw new AssertionError("selectedPrediction == null"); } hide(state); state.getLocalVariables().put("recipient", selectedPrediction); state.getLocalVariables().remove("recipient_lookup_result"); state.getLocalVariables().remove("recipient_selector_schema"); } @Override public void onRepair(State state) { } public User searchUser(User[] users, Object value) { User selectedUser = null; for (var user : users) { if (value.toString().equals(user.name + " (" + user.email + ")")) { selectedUser = user; break; } } return selectedUser; } @Inject @Recipient SlotHandler recipientSlotHandler; }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/slot_handlers/RecipientSlotHandler.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/slot_handlers/RecipientSlotHandler.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints.slot_handlers; import com.example.bluepoints.data.User; import com.example.bluepoints.qualifiers.*; import com.fasterxml.jackson.databind.ObjectMapper; import com.ibm.watson.conversationalskills.model.EntitySchema; import com.ibm.watson.conversationalskills.model.EntityValue; import com.ibm.watson.conversationalskills.model.SlotInFlight; import com.ibm.watson.conversationalskills.model.SlotState; import com.ibm.watson.conversationalskills.sdk.SlotHandler; import com.ibm.watson.conversationalskills.sdk.State; import jakarta.enterprise.context.RequestScoped; import jakarta.inject.Inject; import org.jboss.logging.Logger; import java.util.Arrays; import java.util.ResourceBundle; import java.util.stream.Collectors; @RequestScoped @Recipient public class RecipientSlotHandler extends SlotHandler { private static final Logger LOG = Logger.getLogger(RecipientSlotHandler.class); private static String SLOT_NAME = "recipient"; public RecipientSlotHandler() { super(new SlotInFlight().name(SLOT_NAME).type(SlotInFlight.TypeEnum.STRING)); } @Override public boolean isShownByDefault() { return true; } @Override public void onFill(State state) { requestPersonSearch(state); } @Override public void onRepair(State state) { if (recipientSelectorSlotHandler.getEvent() != SlotState.EventEnum.FILL) { var user = state.getLocalVariables().containsKey(getSlotInFlight().getName()) ? new ObjectMapper().convertValue(state.getLocalVariables().get("recipient"), User.class) : null; if ((user == null) || (!getNormalizedValue().equals(user.name) && !getNormalizedValue().equals(user.name + " (" + user.email + ")"))) { LOG.info("Value does not correspond to stored recipient → searching persons"); state.getLocalVariables().remove("recipient"); requestPersonSearch(state); } else { // watsonx Assistant may set the "recipient" slot with one of the following // values while filling other slots → ignore: // // - {first name} {last name} // - {first name} {last name} ({e-mail}) LOG.info("Ignoring repair event as value corresponds to stored recipient"); } } else { LOG.info("Ignoring repair event as corresponding selector was filled"); } } private void initializeRecipientSelector(User[] users, State state) { var recipientSelectorSlot = recipientSelectorSlotHandler.getSlotInFlight(); var entitySchema = new EntitySchema(); entitySchema.setEntity(recipientSelectorSlot.getName()); for (var prediction : users) { var entityValue = new EntityValue(); entityValue.setValue(prediction.name + " (" + prediction.email + ")"); entitySchema.addValuesItem(entityValue); } recipientSelectorSlot.setSchema(entitySchema); // outdated value may have been received by watsonx Assistant due to a repair recipientSelectorSlot.setValue(null); state.getLocalVariables().put("recipient_lookup_result", users); state.getLocalVariables().put(this.recipientSelectorSlotHandler.getSlotInFlight().getName() + "_schema", entitySchema); } private void requestPersonSearch(State state) { User[] availableUsers = new User[] { new User("USER1", "John Miller", "john.miller@example.com"), new User("USER2", "Mary Miller", "mary.miller@example.com"), new User("USER3", "Peter Miller", "peter.miller@example.com") }; User[] users = null; if (getNormalizedValue().equals("Miller")) { users = availableUsers; } else { var userList = Arrays.stream(availableUsers).filter(user -> { return user.name.equals(getNormalizedValue()); }).collect(Collectors.toList()); users = userList.toArray(new User[userList.size()]); } if (users.length == 0) { getSlotInFlight().setValidationError(ResourceBundle .getBundle(com.example.bluepoints.i18n.BluePointsSkillResource.class.getName(), state.getLocale()) .getString("recipient_validation_error_template")); getSlotInFlight().setValue(null); } else { initializeRecipientSelector(users, state); this.recipientSelectorSlotHandler.show(state); } } @Inject @RecipientSelector SlotHandler recipientSelectorSlotHandler; }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/i18n/BluePointsSkillResource_en_US.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/i18n/BluePointsSkillResource_en_US.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints.i18n; import java.util.ListResourceBundle; public class BluePointsSkillResource_en_US extends ListResourceBundle { @Override protected Object[][] getContents() { return new Object[][] { { "amount_description", "Amount" }, { "amount_prompt", "How many BluePoints?" }, { "confirmation", "We sent ${amount} BluePoints to ${recipientName}." }, { "confirmation_question", "Do you really want to send ${amount} BluePoints to ${recipientName}?" }, { "receiver_comment_description", "Comment to be sent to the receiver" }, { "receiver_comment_prompt", "Which comment do you want to send to the receiver?" }, { "recipient_description", "Name of the employee to whom to send BluePoints" }, { "recipient_prompt", "To whom do you want to send BluePoints?" }, { "recipient_validation_error_template", "We couldn't find the employee you mentioned. Please try again." }, { "recipient_selector_description", "The exact employee to whom to send BluePoints" }, { "recipient_selector_prompt", "Select the employee to whom to send BluePoints:" }, { "recipient_selector_validation_error_template", "You need to select a recipient from the list. Please try again." } }; }; }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/i18n/BluePointsSkillResource_de_DE.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/i18n/BluePointsSkillResource_de_DE.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints.i18n; import java.util.ListResourceBundle; public class BluePointsSkillResource_de_DE extends ListResourceBundle { @Override protected Object[][] getContents() { return new Object[][] { { "amount_description", "Betrag" }, { "amount_prompt", "Wie viele BluePoints?" }, { "confirmation", "Wir haben ${amount} BluePoints an ${recipientName} gesendet." }, { "confirmation_question", "Möchten Sie wirklich ${amount} BluePoints an ${recipientName} senden?" }, { "receiver_comment_description", "Kommentar, der dem Empfänger gesendet werden soll" }, { "receiver_comment_prompt", "Welchen Kommentar möchten Sie dem Empfänger senden?" }, { "recipient_description", "Name des Mitarbeiters, dem BluePoints gesendet werden soll" }, { "recipient_prompt", "Wem möchten Sie BluePoints senden?" }, { "recipient_validation_error_template", "Wir konnten den von Ihnen genannten Mitarbeiter nicht finden. Bitte versuchen Sie es erneut." }, { "recipient_selector_description", "Der genaue Mitarbeiter, dem BluePoints gesendet werden sollen" }, { "recipient_selector_prompt", "Wählen Sie den Mitarbeiter, dem BluePoints gesendet werden sollen:" }, { "recipient_selector_validation_error_template", "Sie müssen einen Empfänger aus der Liste auswählen. Bitte versuchen Sie es erneut." } }; }; }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/i18n/BluePointsSkillResource.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/i18n/BluePointsSkillResource.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints.i18n; public class BluePointsSkillResource extends BluePointsSkillResource_en_US { }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/data/User.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/data/User.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints.data; public class User { public User() { } public User(String userID, String name, String email) { this.email = email; this.name = name; this.userID = userID; } public String email; public String name; public String userID; }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/qualifiers/Amount.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/qualifiers/Amount.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints.qualifiers; import jakarta.inject.Qualifier; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.*; import static java.lang.annotation.RetentionPolicy.RUNTIME; @Qualifier @Retention(RUNTIME) @Target({ METHOD, FIELD, PARAMETER, TYPE }) public @interface Amount { }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/qualifiers/Recipient.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/qualifiers/Recipient.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints.qualifiers; import jakarta.inject.Qualifier; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.*; import static java.lang.annotation.RetentionPolicy.RUNTIME; @Qualifier @Retention(RUNTIME) @Target({ METHOD, FIELD, PARAMETER, TYPE }) public @interface Recipient { }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/qualifiers/ReceiverComment.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/qualifiers/ReceiverComment.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints.qualifiers; import jakarta.inject.Qualifier; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.*; import static java.lang.annotation.RetentionPolicy.RUNTIME; @Qualifier @Retention(RUNTIME) @Target({ METHOD, FIELD, PARAMETER, TYPE }) public @interface ReceiverComment { }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/qualifiers/RecipientSelector.java
conversational-skills/procode-skill-springboot-example/src/main/java/com/example/bluepoints/qualifiers/RecipientSelector.java
/* Copyright 2024 IBM Corporation 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 https://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.example.bluepoints.qualifiers; import jakarta.inject.Qualifier; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.*; import static java.lang.annotation.RetentionPolicy.RUNTIME; @Qualifier @Retention(RUNTIME) @Target({ METHOD, FIELD, PARAMETER, TYPE }) public @interface RecipientSelector { }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/test/java/com/ibm/watson/conversationalskills/sdk/SlotHandlerTest.java
conversational-skills/procode-skill-sdk-java/src/test/java/com/ibm/watson/conversationalskills/sdk/SlotHandlerTest.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.sdk; import static org.junit.jupiter.api.Assertions.assertEquals; import com.ibm.watson.conversationalskills.model.SlotInFlight; import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.HashMap; import java.util.Locale; import java.util.Map; class SlotHandlerTest { private final String SLOT_NAME = "tester"; class TestSlotHandler extends SlotHandler { public TestSlotHandler() { super(new SlotInFlight().name(SLOT_NAME).type(SlotInFlight.TypeEnum.NUMBER)); } @Override public void onFill(State state) { state.getLocalVariables().put("test", getNormalizedValue()); } @Override public void onRepair(State state) { onFill(state); } } private final SlotHandler slotHandler = new TestSlotHandler(); @Test void testHideSlotName() { Locale locale = Locale.US; ArrayList<String> visibleSlots = new ArrayList<>(); visibleSlots.add("test1"); visibleSlots.add(SLOT_NAME); visibleSlots.add("test3"); Map<String, Object> localVariables = new HashMap<>(); localVariables.put("visible_slots", visibleSlots); Map<String, Object> sessionVariables = Map.of("session_test", new Object()); State state = new State(locale, localVariables, sessionVariables); slotHandler.hide(state); ArrayList<String> slots = (ArrayList<String>) state.getLocalVariables().get("visible_slots"); assertEquals(slots.get(1), "test3"); } @Test void testNoHideSlotName() { Locale locale = Locale.US; ArrayList<String> visibleSlots = new ArrayList<>(); visibleSlots.add("test1"); visibleSlots.add("test2"); visibleSlots.add("test3"); Map<String, Object> localVariables = new HashMap<>(); localVariables.put("visible_slots", visibleSlots); Map<String, Object> sessionVariables = Map.of("session_test", new Object()); State state = new State(locale, localVariables, sessionVariables); slotHandler.hide(state); ArrayList<String> slots = (ArrayList<String>) state.getLocalVariables().get("visible_slots"); assertEquals(slots.get(1), "test2"); } @Test void testShowSlotNameExists() { Locale locale = Locale.US; ArrayList<String> visibleSlots = new ArrayList<>(); visibleSlots.add("test1"); visibleSlots.add(SLOT_NAME); visibleSlots.add("test3"); Map<String, Object> localVariables = new HashMap<>(); localVariables.put("visible_slots", visibleSlots); Map<String, Object> sessionVariables = Map.of("session_test", new Object()); State state = new State(locale, localVariables, sessionVariables); slotHandler.show(state); ArrayList<String> slots = (ArrayList<String>) state.getLocalVariables().get("visible_slots"); assertEquals(slots.get(1), SLOT_NAME); } @Test void testShowSlotNameDoesNotExist() { Locale locale = Locale.US; ArrayList<String> visibleSlots = new ArrayList<>(); visibleSlots.add("test1"); visibleSlots.add("test2"); visibleSlots.add("test3"); Map<String, Object> localVariables = new HashMap<>(); localVariables.put("visible_slots", visibleSlots); Map<String, Object> sessionVariables = Map.of("session_test", new Object()); State state = new State(locale, localVariables, sessionVariables); slotHandler.show(state); ArrayList<String> slots = (ArrayList<String>) state.getLocalVariables().get("visible_slots"); assertEquals(slots.get(1), "test2"); assertEquals(slots.get(3), SLOT_NAME); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/test/java/com/ibm/watson/conversationalskills/sdk/SkillOrchestratorTest.java
conversational-skills/procode-skill-sdk-java/src/test/java/com/ibm/watson/conversationalskills/sdk/SkillOrchestratorTest.java
package com.ibm.watson.conversationalskills.sdk; import com.ibm.watson.conversationalskills.model.*; import com.ibm.watson.conversationalskills.sdk.utils.BluePointsSkill; import org.junit.jupiter.api.Test; import java.util.*; import static org.junit.jupiter.api.Assertions.assertEquals; public class SkillOrchestratorTest { private final SkillOrchestrator skillOrchestrator = new SkillOrchestrator(); /** * Test orchestrate function */ @Test void testOrchestrateEmptyResponse() throws Exception { var skill = new BluePointsSkill(); var orchestrationResponse = skillOrchestrator.orchestrate(skill, null); assertEquals(orchestrationResponse, new OrchestrationResponse()); } @Test void testOrchestrateCancelledEvent() throws Exception { var skill = new BluePointsSkill(); var orchestrationRequest = new OrchestrationRequest(); orchestrationRequest.setConfirmationEvent(OrchestrationRequest.ConfirmationEventEnum.CANCELLED); orchestrationRequest.setContext(new MessageContext()); orchestrationRequest.setState(new ConversationalSkillStateInput()); var orchestrationResponse = skillOrchestrator.orchestrate(skill, orchestrationRequest); assertEquals(orchestrationResponse.getOutput().getGeneric().get(0).getResponseType(), "text"); assertEquals(orchestrationResponse.getOutput().getGeneric().get(0).getText(), "The skill was cancelled."); assertEquals(orchestrationResponse.getResolver().get("type"), OrchestrationResponseResolver.TypeEnum.SKILL_CANCEL.toString()); } @Test void testOrchestrateConfirmedEvent() throws Exception { var skill = new BluePointsSkill(); var orchestrationRequest = new OrchestrationRequest(); orchestrationRequest.setConfirmationEvent(OrchestrationRequest.ConfirmationEventEnum.CONFIRMED); orchestrationRequest.setContext(new MessageContext()); orchestrationRequest.setState(new ConversationalSkillStateInput()); var orchestrationResponse = skillOrchestrator.orchestrate(skill, orchestrationRequest); assertEquals(orchestrationResponse.getOutput().getGeneric().get(0).getResponseType(), "text"); assertEquals(orchestrationResponse.getOutput().getGeneric().get(0).getText(), "text"); assertEquals(orchestrationResponse.getResolver().get("type"), OrchestrationResponseResolver.TypeEnum.SKILL_COMPLETE.toString()); } @Test void testOrchestrateFillEvent() throws Exception { var skill = new BluePointsSkill(); var orchestrationRequest = new OrchestrationRequest(); orchestrationRequest.setContext(new MessageContext()); orchestrationRequest.setState(new ConversationalSkillStateInput()); var slotState = new SlotState() .name("amount") .event(SlotState.EventEnum.FILL) .value(new SlotValue().normalized("John").literal("John")); var slotStateArray = new ArrayList<SlotState>(); slotStateArray.add(slotState); orchestrationRequest.setSlots(slotStateArray); var orchestrationResponse = skillOrchestrator.orchestrate(skill, orchestrationRequest); assertEquals(orchestrationResponse.getOutput().getGeneric().get(0).getResponseType(), "slots"); assertEquals(orchestrationResponse.getState().getLocalVariables().get("amount"), "John"); assertEquals(orchestrationResponse.getState().getLocalVariables().get("visible_slots"), new ArrayList<>(Arrays.asList("amount"))); assertEquals(orchestrationResponse.getOutput().getGeneric().get(0).getConfirmation().getPrompt(), "not_yet"); assertEquals(orchestrationResponse.getResolver().get("type"), OrchestrationResponseResolver.TypeEnum.USER_INTERACTION.toString()); } @Test void testOrchestrateFillEventComplete() throws Exception { var skill = new BluePointsSkill(); skill.setConfirmationMessage(null); var orchestrationRequest = new OrchestrationRequest(); orchestrationRequest.setContext(new MessageContext()); orchestrationRequest.setState(new ConversationalSkillStateInput()); var slotState = new SlotState() .name("amount") .event(SlotState.EventEnum.FILL) .value(new SlotValue().normalized("John").literal("John")); var slotStateArray = new ArrayList<SlotState>(); slotStateArray.add(slotState); orchestrationRequest.setSlots(slotStateArray); var orchestrationResponse = skillOrchestrator.orchestrate(skill, orchestrationRequest); assertEquals(orchestrationResponse.getOutput().getGeneric().get(0).getResponseType(), "text"); assertEquals(orchestrationResponse.getResolver().get("type"), OrchestrationResponseResolver.TypeEnum.SKILL_COMPLETE.toString()); } @Test void testOrchestrateValidationError() throws Exception { var skill = new BluePointsSkill(); skill.setAmountSlotHandlerValidationError("There was a validation error"); var orchestrationRequest = new OrchestrationRequest(); orchestrationRequest.setContext(new MessageContext()); orchestrationRequest.setState(new ConversationalSkillStateInput()); var slotState = new SlotState() .name("amount") .event(SlotState.EventEnum.FILL) .value(new SlotValue().normalized("John").literal("John")); var slotStateArray = new ArrayList<SlotState>(); slotStateArray.add(slotState); orchestrationRequest.setSlots(slotStateArray); var orchestrationResponse = skillOrchestrator.orchestrate(skill, orchestrationRequest); assertEquals(orchestrationResponse.getOutput().getGeneric().get(0).getResponseType(), "slots"); assertEquals(orchestrationResponse.getState().getLocalVariables().get("amount"), "John"); assertEquals(orchestrationResponse.getState().getLocalVariables().get("visible_slots"), new ArrayList<>(Arrays.asList("amount"))); assertEquals(orchestrationResponse.getOutput().getGeneric().get(0).getConfirmation(), null); assertEquals(orchestrationResponse.getResolver().get("type"), OrchestrationResponseResolver.TypeEnum.USER_INTERACTION.toString()); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/test/java/com/ibm/watson/conversationalskills/sdk/SkillTest.java
conversational-skills/procode-skill-sdk-java/src/test/java/com/ibm/watson/conversationalskills/sdk/SkillTest.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.sdk; import com.ibm.watson.conversationalskills.sdk.utils.BluePointsSkill; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; public class SkillTest { @Test void testFormatForListSkills() { Skill skill = new BluePointsSkill(); var conversationalSkill = skill.formatForListSkills(); assertEquals(conversationalSkill.getId(), skill.getID()); assertEquals(conversationalSkill.getName(), skill.getName()); assertEquals(conversationalSkill.getDescription(), skill.getDescription()); assertNull(conversationalSkill.getMetadata()); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/test/java/com/ibm/watson/conversationalskills/sdk/utils/BluePointsSkill.java
conversational-skills/procode-skill-sdk-java/src/test/java/com/ibm/watson/conversationalskills/sdk/utils/BluePointsSkill.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.sdk.utils; import java.time.ZoneId; import java.time.ZonedDateTime; import java.util.Enumeration; import java.util.Locale; import java.util.Map; import java.util.ResourceBundle; import com.ibm.watson.conversationalskills.model.ConversationalResponseGeneric; import com.ibm.watson.conversationalskills.sdk.Skill; import com.ibm.watson.conversationalskills.sdk.SlotHandler; import com.ibm.watson.conversationalskills.sdk.State; public class BluePointsSkill extends Skill { private String confirmationMessage = "not_yet"; private AmountSlotHandler amountSlotHandler = new AmountSlotHandler(null); public void setAmountSlotHandlerValidationError(String validationError) { this.amountSlotHandler = new AmountSlotHandler(validationError); } public void setConfirmationMessage(String msg) { this.confirmationMessage = msg; } @Override public String getConfirmationMessage(ResourceBundle resourceBundle, State state) { return this.confirmationMessage; } public ZonedDateTime getCreationTimestamp() { return ZonedDateTime.of(2024, 7, 16, 0, 0, 0, 0, ZoneId.of("UTC")); } @Override public String getDescription() { return "This feature allows an initiator to send BluePoints"; } @Override public String getID() { return "bluepoints"; } @Override public ZonedDateTime getModificationTimestamp() { return getCreationTimestamp(); } @Override public String getName() { return "Send BluePoints"; } @Override public ResourceBundle getResourceBundle(Locale locale) { return ResourceBundle.getBundle(BluePointsSkillResource_en_US.class.getName(), locale); } @Override public SlotHandler[] getSlotHandlers() { return new SlotHandler[] { this.amountSlotHandler }; } @Override public ConversationalResponseGeneric onConfirmed(ResourceBundle resourceBundle, State state) { var conversationalResponseGeneric = new ConversationalResponseGeneric(); conversationalResponseGeneric.setResponseType("text"); conversationalResponseGeneric .setText("text"); return conversationalResponseGeneric; } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/test/java/com/ibm/watson/conversationalskills/sdk/utils/AmountSlotHandler.java
conversational-skills/procode-skill-sdk-java/src/test/java/com/ibm/watson/conversationalskills/sdk/utils/AmountSlotHandler.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.sdk.utils; import com.ibm.watson.conversationalskills.model.SlotInFlight; import com.ibm.watson.conversationalskills.sdk.SlotHandler; import com.ibm.watson.conversationalskills.sdk.State; public class AmountSlotHandler extends SlotHandler { private static String SLOT_NAME = "amount"; public AmountSlotHandler(String validationError) { super(new SlotInFlight().name(SLOT_NAME).type(SlotInFlight.TypeEnum.NUMBER).validationError(validationError)); } @Override public boolean isShownByDefault() { return true; } @Override public void onFill(State state) { state.getLocalVariables().put("amount", getNormalizedValue()); } @Override public void onRepair(State state) { onFill(state); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/test/java/com/ibm/watson/conversationalskills/sdk/utils/BluePointsSkillResource_en_US.java
conversational-skills/procode-skill-sdk-java/src/test/java/com/ibm/watson/conversationalskills/sdk/utils/BluePointsSkillResource_en_US.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.sdk.utils; import java.util.ListResourceBundle; public class BluePointsSkillResource_en_US extends ListResourceBundle { @Override protected Object[][] getContents() { return new Object[][] { { "amount_description", "Amount" }, { "amount_prompt", "How many BluePoints?" }, { "confirmation", "We sent ${amount} BluePoints to ${recipientName}." }, { "confirmation_question", "Do you really want to send ${amount} BluePoints to ${recipientName}?" }, { "receiver_comment_description", "Comment to be sent to the receiver" }, { "receiver_comment_prompt", "Which comment do you want to send to the receiver?" }, { "recipient_description", "Name of the employee to whom to send BluePoints" }, { "recipient_prompt", "To whom do you want to send BluePoints?" }, { "recipient_validation_error_template", "We couldn't find the employee you mentioned. Please try again." }, { "recipient_selector_description", "The exact employee to whom to send BluePoints" }, { "recipient_selector_prompt", "Select the employee to whom to send BluePoints:" }, { "recipient_selector_validation_error_template", "You need to select a recipient from the list. Please try again." } }; }; }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeOption.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeOption.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.DialogNodeOutputOptionsElement; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeOption */ @JsonPropertyOrder({ RuntimeResponseTypeOption.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseTypeOption.JSON_PROPERTY_TITLE, RuntimeResponseTypeOption.JSON_PROPERTY_DESCRIPTION, RuntimeResponseTypeOption.JSON_PROPERTY_PREFERENCE, RuntimeResponseTypeOption.JSON_PROPERTY_OPTIONS, RuntimeResponseTypeOption.JSON_PROPERTY_CHANNELS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeOption { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_TITLE = "title"; private String title; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; /** * The preferred type of control to display. */ public enum PreferenceEnum { DROPDOWN("dropdown"), BUTTON("button"); private String value; PreferenceEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static PreferenceEnum fromValue(String value) { for (PreferenceEnum b : PreferenceEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } public static final String JSON_PROPERTY_PREFERENCE = "preference"; private PreferenceEnum preference; public static final String JSON_PROPERTY_OPTIONS = "options"; private List<DialogNodeOutputOptionsElement> options = new ArrayList<>(); public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public RuntimeResponseTypeOption() { } public RuntimeResponseTypeOption responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseTypeOption title(String title) { this.title = title; return this; } /** * The title or introductory text to show before the response. * @return title */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTitle() { return title; } @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTitle(String title) { this.title = title; } public RuntimeResponseTypeOption description(String description) { this.description = description; return this; } /** * The description to show with the the response. * @return description */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; } @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } public RuntimeResponseTypeOption preference(PreferenceEnum preference) { this.preference = preference; return this; } /** * The preferred type of control to display. * @return preference */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public PreferenceEnum getPreference() { return preference; } @JsonProperty(JSON_PROPERTY_PREFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPreference(PreferenceEnum preference) { this.preference = preference; } public RuntimeResponseTypeOption options(List<DialogNodeOutputOptionsElement> options) { this.options = options; return this; } public RuntimeResponseTypeOption addOptionsItem(DialogNodeOutputOptionsElement optionsItem) { if (this.options == null) { this.options = new ArrayList<>(); } this.options.add(optionsItem); return this; } /** * An array of objects describing the options from which the user can choose. * @return options */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_OPTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<DialogNodeOutputOptionsElement> getOptions() { return options; } @JsonProperty(JSON_PROPERTY_OPTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setOptions(List<DialogNodeOutputOptionsElement> options) { this.options = options; } public RuntimeResponseTypeOption channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseTypeOption addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeOption runtimeResponseTypeOption = (RuntimeResponseTypeOption) o; return Objects.equals(this.responseType, runtimeResponseTypeOption.responseType) && Objects.equals(this.title, runtimeResponseTypeOption.title) && Objects.equals(this.description, runtimeResponseTypeOption.description) && Objects.equals(this.preference, runtimeResponseTypeOption.preference) && Objects.equals(this.options, runtimeResponseTypeOption.options) && Objects.equals(this.channels, runtimeResponseTypeOption.channels); } @Override public int hashCode() { return Objects.hash(responseType, title, description, preference, options, channels); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeOption {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" preference: ").append(toIndentedString(preference)).append("\n"); sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeAudio.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeAudio.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeAudio */ @JsonPropertyOrder({ RuntimeResponseTypeAudio.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseTypeAudio.JSON_PROPERTY_SOURCE, RuntimeResponseTypeAudio.JSON_PROPERTY_TITLE, RuntimeResponseTypeAudio.JSON_PROPERTY_DESCRIPTION, RuntimeResponseTypeAudio.JSON_PROPERTY_CHANNELS, RuntimeResponseTypeAudio.JSON_PROPERTY_CHANNEL_OPTIONS, RuntimeResponseTypeAudio.JSON_PROPERTY_ALT_TEXT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeAudio { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_SOURCE = "source"; private String source; public static final String JSON_PROPERTY_TITLE = "title"; private String title; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public static final String JSON_PROPERTY_CHANNEL_OPTIONS = "channel_options"; private Object channelOptions; public static final String JSON_PROPERTY_ALT_TEXT = "alt_text"; private String altText; public RuntimeResponseTypeAudio() { } public RuntimeResponseTypeAudio responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseTypeAudio source(String source) { this.source = source; return this; } /** * The &#x60;https:&#x60; URL of the audio clip. * @return source */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSource() { return source; } @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSource(String source) { this.source = source; } public RuntimeResponseTypeAudio title(String title) { this.title = title; return this; } /** * The title or introductory text to show before the response. * @return title */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(String title) { this.title = title; } public RuntimeResponseTypeAudio description(String description) { this.description = description; return this; } /** * The description to show with the the response. * @return description */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; } @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } public RuntimeResponseTypeAudio channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseTypeAudio addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } public RuntimeResponseTypeAudio channelOptions(Object channelOptions) { this.channelOptions = channelOptions; return this; } /** * For internal use only. * @return channelOptions */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNEL_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getChannelOptions() { return channelOptions; } @JsonProperty(JSON_PROPERTY_CHANNEL_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannelOptions(Object channelOptions) { this.channelOptions = channelOptions; } public RuntimeResponseTypeAudio altText(String altText) { this.altText = altText; return this; } /** * Descriptive text that can be used for screen readers or other situations where the audio player cannot be seen. * @return altText */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALT_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAltText() { return altText; } @JsonProperty(JSON_PROPERTY_ALT_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAltText(String altText) { this.altText = altText; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeAudio runtimeResponseTypeAudio = (RuntimeResponseTypeAudio) o; return Objects.equals(this.responseType, runtimeResponseTypeAudio.responseType) && Objects.equals(this.source, runtimeResponseTypeAudio.source) && Objects.equals(this.title, runtimeResponseTypeAudio.title) && Objects.equals(this.description, runtimeResponseTypeAudio.description) && Objects.equals(this.channels, runtimeResponseTypeAudio.channels) && Objects.equals(this.channelOptions, runtimeResponseTypeAudio.channelOptions) && Objects.equals(this.altText, runtimeResponseTypeAudio.altText); } @Override public int hashCode() { return Objects.hash(responseType, source, title, description, channels, channelOptions, altText); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeAudio {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append(" channelOptions: ").append(toIndentedString(channelOptions)).append("\n"); sb.append(" altText: ").append(toIndentedString(altText)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillInputSlot.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillInputSlot.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ConversationalSkillInputSlot */ @JsonPropertyOrder({ ConversationalSkillInputSlot.JSON_PROPERTY_NAME, ConversationalSkillInputSlot.JSON_PROPERTY_DESCRIPTION, ConversationalSkillInputSlot.JSON_PROPERTY_TYPE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConversationalSkillInputSlot { public static final String JSON_PROPERTY_NAME = "name"; private String name; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; /** * The type of the conversational skill&#39;s slot */ public enum TypeEnum { STRING("string"), NUMBER("number"), DATE("date"), TIME("time"), REGEX("regex"), ENTITY("entity"), CONFIRMATION("confirmation"), ANY("any"); private String value; TypeEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static TypeEnum fromValue(String value) { for (TypeEnum b : TypeEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; public ConversationalSkillInputSlot() { } public ConversationalSkillInputSlot name(String name) { this.name = name; return this; } /** * The unique identifier of the conversational skill&#39;s slot * @return name */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } public ConversationalSkillInputSlot description(String description) { this.description = description; return this; } /** * The description of the conversational skill&#39;s slot * @return description */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; } @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } public ConversationalSkillInputSlot type(TypeEnum type) { this.type = type; return this; } /** * The type of the conversational skill&#39;s slot * @return type */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(TypeEnum type) { this.type = type; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ConversationalSkillInputSlot conversationalSkillInputSlot = (ConversationalSkillInputSlot) o; return Objects.equals(this.name, conversationalSkillInputSlot.name) && Objects.equals(this.description, conversationalSkillInputSlot.description) && Objects.equals(this.type, conversationalSkillInputSlot.type); } @Override public int hashCode() { return Objects.hash(name, description, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConversationalSkillInputSlot {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/OrchestrationResponse.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/OrchestrationResponse.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ConversationalSkillOutput; import com.ibm.watson.conversationalskills.model.ConversationalSkillStateOutput; import com.ibm.watson.conversationalskills.model.OrchestrationResponseResolver; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Response expected from Conversational skill. */ @JsonPropertyOrder({ OrchestrationResponse.JSON_PROPERTY_OUTPUT, OrchestrationResponse.JSON_PROPERTY_STATE, OrchestrationResponse.JSON_PROPERTY_RESOLVER }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class OrchestrationResponse { public static final String JSON_PROPERTY_OUTPUT = "output"; private ConversationalSkillOutput output; public static final String JSON_PROPERTY_STATE = "state"; private ConversationalSkillStateOutput state; public static final String JSON_PROPERTY_RESOLVER = "resolver"; private OrchestrationResponseResolver resolver; public OrchestrationResponse() { } public OrchestrationResponse output(ConversationalSkillOutput output) { this.output = output; return this; } /** * Get output * @return output */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ConversationalSkillOutput getOutput() { return output; } @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOutput(ConversationalSkillOutput output) { this.output = output; } public OrchestrationResponse state(ConversationalSkillStateOutput state) { this.state = state; return this; } /** * Get state * @return state */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ConversationalSkillStateOutput getState() { return state; } @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setState(ConversationalSkillStateOutput state) { this.state = state; } public OrchestrationResponse resolver(OrchestrationResponseResolver resolver) { this.resolver = resolver; return this; } /** * Get resolver * @return resolver */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESOLVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public OrchestrationResponseResolver getResolver() { return resolver; } @JsonProperty(JSON_PROPERTY_RESOLVER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setResolver(OrchestrationResponseResolver resolver) { this.resolver = resolver; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } OrchestrationResponse orchestrationResponse = (OrchestrationResponse) o; return Objects.equals(this.output, orchestrationResponse.output) && Objects.equals(this.state, orchestrationResponse.state) && Objects.equals(this.resolver, orchestrationResponse.resolver); } @Override public int hashCode() { return Objects.hash(output, state, resolver); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrchestrationResponse {\n"); sb.append(" output: ").append(toIndentedString(output)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" resolver: ").append(toIndentedString(resolver)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeConnectToAgent.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeConnectToAgent.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.DialogNodeOutputConnectToAgentTransferInfo; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeConnectToAgentAgentAvailable; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeConnectToAgentAgentUnavailable; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeConnectToAgent */ @JsonPropertyOrder({ RuntimeResponseTypeConnectToAgent.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseTypeConnectToAgent.JSON_PROPERTY_MESSAGE_TO_HUMAN_AGENT, RuntimeResponseTypeConnectToAgent.JSON_PROPERTY_AGENT_AVAILABLE, RuntimeResponseTypeConnectToAgent.JSON_PROPERTY_AGENT_UNAVAILABLE, RuntimeResponseTypeConnectToAgent.JSON_PROPERTY_TRANSFER_INFO, RuntimeResponseTypeConnectToAgent.JSON_PROPERTY_TOPIC, RuntimeResponseTypeConnectToAgent.JSON_PROPERTY_CHANNELS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeConnectToAgent { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_MESSAGE_TO_HUMAN_AGENT = "message_to_human_agent"; private String messageToHumanAgent; public static final String JSON_PROPERTY_AGENT_AVAILABLE = "agent_available"; private RuntimeResponseTypeConnectToAgentAgentAvailable agentAvailable; public static final String JSON_PROPERTY_AGENT_UNAVAILABLE = "agent_unavailable"; private RuntimeResponseTypeConnectToAgentAgentUnavailable agentUnavailable; public static final String JSON_PROPERTY_TRANSFER_INFO = "transfer_info"; private DialogNodeOutputConnectToAgentTransferInfo transferInfo; public static final String JSON_PROPERTY_TOPIC = "topic"; private String topic; public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public RuntimeResponseTypeConnectToAgent() { } public RuntimeResponseTypeConnectToAgent responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseTypeConnectToAgent messageToHumanAgent(String messageToHumanAgent) { this.messageToHumanAgent = messageToHumanAgent; return this; } /** * A message to be sent to the human agent who will be taking over the conversation. * @return messageToHumanAgent */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE_TO_HUMAN_AGENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessageToHumanAgent() { return messageToHumanAgent; } @JsonProperty(JSON_PROPERTY_MESSAGE_TO_HUMAN_AGENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessageToHumanAgent(String messageToHumanAgent) { this.messageToHumanAgent = messageToHumanAgent; } public RuntimeResponseTypeConnectToAgent agentAvailable(RuntimeResponseTypeConnectToAgentAgentAvailable agentAvailable) { this.agentAvailable = agentAvailable; return this; } /** * Get agentAvailable * @return agentAvailable */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AGENT_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public RuntimeResponseTypeConnectToAgentAgentAvailable getAgentAvailable() { return agentAvailable; } @JsonProperty(JSON_PROPERTY_AGENT_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAgentAvailable(RuntimeResponseTypeConnectToAgentAgentAvailable agentAvailable) { this.agentAvailable = agentAvailable; } public RuntimeResponseTypeConnectToAgent agentUnavailable(RuntimeResponseTypeConnectToAgentAgentUnavailable agentUnavailable) { this.agentUnavailable = agentUnavailable; return this; } /** * Get agentUnavailable * @return agentUnavailable */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AGENT_UNAVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public RuntimeResponseTypeConnectToAgentAgentUnavailable getAgentUnavailable() { return agentUnavailable; } @JsonProperty(JSON_PROPERTY_AGENT_UNAVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAgentUnavailable(RuntimeResponseTypeConnectToAgentAgentUnavailable agentUnavailable) { this.agentUnavailable = agentUnavailable; } public RuntimeResponseTypeConnectToAgent transferInfo(DialogNodeOutputConnectToAgentTransferInfo transferInfo) { this.transferInfo = transferInfo; return this; } /** * Get transferInfo * @return transferInfo */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRANSFER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public DialogNodeOutputConnectToAgentTransferInfo getTransferInfo() { return transferInfo; } @JsonProperty(JSON_PROPERTY_TRANSFER_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTransferInfo(DialogNodeOutputConnectToAgentTransferInfo transferInfo) { this.transferInfo = transferInfo; } public RuntimeResponseTypeConnectToAgent topic(String topic) { this.topic = topic; return this; } /** * A label identifying the topic of the conversation, derived from the **title** property of the relevant node or the **topic** property of the dialog node response. * @return topic */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOPIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTopic() { return topic; } @JsonProperty(JSON_PROPERTY_TOPIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTopic(String topic) { this.topic = topic; } public RuntimeResponseTypeConnectToAgent channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseTypeConnectToAgent addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeConnectToAgent runtimeResponseTypeConnectToAgent = (RuntimeResponseTypeConnectToAgent) o; return Objects.equals(this.responseType, runtimeResponseTypeConnectToAgent.responseType) && Objects.equals(this.messageToHumanAgent, runtimeResponseTypeConnectToAgent.messageToHumanAgent) && Objects.equals(this.agentAvailable, runtimeResponseTypeConnectToAgent.agentAvailable) && Objects.equals(this.agentUnavailable, runtimeResponseTypeConnectToAgent.agentUnavailable) && Objects.equals(this.transferInfo, runtimeResponseTypeConnectToAgent.transferInfo) && Objects.equals(this.topic, runtimeResponseTypeConnectToAgent.topic) && Objects.equals(this.channels, runtimeResponseTypeConnectToAgent.channels); } @Override public int hashCode() { return Objects.hash(responseType, messageToHumanAgent, agentAvailable, agentUnavailable, transferInfo, topic, channels); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeConnectToAgent {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" messageToHumanAgent: ").append(toIndentedString(messageToHumanAgent)).append("\n"); sb.append(" agentAvailable: ").append(toIndentedString(agentAvailable)).append("\n"); sb.append(" agentUnavailable: ").append(toIndentedString(agentUnavailable)).append("\n"); sb.append(" transferInfo: ").append(toIndentedString(transferInfo)).append("\n"); sb.append(" topic: ").append(toIndentedString(topic)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/EntitySchema.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/EntitySchema.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.EntityValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Schema definition for the slot, required if type is entity. */ @JsonPropertyOrder({ EntitySchema.JSON_PROPERTY_ENTITY, EntitySchema.JSON_PROPERTY_VALUES }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class EntitySchema { public static final String JSON_PROPERTY_ENTITY = "entity"; private String entity; public static final String JSON_PROPERTY_VALUES = "values"; private List<EntityValue> values = new ArrayList<>(); public EntitySchema() { } public EntitySchema entity(String entity) { this.entity = entity; return this; } /** * Watson Assistant&#39;s entity schema name. * @return entity */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getEntity() { return entity; } @JsonProperty(JSON_PROPERTY_ENTITY) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEntity(String entity) { this.entity = entity; } public EntitySchema values(List<EntityValue> values) { this.values = values; return this; } public EntitySchema addValuesItem(EntityValue valuesItem) { if (this.values == null) { this.values = new ArrayList<>(); } this.values.add(valuesItem); return this; } /** * Get values * @return values */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<EntityValue> getValues() { return values; } @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValues(List<EntityValue> values) { this.values = values; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } EntitySchema entitySchema = (EntitySchema) o; return Objects.equals(this.entity, entitySchema.entity) && Objects.equals(this.values, entitySchema.values); } @Override public int hashCode() { return Objects.hash(entity, values); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EntitySchema {\n"); sb.append(" entity: ").append(toIndentedString(entity)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContext.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContext.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.MessageContextGlobal; import com.ibm.watson.conversationalskills.model.MessageContextSkills; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * MessageContext */ @JsonPropertyOrder({ MessageContext.JSON_PROPERTY_GLOBAL, MessageContext.JSON_PROPERTY_SKILLS, MessageContext.JSON_PROPERTY_INTEGRATIONS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageContext { public static final String JSON_PROPERTY_GLOBAL = "global"; private MessageContextGlobal global; public static final String JSON_PROPERTY_SKILLS = "skills"; private MessageContextSkills skills; public static final String JSON_PROPERTY_INTEGRATIONS = "integrations"; private Object integrations; public MessageContext() { } public MessageContext global(MessageContextGlobal global) { this.global = global; return this; } /** * Get global * @return global */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_GLOBAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageContextGlobal getGlobal() { return global; } @JsonProperty(JSON_PROPERTY_GLOBAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGlobal(MessageContextGlobal global) { this.global = global; } public MessageContext skills(MessageContextSkills skills) { this.skills = skills; return this; } /** * Get skills * @return skills */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SKILLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageContextSkills getSkills() { return skills; } @JsonProperty(JSON_PROPERTY_SKILLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSkills(MessageContextSkills skills) { this.skills = skills; } public MessageContext integrations(Object integrations) { this.integrations = integrations; return this; } /** * An object containing context data that is specific to particular integrations. For more information, see the [documentation](https://cloud.ibm.com/docs/assistant?topic&#x3D;assistant-dialog-integrations). This will include &#x60;chat.private.jwt&#x60; containing Cade&#39;s SSO security token. * @return integrations */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INTEGRATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getIntegrations() { return integrations; } @JsonProperty(JSON_PROPERTY_INTEGRATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIntegrations(Object integrations) { this.integrations = integrations; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessageContext messageContext = (MessageContext) o; return Objects.equals(this.global, messageContext.global) && Objects.equals(this.skills, messageContext.skills) && Objects.equals(this.integrations, messageContext.integrations); } @Override public int hashCode() { return Objects.hash(global, skills, integrations); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MessageContext {\n"); sb.append(" global: ").append(toIndentedString(global)).append("\n"); sb.append(" skills: ").append(toIndentedString(skills)).append("\n"); sb.append(" integrations: ").append(toIndentedString(integrations)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillActiveDetails.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillActiveDetails.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ConversationalSkillAction; import com.ibm.watson.conversationalskills.model.SlotInFlight; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ConversationalSkillActiveDetails */ @JsonPropertyOrder({ ConversationalSkillActiveDetails.JSON_PROPERTY_ACTION, ConversationalSkillActiveDetails.JSON_PROPERTY_SLOTS, ConversationalSkillActiveDetails.JSON_PROPERTY_LOCAL_VARIABLES, ConversationalSkillActiveDetails.JSON_PROPERTY_CONSECUTIVE_ERROR_TURN_COUNT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConversationalSkillActiveDetails { public static final String JSON_PROPERTY_ACTION = "action"; private ConversationalSkillAction action; public static final String JSON_PROPERTY_SLOTS = "slots"; private List<SlotInFlight> slots = new ArrayList<>(); public static final String JSON_PROPERTY_LOCAL_VARIABLES = "local_variables"; private Map<String, Object> localVariables = new HashMap<>(); public static final String JSON_PROPERTY_CONSECUTIVE_ERROR_TURN_COUNT = "consecutive_error_turn_count"; private BigDecimal consecutiveErrorTurnCount; public ConversationalSkillActiveDetails() { } public ConversationalSkillActiveDetails action(ConversationalSkillAction action) { this.action = action; return this; } /** * Get action * @return action */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ConversationalSkillAction getAction() { return action; } @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAction(ConversationalSkillAction action) { this.action = action; } public ConversationalSkillActiveDetails slots(List<SlotInFlight> slots) { this.slots = slots; return this; } public ConversationalSkillActiveDetails addSlotsItem(SlotInFlight slotsItem) { if (this.slots == null) { this.slots = new ArrayList<>(); } this.slots.add(slotsItem); return this; } /** * The ordered list of slots that WxA has filled, repaired, or prompted for. * @return slots */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SLOTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<SlotInFlight> getSlots() { return slots; } @JsonProperty(JSON_PROPERTY_SLOTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSlots(List<SlotInFlight> slots) { this.slots = slots; } public ConversationalSkillActiveDetails localVariables(Map<String, Object> localVariables) { this.localVariables = localVariables; return this; } public ConversationalSkillActiveDetails putLocalVariablesItem(String key, Object localVariablesItem) { if (this.localVariables == null) { this.localVariables = new HashMap<>(); } this.localVariables.put(key, localVariablesItem); return this; } /** * An object containing variables local to this conversational skill. * @return localVariables */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOCAL_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getLocalVariables() { return localVariables; } @JsonProperty(JSON_PROPERTY_LOCAL_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setLocalVariables(Map<String, Object> localVariables) { this.localVariables = localVariables; } public ConversationalSkillActiveDetails consecutiveErrorTurnCount(BigDecimal consecutiveErrorTurnCount) { this.consecutiveErrorTurnCount = consecutiveErrorTurnCount; return this; } /** * The number of consecutive error attempting to fill the current slot. * @return consecutiveErrorTurnCount */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONSECUTIVE_ERROR_TURN_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public BigDecimal getConsecutiveErrorTurnCount() { return consecutiveErrorTurnCount; } @JsonProperty(JSON_PROPERTY_CONSECUTIVE_ERROR_TURN_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setConsecutiveErrorTurnCount(BigDecimal consecutiveErrorTurnCount) { this.consecutiveErrorTurnCount = consecutiveErrorTurnCount; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ConversationalSkillActiveDetails conversationalSkillActiveDetails = (ConversationalSkillActiveDetails) o; return Objects.equals(this.action, conversationalSkillActiveDetails.action) && Objects.equals(this.slots, conversationalSkillActiveDetails.slots) && Objects.equals(this.localVariables, conversationalSkillActiveDetails.localVariables) && Objects.equals(this.consecutiveErrorTurnCount, conversationalSkillActiveDetails.consecutiveErrorTurnCount); } @Override public int hashCode() { return Objects.hash(action, slots, localVariables, consecutiveErrorTurnCount); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConversationalSkillActiveDetails {\n"); sb.append(" action: ").append(toIndentedString(action)).append("\n"); sb.append(" slots: ").append(toIndentedString(slots)).append("\n"); sb.append(" localVariables: ").append(toIndentedString(localVariables)).append("\n"); sb.append(" consecutiveErrorTurnCount: ").append(toIndentedString(consecutiveErrorTurnCount)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeDate.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeDate.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeDate */ @JsonPropertyOrder({ RuntimeResponseTypeDate.JSON_PROPERTY_RESPONSE_TYPE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeDate { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public RuntimeResponseTypeDate() { } public RuntimeResponseTypeDate responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeDate runtimeResponseTypeDate = (RuntimeResponseTypeDate) o; return Objects.equals(this.responseType, runtimeResponseTypeDate.responseType); } @Override public int hashCode() { return Objects.hash(responseType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeDate {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeSearch.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeSearch.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import com.ibm.watson.conversationalskills.model.SearchResult; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeSearch */ @JsonPropertyOrder({ RuntimeResponseTypeSearch.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseTypeSearch.JSON_PROPERTY_HEADER, RuntimeResponseTypeSearch.JSON_PROPERTY_PRIMARY_RESULTS, RuntimeResponseTypeSearch.JSON_PROPERTY_ADDITIONAL_RESULTS, RuntimeResponseTypeSearch.JSON_PROPERTY_CHANNELS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeSearch { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_HEADER = "header"; private String header; public static final String JSON_PROPERTY_PRIMARY_RESULTS = "primary_results"; private List<SearchResult> primaryResults = new ArrayList<>(); public static final String JSON_PROPERTY_ADDITIONAL_RESULTS = "additional_results"; private List<SearchResult> additionalResults = new ArrayList<>(); public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public RuntimeResponseTypeSearch() { } public RuntimeResponseTypeSearch responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseTypeSearch header(String header) { this.header = header; return this; } /** * The title or introductory text to show before the response. This text is defined in the search skill configuration. * @return header */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_HEADER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getHeader() { return header; } @JsonProperty(JSON_PROPERTY_HEADER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setHeader(String header) { this.header = header; } public RuntimeResponseTypeSearch primaryResults(List<SearchResult> primaryResults) { this.primaryResults = primaryResults; return this; } public RuntimeResponseTypeSearch addPrimaryResultsItem(SearchResult primaryResultsItem) { if (this.primaryResults == null) { this.primaryResults = new ArrayList<>(); } this.primaryResults.add(primaryResultsItem); return this; } /** * An array of objects that contains the search results to be displayed in the initial response to the user. * @return primaryResults */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PRIMARY_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<SearchResult> getPrimaryResults() { return primaryResults; } @JsonProperty(JSON_PROPERTY_PRIMARY_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPrimaryResults(List<SearchResult> primaryResults) { this.primaryResults = primaryResults; } public RuntimeResponseTypeSearch additionalResults(List<SearchResult> additionalResults) { this.additionalResults = additionalResults; return this; } public RuntimeResponseTypeSearch addAdditionalResultsItem(SearchResult additionalResultsItem) { if (this.additionalResults == null) { this.additionalResults = new ArrayList<>(); } this.additionalResults.add(additionalResultsItem); return this; } /** * An array of objects that contains additional search results that can be displayed to the user upon request. * @return additionalResults */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDITIONAL_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<SearchResult> getAdditionalResults() { return additionalResults; } @JsonProperty(JSON_PROPERTY_ADDITIONAL_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAdditionalResults(List<SearchResult> additionalResults) { this.additionalResults = additionalResults; } public RuntimeResponseTypeSearch channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseTypeSearch addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeSearch runtimeResponseTypeSearch = (RuntimeResponseTypeSearch) o; return Objects.equals(this.responseType, runtimeResponseTypeSearch.responseType) && Objects.equals(this.header, runtimeResponseTypeSearch.header) && Objects.equals(this.primaryResults, runtimeResponseTypeSearch.primaryResults) && Objects.equals(this.additionalResults, runtimeResponseTypeSearch.additionalResults) && Objects.equals(this.channels, runtimeResponseTypeSearch.channels); } @Override public int hashCode() { return Objects.hash(responseType, header, primaryResults, additionalResults, channels); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeSearch {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" header: ").append(toIndentedString(header)).append("\n"); sb.append(" primaryResults: ").append(toIndentedString(primaryResults)).append("\n"); sb.append(" additionalResults: ").append(toIndentedString(additionalResults)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeSuggestion.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeSuggestion.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.DialogSuggestion; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeSuggestion */ @JsonPropertyOrder({ RuntimeResponseTypeSuggestion.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseTypeSuggestion.JSON_PROPERTY_TITLE, RuntimeResponseTypeSuggestion.JSON_PROPERTY_SUGGESTIONS, RuntimeResponseTypeSuggestion.JSON_PROPERTY_CHANNELS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeSuggestion { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_TITLE = "title"; private String title; public static final String JSON_PROPERTY_SUGGESTIONS = "suggestions"; private List<DialogSuggestion> suggestions = new ArrayList<>(); public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public RuntimeResponseTypeSuggestion() { } public RuntimeResponseTypeSuggestion responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseTypeSuggestion title(String title) { this.title = title; return this; } /** * The title or introductory text to show before the response. * @return title */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTitle() { return title; } @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTitle(String title) { this.title = title; } public RuntimeResponseTypeSuggestion suggestions(List<DialogSuggestion> suggestions) { this.suggestions = suggestions; return this; } public RuntimeResponseTypeSuggestion addSuggestionsItem(DialogSuggestion suggestionsItem) { if (this.suggestions == null) { this.suggestions = new ArrayList<>(); } this.suggestions.add(suggestionsItem); return this; } /** * An array of objects describing the possible matching dialog nodes from which the user can choose. * @return suggestions */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUGGESTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<DialogSuggestion> getSuggestions() { return suggestions; } @JsonProperty(JSON_PROPERTY_SUGGESTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSuggestions(List<DialogSuggestion> suggestions) { this.suggestions = suggestions; } public RuntimeResponseTypeSuggestion channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseTypeSuggestion addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeSuggestion runtimeResponseTypeSuggestion = (RuntimeResponseTypeSuggestion) o; return Objects.equals(this.responseType, runtimeResponseTypeSuggestion.responseType) && Objects.equals(this.title, runtimeResponseTypeSuggestion.title) && Objects.equals(this.suggestions, runtimeResponseTypeSuggestion.suggestions) && Objects.equals(this.channels, runtimeResponseTypeSuggestion.channels); } @Override public int hashCode() { return Objects.hash(responseType, title, suggestions, channels); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeSuggestion {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" suggestions: ").append(toIndentedString(suggestions)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/GetSkillResponse.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/GetSkillResponse.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.GetSkillResponseAllOfInput; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * GetSkillResponse */ @JsonPropertyOrder({ GetSkillResponse.JSON_PROPERTY_ID, GetSkillResponse.JSON_PROPERTY_NAME, GetSkillResponse.JSON_PROPERTY_DESCRIPTION, GetSkillResponse.JSON_PROPERTY_CREATED, GetSkillResponse.JSON_PROPERTY_MODIFIED, GetSkillResponse.JSON_PROPERTY_METADATA, GetSkillResponse.JSON_PROPERTY_INPUT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetSkillResponse { public static final String JSON_PROPERTY_ID = "id"; private String id; public static final String JSON_PROPERTY_NAME = "name"; private String name; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; public static final String JSON_PROPERTY_CREATED = "created"; private String created; public static final String JSON_PROPERTY_MODIFIED = "modified"; private String modified; public static final String JSON_PROPERTY_METADATA = "metadata"; private Object metadata; public static final String JSON_PROPERTY_INPUT = "input"; private GetSkillResponseAllOfInput input; public GetSkillResponse() { } public GetSkillResponse id(String id) { this.id = id; return this; } /** * The unique identifier of a conversational skill * @return id */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; } @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(String id) { this.id = id; } public GetSkillResponse name(String name) { this.name = name; return this; } /** * The name of a conversational skill * @return name */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } public GetSkillResponse description(String description) { this.description = description; return this; } /** * The description of a conversational skill * @return description */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; } @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } public GetSkillResponse created(String created) { this.created = created; return this; } /** * The created timestamp of a conversational skill * @return created */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCreated() { return created; } @JsonProperty(JSON_PROPERTY_CREATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCreated(String created) { this.created = created; } public GetSkillResponse modified(String modified) { this.modified = modified; return this; } /** * The created timestamp of a conversational skill * @return modified */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MODIFIED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getModified() { return modified; } @JsonProperty(JSON_PROPERTY_MODIFIED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setModified(String modified) { this.modified = modified; } public GetSkillResponse metadata(Object metadata) { this.metadata = metadata; return this; } /** * Additional metadata of a conversational skill * @return metadata */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMetadata() { return metadata; } @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(Object metadata) { this.metadata = metadata; } public GetSkillResponse input(GetSkillResponseAllOfInput input) { this.input = input; return this; } /** * Get input * @return input */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public GetSkillResponseAllOfInput getInput() { return input; } @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInput(GetSkillResponseAllOfInput input) { this.input = input; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } GetSkillResponse getSkillResponse = (GetSkillResponse) o; return Objects.equals(this.id, getSkillResponse.id) && Objects.equals(this.name, getSkillResponse.name) && Objects.equals(this.description, getSkillResponse.description) && Objects.equals(this.created, getSkillResponse.created) && Objects.equals(this.modified, getSkillResponse.modified) && Objects.equals(this.metadata, getSkillResponse.metadata) && Objects.equals(this.input, getSkillResponse.input); } @Override public int hashCode() { return Objects.hash(id, name, description, created, modified, metadata, input); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetSkillResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" input: ").append(toIndentedString(input)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/DialogNodeOutputOptionsElement.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/DialogNodeOutputOptionsElement.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.DialogNodeOutputOptionsElementValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * DialogNodeOutputOptionsElement */ @JsonPropertyOrder({ DialogNodeOutputOptionsElement.JSON_PROPERTY_LABEL, DialogNodeOutputOptionsElement.JSON_PROPERTY_VALUE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DialogNodeOutputOptionsElement { public static final String JSON_PROPERTY_LABEL = "label"; private String label; public static final String JSON_PROPERTY_VALUE = "value"; private DialogNodeOutputOptionsElementValue value; public DialogNodeOutputOptionsElement() { } public DialogNodeOutputOptionsElement label(String label) { this.label = label; return this; } /** * The user-facing label for the option. * @return label */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LABEL) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getLabel() { return label; } @JsonProperty(JSON_PROPERTY_LABEL) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setLabel(String label) { this.label = label; } public DialogNodeOutputOptionsElement value(DialogNodeOutputOptionsElementValue value) { this.value = value; return this; } /** * Get value * @return value */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public DialogNodeOutputOptionsElementValue getValue() { return value; } @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(DialogNodeOutputOptionsElementValue value) { this.value = value; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DialogNodeOutputOptionsElement dialogNodeOutputOptionsElement = (DialogNodeOutputOptionsElement) o; return Objects.equals(this.label, dialogNodeOutputOptionsElement.label) && Objects.equals(this.value, dialogNodeOutputOptionsElement.value); } @Override public int hashCode() { return Objects.hash(label, value); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DialogNodeOutputOptionsElement {\n"); sb.append(" label: ").append(toIndentedString(label)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextActionSkill.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextActionSkill.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.MessageContextSkillSystem; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * MessageContextActionSkill */ @JsonPropertyOrder({ MessageContextActionSkill.JSON_PROPERTY_USER_DEFINED, MessageContextActionSkill.JSON_PROPERTY_SYSTEM, MessageContextActionSkill.JSON_PROPERTY_ACTION_VARIABLES, MessageContextActionSkill.JSON_PROPERTY_SKILL_VARIABLES, MessageContextActionSkill.JSON_PROPERTY_PRIVATE_ACTION_VARIABLES, MessageContextActionSkill.JSON_PROPERTY_PRIVATE_SKILL_VARIABLES }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageContextActionSkill { public static final String JSON_PROPERTY_USER_DEFINED = "user_defined"; private Map<String, Object> userDefined = new HashMap<>(); public static final String JSON_PROPERTY_SYSTEM = "system"; private MessageContextSkillSystem system; public static final String JSON_PROPERTY_ACTION_VARIABLES = "action_variables"; private Map<String, Object> actionVariables = new HashMap<>(); public static final String JSON_PROPERTY_SKILL_VARIABLES = "skill_variables"; private Map<String, Object> skillVariables = new HashMap<>(); public static final String JSON_PROPERTY_PRIVATE_ACTION_VARIABLES = "private_action_variables"; private Map<String, Object> privateActionVariables = new HashMap<>(); public static final String JSON_PROPERTY_PRIVATE_SKILL_VARIABLES = "private_skill_variables"; private Map<String, Object> privateSkillVariables = new HashMap<>(); public MessageContextActionSkill() { } public MessageContextActionSkill userDefined(Map<String, Object> userDefined) { this.userDefined = userDefined; return this; } public MessageContextActionSkill putUserDefinedItem(String key, Object userDefinedItem) { if (this.userDefined == null) { this.userDefined = new HashMap<>(); } this.userDefined.put(key, userDefinedItem); return this; } /** * An object containing any arbitrary variables that can be read and written by a particular skill. * @return userDefined */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getUserDefined() { return userDefined; } @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserDefined(Map<String, Object> userDefined) { this.userDefined = userDefined; } public MessageContextActionSkill system(MessageContextSkillSystem system) { this.system = system; return this; } /** * Get system * @return system */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageContextSkillSystem getSystem() { return system; } @JsonProperty(JSON_PROPERTY_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSystem(MessageContextSkillSystem system) { this.system = system; } public MessageContextActionSkill actionVariables(Map<String, Object> actionVariables) { this.actionVariables = actionVariables; return this; } public MessageContextActionSkill putActionVariablesItem(String key, Object actionVariablesItem) { if (this.actionVariables == null) { this.actionVariables = new HashMap<>(); } this.actionVariables.put(key, actionVariablesItem); return this; } /** * An object containing action variables. Action variables can be accessed only by steps in the same action, and do not persist after the action ends. * @return actionVariables */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACTION_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getActionVariables() { return actionVariables; } @JsonProperty(JSON_PROPERTY_ACTION_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setActionVariables(Map<String, Object> actionVariables) { this.actionVariables = actionVariables; } public MessageContextActionSkill skillVariables(Map<String, Object> skillVariables) { this.skillVariables = skillVariables; return this; } public MessageContextActionSkill putSkillVariablesItem(String key, Object skillVariablesItem) { if (this.skillVariables == null) { this.skillVariables = new HashMap<>(); } this.skillVariables.put(key, skillVariablesItem); return this; } /** * An object containing skill variables. (In the watsonx Assistant user interface, skill variables are called _session variables_.) Skill variables can be accessed by any action and persist for the duration of the session. * @return skillVariables */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SKILL_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getSkillVariables() { return skillVariables; } @JsonProperty(JSON_PROPERTY_SKILL_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setSkillVariables(Map<String, Object> skillVariables) { this.skillVariables = skillVariables; } public MessageContextActionSkill privateActionVariables(Map<String, Object> privateActionVariables) { this.privateActionVariables = privateActionVariables; return this; } public MessageContextActionSkill putPrivateActionVariablesItem(String key, Object privateActionVariablesItem) { if (this.privateActionVariables == null) { this.privateActionVariables = new HashMap<>(); } this.privateActionVariables.put(key, privateActionVariablesItem); return this; } /** * An object containing private action variables. Private action variables can be accessed only by steps in the same action, and do not persist after the action ends. * @return privateActionVariables */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIVATE_ACTION_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getPrivateActionVariables() { return privateActionVariables; } @JsonProperty(JSON_PROPERTY_PRIVATE_ACTION_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setPrivateActionVariables(Map<String, Object> privateActionVariables) { this.privateActionVariables = privateActionVariables; } public MessageContextActionSkill privateSkillVariables(Map<String, Object> privateSkillVariables) { this.privateSkillVariables = privateSkillVariables; return this; } public MessageContextActionSkill putPrivateSkillVariablesItem(String key, Object privateSkillVariablesItem) { if (this.privateSkillVariables == null) { this.privateSkillVariables = new HashMap<>(); } this.privateSkillVariables.put(key, privateSkillVariablesItem); return this; } /** * An object containing private skill variables. (In the watsonx Assistant user interface, skill variables are called _session variables_.) Private skill variables can be accessed by any action and persist for the duration of the session. * @return privateSkillVariables */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIVATE_SKILL_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getPrivateSkillVariables() { return privateSkillVariables; } @JsonProperty(JSON_PROPERTY_PRIVATE_SKILL_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setPrivateSkillVariables(Map<String, Object> privateSkillVariables) { this.privateSkillVariables = privateSkillVariables; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessageContextActionSkill messageContextActionSkill = (MessageContextActionSkill) o; return Objects.equals(this.userDefined, messageContextActionSkill.userDefined) && Objects.equals(this.system, messageContextActionSkill.system) && Objects.equals(this.actionVariables, messageContextActionSkill.actionVariables) && Objects.equals(this.skillVariables, messageContextActionSkill.skillVariables) && Objects.equals(this.privateActionVariables, messageContextActionSkill.privateActionVariables) && Objects.equals(this.privateSkillVariables, messageContextActionSkill.privateSkillVariables); } @Override public int hashCode() { return Objects.hash(userDefined, system, actionVariables, skillVariables, privateActionVariables, privateSkillVariables); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MessageContextActionSkill {\n"); sb.append(" userDefined: ").append(toIndentedString(userDefined)).append("\n"); sb.append(" system: ").append(toIndentedString(system)).append("\n"); sb.append(" actionVariables: ").append(toIndentedString(actionVariables)).append("\n"); sb.append(" skillVariables: ").append(toIndentedString(skillVariables)).append("\n"); sb.append(" privateActionVariables: ").append(toIndentedString(privateActionVariables)).append("\n"); sb.append(" privateSkillVariables: ").append(toIndentedString(privateSkillVariables)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeVideo.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeVideo.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeVideo */ @JsonPropertyOrder({ RuntimeResponseTypeVideo.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseTypeVideo.JSON_PROPERTY_SOURCE, RuntimeResponseTypeVideo.JSON_PROPERTY_TITLE, RuntimeResponseTypeVideo.JSON_PROPERTY_DESCRIPTION, RuntimeResponseTypeVideo.JSON_PROPERTY_CHANNELS, RuntimeResponseTypeVideo.JSON_PROPERTY_CHANNEL_OPTIONS, RuntimeResponseTypeVideo.JSON_PROPERTY_ALT_TEXT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeVideo { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_SOURCE = "source"; private String source; public static final String JSON_PROPERTY_TITLE = "title"; private String title; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public static final String JSON_PROPERTY_CHANNEL_OPTIONS = "channel_options"; private Object channelOptions; public static final String JSON_PROPERTY_ALT_TEXT = "alt_text"; private String altText; public RuntimeResponseTypeVideo() { } public RuntimeResponseTypeVideo responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseTypeVideo source(String source) { this.source = source; return this; } /** * The &#x60;https:&#x60; URL of the video. * @return source */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSource() { return source; } @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSource(String source) { this.source = source; } public RuntimeResponseTypeVideo title(String title) { this.title = title; return this; } /** * The title or introductory text to show before the response. * @return title */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(String title) { this.title = title; } public RuntimeResponseTypeVideo description(String description) { this.description = description; return this; } /** * The description to show with the the response. * @return description */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; } @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } public RuntimeResponseTypeVideo channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseTypeVideo addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } public RuntimeResponseTypeVideo channelOptions(Object channelOptions) { this.channelOptions = channelOptions; return this; } /** * For internal use only. * @return channelOptions */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNEL_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getChannelOptions() { return channelOptions; } @JsonProperty(JSON_PROPERTY_CHANNEL_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannelOptions(Object channelOptions) { this.channelOptions = channelOptions; } public RuntimeResponseTypeVideo altText(String altText) { this.altText = altText; return this; } /** * Descriptive text that can be used for screen readers or other situations where the video cannot be seen. * @return altText */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALT_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAltText() { return altText; } @JsonProperty(JSON_PROPERTY_ALT_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAltText(String altText) { this.altText = altText; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeVideo runtimeResponseTypeVideo = (RuntimeResponseTypeVideo) o; return Objects.equals(this.responseType, runtimeResponseTypeVideo.responseType) && Objects.equals(this.source, runtimeResponseTypeVideo.source) && Objects.equals(this.title, runtimeResponseTypeVideo.title) && Objects.equals(this.description, runtimeResponseTypeVideo.description) && Objects.equals(this.channels, runtimeResponseTypeVideo.channels) && Objects.equals(this.channelOptions, runtimeResponseTypeVideo.channelOptions) && Objects.equals(this.altText, runtimeResponseTypeVideo.altText); } @Override public int hashCode() { return Objects.hash(responseType, source, title, description, channels, channelOptions, altText); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeVideo {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append(" channelOptions: ").append(toIndentedString(channelOptions)).append("\n"); sb.append(" altText: ").append(toIndentedString(altText)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeConnectToAgentAgentUnavailable.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeConnectToAgentAgentUnavailable.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeConnectToAgentAgentUnavailable */ @JsonPropertyOrder({ RuntimeResponseTypeConnectToAgentAgentUnavailable.JSON_PROPERTY_MESSAGE }) @JsonTypeName("RuntimeResponseTypeConnectToAgent_agent_unavailable") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeConnectToAgentAgentUnavailable { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; public RuntimeResponseTypeConnectToAgentAgentUnavailable() { } public RuntimeResponseTypeConnectToAgentAgentUnavailable message(String message) { this.message = message; return this; } /** * The text of the message. * @return message */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeConnectToAgentAgentUnavailable runtimeResponseTypeConnectToAgentAgentUnavailable = (RuntimeResponseTypeConnectToAgentAgentUnavailable) o; return Objects.equals(this.message, runtimeResponseTypeConnectToAgentAgentUnavailable.message); } @Override public int hashCode() { return Objects.hash(message); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeConnectToAgentAgentUnavailable {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/DialogSuggestionValue.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/DialogSuggestionValue.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.MessageInput; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * An object defining the message input to be sent to the assistant if the user selects the corresponding disambiguation option. **Note:** This entire message input object must be included in the request body of the next message sent to the assistant. Do not modify or remove any of the included properties. */ @JsonPropertyOrder({ DialogSuggestionValue.JSON_PROPERTY_INPUT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DialogSuggestionValue { public static final String JSON_PROPERTY_INPUT = "input"; private MessageInput input; public DialogSuggestionValue() { } public DialogSuggestionValue input(MessageInput input) { this.input = input; return this; } /** * Get input * @return input */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageInput getInput() { return input; } @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInput(MessageInput input) { this.input = input; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DialogSuggestionValue dialogSuggestionValue = (DialogSuggestionValue) o; return Objects.equals(this.input, dialogSuggestionValue.input); } @Override public int hashCode() { return Objects.hash(input); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DialogSuggestionValue {\n"); sb.append(" input: ").append(toIndentedString(input)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SearchResultHighlight.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SearchResultHighlight.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * An object containing segments of text from search results with query-matching text highlighted using HTML &#x60;&lt;em&gt;&#x60; tags. */ @JsonPropertyOrder({ SearchResultHighlight.JSON_PROPERTY_BODY, SearchResultHighlight.JSON_PROPERTY_TITLE, SearchResultHighlight.JSON_PROPERTY_URL }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class SearchResultHighlight extends HashMap<String, List> { public static final String JSON_PROPERTY_BODY = "body"; private List<String> body = new ArrayList<>(); public static final String JSON_PROPERTY_TITLE = "title"; private List<String> title = new ArrayList<>(); public static final String JSON_PROPERTY_URL = "url"; private List<String> url = new ArrayList<>(); public SearchResultHighlight() { } public SearchResultHighlight body(List<String> body) { this.body = body; return this; } public SearchResultHighlight addBodyItem(String bodyItem) { if (this.body == null) { this.body = new ArrayList<>(); } this.body.add(bodyItem); return this; } /** * An array of strings containing segments taken from body text in the search results, with query-matching substrings highlighted. * @return body */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BODY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<String> getBody() { return body; } @JsonProperty(JSON_PROPERTY_BODY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBody(List<String> body) { this.body = body; } public SearchResultHighlight title(List<String> title) { this.title = title; return this; } public SearchResultHighlight addTitleItem(String titleItem) { if (this.title == null) { this.title = new ArrayList<>(); } this.title.add(titleItem); return this; } /** * An array of strings containing segments taken from title text in the search results, with query-matching substrings highlighted. * @return title */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<String> getTitle() { return title; } @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(List<String> title) { this.title = title; } public SearchResultHighlight url(List<String> url) { this.url = url; return this; } public SearchResultHighlight addUrlItem(String urlItem) { if (this.url == null) { this.url = new ArrayList<>(); } this.url.add(urlItem); return this; } /** * An array of strings containing segments taken from URLs in the search results, with query-matching substrings highlighted. * @return url */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<String> getUrl() { return url; } @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUrl(List<String> url) { this.url = url; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SearchResultHighlight searchResultHighlight = (SearchResultHighlight) o; return Objects.equals(this.body, searchResultHighlight.body) && Objects.equals(this.title, searchResultHighlight.title) && Objects.equals(this.url, searchResultHighlight.url) && super.equals(o); } @Override public int hashCode() { return Objects.hash(body, title, url, super.hashCode()); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SearchResultHighlight {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextSkillSystem.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextSkillSystem.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * System context data used by the skill. */ @JsonPropertyOrder({ MessageContextSkillSystem.JSON_PROPERTY_STATE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageContextSkillSystem extends HashMap<String, Object> { public static final String JSON_PROPERTY_STATE = "state"; private String state; public MessageContextSkillSystem() { } public MessageContextSkillSystem state(String state) { this.state = state; return this; } /** * An encoded string that represents the current conversation state. By saving this value and then sending it in the context of a subsequent message request, you can return to an earlier point in the conversation. If you are using stateful sessions, you can also use a stored state value to restore a paused conversation whose session is expired. * @return state */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getState() { return state; } @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setState(String state) { this.state = state; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessageContextSkillSystem messageContextSkillSystem = (MessageContextSkillSystem) o; return Objects.equals(this.state, messageContextSkillSystem.state) && super.equals(o); } @Override public int hashCode() { return Objects.hash(state, super.hashCode()); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MessageContextSkillSystem {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillStateOutput.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillStateOutput.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ConversationalSkillStateOutput */ @JsonPropertyOrder({ ConversationalSkillStateOutput.JSON_PROPERTY_LOCAL_VARIABLES, ConversationalSkillStateOutput.JSON_PROPERTY_SESSION_VARIABLES }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConversationalSkillStateOutput { public static final String JSON_PROPERTY_LOCAL_VARIABLES = "local_variables"; private Map<String, Object> localVariables = new HashMap<>(); public static final String JSON_PROPERTY_SESSION_VARIABLES = "session_variables"; private Map<String, Object> sessionVariables = new HashMap<>(); public ConversationalSkillStateOutput() { } public ConversationalSkillStateOutput localVariables(Map<String, Object> localVariables) { this.localVariables = localVariables; return this; } public ConversationalSkillStateOutput putLocalVariablesItem(String key, Object localVariablesItem) { if (this.localVariables == null) { this.localVariables = new HashMap<>(); } this.localVariables.put(key, localVariablesItem); return this; } /** * Local scope variables that the conversational skill needs across turns to orchestrate the conversation. * @return localVariables */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOCAL_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getLocalVariables() { return localVariables; } @JsonProperty(JSON_PROPERTY_LOCAL_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setLocalVariables(Map<String, Object> localVariables) { this.localVariables = localVariables; } public ConversationalSkillStateOutput sessionVariables(Map<String, Object> sessionVariables) { this.sessionVariables = sessionVariables; return this; } public ConversationalSkillStateOutput putSessionVariablesItem(String key, Object sessionVariablesItem) { if (this.sessionVariables == null) { this.sessionVariables = new HashMap<>(); } this.sessionVariables.put(key, sessionVariablesItem); return this; } /** * Conversation session scoped variables that the skill wants to share with other skills. These variables may live beyond the conclusion of the conversation being orchestrated by the skill. * @return sessionVariables */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SESSION_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getSessionVariables() { return sessionVariables; } @JsonProperty(JSON_PROPERTY_SESSION_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setSessionVariables(Map<String, Object> sessionVariables) { this.sessionVariables = sessionVariables; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ConversationalSkillStateOutput conversationalSkillStateOutput = (ConversationalSkillStateOutput) o; return Objects.equals(this.localVariables, conversationalSkillStateOutput.localVariables) && Objects.equals(this.sessionVariables, conversationalSkillStateOutput.sessionVariables); } @Override public int hashCode() { return Objects.hash(localVariables, sessionVariables); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConversationalSkillStateOutput {\n"); sb.append(" localVariables: ").append(toIndentedString(localVariables)).append("\n"); sb.append(" sessionVariables: ").append(toIndentedString(sessionVariables)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillActionRegistration.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillActionRegistration.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ConversationalSkillActionRegistration */ @JsonPropertyOrder({ ConversationalSkillActionRegistration.JSON_PROPERTY_PROVIDER_ID, ConversationalSkillActionRegistration.JSON_PROPERTY_CONVERSATIONAL_SKILL_ID, ConversationalSkillActionRegistration.JSON_PROPERTY_CONVERSATIONAL_SKILL_REVISION_ID }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConversationalSkillActionRegistration { public static final String JSON_PROPERTY_PROVIDER_ID = "provider_id"; private String providerId; public static final String JSON_PROPERTY_CONVERSATIONAL_SKILL_ID = "conversational_skill_id"; private String conversationalSkillId; public static final String JSON_PROPERTY_CONVERSATIONAL_SKILL_REVISION_ID = "conversational_skill_revision_id"; private String conversationalSkillRevisionId; public ConversationalSkillActionRegistration() { } public ConversationalSkillActionRegistration providerId(String providerId) { this.providerId = providerId; return this; } /** * The ID of the provider of this conversational skill. * @return providerId */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROVIDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getProviderId() { return providerId; } @JsonProperty(JSON_PROPERTY_PROVIDER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProviderId(String providerId) { this.providerId = providerId; } public ConversationalSkillActionRegistration conversationalSkillId(String conversationalSkillId) { this.conversationalSkillId = conversationalSkillId; return this; } /** * The ID of this conversational skill. * @return conversationalSkillId */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONVERSATIONAL_SKILL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getConversationalSkillId() { return conversationalSkillId; } @JsonProperty(JSON_PROPERTY_CONVERSATIONAL_SKILL_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setConversationalSkillId(String conversationalSkillId) { this.conversationalSkillId = conversationalSkillId; } public ConversationalSkillActionRegistration conversationalSkillRevisionId(String conversationalSkillRevisionId) { this.conversationalSkillRevisionId = conversationalSkillRevisionId; return this; } /** * The revision ID of this conversational skill. * @return conversationalSkillRevisionId */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONVERSATIONAL_SKILL_REVISION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getConversationalSkillRevisionId() { return conversationalSkillRevisionId; } @JsonProperty(JSON_PROPERTY_CONVERSATIONAL_SKILL_REVISION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setConversationalSkillRevisionId(String conversationalSkillRevisionId) { this.conversationalSkillRevisionId = conversationalSkillRevisionId; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ConversationalSkillActionRegistration conversationalSkillActionRegistration = (ConversationalSkillActionRegistration) o; return Objects.equals(this.providerId, conversationalSkillActionRegistration.providerId) && Objects.equals(this.conversationalSkillId, conversationalSkillActionRegistration.conversationalSkillId) && Objects.equals(this.conversationalSkillRevisionId, conversationalSkillActionRegistration.conversationalSkillRevisionId); } @Override public int hashCode() { return Objects.hash(providerId, conversationalSkillId, conversationalSkillRevisionId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConversationalSkillActionRegistration {\n"); sb.append(" providerId: ").append(toIndentedString(providerId)).append("\n"); sb.append(" conversationalSkillId: ").append(toIndentedString(conversationalSkillId)).append("\n"); sb.append(" conversationalSkillRevisionId: ").append(toIndentedString(conversationalSkillRevisionId)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/BaseMessageContextSkill.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/BaseMessageContextSkill.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.MessageContextSkillSystem; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * BaseMessageContextSkill */ @JsonPropertyOrder({ BaseMessageContextSkill.JSON_PROPERTY_USER_DEFINED, BaseMessageContextSkill.JSON_PROPERTY_SYSTEM }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BaseMessageContextSkill { public static final String JSON_PROPERTY_USER_DEFINED = "user_defined"; private Map<String, Object> userDefined = new HashMap<>(); public static final String JSON_PROPERTY_SYSTEM = "system"; private MessageContextSkillSystem system; public BaseMessageContextSkill() { } public BaseMessageContextSkill userDefined(Map<String, Object> userDefined) { this.userDefined = userDefined; return this; } public BaseMessageContextSkill putUserDefinedItem(String key, Object userDefinedItem) { if (this.userDefined == null) { this.userDefined = new HashMap<>(); } this.userDefined.put(key, userDefinedItem); return this; } /** * An object containing any arbitrary variables that can be read and written by a particular skill. * @return userDefined */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getUserDefined() { return userDefined; } @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setUserDefined(Map<String, Object> userDefined) { this.userDefined = userDefined; } public BaseMessageContextSkill system(MessageContextSkillSystem system) { this.system = system; return this; } /** * Get system * @return system */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageContextSkillSystem getSystem() { return system; } @JsonProperty(JSON_PROPERTY_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSystem(MessageContextSkillSystem system) { this.system = system; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } BaseMessageContextSkill baseMessageContextSkill = (BaseMessageContextSkill) o; return Objects.equals(this.userDefined, baseMessageContextSkill.userDefined) && Objects.equals(this.system, baseMessageContextSkill.system); } @Override public int hashCode() { return Objects.hash(userDefined, system); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseMessageContextSkill {\n"); sb.append(" userDefined: ").append(toIndentedString(userDefined)).append("\n"); sb.append(" system: ").append(toIndentedString(system)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/GetSkillResponseAllOfInput.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/GetSkillResponseAllOfInput.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ConversationalSkillInputSlot; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * GetSkillResponseAllOfInput */ @JsonPropertyOrder({ GetSkillResponseAllOfInput.JSON_PROPERTY_SLOTS }) @JsonTypeName("GetSkillResponse_allOf_input") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetSkillResponseAllOfInput { public static final String JSON_PROPERTY_SLOTS = "slots"; private List<ConversationalSkillInputSlot> slots = new ArrayList<>(); public GetSkillResponseAllOfInput() { } public GetSkillResponseAllOfInput slots(List<ConversationalSkillInputSlot> slots) { this.slots = slots; return this; } public GetSkillResponseAllOfInput addSlotsItem(ConversationalSkillInputSlot slotsItem) { if (this.slots == null) { this.slots = new ArrayList<>(); } this.slots.add(slotsItem); return this; } /** * Get slots * @return slots */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SLOTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ConversationalSkillInputSlot> getSlots() { return slots; } @JsonProperty(JSON_PROPERTY_SLOTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSlots(List<ConversationalSkillInputSlot> slots) { this.slots = slots; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } GetSkillResponseAllOfInput getSkillResponseAllOfInput = (GetSkillResponseAllOfInput) o; return Objects.equals(this.slots, getSkillResponseAllOfInput.slots); } @Override public int hashCode() { return Objects.hash(slots); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetSkillResponseAllOfInput {\n"); sb.append(" slots: ").append(toIndentedString(slots)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ChannelTransferTargetChat.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ChannelTransferTargetChat.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Information for transferring to the web chat integration. */ @JsonPropertyOrder({ ChannelTransferTargetChat.JSON_PROPERTY_URL }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ChannelTransferTargetChat { public static final String JSON_PROPERTY_URL = "url"; private String url; public ChannelTransferTargetChat() { } public ChannelTransferTargetChat url(String url) { this.url = url; return this; } /** * The URL of the target web chat. * @return url */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUrl() { return url; } @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUrl(String url) { this.url = url; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ChannelTransferTargetChat channelTransferTargetChat = (ChannelTransferTargetChat) o; return Objects.equals(this.url, channelTransferTargetChat.url); } @Override public int hashCode() { return Objects.hash(url); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChannelTransferTargetChat {\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SlotValue.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SlotValue.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * SlotValue */ @JsonPropertyOrder({ SlotValue.JSON_PROPERTY_NORMALIZED, SlotValue.JSON_PROPERTY_LITERAL }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class SlotValue { public static final String JSON_PROPERTY_NORMALIZED = "normalized"; private Object normalized = null; public static final String JSON_PROPERTY_LITERAL = "literal"; private String literal; public SlotValue() { } public SlotValue normalized(Object normalized) { this.normalized = normalized; return this; } /** * The normalized value of the slot. Can be of type number, string, boolean, object, or array of objects * @return normalized */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NORMALIZED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Object getNormalized() { return normalized; } @JsonProperty(JSON_PROPERTY_NORMALIZED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNormalized(Object normalized) { this.normalized = normalized; } public SlotValue literal(String literal) { this.literal = literal; return this; } /** * The literal value as provided by the user. * @return literal */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LITERAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLiteral() { return literal; } @JsonProperty(JSON_PROPERTY_LITERAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLiteral(String literal) { this.literal = literal; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SlotValue slotValue = (SlotValue) o; return Objects.equals(this.normalized, slotValue.normalized) && Objects.equals(this.literal, slotValue.literal); } @Override public int hashCode() { return Objects.hash(normalized, literal); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SlotValue {\n"); sb.append(" normalized: ").append(toIndentedString(normalized)).append("\n"); sb.append(" literal: ").append(toIndentedString(literal)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillAction.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillAction.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ConversationalSkillActionRegistration; import com.ibm.watson.conversationalskills.model.ConversationalSkillActionSource; import com.ibm.watson.conversationalskills.model.SlotInFlight; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ConversationalSkillAction */ @JsonPropertyOrder({ ConversationalSkillAction.JSON_PROPERTY_ACTION, ConversationalSkillAction.JSON_PROPERTY_REGISTRATION, ConversationalSkillAction.JSON_PROPERTY_ASYNC, ConversationalSkillAction.JSON_PROPERTY_SLOTS, ConversationalSkillAction.JSON_PROPERTY_SOURCE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConversationalSkillAction { public static final String JSON_PROPERTY_ACTION = "action"; private String action; public static final String JSON_PROPERTY_REGISTRATION = "registration"; private ConversationalSkillActionRegistration registration; public static final String JSON_PROPERTY_ASYNC = "async"; private Boolean async; public static final String JSON_PROPERTY_SLOTS = "slots"; private List<SlotInFlight> slots = new ArrayList<>(); public static final String JSON_PROPERTY_SOURCE = "source"; private ConversationalSkillActionSource source; public ConversationalSkillAction() { } public ConversationalSkillAction action(String action) { this.action = action; return this; } /** * The ID of the action. * @return action */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAction() { return action; } @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAction(String action) { this.action = action; } public ConversationalSkillAction registration(ConversationalSkillActionRegistration registration) { this.registration = registration; return this; } /** * Get registration * @return registration */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REGISTRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ConversationalSkillActionRegistration getRegistration() { return registration; } @JsonProperty(JSON_PROPERTY_REGISTRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setRegistration(ConversationalSkillActionRegistration registration) { this.registration = registration; } public ConversationalSkillAction async(Boolean async) { this.async = async; return this; } /** * True if this is an async skill * @return async */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ASYNC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getAsync() { return async; } @JsonProperty(JSON_PROPERTY_ASYNC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAsync(Boolean async) { this.async = async; } public ConversationalSkillAction slots(List<SlotInFlight> slots) { this.slots = slots; return this; } public ConversationalSkillAction addSlotsItem(SlotInFlight slotsItem) { if (this.slots == null) { this.slots = new ArrayList<>(); } this.slots.add(slotsItem); return this; } /** * Information for slots requested by this conversational skill * @return slots */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SLOTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<SlotInFlight> getSlots() { return slots; } @JsonProperty(JSON_PROPERTY_SLOTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSlots(List<SlotInFlight> slots) { this.slots = slots; } public ConversationalSkillAction source(ConversationalSkillActionSource source) { this.source = source; return this; } /** * Get source * @return source */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ConversationalSkillActionSource getSource() { return source; } @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSource(ConversationalSkillActionSource source) { this.source = source; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ConversationalSkillAction conversationalSkillAction = (ConversationalSkillAction) o; return Objects.equals(this.action, conversationalSkillAction.action) && Objects.equals(this.registration, conversationalSkillAction.registration) && Objects.equals(this.async, conversationalSkillAction.async) && Objects.equals(this.slots, conversationalSkillAction.slots) && Objects.equals(this.source, conversationalSkillAction.source); } @Override public int hashCode() { return Objects.hash(action, registration, async, slots, source); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConversationalSkillAction {\n"); sb.append(" action: ").append(toIndentedString(action)).append("\n"); sb.append(" registration: ").append(toIndentedString(registration)).append("\n"); sb.append(" async: ").append(toIndentedString(async)).append("\n"); sb.append(" slots: ").append(toIndentedString(slots)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypePause.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypePause.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypePause */ @JsonPropertyOrder({ RuntimeResponseTypePause.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseTypePause.JSON_PROPERTY_TIME, RuntimeResponseTypePause.JSON_PROPERTY_TYPING, RuntimeResponseTypePause.JSON_PROPERTY_CHANNELS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypePause { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_TIME = "time"; private Integer time; public static final String JSON_PROPERTY_TYPING = "typing"; private Boolean typing; public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public RuntimeResponseTypePause() { } public RuntimeResponseTypePause responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseTypePause time(Integer time) { this.time = time; return this; } /** * How long to pause, in milliseconds. * @return time */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getTime() { return time; } @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTime(Integer time) { this.time = time; } public RuntimeResponseTypePause typing(Boolean typing) { this.typing = typing; return this; } /** * Whether to send a \&quot;user is typing\&quot; event during the pause. * @return typing */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTyping() { return typing; } @JsonProperty(JSON_PROPERTY_TYPING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTyping(Boolean typing) { this.typing = typing; } public RuntimeResponseTypePause channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseTypePause addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypePause runtimeResponseTypePause = (RuntimeResponseTypePause) o; return Objects.equals(this.responseType, runtimeResponseTypePause.responseType) && Objects.equals(this.time, runtimeResponseTypePause.time) && Objects.equals(this.typing, runtimeResponseTypePause.typing) && Objects.equals(this.channels, runtimeResponseTypePause.channels); } @Override public int hashCode() { return Objects.hash(responseType, time, typing, channels); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypePause {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" typing: ").append(toIndentedString(typing)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/EntityValue.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/EntityValue.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * EntityValue */ @JsonPropertyOrder({ EntityValue.JSON_PROPERTY_VALUE, EntityValue.JSON_PROPERTY_SYNONYMS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class EntityValue { public static final String JSON_PROPERTY_VALUE = "value"; private String value; public static final String JSON_PROPERTY_SYNONYMS = "synonyms"; private List<String> synonyms = new ArrayList<>(); public EntityValue() { } public EntityValue value(String value) { this.value = value; return this; } /** * Get value * @return value */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getValue() { return value; } @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(String value) { this.value = value; } public EntityValue synonyms(List<String> synonyms) { this.synonyms = synonyms; return this; } public EntityValue addSynonymsItem(String synonymsItem) { if (this.synonyms == null) { this.synonyms = new ArrayList<>(); } this.synonyms.add(synonymsItem); return this; } /** * Get synonyms * @return synonyms */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SYNONYMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<String> getSynonyms() { return synonyms; } @JsonProperty(JSON_PROPERTY_SYNONYMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSynonyms(List<String> synonyms) { this.synonyms = synonyms; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } EntityValue entityValue = (EntityValue) o; return Objects.equals(this.value, entityValue.value) && Objects.equals(this.synonyms, entityValue.synonyms); } @Override public int hashCode() { return Objects.hash(value, synonyms); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EntityValue {\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" synonyms: ").append(toIndentedString(synonyms)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextGlobal.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextGlobal.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.MessageContextGlobalSystem; import com.ibm.watson.conversationalskills.model.SessionHistoryMessage; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * MessageContextGlobal */ @JsonPropertyOrder({ MessageContextGlobal.JSON_PROPERTY_SYSTEM, MessageContextGlobal.JSON_PROPERTY_SESSION_ID, MessageContextGlobal.JSON_PROPERTY_ASSISTANT_ID, MessageContextGlobal.JSON_PROPERTY_ENVIRONMENT_ID, MessageContextGlobal.JSON_PROPERTY_SESSION_HISTORY, MessageContextGlobal.JSON_PROPERTY_LANGUAGE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageContextGlobal { public static final String JSON_PROPERTY_SYSTEM = "system"; private MessageContextGlobalSystem system; public static final String JSON_PROPERTY_SESSION_ID = "session_id"; private String sessionId; public static final String JSON_PROPERTY_ASSISTANT_ID = "assistant_id"; private String assistantId; public static final String JSON_PROPERTY_ENVIRONMENT_ID = "environment_id"; private String environmentId; public static final String JSON_PROPERTY_SESSION_HISTORY = "session_history"; private List<SessionHistoryMessage> sessionHistory = new ArrayList<>(); public static final String JSON_PROPERTY_LANGUAGE = "language"; private String language; public MessageContextGlobal() { } public MessageContextGlobal system(MessageContextGlobalSystem system) { this.system = system; return this; } /** * Get system * @return system */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageContextGlobalSystem getSystem() { return system; } @JsonProperty(JSON_PROPERTY_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSystem(MessageContextGlobalSystem system) { this.system = system; } public MessageContextGlobal sessionId(String sessionId) { this.sessionId = sessionId; return this; } /** * WxA session ID. * @return sessionId */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SESSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSessionId() { return sessionId; } @JsonProperty(JSON_PROPERTY_SESSION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSessionId(String sessionId) { this.sessionId = sessionId; } public MessageContextGlobal assistantId(String assistantId) { this.assistantId = assistantId; return this; } /** * WxA assistant ID. * @return assistantId */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ASSISTANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAssistantId() { return assistantId; } @JsonProperty(JSON_PROPERTY_ASSISTANT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAssistantId(String assistantId) { this.assistantId = assistantId; } public MessageContextGlobal environmentId(String environmentId) { this.environmentId = environmentId; return this; } /** * WxA environment ID. * @return environmentId */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENVIRONMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEnvironmentId() { return environmentId; } @JsonProperty(JSON_PROPERTY_ENVIRONMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnvironmentId(String environmentId) { this.environmentId = environmentId; } public MessageContextGlobal sessionHistory(List<SessionHistoryMessage> sessionHistory) { this.sessionHistory = sessionHistory; return this; } public MessageContextGlobal addSessionHistoryItem(SessionHistoryMessage sessionHistoryItem) { if (this.sessionHistory == null) { this.sessionHistory = new ArrayList<>(); } this.sessionHistory.add(sessionHistoryItem); return this; } /** * An array of message objects representing the session history. * @return sessionHistory */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SESSION_HISTORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<SessionHistoryMessage> getSessionHistory() { return sessionHistory; } @JsonProperty(JSON_PROPERTY_SESSION_HISTORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSessionHistory(List<SessionHistoryMessage> sessionHistory) { this.sessionHistory = sessionHistory; } public MessageContextGlobal language(String language) { this.language = language; return this; } /** * WxA assistant language. * @return language */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getLanguage() { return language; } @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLanguage(String language) { this.language = language; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessageContextGlobal messageContextGlobal = (MessageContextGlobal) o; return Objects.equals(this.system, messageContextGlobal.system) && Objects.equals(this.sessionId, messageContextGlobal.sessionId) && Objects.equals(this.assistantId, messageContextGlobal.assistantId) && Objects.equals(this.environmentId, messageContextGlobal.environmentId) && Objects.equals(this.sessionHistory, messageContextGlobal.sessionHistory) && Objects.equals(this.language, messageContextGlobal.language); } @Override public int hashCode() { return Objects.hash(system, sessionId, assistantId, environmentId, sessionHistory, language); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MessageContextGlobal {\n"); sb.append(" system: ").append(toIndentedString(system)).append("\n"); sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); sb.append(" assistantId: ").append(toIndentedString(assistantId)).append("\n"); sb.append(" environmentId: ").append(toIndentedString(environmentId)).append("\n"); sb.append(" sessionHistory: ").append(toIndentedString(sessionHistory)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageInput.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageInput.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.MessageInputAttachment; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * An input object that includes the input text. */ @JsonPropertyOrder({ MessageInput.JSON_PROPERTY_MESSAGE_TYPE, MessageInput.JSON_PROPERTY_TEXT, MessageInput.JSON_PROPERTY_ATTACHMENTS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageInput extends HashMap<String, Object> { /** * The type of the message: - &#x60;text&#x60;: The user input is processed normally by the assistant. - &#x60;search&#x60;: Only search results are returned. (Any dialog or action skill is bypassed.) - &#x60;event&#x60;: user interaction event communicated - &#x60;form&#x60;: user interaction results on a form display communicated **Note:** A &#x60;search&#x60; message results in an error if no search skill is configured for the assistant. */ public enum MessageTypeEnum { TEXT("text"), SEARCH("search"), FORM("form"), EVENT("event"); private String value; MessageTypeEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static MessageTypeEnum fromValue(String value) { for (MessageTypeEnum b : MessageTypeEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } public static final String JSON_PROPERTY_MESSAGE_TYPE = "message_type"; private MessageTypeEnum messageType = MessageTypeEnum.TEXT; public static final String JSON_PROPERTY_TEXT = "text"; private String text; public static final String JSON_PROPERTY_ATTACHMENTS = "attachments"; private List<MessageInputAttachment> attachments = new ArrayList<>(); public MessageInput() { } public MessageInput messageType(MessageTypeEnum messageType) { this.messageType = messageType; return this; } /** * The type of the message: - &#x60;text&#x60;: The user input is processed normally by the assistant. - &#x60;search&#x60;: Only search results are returned. (Any dialog or action skill is bypassed.) - &#x60;event&#x60;: user interaction event communicated - &#x60;form&#x60;: user interaction results on a form display communicated **Note:** A &#x60;search&#x60; message results in an error if no search skill is configured for the assistant. * @return messageType */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageTypeEnum getMessageType() { return messageType; } @JsonProperty(JSON_PROPERTY_MESSAGE_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessageType(MessageTypeEnum messageType) { this.messageType = messageType; } public MessageInput text(String text) { this.text = text; return this; } /** * The text of the user input. This string cannot contain carriage return, newline, or tab characters. * @return text */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getText() { return text; } @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setText(String text) { this.text = text; } public MessageInput attachments(List<MessageInputAttachment> attachments) { this.attachments = attachments; return this; } public MessageInput addAttachmentsItem(MessageInputAttachment attachmentsItem) { if (this.attachments == null) { this.attachments = new ArrayList<>(); } this.attachments.add(attachmentsItem); return this; } /** * An array of multimedia attachments to be sent with the message. Attachments are not processed by the assistant itself, but can be sent to external services by webhooks. **Note:** Attachments are not supported on IBM Cloud Pak for Data. * @return attachments */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<MessageInputAttachment> getAttachments() { return attachments; } @JsonProperty(JSON_PROPERTY_ATTACHMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttachments(List<MessageInputAttachment> attachments) { this.attachments = attachments; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessageInput messageInput = (MessageInput) o; return Objects.equals(this.messageType, messageInput.messageType) && Objects.equals(this.text, messageInput.text) && Objects.equals(this.attachments, messageInput.attachments) && super.equals(o); } @Override public int hashCode() { return Objects.hash(messageType, text, attachments, super.hashCode()); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MessageInput {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" messageType: ").append(toIndentedString(messageType)).append("\n"); sb.append(" text: ").append(toIndentedString(text)).append("\n"); sb.append(" attachments: ").append(toIndentedString(attachments)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextDialogSkill.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextDialogSkill.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.MessageContextSkillSystem; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * MessageContextDialogSkill */ @JsonPropertyOrder({ MessageContextDialogSkill.JSON_PROPERTY_USER_DEFINED, MessageContextDialogSkill.JSON_PROPERTY_SYSTEM }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageContextDialogSkill { public static final String JSON_PROPERTY_USER_DEFINED = "user_defined"; private Map<String, Object> userDefined = new HashMap<>(); public static final String JSON_PROPERTY_SYSTEM = "system"; private MessageContextSkillSystem system; public MessageContextDialogSkill() { } public MessageContextDialogSkill userDefined(Map<String, Object> userDefined) { this.userDefined = userDefined; return this; } public MessageContextDialogSkill putUserDefinedItem(String key, Object userDefinedItem) { if (this.userDefined == null) { this.userDefined = new HashMap<>(); } this.userDefined.put(key, userDefinedItem); return this; } /** * An object containing any arbitrary variables that can be read and written by a particular skill. * @return userDefined */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getUserDefined() { return userDefined; } @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserDefined(Map<String, Object> userDefined) { this.userDefined = userDefined; } public MessageContextDialogSkill system(MessageContextSkillSystem system) { this.system = system; return this; } /** * Get system * @return system */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageContextSkillSystem getSystem() { return system; } @JsonProperty(JSON_PROPERTY_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSystem(MessageContextSkillSystem system) { this.system = system; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessageContextDialogSkill messageContextDialogSkill = (MessageContextDialogSkill) o; return Objects.equals(this.userDefined, messageContextDialogSkill.userDefined) && Objects.equals(this.system, messageContextDialogSkill.system); } @Override public int hashCode() { return Objects.hash(userDefined, system); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MessageContextDialogSkill {\n"); sb.append(" userDefined: ").append(toIndentedString(userDefined)).append("\n"); sb.append(" system: ").append(toIndentedString(system)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SessionHistoryMessage.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SessionHistoryMessage.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * SessionHistoryMessage */ @JsonPropertyOrder({ SessionHistoryMessage.JSON_PROPERTY_A, SessionHistoryMessage.JSON_PROPERTY_U, SessionHistoryMessage.JSON_PROPERTY_N }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class SessionHistoryMessage { public static final String JSON_PROPERTY_A = "a"; private String a; public static final String JSON_PROPERTY_U = "u"; private String u; public static final String JSON_PROPERTY_N = "n"; private Boolean n; public SessionHistoryMessage() { } public SessionHistoryMessage a(String a) { this.a = a; return this; } /** * Assistant message * @return a */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getA() { return a; } @JsonProperty(JSON_PROPERTY_A) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setA(String a) { this.a = a; } public SessionHistoryMessage u(String u) { this.u = u; return this; } /** * User message * @return u */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_U) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getU() { return u; } @JsonProperty(JSON_PROPERTY_U) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setU(String u) { this.u = u; } public SessionHistoryMessage n(Boolean n) { this.n = n; return this; } /** * true value indicates if it is a new conversation * @return n */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getN() { return n; } @JsonProperty(JSON_PROPERTY_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setN(Boolean n) { this.n = n; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SessionHistoryMessage sessionHistoryMessage = (SessionHistoryMessage) o; return Objects.equals(this.a, sessionHistoryMessage.a) && Objects.equals(this.u, sessionHistoryMessage.u) && Objects.equals(this.n, sessionHistoryMessage.n); } @Override public int hashCode() { return Objects.hash(a, u, n); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SessionHistoryMessage {\n"); sb.append(" a: ").append(toIndentedString(a)).append("\n"); sb.append(" u: ").append(toIndentedString(u)).append("\n"); sb.append(" n: ").append(toIndentedString(n)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SlotInFlight.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SlotInFlight.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.EntitySchema; import com.ibm.watson.conversationalskills.model.SlotValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * SlotInFlight */ @JsonPropertyOrder({ SlotInFlight.JSON_PROPERTY_NAME, SlotInFlight.JSON_PROPERTY_VALUE, SlotInFlight.JSON_PROPERTY_EVENT, SlotInFlight.JSON_PROPERTY_TYPE, SlotInFlight.JSON_PROPERTY_SCHEMA, SlotInFlight.JSON_PROPERTY_DESCRIPTION, SlotInFlight.JSON_PROPERTY_VALIDATION_ERROR, SlotInFlight.JSON_PROPERTY_PROMPT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class SlotInFlight { public static final String JSON_PROPERTY_NAME = "name"; private String name; public static final String JSON_PROPERTY_VALUE = "value"; private SlotValue value; /** * Type of the event: - &#x60;fill&#x60;: the value has been newly filled. - &#x60;repair&#x60;: previous value has been modified. - &#x60;refine&#x60;: previous ambiguous value has been resolved with a selection */ public enum EventEnum { FILL("fill"), REPAIR("repair"), REFINE("refine"); private String value; EventEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static EventEnum fromValue(String value) { for (EventEnum b : EventEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } public static final String JSON_PROPERTY_EVENT = "event"; private EventEnum event; /** * The type of the slot value. */ public enum TypeEnum { STRING("string"), NUMBER("number"), DATE("date"), TIME("time"), REGEX("regex"), ENTITY("entity"), CONFIRMATION("confirmation"), ANY("any"); private String value; TypeEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static TypeEnum fromValue(String value) { for (TypeEnum b : TypeEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; public static final String JSON_PROPERTY_SCHEMA = "schema"; private EntitySchema schema; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; public static final String JSON_PROPERTY_VALIDATION_ERROR = "validation_error"; private String validationError; public static final String JSON_PROPERTY_PROMPT = "prompt"; private String prompt; public SlotInFlight() { } public SlotInFlight name(String name) { this.name = name; return this; } /** * A unique name for the slot. * @return name */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } public SlotInFlight value(SlotValue value) { this.value = value; return this; } /** * Get value * @return value */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SlotValue getValue() { return value; } @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(SlotValue value) { this.value = value; } public SlotInFlight event(EventEnum event) { this.event = event; return this; } /** * Type of the event: - &#x60;fill&#x60;: the value has been newly filled. - &#x60;repair&#x60;: previous value has been modified. - &#x60;refine&#x60;: previous ambiguous value has been resolved with a selection * @return event */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EventEnum getEvent() { return event; } @JsonProperty(JSON_PROPERTY_EVENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEvent(EventEnum event) { this.event = event; } public SlotInFlight type(TypeEnum type) { this.type = type; return this; } /** * The type of the slot value. * @return type */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(TypeEnum type) { this.type = type; } public SlotInFlight schema(EntitySchema schema) { this.schema = schema; return this; } /** * Get schema * @return schema */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCHEMA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EntitySchema getSchema() { return schema; } @JsonProperty(JSON_PROPERTY_SCHEMA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSchema(EntitySchema schema) { this.schema = schema; } public SlotInFlight description(String description) { this.description = description; return this; } /** * A description for the slot. * @return description */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; } @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } public SlotInFlight validationError(String validationError) { this.validationError = validationError; return this; } /** * An error message to display to the user in case the slot value is not valid per the business rules. * @return validationError */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALIDATION_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getValidationError() { return validationError; } @JsonProperty(JSON_PROPERTY_VALIDATION_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValidationError(String validationError) { this.validationError = validationError; } public SlotInFlight prompt(String prompt) { this.prompt = prompt; return this; } /** * The prompt to present to the user. * @return prompt */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROMPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrompt() { return prompt; } @JsonProperty(JSON_PROPERTY_PROMPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrompt(String prompt) { this.prompt = prompt; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SlotInFlight slotInFlight = (SlotInFlight) o; return Objects.equals(this.name, slotInFlight.name) && Objects.equals(this.value, slotInFlight.value) && Objects.equals(this.event, slotInFlight.event) && Objects.equals(this.type, slotInFlight.type) && Objects.equals(this.schema, slotInFlight.schema) && Objects.equals(this.description, slotInFlight.description) && Objects.equals(this.validationError, slotInFlight.validationError) && Objects.equals(this.prompt, slotInFlight.prompt); } @Override public int hashCode() { return Objects.hash(name, value, event, type, schema, description, validationError, prompt); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SlotInFlight {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" event: ").append(toIndentedString(event)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" validationError: ").append(toIndentedString(validationError)).append("\n"); sb.append(" prompt: ").append(toIndentedString(prompt)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/OrchestrationRequest.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/OrchestrationRequest.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ConversationalSkillStateInput; import com.ibm.watson.conversationalskills.model.MessageContext; import com.ibm.watson.conversationalskills.model.MessageInput; import com.ibm.watson.conversationalskills.model.SlotState; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * An orchestration request. */ @JsonPropertyOrder({ OrchestrationRequest.JSON_PROPERTY_INPUT, OrchestrationRequest.JSON_PROPERTY_CONTEXT, OrchestrationRequest.JSON_PROPERTY_SLOTS, OrchestrationRequest.JSON_PROPERTY_STATE, OrchestrationRequest.JSON_PROPERTY_CONFIRMATION_EVENT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class OrchestrationRequest { public static final String JSON_PROPERTY_INPUT = "input"; private MessageInput input; public static final String JSON_PROPERTY_CONTEXT = "context"; private MessageContext context; public static final String JSON_PROPERTY_SLOTS = "slots"; private List<SlotState> slots = new ArrayList<>(); public static final String JSON_PROPERTY_STATE = "state"; private ConversationalSkillStateInput state; /** * Gets or Sets confirmationEvent */ public enum ConfirmationEventEnum { CONFIRMED("user_confirmed"), CANCELLED("user_cancelled"); private String value; ConfirmationEventEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static ConfirmationEventEnum fromValue(String value) { for (ConfirmationEventEnum b : ConfirmationEventEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } public static final String JSON_PROPERTY_CONFIRMATION_EVENT = "confirmation_event"; private ConfirmationEventEnum confirmationEvent; public OrchestrationRequest() { } public OrchestrationRequest input(MessageInput input) { this.input = input; return this; } /** * Get input * @return input */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageInput getInput() { return input; } @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInput(MessageInput input) { this.input = input; } public OrchestrationRequest context(MessageContext context) { this.context = context; return this; } /** * Get context * @return context */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageContext getContext() { return context; } @JsonProperty(JSON_PROPERTY_CONTEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setContext(MessageContext context) { this.context = context; } public OrchestrationRequest slots(List<SlotState> slots) { this.slots = slots; return this; } public OrchestrationRequest addSlotsItem(SlotState slotsItem) { if (this.slots == null) { this.slots = new ArrayList<>(); } this.slots.add(slotsItem); return this; } /** * Slots runtime state (sans definition, since conversational skill is itself their source). * @return slots */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SLOTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<SlotState> getSlots() { return slots; } @JsonProperty(JSON_PROPERTY_SLOTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSlots(List<SlotState> slots) { this.slots = slots; } public OrchestrationRequest state(ConversationalSkillStateInput state) { this.state = state; return this; } /** * Get state * @return state */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ConversationalSkillStateInput getState() { return state; } @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setState(ConversationalSkillStateInput state) { this.state = state; } public OrchestrationRequest confirmationEvent(ConfirmationEventEnum confirmationEvent) { this.confirmationEvent = confirmationEvent; return this; } /** * Get confirmationEvent * @return confirmationEvent */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONFIRMATION_EVENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ConfirmationEventEnum getConfirmationEvent() { return confirmationEvent; } @JsonProperty(JSON_PROPERTY_CONFIRMATION_EVENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setConfirmationEvent(ConfirmationEventEnum confirmationEvent) { this.confirmationEvent = confirmationEvent; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } OrchestrationRequest orchestrationRequest = (OrchestrationRequest) o; return Objects.equals(this.input, orchestrationRequest.input) && Objects.equals(this.context, orchestrationRequest.context) && Objects.equals(this.slots, orchestrationRequest.slots) && Objects.equals(this.state, orchestrationRequest.state) && Objects.equals(this.confirmationEvent, orchestrationRequest.confirmationEvent); } @Override public int hashCode() { return Objects.hash(input, context, slots, state, confirmationEvent); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrchestrationRequest {\n"); sb.append(" input: ").append(toIndentedString(input)).append("\n"); sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" slots: ").append(toIndentedString(slots)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" confirmationEvent: ").append(toIndentedString(confirmationEvent)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ListSkillsResponse.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ListSkillsResponse.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ConversationalSkill; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ListSkillsResponse */ @JsonPropertyOrder({ ListSkillsResponse.JSON_PROPERTY_CONVERSATIONAL_SKILLS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ListSkillsResponse { public static final String JSON_PROPERTY_CONVERSATIONAL_SKILLS = "conversational_skills"; private List<ConversationalSkill> conversationalSkills = new ArrayList<>(); public ListSkillsResponse() { } public ListSkillsResponse conversationalSkills(List<ConversationalSkill> conversationalSkills) { this.conversationalSkills = conversationalSkills; return this; } public ListSkillsResponse addConversationalSkillsItem(ConversationalSkill conversationalSkillsItem) { if (this.conversationalSkills == null) { this.conversationalSkills = new ArrayList<>(); } this.conversationalSkills.add(conversationalSkillsItem); return this; } /** * An array of conversational_skill objects. Each item in the array should be a unique conversational skill. * @return conversationalSkills */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONVERSATIONAL_SKILLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ConversationalSkill> getConversationalSkills() { return conversationalSkills; } @JsonProperty(JSON_PROPERTY_CONVERSATIONAL_SKILLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setConversationalSkills(List<ConversationalSkill> conversationalSkills) { this.conversationalSkills = conversationalSkills; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ListSkillsResponse listSkillsResponse = (ListSkillsResponse) o; return Objects.equals(this.conversationalSkills, listSkillsResponse.conversationalSkills); } @Override public int hashCode() { return Objects.hash(conversationalSkills); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListSkillsResponse {\n"); sb.append(" conversationalSkills: ").append(toIndentedString(conversationalSkills)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillOutput.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillOutput.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ConversationalResponseGeneric; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Conversational skill output uses the same schema as that of WxA message output, with some enhancements. In addition, it includes an internally processed response_type for conveying slots in flight. */ @JsonPropertyOrder({ ConversationalSkillOutput.JSON_PROPERTY_GENERIC }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConversationalSkillOutput { public static final String JSON_PROPERTY_GENERIC = "generic"; private List<ConversationalResponseGeneric> generic = new ArrayList<>(); public ConversationalSkillOutput() { } public ConversationalSkillOutput generic(List<ConversationalResponseGeneric> generic) { this.generic = generic; return this; } public ConversationalSkillOutput addGenericItem(ConversationalResponseGeneric genericItem) { if (this.generic == null) { this.generic = new ArrayList<>(); } this.generic.add(genericItem); return this; } /** * Ordered list of responses. * @return generic */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_GENERIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ConversationalResponseGeneric> getGeneric() { return generic; } @JsonProperty(JSON_PROPERTY_GENERIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setGeneric(List<ConversationalResponseGeneric> generic) { this.generic = generic; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ConversationalSkillOutput conversationalSkillOutput = (ConversationalSkillOutput) o; return Objects.equals(this.generic, conversationalSkillOutput.generic); } @Override public int hashCode() { return Objects.hash(generic); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConversationalSkillOutput {\n"); sb.append(" generic: ").append(toIndentedString(generic)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeIframe.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeIframe.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeIframe */ @JsonPropertyOrder({ RuntimeResponseTypeIframe.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseTypeIframe.JSON_PROPERTY_SOURCE, RuntimeResponseTypeIframe.JSON_PROPERTY_TITLE, RuntimeResponseTypeIframe.JSON_PROPERTY_DESCRIPTION, RuntimeResponseTypeIframe.JSON_PROPERTY_IMAGE_URL, RuntimeResponseTypeIframe.JSON_PROPERTY_CHANNELS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeIframe { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_SOURCE = "source"; private String source; public static final String JSON_PROPERTY_TITLE = "title"; private String title; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; public static final String JSON_PROPERTY_IMAGE_URL = "image_url"; private String imageUrl; public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public RuntimeResponseTypeIframe() { } public RuntimeResponseTypeIframe responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseTypeIframe source(String source) { this.source = source; return this; } /** * The &#x60;https:&#x60; URL of the embeddable content. * @return source */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSource() { return source; } @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSource(String source) { this.source = source; } public RuntimeResponseTypeIframe title(String title) { this.title = title; return this; } /** * The title or introductory text to show before the response. * @return title */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(String title) { this.title = title; } public RuntimeResponseTypeIframe description(String description) { this.description = description; return this; } /** * The description to show with the the response. * @return description */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; } @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } public RuntimeResponseTypeIframe imageUrl(String imageUrl) { this.imageUrl = imageUrl; return this; } /** * The URL of an image that shows a preview of the embedded content. * @return imageUrl */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IMAGE_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getImageUrl() { return imageUrl; } @JsonProperty(JSON_PROPERTY_IMAGE_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setImageUrl(String imageUrl) { this.imageUrl = imageUrl; } public RuntimeResponseTypeIframe channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseTypeIframe addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeIframe runtimeResponseTypeIframe = (RuntimeResponseTypeIframe) o; return Objects.equals(this.responseType, runtimeResponseTypeIframe.responseType) && Objects.equals(this.source, runtimeResponseTypeIframe.source) && Objects.equals(this.title, runtimeResponseTypeIframe.title) && Objects.equals(this.description, runtimeResponseTypeIframe.description) && Objects.equals(this.imageUrl, runtimeResponseTypeIframe.imageUrl) && Objects.equals(this.channels, runtimeResponseTypeIframe.channels); } @Override public int hashCode() { return Objects.hash(responseType, source, title, description, imageUrl, channels); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeIframe {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeChannelTransfer.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeChannelTransfer.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ChannelTransferInfo; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeChannelTransfer */ @JsonPropertyOrder({ RuntimeResponseTypeChannelTransfer.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseTypeChannelTransfer.JSON_PROPERTY_MESSAGE_TO_USER, RuntimeResponseTypeChannelTransfer.JSON_PROPERTY_TRANSFER_INFO, RuntimeResponseTypeChannelTransfer.JSON_PROPERTY_CHANNELS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeChannelTransfer { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_MESSAGE_TO_USER = "message_to_user"; private String messageToUser; public static final String JSON_PROPERTY_TRANSFER_INFO = "transfer_info"; private ChannelTransferInfo transferInfo; public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public RuntimeResponseTypeChannelTransfer() { } public RuntimeResponseTypeChannelTransfer responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. **Note:** The &#x60;channel_transfer&#x60; response type is not supported on IBM Cloud Pak for Data. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseTypeChannelTransfer messageToUser(String messageToUser) { this.messageToUser = messageToUser; return this; } /** * The message to display to the user when initiating a channel transfer. * @return messageToUser */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_MESSAGE_TO_USER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getMessageToUser() { return messageToUser; } @JsonProperty(JSON_PROPERTY_MESSAGE_TO_USER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setMessageToUser(String messageToUser) { this.messageToUser = messageToUser; } public RuntimeResponseTypeChannelTransfer transferInfo(ChannelTransferInfo transferInfo) { this.transferInfo = transferInfo; return this; } /** * Get transferInfo * @return transferInfo */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRANSFER_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ChannelTransferInfo getTransferInfo() { return transferInfo; } @JsonProperty(JSON_PROPERTY_TRANSFER_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTransferInfo(ChannelTransferInfo transferInfo) { this.transferInfo = transferInfo; } public RuntimeResponseTypeChannelTransfer channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseTypeChannelTransfer addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeChannelTransfer runtimeResponseTypeChannelTransfer = (RuntimeResponseTypeChannelTransfer) o; return Objects.equals(this.responseType, runtimeResponseTypeChannelTransfer.responseType) && Objects.equals(this.messageToUser, runtimeResponseTypeChannelTransfer.messageToUser) && Objects.equals(this.transferInfo, runtimeResponseTypeChannelTransfer.transferInfo) && Objects.equals(this.channels, runtimeResponseTypeChannelTransfer.channels); } @Override public int hashCode() { return Objects.hash(responseType, messageToUser, transferInfo, channels); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeChannelTransfer {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" messageToUser: ").append(toIndentedString(messageToUser)).append("\n"); sb.append(" transferInfo: ").append(toIndentedString(transferInfo)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SlotState.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SlotState.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.SlotValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * SlotState */ @JsonPropertyOrder({ SlotState.JSON_PROPERTY_NAME, SlotState.JSON_PROPERTY_VALUE, SlotState.JSON_PROPERTY_EVENT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class SlotState { public static final String JSON_PROPERTY_NAME = "name"; private String name; public static final String JSON_PROPERTY_VALUE = "value"; private SlotValue value; /** * Type of the event: - &#x60;fill&#x60;: the value has been newly filled. - &#x60;repair&#x60;: previous value has been modified. - &#x60;refine&#x60;: previous ambiguous value has been resolved with a selection */ public enum EventEnum { FILL("fill"), REPAIR("repair"), REFINE("refine"); private String value; EventEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static EventEnum fromValue(String value) { for (EventEnum b : EventEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } public static final String JSON_PROPERTY_EVENT = "event"; private EventEnum event; public SlotState() { } public SlotState name(String name) { this.name = name; return this; } /** * A unique name for the slot. * @return name */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } public SlotState value(SlotValue value) { this.value = value; return this; } /** * Get value * @return value */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SlotValue getValue() { return value; } @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setValue(SlotValue value) { this.value = value; } public SlotState event(EventEnum event) { this.event = event; return this; } /** * Type of the event: - &#x60;fill&#x60;: the value has been newly filled. - &#x60;repair&#x60;: previous value has been modified. - &#x60;refine&#x60;: previous ambiguous value has been resolved with a selection * @return event */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public EventEnum getEvent() { return event; } @JsonProperty(JSON_PROPERTY_EVENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEvent(EventEnum event) { this.event = event; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SlotState slotState = (SlotState) o; return Objects.equals(this.name, slotState.name) && Objects.equals(this.value, slotState.value) && Objects.equals(this.event, slotState.event); } @Override public int hashCode() { return Objects.hash(name, value, event); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SlotState {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" event: ").append(toIndentedString(event)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextSkills.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextSkills.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.MessageContextActionSkill; import com.ibm.watson.conversationalskills.model.MessageContextConversationalSkills; import com.ibm.watson.conversationalskills.model.MessageContextDialogSkill; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Context data specific to particular skills used by the assistant. */ @JsonPropertyOrder({ MessageContextSkills.JSON_PROPERTY_MAIN_SKILL, MessageContextSkills.JSON_PROPERTY_ACTIONS_SKILL, MessageContextSkills.JSON_PROPERTY_CONVERSATIONAL_SKILLS, MessageContextSkills.JSON_PROPERTY_ACTIVE_SKILL }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageContextSkills { public static final String JSON_PROPERTY_MAIN_SKILL = "main skill"; private MessageContextDialogSkill mainSkill; public static final String JSON_PROPERTY_ACTIONS_SKILL = "actions skill"; private MessageContextActionSkill actionsSkill; public static final String JSON_PROPERTY_CONVERSATIONAL_SKILLS = "conversational_skills"; private MessageContextConversationalSkills conversationalSkills; /** * When a conversation is underway, and it hasn&#39;t yet finished, the Assistant uses this attribute to track which skill should start processing the next user message in the conversation. At appropriate milestones in a conversation, e.g., initial routing, digression, return from digression, the Assistant updates this attribute to indicate which skill should process the next user message. */ public enum ActiveSkillEnum { MAIN_SKILL("main skill"), ACTIONS_SKILL("actions skill"), CONVERSATIONAL_SKILLS("conversational_skills"); private String value; ActiveSkillEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static ActiveSkillEnum fromValue(String value) { for (ActiveSkillEnum b : ActiveSkillEnum.values()) { if (b.value.equals(value)) { return b; } } return null; } } public static final String JSON_PROPERTY_ACTIVE_SKILL = "active_skill"; private ActiveSkillEnum activeSkill; public MessageContextSkills() { } public MessageContextSkills mainSkill(MessageContextDialogSkill mainSkill) { this.mainSkill = mainSkill; return this; } /** * Get mainSkill * @return mainSkill */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MAIN_SKILL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageContextDialogSkill getMainSkill() { return mainSkill; } @JsonProperty(JSON_PROPERTY_MAIN_SKILL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMainSkill(MessageContextDialogSkill mainSkill) { this.mainSkill = mainSkill; } public MessageContextSkills actionsSkill(MessageContextActionSkill actionsSkill) { this.actionsSkill = actionsSkill; return this; } /** * Get actionsSkill * @return actionsSkill */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACTIONS_SKILL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageContextActionSkill getActionsSkill() { return actionsSkill; } @JsonProperty(JSON_PROPERTY_ACTIONS_SKILL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setActionsSkill(MessageContextActionSkill actionsSkill) { this.actionsSkill = actionsSkill; } public MessageContextSkills conversationalSkills(MessageContextConversationalSkills conversationalSkills) { this.conversationalSkills = conversationalSkills; return this; } /** * Get conversationalSkills * @return conversationalSkills */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONVERSATIONAL_SKILLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageContextConversationalSkills getConversationalSkills() { return conversationalSkills; } @JsonProperty(JSON_PROPERTY_CONVERSATIONAL_SKILLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setConversationalSkills(MessageContextConversationalSkills conversationalSkills) { this.conversationalSkills = conversationalSkills; } public MessageContextSkills activeSkill(ActiveSkillEnum activeSkill) { this.activeSkill = activeSkill; return this; } /** * When a conversation is underway, and it hasn&#39;t yet finished, the Assistant uses this attribute to track which skill should start processing the next user message in the conversation. At appropriate milestones in a conversation, e.g., initial routing, digression, return from digression, the Assistant updates this attribute to indicate which skill should process the next user message. * @return activeSkill */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACTIVE_SKILL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ActiveSkillEnum getActiveSkill() { return activeSkill; } @JsonProperty(JSON_PROPERTY_ACTIVE_SKILL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setActiveSkill(ActiveSkillEnum activeSkill) { this.activeSkill = activeSkill; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessageContextSkills messageContextSkills = (MessageContextSkills) o; return Objects.equals(this.mainSkill, messageContextSkills.mainSkill) && Objects.equals(this.actionsSkill, messageContextSkills.actionsSkill) && Objects.equals(this.conversationalSkills, messageContextSkills.conversationalSkills) && Objects.equals(this.activeSkill, messageContextSkills.activeSkill); } @Override public int hashCode() { return Objects.hash(mainSkill, actionsSkill, conversationalSkills, activeSkill); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MessageContextSkills {\n"); sb.append(" mainSkill: ").append(toIndentedString(mainSkill)).append("\n"); sb.append(" actionsSkill: ").append(toIndentedString(actionsSkill)).append("\n"); sb.append(" conversationalSkills: ").append(toIndentedString(conversationalSkills)).append("\n"); sb.append(" activeSkill: ").append(toIndentedString(activeSkill)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/BaseMessageContextGlobal.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/BaseMessageContextGlobal.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.MessageContextGlobalSystem; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Session context data that is shared by all skills used by the assistant. */ @JsonPropertyOrder({ BaseMessageContextGlobal.JSON_PROPERTY_SYSTEM }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BaseMessageContextGlobal { public static final String JSON_PROPERTY_SYSTEM = "system"; private MessageContextGlobalSystem system; public BaseMessageContextGlobal() { } public BaseMessageContextGlobal system(MessageContextGlobalSystem system) { this.system = system; return this; } /** * Get system * @return system */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageContextGlobalSystem getSystem() { return system; } @JsonProperty(JSON_PROPERTY_SYSTEM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSystem(MessageContextGlobalSystem system) { this.system = system; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } BaseMessageContextGlobal baseMessageContextGlobal = (BaseMessageContextGlobal) o; return Objects.equals(this.system, baseMessageContextGlobal.system); } @Override public int hashCode() { return Objects.hash(system); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseMessageContextGlobal {\n"); sb.append(" system: ").append(toIndentedString(system)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillStateInput.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillStateInput.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ConversationalSkillStateInput */ @JsonPropertyOrder({ ConversationalSkillStateInput.JSON_PROPERTY_LOCAL_VARIABLES, ConversationalSkillStateInput.JSON_PROPERTY_SESSION_VARIABLES, ConversationalSkillStateInput.JSON_PROPERTY_CURRENT_SLOT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConversationalSkillStateInput { public static final String JSON_PROPERTY_LOCAL_VARIABLES = "local_variables"; private Map<String, Object> localVariables = new HashMap<>(); public static final String JSON_PROPERTY_SESSION_VARIABLES = "session_variables"; private Map<String, Object> sessionVariables = new HashMap<>(); public static final String JSON_PROPERTY_CURRENT_SLOT = "current_slot"; private String currentSlot; public ConversationalSkillStateInput() { } public ConversationalSkillStateInput localVariables(Map<String, Object> localVariables) { this.localVariables = localVariables; return this; } public ConversationalSkillStateInput putLocalVariablesItem(String key, Object localVariablesItem) { if (this.localVariables == null) { this.localVariables = new HashMap<>(); } this.localVariables.put(key, localVariablesItem); return this; } /** * Local scope variables that the conversational skill needs across turns to orchestrate the conversation. * @return localVariables */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOCAL_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getLocalVariables() { return localVariables; } @JsonProperty(JSON_PROPERTY_LOCAL_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setLocalVariables(Map<String, Object> localVariables) { this.localVariables = localVariables; } public ConversationalSkillStateInput sessionVariables(Map<String, Object> sessionVariables) { this.sessionVariables = sessionVariables; return this; } public ConversationalSkillStateInput putSessionVariablesItem(String key, Object sessionVariablesItem) { if (this.sessionVariables == null) { this.sessionVariables = new HashMap<>(); } this.sessionVariables.put(key, sessionVariablesItem); return this; } /** * Conversation session scoped variables that the skill wants to share with other skills. These variables may live beyond the conclusion of the conversation being orchestrated by the skill. * @return sessionVariables */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SESSION_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getSessionVariables() { return sessionVariables; } @JsonProperty(JSON_PROPERTY_SESSION_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setSessionVariables(Map<String, Object> sessionVariables) { this.sessionVariables = sessionVariables; } public ConversationalSkillStateInput currentSlot(String currentSlot) { this.currentSlot = currentSlot; return this; } /** * Reference to the currently prompted slot (name). * @return currentSlot */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CURRENT_SLOT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCurrentSlot() { return currentSlot; } @JsonProperty(JSON_PROPERTY_CURRENT_SLOT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCurrentSlot(String currentSlot) { this.currentSlot = currentSlot; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ConversationalSkillStateInput conversationalSkillStateInput = (ConversationalSkillStateInput) o; return Objects.equals(this.localVariables, conversationalSkillStateInput.localVariables) && Objects.equals(this.sessionVariables, conversationalSkillStateInput.sessionVariables) && Objects.equals(this.currentSlot, conversationalSkillStateInput.currentSlot); } @Override public int hashCode() { return Objects.hash(localVariables, sessionVariables, currentSlot); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConversationalSkillStateInput {\n"); sb.append(" localVariables: ").append(toIndentedString(localVariables)).append("\n"); sb.append(" sessionVariables: ").append(toIndentedString(sessionVariables)).append("\n"); sb.append(" currentSlot: ").append(toIndentedString(currentSlot)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/AgentAvailabilityMessage.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/AgentAvailabilityMessage.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * AgentAvailabilityMessage */ @JsonPropertyOrder({ AgentAvailabilityMessage.JSON_PROPERTY_MESSAGE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AgentAvailabilityMessage { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; public AgentAvailabilityMessage() { } public AgentAvailabilityMessage message(String message) { this.message = message; return this; } /** * The text of the message. * @return message */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AgentAvailabilityMessage agentAvailabilityMessage = (AgentAvailabilityMessage) o; return Objects.equals(this.message, agentAvailabilityMessage.message); } @Override public int hashCode() { return Objects.hash(message); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AgentAvailabilityMessage {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SearchResultMetadata.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SearchResultMetadata.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * An object containing search result metadata from the Discovery service. */ @JsonPropertyOrder({ SearchResultMetadata.JSON_PROPERTY_CONFIDENCE, SearchResultMetadata.JSON_PROPERTY_SCORE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class SearchResultMetadata { public static final String JSON_PROPERTY_CONFIDENCE = "confidence"; private Double confidence; public static final String JSON_PROPERTY_SCORE = "score"; private Double score; public SearchResultMetadata() { } public SearchResultMetadata confidence(Double confidence) { this.confidence = confidence; return this; } /** * The confidence score for the given result, as returned by the Discovery service. * @return confidence */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getConfidence() { return confidence; } @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setConfidence(Double confidence) { this.confidence = confidence; } public SearchResultMetadata score(Double score) { this.score = score; return this; } /** * An unbounded measure of the relevance of a particular result, dependent on the query and matching document. A higher score indicates a greater match to the query parameters. * @return score */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Double getScore() { return score; } @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScore(Double score) { this.score = score; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SearchResultMetadata searchResultMetadata = (SearchResultMetadata) o; return Objects.equals(this.confidence, searchResultMetadata.confidence) && Objects.equals(this.score, searchResultMetadata.score); } @Override public int hashCode() { return Objects.hash(confidence, score); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SearchResultMetadata {\n"); sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SlotValueNormalized.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SlotValueNormalized.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonTypeName; import java.math.BigDecimal; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * The normalized value of the slot. */ @JsonPropertyOrder({ }) @JsonTypeName("SlotValue_normalized") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class SlotValueNormalized { public SlotValueNormalized() { } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } return true; } @Override public int hashCode() { return Objects.hash(); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SlotValueNormalized {\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ChannelTransferTarget.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ChannelTransferTarget.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ChannelTransferTargetChat; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * An object specifying target channels available for the transfer. Each property of this object represents an available transfer target. Currently, the only supported property is **chat**, representing the web chat integration. */ @JsonPropertyOrder({ ChannelTransferTarget.JSON_PROPERTY_CHAT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ChannelTransferTarget { public static final String JSON_PROPERTY_CHAT = "chat"; private ChannelTransferTargetChat chat; public ChannelTransferTarget() { } public ChannelTransferTarget chat(ChannelTransferTargetChat chat) { this.chat = chat; return this; } /** * Get chat * @return chat */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ChannelTransferTargetChat getChat() { return chat; } @JsonProperty(JSON_PROPERTY_CHAT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChat(ChannelTransferTargetChat chat) { this.chat = chat; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ChannelTransferTarget channelTransferTarget = (ChannelTransferTarget) o; return Objects.equals(this.chat, channelTransferTarget.chat); } @Override public int hashCode() { return Objects.hash(chat); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChannelTransferTarget {\n"); sb.append(" chat: ").append(toIndentedString(chat)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextConversationalSkills.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextConversationalSkills.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ConversationalSkillActiveDetails; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * MessageContextConversationalSkills */ @JsonPropertyOrder({ MessageContextConversationalSkills.JSON_PROPERTY_STACK, MessageContextConversationalSkills.JSON_PROPERTY_SESSION_VARIABLES }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageContextConversationalSkills { public static final String JSON_PROPERTY_STACK = "stack"; private List<ConversationalSkillActiveDetails> stack = new ArrayList<>(); public static final String JSON_PROPERTY_SESSION_VARIABLES = "session_variables"; private Map<String, Object> sessionVariables = new HashMap<>(); public MessageContextConversationalSkills() { } public MessageContextConversationalSkills stack(List<ConversationalSkillActiveDetails> stack) { this.stack = stack; return this; } public MessageContextConversationalSkills addStackItem(ConversationalSkillActiveDetails stackItem) { if (this.stack == null) { this.stack = new ArrayList<>(); } this.stack.add(stackItem); return this; } /** * Stack of active conversational skills * @return stack */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STACK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ConversationalSkillActiveDetails> getStack() { return stack; } @JsonProperty(JSON_PROPERTY_STACK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStack(List<ConversationalSkillActiveDetails> stack) { this.stack = stack; } public MessageContextConversationalSkills sessionVariables(Map<String, Object> sessionVariables) { this.sessionVariables = sessionVariables; return this; } public MessageContextConversationalSkills putSessionVariablesItem(String key, Object sessionVariablesItem) { if (this.sessionVariables == null) { this.sessionVariables = new HashMap<>(); } this.sessionVariables.put(key, sessionVariablesItem); return this; } /** * Conversation session scoped variables that the skill wants to share with other skills. These variables may live beyond the conclusion of the conversation being orchestrated by the skill. * @return sessionVariables */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SESSION_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getSessionVariables() { return sessionVariables; } @JsonProperty(JSON_PROPERTY_SESSION_VARIABLES) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setSessionVariables(Map<String, Object> sessionVariables) { this.sessionVariables = sessionVariables; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessageContextConversationalSkills messageContextConversationalSkills = (MessageContextConversationalSkills) o; return Objects.equals(this.stack, messageContextConversationalSkills.stack) && Objects.equals(this.sessionVariables, messageContextConversationalSkills.sessionVariables); } @Override public int hashCode() { return Objects.hash(stack, sessionVariables); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MessageContextConversationalSkills {\n"); sb.append(" stack: ").append(toIndentedString(stack)).append("\n"); sb.append(" sessionVariables: ").append(toIndentedString(sessionVariables)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/OrchestrationResponseResolver.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/OrchestrationResponseResolver.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * A resolver is a way for the conversational skill to indicate how it wants the Assistant to proceed. */ @JsonPropertyOrder({ OrchestrationResponseResolver.JSON_PROPERTY_TYPE }) @JsonTypeName("OrchestrationResponse_resolver") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class OrchestrationResponseResolver extends HashMap<String, Object> { /** * Gets or Sets type */ public enum TypeEnum { USER_INTERACTION("user_interaction"), SKILL_COMPLETE("skill_complete"), SKILL_CANCEL("skill_cancel"), CATCH_ALL("catch_all"), FALLBACK("fallback"), VALIDATION_ERROR("validation_error"); private String value; TypeEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static TypeEnum fromValue(String value) { for (TypeEnum b : TypeEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } public static final String JSON_PROPERTY_TYPE = "type"; private TypeEnum type; public OrchestrationResponseResolver() { } public OrchestrationResponseResolver type(TypeEnum type) { this.type = type; return this; } /** * Get type * @return type */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(TypeEnum type) { this.type = type; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } OrchestrationResponseResolver orchestrationResponseResolver = (OrchestrationResponseResolver) o; return Objects.equals(this.type, orchestrationResponseResolver.type) && super.equals(o); } @Override public int hashCode() { return Objects.hash(type, super.hashCode()); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrchestrationResponseResolver {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/DialogNodeOutputConnectToAgentTransferInfo.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/DialogNodeOutputConnectToAgentTransferInfo.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Routing or other contextual information to be used by target service desk systems. */ @JsonPropertyOrder({ DialogNodeOutputConnectToAgentTransferInfo.JSON_PROPERTY_TARGET }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DialogNodeOutputConnectToAgentTransferInfo { public static final String JSON_PROPERTY_TARGET = "target"; private Map<String, Map<String, Object>> target = new HashMap<>(); public DialogNodeOutputConnectToAgentTransferInfo() { } public DialogNodeOutputConnectToAgentTransferInfo target(Map<String, Map<String, Object>> target) { this.target = target; return this; } public DialogNodeOutputConnectToAgentTransferInfo putTargetItem(String key, Map<String, Object> targetItem) { if (this.target == null) { this.target = new HashMap<>(); } this.target.put(key, targetItem); return this; } /** * Get target * @return target */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Map<String, Object>> getTarget() { return target; } @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTarget(Map<String, Map<String, Object>> target) { this.target = target; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DialogNodeOutputConnectToAgentTransferInfo dialogNodeOutputConnectToAgentTransferInfo = (DialogNodeOutputConnectToAgentTransferInfo) o; return Objects.equals(this.target, dialogNodeOutputConnectToAgentTransferInfo.target); } @Override public int hashCode() { return Objects.hash(target); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DialogNodeOutputConnectToAgentTransferInfo {\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ResponseTypeSlotsConfirmation.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ResponseTypeSlotsConfirmation.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ResponseTypeSlotsConfirmation */ @JsonPropertyOrder({ ResponseTypeSlotsConfirmation.JSON_PROPERTY_PROMPT }) @JsonTypeName("ResponseTypeSlots_confirmation") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ResponseTypeSlotsConfirmation { public static final String JSON_PROPERTY_PROMPT = "prompt"; private String prompt; public ResponseTypeSlotsConfirmation() { } public ResponseTypeSlotsConfirmation prompt(String prompt) { this.prompt = prompt; return this; } /** * Get prompt * @return prompt */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PROMPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPrompt() { return prompt; } @JsonProperty(JSON_PROPERTY_PROMPT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrompt(String prompt) { this.prompt = prompt; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ResponseTypeSlotsConfirmation responseTypeSlotsConfirmation = (ResponseTypeSlotsConfirmation) o; return Objects.equals(this.prompt, responseTypeSlotsConfirmation.prompt); } @Override public int hashCode() { return Objects.hash(prompt); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseTypeSlotsConfirmation {\n"); sb.append(" prompt: ").append(toIndentedString(prompt)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SearchResultAnswer.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SearchResultAnswer.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * An object specifing a segment of text that was identified as a direct answer to the search query. */ @JsonPropertyOrder({ SearchResultAnswer.JSON_PROPERTY_TEXT, SearchResultAnswer.JSON_PROPERTY_CONFIDENCE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class SearchResultAnswer { public static final String JSON_PROPERTY_TEXT = "text"; private String text; public static final String JSON_PROPERTY_CONFIDENCE = "confidence"; private Double confidence; public SearchResultAnswer() { } public SearchResultAnswer text(String text) { this.text = text; return this; } /** * The text of the answer. * @return text */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getText() { return text; } @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setText(String text) { this.text = text; } public SearchResultAnswer confidence(Double confidence) { this.confidence = confidence; return this; } /** * The confidence score for the answer, as returned by the Discovery service. * minimum: 0 * maximum: 1 * @return confidence */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Double getConfidence() { return confidence; } @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setConfidence(Double confidence) { this.confidence = confidence; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SearchResultAnswer searchResultAnswer = (SearchResultAnswer) o; return Objects.equals(this.text, searchResultAnswer.text) && Objects.equals(this.confidence, searchResultAnswer.confidence); } @Override public int hashCode() { return Objects.hash(text, confidence); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SearchResultAnswer {\n"); sb.append(" text: ").append(toIndentedString(text)).append("\n"); sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/BaseSlot.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/BaseSlot.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * BaseSlot */ @JsonPropertyOrder({ BaseSlot.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BaseSlot { public static final String JSON_PROPERTY_NAME = "name"; private String name; public BaseSlot() { } public BaseSlot name(String name) { this.name = name; return this; } /** * A unique name for the slot. * @return name */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } BaseSlot baseSlot = (BaseSlot) o; return Objects.equals(this.name, baseSlot.name); } @Override public int hashCode() { return Objects.hash(name); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseSlot {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillActionSource.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkillActionSource.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Source properties of the conversational skill action. */ @JsonPropertyOrder({ ConversationalSkillActionSource.JSON_PROPERTY_TYPE, ConversationalSkillActionSource.JSON_PROPERTY_ACTION, ConversationalSkillActionSource.JSON_PROPERTY_ACTION_TITLE, ConversationalSkillActionSource.JSON_PROPERTY_IS_SKILL_BASED, ConversationalSkillActionSource.JSON_PROPERTY_STEP }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConversationalSkillActionSource { public static final String JSON_PROPERTY_TYPE = "type"; private String type; public static final String JSON_PROPERTY_ACTION = "action"; private String action; public static final String JSON_PROPERTY_ACTION_TITLE = "action_title"; private String actionTitle; public static final String JSON_PROPERTY_IS_SKILL_BASED = "is_skill_based"; private Boolean isSkillBased; public static final String JSON_PROPERTY_STEP = "step"; private String step; public ConversationalSkillActionSource() { } public ConversationalSkillActionSource type(String type) { this.type = type; return this; } /** * Get type * @return type */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } public ConversationalSkillActionSource action(String action) { this.action = action; return this; } /** * Get action * @return action */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAction() { return action; } @JsonProperty(JSON_PROPERTY_ACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAction(String action) { this.action = action; } public ConversationalSkillActionSource actionTitle(String actionTitle) { this.actionTitle = actionTitle; return this; } /** * Get actionTitle * @return actionTitle */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACTION_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getActionTitle() { return actionTitle; } @JsonProperty(JSON_PROPERTY_ACTION_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setActionTitle(String actionTitle) { this.actionTitle = actionTitle; } public ConversationalSkillActionSource isSkillBased(Boolean isSkillBased) { this.isSkillBased = isSkillBased; return this; } /** * Get isSkillBased * @return isSkillBased */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_SKILL_BASED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsSkillBased() { return isSkillBased; } @JsonProperty(JSON_PROPERTY_IS_SKILL_BASED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIsSkillBased(Boolean isSkillBased) { this.isSkillBased = isSkillBased; } public ConversationalSkillActionSource step(String step) { this.step = step; return this; } /** * Get step * @return step */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getStep() { return step; } @JsonProperty(JSON_PROPERTY_STEP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStep(String step) { this.step = step; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ConversationalSkillActionSource conversationalSkillActionSource = (ConversationalSkillActionSource) o; return Objects.equals(this.type, conversationalSkillActionSource.type) && Objects.equals(this.action, conversationalSkillActionSource.action) && Objects.equals(this.actionTitle, conversationalSkillActionSource.actionTitle) && Objects.equals(this.isSkillBased, conversationalSkillActionSource.isSkillBased) && Objects.equals(this.step, conversationalSkillActionSource.step); } @Override public int hashCode() { return Objects.hash(type, action, actionTitle, isSkillBased, step); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConversationalSkillActionSource {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" action: ").append(toIndentedString(action)).append("\n"); sb.append(" actionTitle: ").append(toIndentedString(actionTitle)).append("\n"); sb.append(" isSkillBased: ").append(toIndentedString(isSkillBased)).append("\n"); sb.append(" step: ").append(toIndentedString(step)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ResponseGenericChannel.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ResponseGenericChannel.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ResponseGenericChannel */ @JsonPropertyOrder({ ResponseGenericChannel.JSON_PROPERTY_CHANNEL }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ResponseGenericChannel { public static final String JSON_PROPERTY_CHANNEL = "channel"; private String channel; public ResponseGenericChannel() { } public ResponseGenericChannel channel(String channel) { this.channel = channel; return this; } /** * A channel for which the response is intended. * @return channel */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getChannel() { return channel; } @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannel(String channel) { this.channel = channel; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ResponseGenericChannel responseGenericChannel = (ResponseGenericChannel) o; return Objects.equals(this.channel, responseGenericChannel.channel); } @Override public int hashCode() { return Objects.hash(channel); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseGenericChannel {\n"); sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ErrorResponse.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ErrorResponse.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ErrorDetail; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ErrorResponse */ @JsonPropertyOrder({ ErrorResponse.JSON_PROPERTY_ERROR, ErrorResponse.JSON_PROPERTY_ERRORS, ErrorResponse.JSON_PROPERTY_CODE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ErrorResponse { public static final String JSON_PROPERTY_ERROR = "error"; private String error; public static final String JSON_PROPERTY_ERRORS = "errors"; private List<ErrorDetail> errors = new ArrayList<>(); public static final String JSON_PROPERTY_CODE = "code"; private Integer code; public ErrorResponse() { } public ErrorResponse error(String error) { this.error = error; return this; } /** * General description of an error. * @return error */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getError() { return error; } @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setError(String error) { this.error = error; } public ErrorResponse errors(List<ErrorDetail> errors) { this.errors = errors; return this; } public ErrorResponse addErrorsItem(ErrorDetail errorsItem) { if (this.errors == null) { this.errors = new ArrayList<>(); } this.errors.add(errorsItem); return this; } /** * Collection of specific constraint violations associated with the error. * @return errors */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ErrorDetail> getErrors() { return errors; } @JsonProperty(JSON_PROPERTY_ERRORS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setErrors(List<ErrorDetail> errors) { this.errors = errors; } public ErrorResponse code(Integer code) { this.code = code; return this; } /** * HTTP status code for the error response. * @return code */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getCode() { return code; } @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCode(Integer code) { this.code = code; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ErrorResponse errorResponse = (ErrorResponse) o; return Objects.equals(this.error, errorResponse.error) && Objects.equals(this.errors, errorResponse.errors) && Objects.equals(this.code, errorResponse.code); } @Override public int hashCode() { return Objects.hash(error, errors, code); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ErrorResponse {\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ErrorDetail.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ErrorDetail.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ErrorDetail */ @JsonPropertyOrder({ ErrorDetail.JSON_PROPERTY_MESSAGE, ErrorDetail.JSON_PROPERTY_PATH }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ErrorDetail { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; public static final String JSON_PROPERTY_PATH = "path"; private String path; public ErrorDetail() { } public ErrorDetail message(String message) { this.message = message; return this; } /** * Description of a specific constraint violation. * @return message */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getMessage() { return message; } @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setMessage(String message) { this.message = message; } public ErrorDetail path(String path) { this.path = path; return this; } /** * The location of the constraint violation. * @return path */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getPath() { return path; } @JsonProperty(JSON_PROPERTY_PATH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPath(String path) { this.path = path; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ErrorDetail errorDetail = (ErrorDetail) o; return Objects.equals(this.message, errorDetail.message) && Objects.equals(this.path, errorDetail.path); } @Override public int hashCode() { return Objects.hash(message, path); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ErrorDetail {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextGlobalSystem.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageContextGlobalSystem.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Built-in system properties that apply to all skills used by the assistant. */ @JsonPropertyOrder({ MessageContextGlobalSystem.JSON_PROPERTY_TIMEZONE, MessageContextGlobalSystem.JSON_PROPERTY_USER_ID, MessageContextGlobalSystem.JSON_PROPERTY_TURN_COUNT, MessageContextGlobalSystem.JSON_PROPERTY_LOCALE, MessageContextGlobalSystem.JSON_PROPERTY_REFERENCE_TIME, MessageContextGlobalSystem.JSON_PROPERTY_SESSION_START_TIME, MessageContextGlobalSystem.JSON_PROPERTY_STATE, MessageContextGlobalSystem.JSON_PROPERTY_SKIP_USER_INPUT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageContextGlobalSystem { public static final String JSON_PROPERTY_TIMEZONE = "timezone"; private String timezone; public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; public static final String JSON_PROPERTY_TURN_COUNT = "turn_count"; private Integer turnCount; /** * The language code for localization in the user input. The specified locale overrides the default for the assistant, and is used for interpreting entity values in user input such as date values. For example, &#x60;04/03/2018&#x60; might be interpreted either as April 3 or March 4, depending on the locale. This property is included only if the new system entities are enabled for the skill. */ public enum LocaleEnum { EN_US("en-us"), EN_CA("en-ca"), EN_GB("en-gb"), AR_AR("ar-ar"), CS_CZ("cs-cz"), DE_DE("de-de"), ES_ES("es-es"), FR_FR("fr-fr"), IT_IT("it-it"), JA_JP("ja-jp"), KO_KR("ko-kr"), NL_NL("nl-nl"), PT_BR("pt-br"), ZH_CN("zh-cn"), ZH_TW("zh-tw"); private String value; LocaleEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static LocaleEnum fromValue(String value) { for (LocaleEnum b : LocaleEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } public static final String JSON_PROPERTY_LOCALE = "locale"; private LocaleEnum locale; public static final String JSON_PROPERTY_REFERENCE_TIME = "reference_time"; private String referenceTime; public static final String JSON_PROPERTY_SESSION_START_TIME = "session_start_time"; private String sessionStartTime; public static final String JSON_PROPERTY_STATE = "state"; private String state; public static final String JSON_PROPERTY_SKIP_USER_INPUT = "skip_user_input"; private Boolean skipUserInput; public MessageContextGlobalSystem() { } public MessageContextGlobalSystem timezone(String timezone) { this.timezone = timezone; return this; } /** * The user time zone. The assistant uses the time zone to correctly resolve relative time references. * @return timezone */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTimezone() { return timezone; } @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTimezone(String timezone) { this.timezone = timezone; } public MessageContextGlobalSystem userId(String userId) { this.userId = userId; return this; } /** * A string value that identifies the user who is interacting with the assistant. The client must provide a unique identifier for each individual end user who accesses the application. For user-based plans, this user ID is used to identify unique users for billing purposes. This string cannot contain carriage return, newline, or tab characters. If no value is specified in the input, **user_id** is automatically set to the value of **context.global.session_id**. **Note:** This property is the same as the **user_id** property at the root of the message body. If **user_id** is specified in both locations in a message request, the value specified at the root is used. * @return userId */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUserId() { return userId; } @JsonProperty(JSON_PROPERTY_USER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserId(String userId) { this.userId = userId; } public MessageContextGlobalSystem turnCount(Integer turnCount) { this.turnCount = turnCount; return this; } /** * A counter that is automatically incremented with each turn of the conversation. A value of 1 indicates that this is the the first turn of a new conversation, which can affect the behavior of some skills (for example, triggering the start node of a dialog). * @return turnCount */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TURN_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getTurnCount() { return turnCount; } @JsonProperty(JSON_PROPERTY_TURN_COUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTurnCount(Integer turnCount) { this.turnCount = turnCount; } public MessageContextGlobalSystem locale(LocaleEnum locale) { this.locale = locale; return this; } /** * The language code for localization in the user input. The specified locale overrides the default for the assistant, and is used for interpreting entity values in user input such as date values. For example, &#x60;04/03/2018&#x60; might be interpreted either as April 3 or March 4, depending on the locale. This property is included only if the new system entities are enabled for the skill. * @return locale */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public LocaleEnum getLocale() { return locale; } @JsonProperty(JSON_PROPERTY_LOCALE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLocale(LocaleEnum locale) { this.locale = locale; } public MessageContextGlobalSystem referenceTime(String referenceTime) { this.referenceTime = referenceTime; return this; } /** * The base time for interpreting any relative time mentions in the user input. The specified time overrides the current server time, and is used to calculate times mentioned in relative terms such as &#x60;now&#x60; or &#x60;tomorrow&#x60;. This can be useful for simulating past or future times for testing purposes, or when analyzing documents such as news articles. This value must be a UTC time value formatted according to ISO 8601 (for example, &#x60;2021-06-26T12:00:00Z&#x60; for noon UTC on 26 June 2021). This property is included only if the new system entities are enabled for the skill. * @return referenceTime */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REFERENCE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getReferenceTime() { return referenceTime; } @JsonProperty(JSON_PROPERTY_REFERENCE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReferenceTime(String referenceTime) { this.referenceTime = referenceTime; } public MessageContextGlobalSystem sessionStartTime(String sessionStartTime) { this.sessionStartTime = sessionStartTime; return this; } /** * The time at which the session started. With the stateful &#x60;message&#x60; method, the start time is always present, and is set by the service based on the time the session was created. With the stateless &#x60;message&#x60; method, the start time is set by the service in the response to the first message, and should be returned as part of the context with each subsequent message in the session. This value is a UTC time value formatted according to ISO 8601 (for example, &#x60;2021-06-26T12:00:00Z&#x60; for noon UTC on 26 June 2021). * @return sessionStartTime */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SESSION_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getSessionStartTime() { return sessionStartTime; } @JsonProperty(JSON_PROPERTY_SESSION_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSessionStartTime(String sessionStartTime) { this.sessionStartTime = sessionStartTime; } public MessageContextGlobalSystem state(String state) { this.state = state; return this; } /** * An encoded string that represents the configuration state of the assistant at the beginning of the conversation. If you are using the stateless &#x60;message&#x60; method, save this value and then send it in the context of the subsequent message request to avoid disruptions if there are configuration changes during the conversation (such as a change to a skill the assistant uses). * @return state */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getState() { return state; } @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setState(String state) { this.state = state; } public MessageContextGlobalSystem skipUserInput(Boolean skipUserInput) { this.skipUserInput = skipUserInput; return this; } /** * For internal use only. * @return skipUserInput */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SKIP_USER_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getSkipUserInput() { return skipUserInput; } @JsonProperty(JSON_PROPERTY_SKIP_USER_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSkipUserInput(Boolean skipUserInput) { this.skipUserInput = skipUserInput; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessageContextGlobalSystem messageContextGlobalSystem = (MessageContextGlobalSystem) o; return Objects.equals(this.timezone, messageContextGlobalSystem.timezone) && Objects.equals(this.userId, messageContextGlobalSystem.userId) && Objects.equals(this.turnCount, messageContextGlobalSystem.turnCount) && Objects.equals(this.locale, messageContextGlobalSystem.locale) && Objects.equals(this.referenceTime, messageContextGlobalSystem.referenceTime) && Objects.equals(this.sessionStartTime, messageContextGlobalSystem.sessionStartTime) && Objects.equals(this.state, messageContextGlobalSystem.state) && Objects.equals(this.skipUserInput, messageContextGlobalSystem.skipUserInput); } @Override public int hashCode() { return Objects.hash(timezone, userId, turnCount, locale, referenceTime, sessionStartTime, state, skipUserInput); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MessageContextGlobalSystem {\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" turnCount: ").append(toIndentedString(turnCount)).append("\n"); sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); sb.append(" referenceTime: ").append(toIndentedString(referenceTime)).append("\n"); sb.append(" sessionStartTime: ").append(toIndentedString(sessionStartTime)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" skipUserInput: ").append(toIndentedString(skipUserInput)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/DialogSuggestion.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/DialogSuggestion.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.DialogSuggestionValue; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * DialogSuggestion */ @JsonPropertyOrder({ DialogSuggestion.JSON_PROPERTY_LABEL, DialogSuggestion.JSON_PROPERTY_VALUE, DialogSuggestion.JSON_PROPERTY_OUTPUT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DialogSuggestion { public static final String JSON_PROPERTY_LABEL = "label"; private String label; public static final String JSON_PROPERTY_VALUE = "value"; private DialogSuggestionValue value; public static final String JSON_PROPERTY_OUTPUT = "output"; private Map<String, Object> output = new HashMap<>(); public DialogSuggestion() { } public DialogSuggestion label(String label) { this.label = label; return this; } /** * The user-facing label for the suggestion. This label is taken from the **title** or **user_label** property of the corresponding dialog node, depending on the disambiguation options. * @return label */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LABEL) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getLabel() { return label; } @JsonProperty(JSON_PROPERTY_LABEL) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setLabel(String label) { this.label = label; } public DialogSuggestion value(DialogSuggestionValue value) { this.value = value; return this; } /** * Get value * @return value */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public DialogSuggestionValue getValue() { return value; } @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(DialogSuggestionValue value) { this.value = value; } public DialogSuggestion output(Map<String, Object> output) { this.output = output; return this; } public DialogSuggestion putOutputItem(String key, Object outputItem) { if (this.output == null) { this.output = new HashMap<>(); } this.output.put(key, outputItem); return this; } /** * The dialog output that will be returned from the watsonx Assistant service if the user selects the corresponding option. * @return output */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public Map<String, Object> getOutput() { return output; } @JsonProperty(JSON_PROPERTY_OUTPUT) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setOutput(Map<String, Object> output) { this.output = output; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DialogSuggestion dialogSuggestion = (DialogSuggestion) o; return Objects.equals(this.label, dialogSuggestion.label) && Objects.equals(this.value, dialogSuggestion.value) && Objects.equals(this.output, dialogSuggestion.output); } @Override public int hashCode() { return Objects.hash(label, value, output); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DialogSuggestion {\n"); sb.append(" label: ").append(toIndentedString(label)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" output: ").append(toIndentedString(output)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalResponseGeneric.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalResponseGeneric.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ChannelTransferInfo; import com.ibm.watson.conversationalskills.model.DialogNodeOutputOptionsElement; import com.ibm.watson.conversationalskills.model.DialogSuggestion; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import com.ibm.watson.conversationalskills.model.ResponseTypeSlots; import com.ibm.watson.conversationalskills.model.ResponseTypeSlotsConfirmation; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeAudio; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeChannelTransfer; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeConnectToAgent; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeConnectToAgentAgentAvailable; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeConnectToAgentAgentUnavailable; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeDate; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeIframe; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeImage; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeOption; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypePause; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeSearch; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeSuggestion; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeText; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeUserDefined; import com.ibm.watson.conversationalskills.model.RuntimeResponseTypeVideo; import com.ibm.watson.conversationalskills.model.SearchResult; import com.ibm.watson.conversationalskills.model.SlotInFlight; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ConversationalResponseGeneric */ @JsonPropertyOrder({ ConversationalResponseGeneric.JSON_PROPERTY_RESPONSE_TYPE, ConversationalResponseGeneric.JSON_PROPERTY_SLOTS, ConversationalResponseGeneric.JSON_PROPERTY_CONFIRMATION, ConversationalResponseGeneric.JSON_PROPERTY_TEXT, ConversationalResponseGeneric.JSON_PROPERTY_CHANNELS, ConversationalResponseGeneric.JSON_PROPERTY_TIME, ConversationalResponseGeneric.JSON_PROPERTY_TYPING, ConversationalResponseGeneric.JSON_PROPERTY_SOURCE, ConversationalResponseGeneric.JSON_PROPERTY_TITLE, ConversationalResponseGeneric.JSON_PROPERTY_DESCRIPTION, ConversationalResponseGeneric.JSON_PROPERTY_ALT_TEXT, ConversationalResponseGeneric.JSON_PROPERTY_PREFERENCE, ConversationalResponseGeneric.JSON_PROPERTY_OPTIONS, ConversationalResponseGeneric.JSON_PROPERTY_MESSAGE_TO_HUMAN_AGENT, ConversationalResponseGeneric.JSON_PROPERTY_AGENT_AVAILABLE, ConversationalResponseGeneric.JSON_PROPERTY_AGENT_UNAVAILABLE, ConversationalResponseGeneric.JSON_PROPERTY_TRANSFER_INFO, ConversationalResponseGeneric.JSON_PROPERTY_TOPIC, ConversationalResponseGeneric.JSON_PROPERTY_SUGGESTIONS, ConversationalResponseGeneric.JSON_PROPERTY_MESSAGE_TO_USER, ConversationalResponseGeneric.JSON_PROPERTY_HEADER, ConversationalResponseGeneric.JSON_PROPERTY_PRIMARY_RESULTS, ConversationalResponseGeneric.JSON_PROPERTY_ADDITIONAL_RESULTS, ConversationalResponseGeneric.JSON_PROPERTY_USER_DEFINED, ConversationalResponseGeneric.JSON_PROPERTY_CHANNEL_OPTIONS, ConversationalResponseGeneric.JSON_PROPERTY_IMAGE_URL }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonSubTypes({ @JsonSubTypes.Type(value = RuntimeResponseTypeAudio.class, name = "audio"), @JsonSubTypes.Type(value = RuntimeResponseTypeChannelTransfer.class, name = "channel_transfer"), @JsonSubTypes.Type(value = RuntimeResponseTypeConnectToAgent.class, name = "connect_to_agent"), @JsonSubTypes.Type(value = RuntimeResponseTypeDate.class, name = "date"), @JsonSubTypes.Type(value = RuntimeResponseTypeIframe.class, name = "iframe"), @JsonSubTypes.Type(value = RuntimeResponseTypeImage.class, name = "image"), @JsonSubTypes.Type(value = RuntimeResponseTypeOption.class, name = "option"), @JsonSubTypes.Type(value = RuntimeResponseTypePause.class, name = "pause"), @JsonSubTypes.Type(value = RuntimeResponseTypeSearch.class, name = "search"), @JsonSubTypes.Type(value = ResponseTypeSlots.class, name = "slots"), @JsonSubTypes.Type(value = RuntimeResponseTypeSuggestion.class, name = "suggestion"), @JsonSubTypes.Type(value = RuntimeResponseTypeText.class, name = "text"), @JsonSubTypes.Type(value = RuntimeResponseTypeUserDefined.class, name = "user_defined"), @JsonSubTypes.Type(value = RuntimeResponseTypeVideo.class, name = "video"), @JsonSubTypes.Type(value = ResponseTypeSlots.class, name = "ResponseTypeSlots"), @JsonSubTypes.Type(value = RuntimeResponseTypeAudio.class, name = "RuntimeResponseTypeAudio"), @JsonSubTypes.Type(value = RuntimeResponseTypeChannelTransfer.class, name = "RuntimeResponseTypeChannelTransfer"), @JsonSubTypes.Type(value = RuntimeResponseTypeConnectToAgent.class, name = "RuntimeResponseTypeConnectToAgent"), @JsonSubTypes.Type(value = RuntimeResponseTypeDate.class, name = "RuntimeResponseTypeDate"), @JsonSubTypes.Type(value = RuntimeResponseTypeIframe.class, name = "RuntimeResponseTypeIframe"), @JsonSubTypes.Type(value = RuntimeResponseTypeImage.class, name = "RuntimeResponseTypeImage"), @JsonSubTypes.Type(value = RuntimeResponseTypeOption.class, name = "RuntimeResponseTypeOption"), @JsonSubTypes.Type(value = RuntimeResponseTypePause.class, name = "RuntimeResponseTypePause"), @JsonSubTypes.Type(value = RuntimeResponseTypeSearch.class, name = "RuntimeResponseTypeSearch"), @JsonSubTypes.Type(value = RuntimeResponseTypeSuggestion.class, name = "RuntimeResponseTypeSuggestion"), @JsonSubTypes.Type(value = RuntimeResponseTypeText.class, name = "RuntimeResponseTypeText"), @JsonSubTypes.Type(value = RuntimeResponseTypeUserDefined.class, name = "RuntimeResponseTypeUserDefined"), @JsonSubTypes.Type(value = RuntimeResponseTypeVideo.class, name = "RuntimeResponseTypeVideo"), }) public class ConversationalResponseGeneric { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_SLOTS = "slots"; private List<SlotInFlight> slots = new ArrayList<>(); public static final String JSON_PROPERTY_CONFIRMATION = "confirmation"; private ResponseTypeSlotsConfirmation confirmation; public static final String JSON_PROPERTY_TEXT = "text"; private String text; public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public static final String JSON_PROPERTY_TIME = "time"; private Integer time; public static final String JSON_PROPERTY_TYPING = "typing"; private Boolean typing; public static final String JSON_PROPERTY_SOURCE = "source"; private String source; public static final String JSON_PROPERTY_TITLE = "title"; private String title; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; public static final String JSON_PROPERTY_ALT_TEXT = "alt_text"; private String altText; /** * The preferred type of control to display. */ public enum PreferenceEnum { DROPDOWN("dropdown"), BUTTON("button"); private String value; PreferenceEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static PreferenceEnum fromValue(String value) { for (PreferenceEnum b : PreferenceEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } public static final String JSON_PROPERTY_PREFERENCE = "preference"; private PreferenceEnum preference; public static final String JSON_PROPERTY_OPTIONS = "options"; private List<DialogNodeOutputOptionsElement> options = new ArrayList<>(); public static final String JSON_PROPERTY_MESSAGE_TO_HUMAN_AGENT = "message_to_human_agent"; private String messageToHumanAgent; public static final String JSON_PROPERTY_AGENT_AVAILABLE = "agent_available"; private RuntimeResponseTypeConnectToAgentAgentAvailable agentAvailable; public static final String JSON_PROPERTY_AGENT_UNAVAILABLE = "agent_unavailable"; private RuntimeResponseTypeConnectToAgentAgentUnavailable agentUnavailable; public static final String JSON_PROPERTY_TRANSFER_INFO = "transfer_info"; private ChannelTransferInfo transferInfo; public static final String JSON_PROPERTY_TOPIC = "topic"; private String topic; public static final String JSON_PROPERTY_SUGGESTIONS = "suggestions"; private List<DialogSuggestion> suggestions = new ArrayList<>(); public static final String JSON_PROPERTY_MESSAGE_TO_USER = "message_to_user"; private String messageToUser; public static final String JSON_PROPERTY_HEADER = "header"; private String header; public static final String JSON_PROPERTY_PRIMARY_RESULTS = "primary_results"; private List<SearchResult> primaryResults = new ArrayList<>(); public static final String JSON_PROPERTY_ADDITIONAL_RESULTS = "additional_results"; private List<SearchResult> additionalResults = new ArrayList<>(); public static final String JSON_PROPERTY_USER_DEFINED = "user_defined"; private Map<String, Object> userDefined = new HashMap<>(); public static final String JSON_PROPERTY_CHANNEL_OPTIONS = "channel_options"; private Object channelOptions; public static final String JSON_PROPERTY_IMAGE_URL = "image_url"; private String imageUrl; public ConversationalResponseGeneric() { } public ConversationalResponseGeneric responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public ConversationalResponseGeneric slots(List<SlotInFlight> slots) { this.slots = slots; return this; } public ConversationalResponseGeneric addSlotsItem(SlotInFlight slotsItem) { if (this.slots == null) { this.slots = new ArrayList<>(); } this.slots.add(slotsItem); return this; } /** * The ordered list of slots in flight that WxA should strive to prompt/fill/repair. * @return slots */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SLOTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<SlotInFlight> getSlots() { return slots; } @JsonProperty(JSON_PROPERTY_SLOTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSlots(List<SlotInFlight> slots) { this.slots = slots; } public ConversationalResponseGeneric confirmation(ResponseTypeSlotsConfirmation confirmation) { this.confirmation = confirmation; return this; } /** * Get confirmation * @return confirmation */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONFIRMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ResponseTypeSlotsConfirmation getConfirmation() { return confirmation; } @JsonProperty(JSON_PROPERTY_CONFIRMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setConfirmation(ResponseTypeSlotsConfirmation confirmation) { this.confirmation = confirmation; } public ConversationalResponseGeneric text(String text) { this.text = text; return this; } /** * The text of the response. * @return text */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getText() { return text; } @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setText(String text) { this.text = text; } public ConversationalResponseGeneric channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public ConversationalResponseGeneric addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } public ConversationalResponseGeneric time(Integer time) { this.time = time; return this; } /** * How long to pause, in milliseconds. * @return time */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getTime() { return time; } @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTime(Integer time) { this.time = time; } public ConversationalResponseGeneric typing(Boolean typing) { this.typing = typing; return this; } /** * Whether to send a \&quot;user is typing\&quot; event during the pause. * @return typing */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTyping() { return typing; } @JsonProperty(JSON_PROPERTY_TYPING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTyping(Boolean typing) { this.typing = typing; } public ConversationalResponseGeneric source(String source) { this.source = source; return this; } /** * The &#x60;https:&#x60; URL of the embeddable content. * @return source */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSource() { return source; } @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSource(String source) { this.source = source; } public ConversationalResponseGeneric title(String title) { this.title = title; return this; } /** * The title or introductory text to show before the response. * @return title */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTitle() { return title; } @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTitle(String title) { this.title = title; } public ConversationalResponseGeneric description(String description) { this.description = description; return this; } /** * The description to show with the the response. * @return description */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; } @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } public ConversationalResponseGeneric altText(String altText) { this.altText = altText; return this; } /** * Descriptive text that can be used for screen readers or other situations where the audio player cannot be seen. * @return altText */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALT_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAltText() { return altText; } @JsonProperty(JSON_PROPERTY_ALT_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAltText(String altText) { this.altText = altText; } public ConversationalResponseGeneric preference(PreferenceEnum preference) { this.preference = preference; return this; } /** * The preferred type of control to display. * @return preference */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public PreferenceEnum getPreference() { return preference; } @JsonProperty(JSON_PROPERTY_PREFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPreference(PreferenceEnum preference) { this.preference = preference; } public ConversationalResponseGeneric options(List<DialogNodeOutputOptionsElement> options) { this.options = options; return this; } public ConversationalResponseGeneric addOptionsItem(DialogNodeOutputOptionsElement optionsItem) { if (this.options == null) { this.options = new ArrayList<>(); } this.options.add(optionsItem); return this; } /** * An array of objects describing the options from which the user can choose. * @return options */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_OPTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<DialogNodeOutputOptionsElement> getOptions() { return options; } @JsonProperty(JSON_PROPERTY_OPTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setOptions(List<DialogNodeOutputOptionsElement> options) { this.options = options; } public ConversationalResponseGeneric messageToHumanAgent(String messageToHumanAgent) { this.messageToHumanAgent = messageToHumanAgent; return this; } /** * A message to be sent to the human agent who will be taking over the conversation. * @return messageToHumanAgent */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE_TO_HUMAN_AGENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessageToHumanAgent() { return messageToHumanAgent; } @JsonProperty(JSON_PROPERTY_MESSAGE_TO_HUMAN_AGENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessageToHumanAgent(String messageToHumanAgent) { this.messageToHumanAgent = messageToHumanAgent; } public ConversationalResponseGeneric agentAvailable(RuntimeResponseTypeConnectToAgentAgentAvailable agentAvailable) { this.agentAvailable = agentAvailable; return this; } /** * Get agentAvailable * @return agentAvailable */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AGENT_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public RuntimeResponseTypeConnectToAgentAgentAvailable getAgentAvailable() { return agentAvailable; } @JsonProperty(JSON_PROPERTY_AGENT_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAgentAvailable(RuntimeResponseTypeConnectToAgentAgentAvailable agentAvailable) { this.agentAvailable = agentAvailable; } public ConversationalResponseGeneric agentUnavailable(RuntimeResponseTypeConnectToAgentAgentUnavailable agentUnavailable) { this.agentUnavailable = agentUnavailable; return this; } /** * Get agentUnavailable * @return agentUnavailable */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AGENT_UNAVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public RuntimeResponseTypeConnectToAgentAgentUnavailable getAgentUnavailable() { return agentUnavailable; } @JsonProperty(JSON_PROPERTY_AGENT_UNAVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAgentUnavailable(RuntimeResponseTypeConnectToAgentAgentUnavailable agentUnavailable) { this.agentUnavailable = agentUnavailable; } public ConversationalResponseGeneric transferInfo(ChannelTransferInfo transferInfo) { this.transferInfo = transferInfo; return this; } /** * Get transferInfo * @return transferInfo */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRANSFER_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ChannelTransferInfo getTransferInfo() { return transferInfo; } @JsonProperty(JSON_PROPERTY_TRANSFER_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTransferInfo(ChannelTransferInfo transferInfo) { this.transferInfo = transferInfo; } public ConversationalResponseGeneric topic(String topic) { this.topic = topic; return this; } /** * A label identifying the topic of the conversation, derived from the **title** property of the relevant node or the **topic** property of the dialog node response. * @return topic */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOPIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTopic() { return topic; } @JsonProperty(JSON_PROPERTY_TOPIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTopic(String topic) { this.topic = topic; } public ConversationalResponseGeneric suggestions(List<DialogSuggestion> suggestions) { this.suggestions = suggestions; return this; } public ConversationalResponseGeneric addSuggestionsItem(DialogSuggestion suggestionsItem) { if (this.suggestions == null) { this.suggestions = new ArrayList<>(); } this.suggestions.add(suggestionsItem); return this; } /** * An array of objects describing the possible matching dialog nodes from which the user can choose. * @return suggestions */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUGGESTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<DialogSuggestion> getSuggestions() { return suggestions; } @JsonProperty(JSON_PROPERTY_SUGGESTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSuggestions(List<DialogSuggestion> suggestions) { this.suggestions = suggestions; } public ConversationalResponseGeneric messageToUser(String messageToUser) { this.messageToUser = messageToUser; return this; } /** * The message to display to the user when initiating a channel transfer. * @return messageToUser */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_MESSAGE_TO_USER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getMessageToUser() { return messageToUser; } @JsonProperty(JSON_PROPERTY_MESSAGE_TO_USER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setMessageToUser(String messageToUser) { this.messageToUser = messageToUser; } public ConversationalResponseGeneric header(String header) { this.header = header; return this; } /** * The title or introductory text to show before the response. This text is defined in the search skill configuration. * @return header */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_HEADER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getHeader() { return header; } @JsonProperty(JSON_PROPERTY_HEADER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setHeader(String header) { this.header = header; } public ConversationalResponseGeneric primaryResults(List<SearchResult> primaryResults) { this.primaryResults = primaryResults; return this; } public ConversationalResponseGeneric addPrimaryResultsItem(SearchResult primaryResultsItem) { if (this.primaryResults == null) { this.primaryResults = new ArrayList<>(); } this.primaryResults.add(primaryResultsItem); return this; } /** * An array of objects that contains the search results to be displayed in the initial response to the user. * @return primaryResults */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PRIMARY_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<SearchResult> getPrimaryResults() { return primaryResults; } @JsonProperty(JSON_PROPERTY_PRIMARY_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPrimaryResults(List<SearchResult> primaryResults) { this.primaryResults = primaryResults; } public ConversationalResponseGeneric additionalResults(List<SearchResult> additionalResults) { this.additionalResults = additionalResults; return this; } public ConversationalResponseGeneric addAdditionalResultsItem(SearchResult additionalResultsItem) { if (this.additionalResults == null) { this.additionalResults = new ArrayList<>(); } this.additionalResults.add(additionalResultsItem); return this; } /** * An array of objects that contains additional search results that can be displayed to the user upon request. * @return additionalResults */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDITIONAL_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<SearchResult> getAdditionalResults() { return additionalResults; } @JsonProperty(JSON_PROPERTY_ADDITIONAL_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAdditionalResults(List<SearchResult> additionalResults) { this.additionalResults = additionalResults; } public ConversationalResponseGeneric userDefined(Map<String, Object> userDefined) { this.userDefined = userDefined; return this; } public ConversationalResponseGeneric putUserDefinedItem(String key, Object userDefinedItem) { this.userDefined.put(key, userDefinedItem); return this; } /** * An object containing any properties for the user-defined response type. * @return userDefined */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Map<String, Object> getUserDefined() { return userDefined; } @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setUserDefined(Map<String, Object> userDefined) { this.userDefined = userDefined; } public ConversationalResponseGeneric channelOptions(Object channelOptions) { this.channelOptions = channelOptions; return this; } /** * For internal use only. * @return channelOptions */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNEL_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getChannelOptions() { return channelOptions; } @JsonProperty(JSON_PROPERTY_CHANNEL_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannelOptions(Object channelOptions) { this.channelOptions = channelOptions; } public ConversationalResponseGeneric imageUrl(String imageUrl) { this.imageUrl = imageUrl; return this; } /** * The URL of an image that shows a preview of the embedded content. * @return imageUrl */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IMAGE_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getImageUrl() { return imageUrl; } @JsonProperty(JSON_PROPERTY_IMAGE_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setImageUrl(String imageUrl) { this.imageUrl = imageUrl; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ConversationalResponseGeneric conversationalResponseGeneric = (ConversationalResponseGeneric) o; return Objects.equals(this.responseType, conversationalResponseGeneric.responseType) && Objects.equals(this.slots, conversationalResponseGeneric.slots) && Objects.equals(this.confirmation, conversationalResponseGeneric.confirmation) && Objects.equals(this.text, conversationalResponseGeneric.text) && Objects.equals(this.channels, conversationalResponseGeneric.channels) && Objects.equals(this.time, conversationalResponseGeneric.time) && Objects.equals(this.typing, conversationalResponseGeneric.typing) && Objects.equals(this.source, conversationalResponseGeneric.source) && Objects.equals(this.title, conversationalResponseGeneric.title) && Objects.equals(this.description, conversationalResponseGeneric.description) && Objects.equals(this.altText, conversationalResponseGeneric.altText) && Objects.equals(this.preference, conversationalResponseGeneric.preference) && Objects.equals(this.options, conversationalResponseGeneric.options) && Objects.equals(this.messageToHumanAgent, conversationalResponseGeneric.messageToHumanAgent) && Objects.equals(this.agentAvailable, conversationalResponseGeneric.agentAvailable) && Objects.equals(this.agentUnavailable, conversationalResponseGeneric.agentUnavailable) && Objects.equals(this.transferInfo, conversationalResponseGeneric.transferInfo) && Objects.equals(this.topic, conversationalResponseGeneric.topic) && Objects.equals(this.suggestions, conversationalResponseGeneric.suggestions) && Objects.equals(this.messageToUser, conversationalResponseGeneric.messageToUser) && Objects.equals(this.header, conversationalResponseGeneric.header) && Objects.equals(this.primaryResults, conversationalResponseGeneric.primaryResults) && Objects.equals(this.additionalResults, conversationalResponseGeneric.additionalResults) && Objects.equals(this.userDefined, conversationalResponseGeneric.userDefined) && Objects.equals(this.channelOptions, conversationalResponseGeneric.channelOptions) && Objects.equals(this.imageUrl, conversationalResponseGeneric.imageUrl); } @Override public int hashCode() { return Objects.hash(responseType, slots, confirmation, text, channels, time, typing, source, title, description, altText, preference, options, messageToHumanAgent, agentAvailable, agentUnavailable, transferInfo, topic, suggestions, messageToUser, header, primaryResults, additionalResults, userDefined, channelOptions, imageUrl); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConversationalResponseGeneric {\n");
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
true
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkill.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ConversationalSkill.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Information about a conversational skill */ @JsonPropertyOrder({ ConversationalSkill.JSON_PROPERTY_ID, ConversationalSkill.JSON_PROPERTY_NAME, ConversationalSkill.JSON_PROPERTY_DESCRIPTION, ConversationalSkill.JSON_PROPERTY_CREATED, ConversationalSkill.JSON_PROPERTY_MODIFIED, ConversationalSkill.JSON_PROPERTY_METADATA }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConversationalSkill { public static final String JSON_PROPERTY_ID = "id"; private String id; public static final String JSON_PROPERTY_NAME = "name"; private String name; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; public static final String JSON_PROPERTY_CREATED = "created"; private String created; public static final String JSON_PROPERTY_MODIFIED = "modified"; private String modified; public static final String JSON_PROPERTY_METADATA = "metadata"; private Object metadata; public ConversationalSkill() { } public ConversationalSkill id(String id) { this.id = id; return this; } /** * The unique identifier of a conversational skill * @return id */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getId() { return id; } @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(String id) { this.id = id; } public ConversationalSkill name(String name) { this.name = name; return this; } /** * The name of a conversational skill * @return name */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getName() { return name; } @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } public ConversationalSkill description(String description) { this.description = description; return this; } /** * The description of a conversational skill * @return description */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; } @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } public ConversationalSkill created(String created) { this.created = created; return this; } /** * The created timestamp of a conversational skill * @return created */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCreated() { return created; } @JsonProperty(JSON_PROPERTY_CREATED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCreated(String created) { this.created = created; } public ConversationalSkill modified(String modified) { this.modified = modified; return this; } /** * The created timestamp of a conversational skill * @return modified */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MODIFIED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getModified() { return modified; } @JsonProperty(JSON_PROPERTY_MODIFIED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setModified(String modified) { this.modified = modified; } public ConversationalSkill metadata(Object metadata) { this.metadata = metadata; return this; } /** * Additional metadata of a conversational skill * @return metadata */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getMetadata() { return metadata; } @JsonProperty(JSON_PROPERTY_METADATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMetadata(Object metadata) { this.metadata = metadata; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ConversationalSkill conversationalSkill = (ConversationalSkill) o; return Objects.equals(this.id, conversationalSkill.id) && Objects.equals(this.name, conversationalSkill.name) && Objects.equals(this.description, conversationalSkill.description) && Objects.equals(this.created, conversationalSkill.created) && Objects.equals(this.modified, conversationalSkill.modified) && Objects.equals(this.metadata, conversationalSkill.metadata); } @Override public int hashCode() { return Objects.hash(id, name, description, created, modified, metadata); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConversationalSkill {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" created: ").append(toIndentedString(created)).append("\n"); sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageInputAttachment.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/MessageInputAttachment.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * A reference to a media file to be sent as an attachment with the message. */ @JsonPropertyOrder({ MessageInputAttachment.JSON_PROPERTY_URL, MessageInputAttachment.JSON_PROPERTY_MEDIA_TYPE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageInputAttachment { public static final String JSON_PROPERTY_URL = "url"; private String url; public static final String JSON_PROPERTY_MEDIA_TYPE = "media_type"; private String mediaType; public MessageInputAttachment() { } public MessageInputAttachment url(String url) { this.url = url; return this; } /** * The URL of the media file. * @return url */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getUrl() { return url; } @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setUrl(String url) { this.url = url; } public MessageInputAttachment mediaType(String mediaType) { this.mediaType = mediaType; return this; } /** * The media content type (such as a MIME type) of the attachment. * @return mediaType */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MEDIA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMediaType() { return mediaType; } @JsonProperty(JSON_PROPERTY_MEDIA_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMediaType(String mediaType) { this.mediaType = mediaType; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessageInputAttachment messageInputAttachment = (MessageInputAttachment) o; return Objects.equals(this.url, messageInputAttachment.url) && Objects.equals(this.mediaType, messageInputAttachment.mediaType); } @Override public int hashCode() { return Objects.hash(url, mediaType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MessageInputAttachment {\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" mediaType: ").append(toIndentedString(mediaType)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ResponseTypeSlots.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ResponseTypeSlots.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ResponseTypeSlotsConfirmation; import com.ibm.watson.conversationalskills.model.SlotInFlight; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * ResponseTypeSlots */ @JsonPropertyOrder({ ResponseTypeSlots.JSON_PROPERTY_RESPONSE_TYPE, ResponseTypeSlots.JSON_PROPERTY_SLOTS, ResponseTypeSlots.JSON_PROPERTY_CONFIRMATION }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ResponseTypeSlots { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_SLOTS = "slots"; private List<SlotInFlight> slots = new ArrayList<>(); public static final String JSON_PROPERTY_CONFIRMATION = "confirmation"; private ResponseTypeSlotsConfirmation confirmation; public ResponseTypeSlots() { } public ResponseTypeSlots responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public ResponseTypeSlots slots(List<SlotInFlight> slots) { this.slots = slots; return this; } public ResponseTypeSlots addSlotsItem(SlotInFlight slotsItem) { if (this.slots == null) { this.slots = new ArrayList<>(); } this.slots.add(slotsItem); return this; } /** * The ordered list of slots in flight that WxA should strive to prompt/fill/repair. * @return slots */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SLOTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<SlotInFlight> getSlots() { return slots; } @JsonProperty(JSON_PROPERTY_SLOTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSlots(List<SlotInFlight> slots) { this.slots = slots; } public ResponseTypeSlots confirmation(ResponseTypeSlotsConfirmation confirmation) { this.confirmation = confirmation; return this; } /** * Get confirmation * @return confirmation */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONFIRMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public ResponseTypeSlotsConfirmation getConfirmation() { return confirmation; } @JsonProperty(JSON_PROPERTY_CONFIRMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setConfirmation(ResponseTypeSlotsConfirmation confirmation) { this.confirmation = confirmation; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ResponseTypeSlots responseTypeSlots = (ResponseTypeSlots) o; return Objects.equals(this.responseType, responseTypeSlots.responseType) && Objects.equals(this.slots, responseTypeSlots.slots) && Objects.equals(this.confirmation, responseTypeSlots.confirmation); } @Override public int hashCode() { return Objects.hash(responseType, slots, confirmation); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseTypeSlots {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" slots: ").append(toIndentedString(slots)).append("\n"); sb.append(" confirmation: ").append(toIndentedString(confirmation)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeConnectToAgentAgentAvailable.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeConnectToAgentAgentAvailable.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeConnectToAgentAgentAvailable */ @JsonPropertyOrder({ RuntimeResponseTypeConnectToAgentAgentAvailable.JSON_PROPERTY_MESSAGE }) @JsonTypeName("RuntimeResponseTypeConnectToAgent_agent_available") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeConnectToAgentAgentAvailable { public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; public RuntimeResponseTypeConnectToAgentAgentAvailable() { } public RuntimeResponseTypeConnectToAgentAgentAvailable message(String message) { this.message = message; return this; } /** * The text of the message. * @return message */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeConnectToAgentAgentAvailable runtimeResponseTypeConnectToAgentAgentAvailable = (RuntimeResponseTypeConnectToAgentAgentAvailable) o; return Objects.equals(this.message, runtimeResponseTypeConnectToAgentAgentAvailable.message); } @Override public int hashCode() { return Objects.hash(message); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeConnectToAgentAgentAvailable {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ChannelTransferInfo.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/ChannelTransferInfo.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ChannelTransferTarget; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Information used by an integration to transfer the conversation to a different channel. */ @JsonPropertyOrder({ ChannelTransferInfo.JSON_PROPERTY_TARGET }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ChannelTransferInfo { public static final String JSON_PROPERTY_TARGET = "target"; private ChannelTransferTarget target; public ChannelTransferInfo() { } public ChannelTransferInfo target(ChannelTransferTarget target) { this.target = target; return this; } /** * Get target * @return target */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ChannelTransferTarget getTarget() { return target; } @JsonProperty(JSON_PROPERTY_TARGET) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTarget(ChannelTransferTarget target) { this.target = target; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ChannelTransferInfo channelTransferInfo = (ChannelTransferInfo) o; return Objects.equals(this.target, channelTransferInfo.target); } @Override public int hashCode() { return Objects.hash(target); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ChannelTransferInfo {\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/DialogNodeOutputOptionsElementValue.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/DialogNodeOutputOptionsElementValue.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.MessageInput; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * An object defining the message input to be sent to the assistant if the user selects the corresponding option. */ @JsonPropertyOrder({ DialogNodeOutputOptionsElementValue.JSON_PROPERTY_INPUT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DialogNodeOutputOptionsElementValue { public static final String JSON_PROPERTY_INPUT = "input"; private MessageInput input; public DialogNodeOutputOptionsElementValue() { } public DialogNodeOutputOptionsElementValue input(MessageInput input) { this.input = input; return this; } /** * Get input * @return input */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public MessageInput getInput() { return input; } @JsonProperty(JSON_PROPERTY_INPUT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInput(MessageInput input) { this.input = input; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DialogNodeOutputOptionsElementValue dialogNodeOutputOptionsElementValue = (DialogNodeOutputOptionsElementValue) o; return Objects.equals(this.input, dialogNodeOutputOptionsElementValue.input); } @Override public int hashCode() { return Objects.hash(input); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DialogNodeOutputOptionsElementValue {\n"); sb.append(" input: ").append(toIndentedString(input)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeImage.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeImage.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeImage */ @JsonPropertyOrder({ RuntimeResponseTypeImage.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseTypeImage.JSON_PROPERTY_SOURCE, RuntimeResponseTypeImage.JSON_PROPERTY_TITLE, RuntimeResponseTypeImage.JSON_PROPERTY_DESCRIPTION, RuntimeResponseTypeImage.JSON_PROPERTY_CHANNELS, RuntimeResponseTypeImage.JSON_PROPERTY_ALT_TEXT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeImage { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_SOURCE = "source"; private String source; public static final String JSON_PROPERTY_TITLE = "title"; private String title; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public static final String JSON_PROPERTY_ALT_TEXT = "alt_text"; private String altText; public RuntimeResponseTypeImage() { } public RuntimeResponseTypeImage responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseTypeImage source(String source) { this.source = source; return this; } /** * The &#x60;https:&#x60; URL of the image. * @return source */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSource() { return source; } @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSource(String source) { this.source = source; } public RuntimeResponseTypeImage title(String title) { this.title = title; return this; } /** * The title to show before the response. * @return title */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(String title) { this.title = title; } public RuntimeResponseTypeImage description(String description) { this.description = description; return this; } /** * The description to show with the the response. * @return description */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; } @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } public RuntimeResponseTypeImage channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseTypeImage addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } public RuntimeResponseTypeImage altText(String altText) { this.altText = altText; return this; } /** * Descriptive text that can be used for screen readers or other situations where the image cannot be seen. * @return altText */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALT_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAltText() { return altText; } @JsonProperty(JSON_PROPERTY_ALT_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAltText(String altText) { this.altText = altText; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeImage runtimeResponseTypeImage = (RuntimeResponseTypeImage) o; return Objects.equals(this.responseType, runtimeResponseTypeImage.responseType) && Objects.equals(this.source, runtimeResponseTypeImage.source) && Objects.equals(this.title, runtimeResponseTypeImage.title) && Objects.equals(this.description, runtimeResponseTypeImage.description) && Objects.equals(this.channels, runtimeResponseTypeImage.channels) && Objects.equals(this.altText, runtimeResponseTypeImage.altText); } @Override public int hashCode() { return Objects.hash(responseType, source, title, description, channels, altText); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeImage {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append(" altText: ").append(toIndentedString(altText)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeUserDefined.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeUserDefined.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeUserDefined */ @JsonPropertyOrder({ RuntimeResponseTypeUserDefined.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseTypeUserDefined.JSON_PROPERTY_USER_DEFINED, RuntimeResponseTypeUserDefined.JSON_PROPERTY_CHANNELS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeUserDefined { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_USER_DEFINED = "user_defined"; private Map<String, Object> userDefined = new HashMap<>(); public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public RuntimeResponseTypeUserDefined() { } public RuntimeResponseTypeUserDefined responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseTypeUserDefined userDefined(Map<String, Object> userDefined) { this.userDefined = userDefined; return this; } public RuntimeResponseTypeUserDefined putUserDefinedItem(String key, Object userDefinedItem) { this.userDefined.put(key, userDefinedItem); return this; } /** * An object containing any properties for the user-defined response type. * @return userDefined */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) public Map<String, Object> getUserDefined() { return userDefined; } @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.ALWAYS) public void setUserDefined(Map<String, Object> userDefined) { this.userDefined = userDefined; } public RuntimeResponseTypeUserDefined channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseTypeUserDefined addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeUserDefined runtimeResponseTypeUserDefined = (RuntimeResponseTypeUserDefined) o; return Objects.equals(this.responseType, runtimeResponseTypeUserDefined.responseType) && Objects.equals(this.userDefined, runtimeResponseTypeUserDefined.userDefined) && Objects.equals(this.channels, runtimeResponseTypeUserDefined.channels); } @Override public int hashCode() { return Objects.hash(responseType, userDefined, channels); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeUserDefined {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" userDefined: ").append(toIndentedString(userDefined)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseGeneric.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseGeneric.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; /** * RuntimeResponseGeneric */ @JsonPropertyOrder({ RuntimeResponseGeneric.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseGeneric.JSON_PROPERTY_TEXT, RuntimeResponseGeneric.JSON_PROPERTY_CHANNELS, RuntimeResponseGeneric.JSON_PROPERTY_TIME, RuntimeResponseGeneric.JSON_PROPERTY_TYPING, RuntimeResponseGeneric.JSON_PROPERTY_SOURCE, RuntimeResponseGeneric.JSON_PROPERTY_TITLE, RuntimeResponseGeneric.JSON_PROPERTY_DESCRIPTION, RuntimeResponseGeneric.JSON_PROPERTY_ALT_TEXT, RuntimeResponseGeneric.JSON_PROPERTY_PREFERENCE, RuntimeResponseGeneric.JSON_PROPERTY_OPTIONS, RuntimeResponseGeneric.JSON_PROPERTY_MESSAGE_TO_HUMAN_AGENT, RuntimeResponseGeneric.JSON_PROPERTY_AGENT_AVAILABLE, RuntimeResponseGeneric.JSON_PROPERTY_AGENT_UNAVAILABLE, RuntimeResponseGeneric.JSON_PROPERTY_TRANSFER_INFO, RuntimeResponseGeneric.JSON_PROPERTY_TOPIC, RuntimeResponseGeneric.JSON_PROPERTY_SUGGESTIONS, RuntimeResponseGeneric.JSON_PROPERTY_MESSAGE_TO_USER, RuntimeResponseGeneric.JSON_PROPERTY_HEADER, RuntimeResponseGeneric.JSON_PROPERTY_PRIMARY_RESULTS, RuntimeResponseGeneric.JSON_PROPERTY_ADDITIONAL_RESULTS, RuntimeResponseGeneric.JSON_PROPERTY_USER_DEFINED, RuntimeResponseGeneric.JSON_PROPERTY_CHANNEL_OPTIONS, RuntimeResponseGeneric.JSON_PROPERTY_IMAGE_URL }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") @JsonIgnoreProperties( value = "response_type", // ignore manually set response_type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the response_type to be set during deserialization ) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "response_type", visible = true) @JsonSubTypes({ @JsonSubTypes.Type(value = RuntimeResponseTypeAudio.class, name = "audio"), @JsonSubTypes.Type(value = RuntimeResponseTypeChannelTransfer.class, name = "channel_transfer"), @JsonSubTypes.Type(value = RuntimeResponseTypeConnectToAgent.class, name = "connect_to_agent"), @JsonSubTypes.Type(value = RuntimeResponseTypeDate.class, name = "date"), @JsonSubTypes.Type(value = RuntimeResponseTypeIframe.class, name = "iframe"), @JsonSubTypes.Type(value = RuntimeResponseTypeImage.class, name = "image"), @JsonSubTypes.Type(value = RuntimeResponseTypeOption.class, name = "option"), @JsonSubTypes.Type(value = RuntimeResponseTypePause.class, name = "pause"), @JsonSubTypes.Type(value = RuntimeResponseTypeSearch.class, name = "search"), @JsonSubTypes.Type(value = RuntimeResponseTypeSuggestion.class, name = "suggestion"), @JsonSubTypes.Type(value = RuntimeResponseTypeText.class, name = "text"), @JsonSubTypes.Type(value = RuntimeResponseTypeUserDefined.class, name = "user_defined"), @JsonSubTypes.Type(value = RuntimeResponseTypeVideo.class, name = "video"), @JsonSubTypes.Type(value = RuntimeResponseTypeAudio.class, name = "RuntimeResponseTypeAudio"), @JsonSubTypes.Type(value = RuntimeResponseTypeChannelTransfer.class, name = "RuntimeResponseTypeChannelTransfer"), @JsonSubTypes.Type(value = RuntimeResponseTypeConnectToAgent.class, name = "RuntimeResponseTypeConnectToAgent"), @JsonSubTypes.Type(value = RuntimeResponseTypeDate.class, name = "RuntimeResponseTypeDate"), @JsonSubTypes.Type(value = RuntimeResponseTypeIframe.class, name = "RuntimeResponseTypeIframe"), @JsonSubTypes.Type(value = RuntimeResponseTypeImage.class, name = "RuntimeResponseTypeImage"), @JsonSubTypes.Type(value = RuntimeResponseTypeOption.class, name = "RuntimeResponseTypeOption"), @JsonSubTypes.Type(value = RuntimeResponseTypePause.class, name = "RuntimeResponseTypePause"), @JsonSubTypes.Type(value = RuntimeResponseTypeSearch.class, name = "RuntimeResponseTypeSearch"), @JsonSubTypes.Type(value = RuntimeResponseTypeSuggestion.class, name = "RuntimeResponseTypeSuggestion"), @JsonSubTypes.Type(value = RuntimeResponseTypeText.class, name = "RuntimeResponseTypeText"), @JsonSubTypes.Type(value = RuntimeResponseTypeUserDefined.class, name = "RuntimeResponseTypeUserDefined"), @JsonSubTypes.Type(value = RuntimeResponseTypeVideo.class, name = "RuntimeResponseTypeVideo"), }) public class RuntimeResponseGeneric { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_TEXT = "text"; private String text; public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels = new ArrayList<>(); public static final String JSON_PROPERTY_TIME = "time"; private Integer time; public static final String JSON_PROPERTY_TYPING = "typing"; private Boolean typing; public static final String JSON_PROPERTY_SOURCE = "source"; private String source; public static final String JSON_PROPERTY_TITLE = "title"; private String title; public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; public static final String JSON_PROPERTY_ALT_TEXT = "alt_text"; private String altText; /** * The preferred type of control to display. */ public enum PreferenceEnum { DROPDOWN("dropdown"), BUTTON("button"); private String value; PreferenceEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static PreferenceEnum fromValue(String value) { for (PreferenceEnum b : PreferenceEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } public static final String JSON_PROPERTY_PREFERENCE = "preference"; private PreferenceEnum preference; public static final String JSON_PROPERTY_OPTIONS = "options"; private List<DialogNodeOutputOptionsElement> options = new ArrayList<>(); public static final String JSON_PROPERTY_MESSAGE_TO_HUMAN_AGENT = "message_to_human_agent"; private String messageToHumanAgent; public static final String JSON_PROPERTY_AGENT_AVAILABLE = "agent_available"; private RuntimeResponseTypeConnectToAgentAgentAvailable agentAvailable; public static final String JSON_PROPERTY_AGENT_UNAVAILABLE = "agent_unavailable"; private RuntimeResponseTypeConnectToAgentAgentUnavailable agentUnavailable; public static final String JSON_PROPERTY_TRANSFER_INFO = "transfer_info"; private ChannelTransferInfo transferInfo; public static final String JSON_PROPERTY_TOPIC = "topic"; private String topic; public static final String JSON_PROPERTY_SUGGESTIONS = "suggestions"; private List<DialogSuggestion> suggestions = new ArrayList<>(); public static final String JSON_PROPERTY_MESSAGE_TO_USER = "message_to_user"; private String messageToUser; public static final String JSON_PROPERTY_HEADER = "header"; private String header; public static final String JSON_PROPERTY_PRIMARY_RESULTS = "primary_results"; private List<SearchResult> primaryResults = new ArrayList<>(); public static final String JSON_PROPERTY_ADDITIONAL_RESULTS = "additional_results"; private List<SearchResult> additionalResults = new ArrayList<>(); public static final String JSON_PROPERTY_USER_DEFINED = "user_defined"; private Map<String, Object> userDefined = new HashMap<>(); public static final String JSON_PROPERTY_CHANNEL_OPTIONS = "channel_options"; private Object channelOptions; public static final String JSON_PROPERTY_IMAGE_URL = "image_url"; private String imageUrl; public RuntimeResponseGeneric() { } public RuntimeResponseGeneric responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseGeneric text(String text) { this.text = text; return this; } /** * The text of the response. * @return text */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getText() { return text; } @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setText(String text) { this.text = text; } public RuntimeResponseGeneric channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseGeneric addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } public RuntimeResponseGeneric time(Integer time) { this.time = time; return this; } /** * How long to pause, in milliseconds. * @return time */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Integer getTime() { return time; } @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTime(Integer time) { this.time = time; } public RuntimeResponseGeneric typing(Boolean typing) { this.typing = typing; return this; } /** * Whether to send a \&quot;user is typing\&quot; event during the pause. * @return typing */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getTyping() { return typing; } @JsonProperty(JSON_PROPERTY_TYPING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTyping(Boolean typing) { this.typing = typing; } public RuntimeResponseGeneric source(String source) { this.source = source; return this; } /** * The &#x60;https:&#x60; URL of the embeddable content. * @return source */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getSource() { return source; } @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSource(String source) { this.source = source; } public RuntimeResponseGeneric title(String title) { this.title = title; return this; } /** * The title or introductory text to show before the response. * @return title */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getTitle() { return title; } @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTitle(String title) { this.title = title; } public RuntimeResponseGeneric description(String description) { this.description = description; return this; } /** * The description to show with the the response. * @return description */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getDescription() { return description; } @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDescription(String description) { this.description = description; } public RuntimeResponseGeneric altText(String altText) { this.altText = altText; return this; } /** * Descriptive text that can be used for screen readers or other situations where the audio player cannot be seen. * @return altText */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALT_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getAltText() { return altText; } @JsonProperty(JSON_PROPERTY_ALT_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAltText(String altText) { this.altText = altText; } public RuntimeResponseGeneric preference(PreferenceEnum preference) { this.preference = preference; return this; } /** * The preferred type of control to display. * @return preference */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PREFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public PreferenceEnum getPreference() { return preference; } @JsonProperty(JSON_PROPERTY_PREFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPreference(PreferenceEnum preference) { this.preference = preference; } public RuntimeResponseGeneric options(List<DialogNodeOutputOptionsElement> options) { this.options = options; return this; } public RuntimeResponseGeneric addOptionsItem(DialogNodeOutputOptionsElement optionsItem) { if (this.options == null) { this.options = new ArrayList<>(); } this.options.add(optionsItem); return this; } /** * An array of objects describing the options from which the user can choose. * @return options */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_OPTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<DialogNodeOutputOptionsElement> getOptions() { return options; } @JsonProperty(JSON_PROPERTY_OPTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setOptions(List<DialogNodeOutputOptionsElement> options) { this.options = options; } public RuntimeResponseGeneric messageToHumanAgent(String messageToHumanAgent) { this.messageToHumanAgent = messageToHumanAgent; return this; } /** * A message to be sent to the human agent who will be taking over the conversation. * @return messageToHumanAgent */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE_TO_HUMAN_AGENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessageToHumanAgent() { return messageToHumanAgent; } @JsonProperty(JSON_PROPERTY_MESSAGE_TO_HUMAN_AGENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessageToHumanAgent(String messageToHumanAgent) { this.messageToHumanAgent = messageToHumanAgent; } public RuntimeResponseGeneric agentAvailable(RuntimeResponseTypeConnectToAgentAgentAvailable agentAvailable) { this.agentAvailable = agentAvailable; return this; } /** * Get agentAvailable * @return agentAvailable */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AGENT_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public RuntimeResponseTypeConnectToAgentAgentAvailable getAgentAvailable() { return agentAvailable; } @JsonProperty(JSON_PROPERTY_AGENT_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAgentAvailable(RuntimeResponseTypeConnectToAgentAgentAvailable agentAvailable) { this.agentAvailable = agentAvailable; } public RuntimeResponseGeneric agentUnavailable(RuntimeResponseTypeConnectToAgentAgentUnavailable agentUnavailable) { this.agentUnavailable = agentUnavailable; return this; } /** * Get agentUnavailable * @return agentUnavailable */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AGENT_UNAVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public RuntimeResponseTypeConnectToAgentAgentUnavailable getAgentUnavailable() { return agentUnavailable; } @JsonProperty(JSON_PROPERTY_AGENT_UNAVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAgentUnavailable(RuntimeResponseTypeConnectToAgentAgentUnavailable agentUnavailable) { this.agentUnavailable = agentUnavailable; } public RuntimeResponseGeneric transferInfo(ChannelTransferInfo transferInfo) { this.transferInfo = transferInfo; return this; } /** * Get transferInfo * @return transferInfo */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRANSFER_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) public ChannelTransferInfo getTransferInfo() { return transferInfo; } @JsonProperty(JSON_PROPERTY_TRANSFER_INFO) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTransferInfo(ChannelTransferInfo transferInfo) { this.transferInfo = transferInfo; } public RuntimeResponseGeneric topic(String topic) { this.topic = topic; return this; } /** * A label identifying the topic of the conversation, derived from the **title** property of the relevant node or the **topic** property of the dialog node response. * @return topic */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOPIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTopic() { return topic; } @JsonProperty(JSON_PROPERTY_TOPIC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTopic(String topic) { this.topic = topic; } public RuntimeResponseGeneric suggestions(List<DialogSuggestion> suggestions) { this.suggestions = suggestions; return this; } public RuntimeResponseGeneric addSuggestionsItem(DialogSuggestion suggestionsItem) { if (this.suggestions == null) { this.suggestions = new ArrayList<>(); } this.suggestions.add(suggestionsItem); return this; } /** * An array of objects describing the possible matching dialog nodes from which the user can choose. * @return suggestions */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUGGESTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<DialogSuggestion> getSuggestions() { return suggestions; } @JsonProperty(JSON_PROPERTY_SUGGESTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setSuggestions(List<DialogSuggestion> suggestions) { this.suggestions = suggestions; } public RuntimeResponseGeneric messageToUser(String messageToUser) { this.messageToUser = messageToUser; return this; } /** * The message to display to the user when initiating a channel transfer. * @return messageToUser */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_MESSAGE_TO_USER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getMessageToUser() { return messageToUser; } @JsonProperty(JSON_PROPERTY_MESSAGE_TO_USER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setMessageToUser(String messageToUser) { this.messageToUser = messageToUser; } public RuntimeResponseGeneric header(String header) { this.header = header; return this; } /** * The title or introductory text to show before the response. This text is defined in the search skill configuration. * @return header */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_HEADER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getHeader() { return header; } @JsonProperty(JSON_PROPERTY_HEADER) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setHeader(String header) { this.header = header; } public RuntimeResponseGeneric primaryResults(List<SearchResult> primaryResults) { this.primaryResults = primaryResults; return this; } public RuntimeResponseGeneric addPrimaryResultsItem(SearchResult primaryResultsItem) { if (this.primaryResults == null) { this.primaryResults = new ArrayList<>(); } this.primaryResults.add(primaryResultsItem); return this; } /** * An array of objects that contains the search results to be displayed in the initial response to the user. * @return primaryResults */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PRIMARY_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<SearchResult> getPrimaryResults() { return primaryResults; } @JsonProperty(JSON_PROPERTY_PRIMARY_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPrimaryResults(List<SearchResult> primaryResults) { this.primaryResults = primaryResults; } public RuntimeResponseGeneric additionalResults(List<SearchResult> additionalResults) { this.additionalResults = additionalResults; return this; } public RuntimeResponseGeneric addAdditionalResultsItem(SearchResult additionalResultsItem) { if (this.additionalResults == null) { this.additionalResults = new ArrayList<>(); } this.additionalResults.add(additionalResultsItem); return this; } /** * An array of objects that contains additional search results that can be displayed to the user upon request. * @return additionalResults */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDITIONAL_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List<SearchResult> getAdditionalResults() { return additionalResults; } @JsonProperty(JSON_PROPERTY_ADDITIONAL_RESULTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAdditionalResults(List<SearchResult> additionalResults) { this.additionalResults = additionalResults; } public RuntimeResponseGeneric userDefined(Map<String, Object> userDefined) { this.userDefined = userDefined; return this; } public RuntimeResponseGeneric putUserDefinedItem(String key, Object userDefinedItem) { this.userDefined.put(key, userDefinedItem); return this; } /** * An object containing any properties for the user-defined response type. * @return userDefined */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Map<String, Object> getUserDefined() { return userDefined; } @JsonProperty(JSON_PROPERTY_USER_DEFINED) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setUserDefined(Map<String, Object> userDefined) { this.userDefined = userDefined; } public RuntimeResponseGeneric channelOptions(Object channelOptions) { this.channelOptions = channelOptions; return this; } /** * For internal use only. * @return channelOptions */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNEL_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Object getChannelOptions() { return channelOptions; } @JsonProperty(JSON_PROPERTY_CHANNEL_OPTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannelOptions(Object channelOptions) { this.channelOptions = channelOptions; } public RuntimeResponseGeneric imageUrl(String imageUrl) { this.imageUrl = imageUrl; return this; } /** * The URL of an image that shows a preview of the embedded content. * @return imageUrl */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IMAGE_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getImageUrl() { return imageUrl; } @JsonProperty(JSON_PROPERTY_IMAGE_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setImageUrl(String imageUrl) { this.imageUrl = imageUrl; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseGeneric runtimeResponseGeneric = (RuntimeResponseGeneric) o; return Objects.equals(this.responseType, runtimeResponseGeneric.responseType) && Objects.equals(this.text, runtimeResponseGeneric.text) && Objects.equals(this.channels, runtimeResponseGeneric.channels) && Objects.equals(this.time, runtimeResponseGeneric.time) && Objects.equals(this.typing, runtimeResponseGeneric.typing) && Objects.equals(this.source, runtimeResponseGeneric.source) && Objects.equals(this.title, runtimeResponseGeneric.title) && Objects.equals(this.description, runtimeResponseGeneric.description) && Objects.equals(this.altText, runtimeResponseGeneric.altText) && Objects.equals(this.preference, runtimeResponseGeneric.preference) && Objects.equals(this.options, runtimeResponseGeneric.options) && Objects.equals(this.messageToHumanAgent, runtimeResponseGeneric.messageToHumanAgent) && Objects.equals(this.agentAvailable, runtimeResponseGeneric.agentAvailable) && Objects.equals(this.agentUnavailable, runtimeResponseGeneric.agentUnavailable) && Objects.equals(this.transferInfo, runtimeResponseGeneric.transferInfo) && Objects.equals(this.topic, runtimeResponseGeneric.topic) && Objects.equals(this.suggestions, runtimeResponseGeneric.suggestions) && Objects.equals(this.messageToUser, runtimeResponseGeneric.messageToUser) && Objects.equals(this.header, runtimeResponseGeneric.header) && Objects.equals(this.primaryResults, runtimeResponseGeneric.primaryResults) && Objects.equals(this.additionalResults, runtimeResponseGeneric.additionalResults) && Objects.equals(this.userDefined, runtimeResponseGeneric.userDefined) && Objects.equals(this.channelOptions, runtimeResponseGeneric.channelOptions) && Objects.equals(this.imageUrl, runtimeResponseGeneric.imageUrl); } @Override public int hashCode() { return Objects.hash(responseType, text, channels, time, typing, source, title, description, altText, preference, options, messageToHumanAgent, agentAvailable, agentUnavailable, transferInfo, topic, suggestions, messageToUser, header, primaryResults, additionalResults, userDefined, channelOptions, imageUrl); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseGeneric {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" text: ").append(toIndentedString(text)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" typing: ").append(toIndentedString(typing)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" altText: ").append(toIndentedString(altText)).append("\n"); sb.append(" preference: ").append(toIndentedString(preference)).append("\n"); sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" messageToHumanAgent: ").append(toIndentedString(messageToHumanAgent)).append("\n"); sb.append(" agentAvailable: ").append(toIndentedString(agentAvailable)).append("\n"); sb.append(" agentUnavailable: ").append(toIndentedString(agentUnavailable)).append("\n"); sb.append(" transferInfo: ").append(toIndentedString(transferInfo)).append("\n"); sb.append(" topic: ").append(toIndentedString(topic)).append("\n"); sb.append(" suggestions: ").append(toIndentedString(suggestions)).append("\n"); sb.append(" messageToUser: ").append(toIndentedString(messageToUser)).append("\n"); sb.append(" header: ").append(toIndentedString(header)).append("\n"); sb.append(" primaryResults: ").append(toIndentedString(primaryResults)).append("\n"); sb.append(" additionalResults: ").append(toIndentedString(additionalResults)).append("\n"); sb.append(" userDefined: ").append(toIndentedString(userDefined)).append("\n"); sb.append(" channelOptions: ").append(toIndentedString(channelOptions)).append("\n"); sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeText.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/RuntimeResponseTypeText.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.ResponseGenericChannel; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * RuntimeResponseTypeText */ @JsonPropertyOrder({ RuntimeResponseTypeText.JSON_PROPERTY_RESPONSE_TYPE, RuntimeResponseTypeText.JSON_PROPERTY_TEXT, RuntimeResponseTypeText.JSON_PROPERTY_CHANNELS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RuntimeResponseTypeText { public static final String JSON_PROPERTY_RESPONSE_TYPE = "response_type"; private String responseType; public static final String JSON_PROPERTY_TEXT = "text"; private String text; public static final String JSON_PROPERTY_CHANNELS = "channels"; private List<ResponseGenericChannel> channels; public RuntimeResponseTypeText() { } public RuntimeResponseTypeText responseType(String responseType) { this.responseType = responseType; return this; } /** * The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. * @return responseType */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getResponseType() { return responseType; } @JsonProperty(JSON_PROPERTY_RESPONSE_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResponseType(String responseType) { this.responseType = responseType; } public RuntimeResponseTypeText text(String text) { this.text = text; return this; } /** * The text of the response. * @return text */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getText() { return text; } @JsonProperty(JSON_PROPERTY_TEXT) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setText(String text) { this.text = text; } public RuntimeResponseTypeText channels(List<ResponseGenericChannel> channels) { this.channels = channels; return this; } public RuntimeResponseTypeText addChannelsItem(ResponseGenericChannel channelsItem) { if (this.channels == null) { this.channels = new ArrayList<>(); } this.channels.add(channelsItem); return this; } /** * An array of objects specifying channels for which the response is intended. If **channels** is present, the response is intended for a built-in integration and should not be handled by an API client. * @return channels */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<ResponseGenericChannel> getChannels() { return channels; } @JsonProperty(JSON_PROPERTY_CHANNELS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setChannels(List<ResponseGenericChannel> channels) { this.channels = channels; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RuntimeResponseTypeText runtimeResponseTypeText = (RuntimeResponseTypeText) o; return Objects.equals(this.responseType, runtimeResponseTypeText.responseType) && Objects.equals(this.text, runtimeResponseTypeText.text) && Objects.equals(this.channels, runtimeResponseTypeText.channels); } @Override public int hashCode() { return Objects.hash(responseType, text, channels); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeResponseTypeText {\n"); sb.append(" responseType: ").append(toIndentedString(responseType)).append("\n"); sb.append(" text: ").append(toIndentedString(text)).append("\n"); sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false
watson-developer-cloud/assistant-toolkit
https://github.com/watson-developer-cloud/assistant-toolkit/blob/fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d/conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SearchResult.java
conversational-skills/procode-skill-sdk-java/src/main/java/com/ibm/watson/conversationalskills/model/SearchResult.java
/* Copyright 2024 IBM Corporation 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 https://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.ibm.watson.conversationalskills.model; import java.util.Objects; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.ibm.watson.conversationalskills.model.SearchResultAnswer; import com.ibm.watson.conversationalskills.model.SearchResultHighlight; import com.ibm.watson.conversationalskills.model.SearchResultMetadata; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * SearchResult */ @JsonPropertyOrder({ SearchResult.JSON_PROPERTY_ID, SearchResult.JSON_PROPERTY_RESULT_METADATA, SearchResult.JSON_PROPERTY_BODY, SearchResult.JSON_PROPERTY_TITLE, SearchResult.JSON_PROPERTY_URL, SearchResult.JSON_PROPERTY_HIGHLIGHT, SearchResult.JSON_PROPERTY_ANSWERS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class SearchResult { public static final String JSON_PROPERTY_ID = "id"; private String id; public static final String JSON_PROPERTY_RESULT_METADATA = "result_metadata"; private SearchResultMetadata resultMetadata; public static final String JSON_PROPERTY_BODY = "body"; private String body; public static final String JSON_PROPERTY_TITLE = "title"; private String title; public static final String JSON_PROPERTY_URL = "url"; private String url; public static final String JSON_PROPERTY_HIGHLIGHT = "highlight"; private SearchResultHighlight highlight; public static final String JSON_PROPERTY_ANSWERS = "answers"; private List<SearchResultAnswer> answers = new ArrayList<>(); public SearchResult() { } public SearchResult id(String id) { this.id = id; return this; } /** * The unique identifier of the document in the Discovery service collection. This property is included in responses from search skills, which are available only to Plus or Enterprise plan users. * @return id */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getId() { return id; } @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setId(String id) { this.id = id; } public SearchResult resultMetadata(SearchResultMetadata resultMetadata) { this.resultMetadata = resultMetadata; return this; } /** * Get resultMetadata * @return resultMetadata */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RESULT_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) public SearchResultMetadata getResultMetadata() { return resultMetadata; } @JsonProperty(JSON_PROPERTY_RESULT_METADATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setResultMetadata(SearchResultMetadata resultMetadata) { this.resultMetadata = resultMetadata; } public SearchResult body(String body) { this.body = body; return this; } /** * A description of the search result. This is taken from an abstract, summary, or highlight field in the Discovery service response, as specified in the search skill configuration. * @return body */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BODY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getBody() { return body; } @JsonProperty(JSON_PROPERTY_BODY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBody(String body) { this.body = body; } public SearchResult title(String title) { this.title = title; return this; } /** * The title of the search result. This is taken from a title or name field in the Discovery service response, as specified in the search skill configuration. * @return title */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getTitle() { return title; } @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTitle(String title) { this.title = title; } public SearchResult url(String url) { this.url = url; return this; } /** * The URL of the original data object in its native data source. * @return url */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getUrl() { return url; } @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUrl(String url) { this.url = url; } public SearchResult highlight(SearchResultHighlight highlight) { this.highlight = highlight; return this; } /** * Get highlight * @return highlight */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_HIGHLIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public SearchResultHighlight getHighlight() { return highlight; } @JsonProperty(JSON_PROPERTY_HIGHLIGHT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHighlight(SearchResultHighlight highlight) { this.highlight = highlight; } public SearchResult answers(List<SearchResultAnswer> answers) { this.answers = answers; return this; } public SearchResult addAnswersItem(SearchResultAnswer answersItem) { if (this.answers == null) { this.answers = new ArrayList<>(); } this.answers.add(answersItem); return this; } /** * An array specifying segments of text within the result that were identified as direct answers to the search query. Currently, only the single answer with the highest confidence (if any) is returned. **Notes:** - Answer finding is available only if the search skill is connected to a Discovery v2 service instance. - Answer finding is not supported on IBM Cloud Pak for Data. * @return answers */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANSWERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<SearchResultAnswer> getAnswers() { return answers; } @JsonProperty(JSON_PROPERTY_ANSWERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnswers(List<SearchResultAnswer> answers) { this.answers = answers; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SearchResult searchResult = (SearchResult) o; return Objects.equals(this.id, searchResult.id) && Objects.equals(this.resultMetadata, searchResult.resultMetadata) && Objects.equals(this.body, searchResult.body) && Objects.equals(this.title, searchResult.title) && Objects.equals(this.url, searchResult.url) && Objects.equals(this.highlight, searchResult.highlight) && Objects.equals(this.answers, searchResult.answers); } @Override public int hashCode() { return Objects.hash(id, resultMetadata, body, title, url, highlight, answers); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SearchResult {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" resultMetadata: ").append(toIndentedString(resultMetadata)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" highlight: ").append(toIndentedString(highlight)).append("\n"); sb.append(" answers: ").append(toIndentedString(answers)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
java
Apache-2.0
fa94bf4401b596dc6e5db7ea0e74e8c18fd9a32d
2026-01-05T02:37:53.151031Z
false