Skip to content

Commit 8bf9255

Browse files
Merge pull request #885 from watson-developer-cloud/codegen/tone-analyzer
[Tone Analyzer] Add newest generated code
2 parents f07990e + 395e4f4 commit 8bf9255

File tree

9 files changed

+1
-236
lines changed

9 files changed

+1
-236
lines changed

tone-analyzer/src/main/java/com/ibm/watson/developer_cloud/tone_analyzer/v3/ToneAnalyzer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ public ToneAnalyzer(String versionDate) {
5454
setEndPoint(URL);
5555
}
5656

57-
Validator.isTrue((versionDate != null) && !versionDate.isEmpty(),
58-
"'version cannot be null.");
57+
Validator.isTrue((versionDate != null) && !versionDate.isEmpty(), "version cannot be null.");
5958

6059
this.versionDate = versionDate;
6160
}

tone-analyzer/src/main/java/com/ibm/watson/developer_cloud/tone_analyzer/v3/model/DocumentAnalysis.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -65,31 +65,4 @@ public List<ToneCategory> getToneCategories() {
6565
public String getWarning() {
6666
return warning;
6767
}
68-
69-
/**
70-
* Sets the tones.
71-
*
72-
* @param tones the new tones
73-
*/
74-
public void setTones(final List<ToneScore> tones) {
75-
this.tones = tones;
76-
}
77-
78-
/**
79-
* Sets the toneCategories.
80-
*
81-
* @param toneCategories the new toneCategories
82-
*/
83-
public void setToneCategories(final List<ToneCategory> toneCategories) {
84-
this.toneCategories = toneCategories;
85-
}
86-
87-
/**
88-
* Sets the warning.
89-
*
90-
* @param warning the new warning
91-
*/
92-
public void setWarning(final String warning) {
93-
this.warning = warning;
94-
}
9568
}

tone-analyzer/src/main/java/com/ibm/watson/developer_cloud/tone_analyzer/v3/model/SentenceAnalysis.java

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -105,58 +105,4 @@ public Long getInputFrom() {
105105
public Long getInputTo() {
106106
return inputTo;
107107
}
108-
109-
/**
110-
* Sets the sentenceId.
111-
*
112-
* @param sentenceId the new sentenceId
113-
*/
114-
public void setSentenceId(final long sentenceId) {
115-
this.sentenceId = sentenceId;
116-
}
117-
118-
/**
119-
* Sets the text.
120-
*
121-
* @param text the new text
122-
*/
123-
public void setText(final String text) {
124-
this.text = text;
125-
}
126-
127-
/**
128-
* Sets the tones.
129-
*
130-
* @param tones the new tones
131-
*/
132-
public void setTones(final List<ToneScore> tones) {
133-
this.tones = tones;
134-
}
135-
136-
/**
137-
* Sets the toneCategories.
138-
*
139-
* @param toneCategories the new toneCategories
140-
*/
141-
public void setToneCategories(final List<ToneCategory> toneCategories) {
142-
this.toneCategories = toneCategories;
143-
}
144-
145-
/**
146-
* Sets the inputFrom.
147-
*
148-
* @param inputFrom the new inputFrom
149-
*/
150-
public void setInputFrom(final long inputFrom) {
151-
this.inputFrom = inputFrom;
152-
}
153-
154-
/**
155-
* Sets the inputTo.
156-
*
157-
* @param inputTo the new inputTo
158-
*/
159-
public void setInputTo(final long inputTo) {
160-
this.inputTo = inputTo;
161-
}
162108
}

tone-analyzer/src/main/java/com/ibm/watson/developer_cloud/tone_analyzer/v3/model/ToneAnalysis.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,4 @@ public DocumentAnalysis getDocumentTone() {
5050
public List<SentenceAnalysis> getSentencesTone() {
5151
return sentencesTone;
5252
}
53-
54-
/**
55-
* Sets the documentTone.
56-
*
57-
* @param documentTone the new documentTone
58-
*/
59-
public void setDocumentTone(final DocumentAnalysis documentTone) {
60-
this.documentTone = documentTone;
61-
}
62-
63-
/**
64-
* Sets the sentencesTone.
65-
*
66-
* @param sentencesTone the new sentencesTone
67-
*/
68-
public void setSentencesTone(final List<SentenceAnalysis> sentencesTone) {
69-
this.sentencesTone = sentencesTone;
70-
}
7153
}

tone-analyzer/src/main/java/com/ibm/watson/developer_cloud/tone_analyzer/v3/model/ToneCategory.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -61,31 +61,4 @@ public String getCategoryId() {
6161
public String getCategoryName() {
6262
return categoryName;
6363
}
64-
65-
/**
66-
* Sets the tones.
67-
*
68-
* @param tones the new tones
69-
*/
70-
public void setTones(final List<ToneScore> tones) {
71-
this.tones = tones;
72-
}
73-
74-
/**
75-
* Sets the categoryId.
76-
*
77-
* @param categoryId the new categoryId
78-
*/
79-
public void setCategoryId(final String categoryId) {
80-
this.categoryId = categoryId;
81-
}
82-
83-
/**
84-
* Sets the categoryName.
85-
*
86-
* @param categoryName the new categoryName
87-
*/
88-
public void setCategoryName(final String categoryName) {
89-
this.categoryName = categoryName;
90-
}
9164
}

tone-analyzer/src/main/java/com/ibm/watson/developer_cloud/tone_analyzer/v3/model/ToneChatScore.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -61,31 +61,4 @@ public String getToneId() {
6161
public String getToneName() {
6262
return toneName;
6363
}
64-
65-
/**
66-
* Sets the score.
67-
*
68-
* @param score the new score
69-
*/
70-
public void setScore(final Double score) {
71-
this.score = score;
72-
}
73-
74-
/**
75-
* Sets the toneId.
76-
*
77-
* @param toneId the new toneId
78-
*/
79-
public void setToneId(final String toneId) {
80-
this.toneId = toneId;
81-
}
82-
83-
/**
84-
* Sets the toneName.
85-
*
86-
* @param toneName the new toneName
87-
*/
88-
public void setToneName(final String toneName) {
89-
this.toneName = toneName;
90-
}
9164
}

tone-analyzer/src/main/java/com/ibm/watson/developer_cloud/tone_analyzer/v3/model/ToneScore.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -68,31 +68,4 @@ public String getToneId() {
6868
public String getToneName() {
6969
return toneName;
7070
}
71-
72-
/**
73-
* Sets the score.
74-
*
75-
* @param score the new score
76-
*/
77-
public void setScore(final Double score) {
78-
this.score = score;
79-
}
80-
81-
/**
82-
* Sets the toneId.
83-
*
84-
* @param toneId the new toneId
85-
*/
86-
public void setToneId(final String toneId) {
87-
this.toneId = toneId;
88-
}
89-
90-
/**
91-
* Sets the toneName.
92-
*
93-
* @param toneName the new toneName
94-
*/
95-
public void setToneName(final String toneName) {
96-
this.toneName = toneName;
97-
}
9871
}

tone-analyzer/src/main/java/com/ibm/watson/developer_cloud/tone_analyzer/v3/model/UtteranceAnalyses.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,4 @@ public List<UtteranceAnalysis> getUtterancesTone() {
4848
public String getWarning() {
4949
return warning;
5050
}
51-
52-
/**
53-
* Sets the utterancesTone.
54-
*
55-
* @param utterancesTone the new utterancesTone
56-
*/
57-
public void setUtterancesTone(final List<UtteranceAnalysis> utterancesTone) {
58-
this.utterancesTone = utterancesTone;
59-
}
60-
61-
/**
62-
* Sets the warning.
63-
*
64-
* @param warning the new warning
65-
*/
66-
public void setWarning(final String warning) {
67-
this.warning = warning;
68-
}
6951
}

tone-analyzer/src/main/java/com/ibm/watson/developer_cloud/tone_analyzer/v3/model/UtteranceAnalysis.java

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -76,40 +76,4 @@ public List<ToneChatScore> getTones() {
7676
public String getError() {
7777
return error;
7878
}
79-
80-
/**
81-
* Sets the utteranceId.
82-
*
83-
* @param utteranceId the new utteranceId
84-
*/
85-
public void setUtteranceId(final long utteranceId) {
86-
this.utteranceId = utteranceId;
87-
}
88-
89-
/**
90-
* Sets the utteranceText.
91-
*
92-
* @param utteranceText the new utteranceText
93-
*/
94-
public void setUtteranceText(final String utteranceText) {
95-
this.utteranceText = utteranceText;
96-
}
97-
98-
/**
99-
* Sets the tones.
100-
*
101-
* @param tones the new tones
102-
*/
103-
public void setTones(final List<ToneChatScore> tones) {
104-
this.tones = tones;
105-
}
106-
107-
/**
108-
* Sets the error.
109-
*
110-
* @param error the new error
111-
*/
112-
public void setError(final String error) {
113-
this.error = error;
114-
}
11579
}

0 commit comments

Comments
 (0)