1212 */
1313package com .ibm .watson .speech_to_text .v1 .model ;
1414
15- import com .google .gson .annotations .SerializedName ;
1615import com .ibm .cloud .sdk .core .service .model .GenericModel ;
1716
1817/**
@@ -23,7 +22,7 @@ public class TrainingWarning extends GenericModel {
2322 /**
2423 * An identifier for the type of invalid resources listed in the `description` field.
2524 */
26- public interface WarningId {
25+ public interface Code {
2726 /** invalid_audio_files. */
2827 String INVALID_AUDIO_FILES = "invalid_audio_files" ;
2928 /** invalid_corpus_files. */
@@ -34,31 +33,30 @@ public interface WarningId {
3433 String INVALID_WORDS = "invalid_words" ;
3534 }
3635
37- private String description ;
38- @ SerializedName ("warning_id" )
39- private String warningId ;
36+ private String code ;
37+ private String message ;
4038
4139 /**
42- * Gets the description .
40+ * Gets the code .
4341 *
44- * A warning message that lists the invalid resources that are excluded from the custom model's training. The message
45- * has the following format: `Analysis of the following {resource_type} has not completed successfully:
46- * [{resource_names}]. They will be excluded from custom {model_type} model training.`.
42+ * An identifier for the type of invalid resources listed in the `description` field.
4743 *
48- * @return the description
44+ * @return the code
4945 */
50- public String getDescription () {
51- return description ;
46+ public String getCode () {
47+ return code ;
5248 }
5349
5450 /**
55- * Gets the warningId .
51+ * Gets the message .
5652 *
57- * An identifier for the type of invalid resources listed in the `description` field.
53+ * A warning message that lists the invalid resources that are excluded from the custom model's training. The message
54+ * has the following format: `Analysis of the following {resource_type} has not completed successfully:
55+ * [{resource_names}]. They will be excluded from custom {model_type} model training.`.
5856 *
59- * @return the warningId
57+ * @return the message
6058 */
61- public String getWarningId () {
62- return warningId ;
59+ public String getMessage () {
60+ return message ;
6361 }
6462}
0 commit comments