I am writing a piece of software in Java which implements the IBM Watson Java API, specifically the conversation section. What is confusing me is the below line being incorrect:
String userInput = input;
MessageRequest newMessage = new MessageRequest.Builder().inputText(input).context(context).build();
I have used IBMs Watson API for Android and every piece of research I have done have specified the use of a MessageRequest().Builder() yet when I try and implement that piece of code I get the following error:
"Cannot Resolve Symbol 'Builder'
Any ideas as to why would be great!