7.0.0
·
1010 commits
to master
since this release
7.0.0 (2019-03-28)
Breaking changes
General
- Some big things in the migration guide
- All properties of the type
Maphave been changed toMap<String, Object>
Assistant v1
Model changes
CreateCounterexamplerenamed toCounterexampleCreateDialogNoderenamed toDialogNodeCreateExamplerenamed toExampleEntityExportrenamed toEntityInputDatarenamed toMessageInputIntentExportrenamed toIntentLogExportrenamed toLogMentionsrenamed toMentionValueExportrenamed toValueWorkspaceExportrenamed toWorkspace
Property changes
DialogNodedialogNodeIdrenamed todialogNode
EntityentityNamerenamed toentity
EntityMentionexampleTextrenamed totextintentNamerenamed tointent
ExampleexampleTextrenamed totext
IntentintentNamerenamed tointent
SynonymsynonymTextrenamed tosynonym
ValuevalueTextrenamed tovalue
Other
Counterexamplegetters have been renamed (e.g.getText()->text())MessageInputis now dynamicaddValue()method inCreateEntityOptions.Builderrenamed toaddValues()
Assistant v2
Model changes
MessageContextSkillhas been deleted
Compare and Comply
Model changes
Categoryrenamed toCategoryComparisonTypeLabelrenamed toTypeLabelComparison
Property changes
AttributeADDRESSconstant removed fromTypeinterface
BodyCellsrowHeaderIdstype changed fromList<String>toList<RowHeaderIds>rowHeaderTextstype changed fromList<String>toList<RowHeaderTexts>rowHeaderTextsNormalizedtype changed fromList<String>toList<RowHeaderTextsNormalized>columnHeaderIdstype changed fromList<String>toList<ColumnHeaderIds>columnHeaderTextstype changed fromList<String>toList<ColumnHeaderTexts>columnHeaderTextsNormalizedtype changed fromList<String>toList<ColumnHeaderTextsNormalized>
ClassifyElementsOptionsmodelIdrenamed tomodelfilenamehas been deletedModelIdinterface renamed toModel
CompareDocumentsOptionsmodelIdrenamed tomodelfile1Filenamehas been deletedfile2Filenamehas been deletedModelIdinterface renamed toModel
ConvertToHtmlOptionsmodelIdrenamed tomodelModelIdinterface renamed toModel
CreateBatchOptionsmodelIdrenamed tomodelinputCredentialsFilenamehas been deletedoutputCredentialsFilenamehas been deletedModelIdinterface renamed toModel
DeleteFeedbackOptionsmodelIdrenamed tomodelModelIdinterface renamed toModel
ExtractTablesOptionsmodelIdrenamed tomodelfilenamehas been deletedModelIdinterface renamed toModel
GetFeedbackOptionsmodelIdrenamed tomodelModelIdinterface renamed toModel
UpdateBatchOptionsmodelIdrenamed tomodelModelIdinterface renamed toModel
Discovery
Model changes
QueryResultResultMetadatarenamed toQueryResultMetadata
Property changes
CreateConfigurationOptionsnameis now required
CreateExpansionsOptionsexpansionsis now required
DiskUsagepercentUsedhas been deletedtotalhas been deletedtotalByteshas been deletedusedhas been deleted
DocumentStatuscreatedhas been deletedupdatedhas been deleted
FederatedQueryOptionscollectionIdstype changed fromList<String>toStringpassagesFieldstype changed fromList<String>toStringreturnFieldstype changed fromList<String>toStringsimilarDocumentIdstype changed fromList<String>toStringsimilarFieldstype changed fromList<String>toStringsorttype changed fromList<String>toString
FieldBOOLEANconstant renamed toXBOOLEANinFieldTypeinterfaceBYTEconstant renamed toXBYTEinFieldTypeinterfaceDOUBLEconstant renamed toXDOUBLEinFieldTypeinterfaceFLOATconstant renamed toXFLOATinFieldTypeinterfaceLONGconstant renamed toXLONGinFieldTypeinterfaceSHORTconstant renamed toXSHORTinFieldTypeinterface
IndexCapacitymemoryUsagehas been deleted
QueryResultscorehas been deleted
QueryNoticesResultscorehas been deleted
QueryOptionscollectionIdstype changed fromList<String>toStringpassagesFieldstype changed fromList<String>toStringreturnFieldstype changed fromList<String>toStringsimilarDocumentIdstype changed fromList<String>toStringsimilarFieldstype changed fromList<String>toStringsorttype changed fromList<String>toString
SourceStatusCOMPLETE_WITH_NOTICESconstant removed fromStatusinterfaceSTOPPEDconstant removed fromStatusinterface
UpdateConfigurationOptionsnameis now required
Other
CreateConfigurationOptionsBuilder(String environmentId)changed toBuilder(String environmentId, String name)addEnrichments()renamed toaddEnrichment()addNormalizations()renamed toaddNormalization()
CreateExpansionsOptionsBuilder(String environmentId, String collectionId)changed toBuilder(String environmentId, String collectionId, List<Expansion> expansions)
UpdateConfigurationOptionsBuilder(String environmentId, String configurationId)changed toBuilder(String environmentId, String configurationId, String name)addEnrichments()renamed toaddEnrichment()addNormalizations()renamed toaddNormalization()
Language Translator
Property changes
CreateModelOptionsforcedGlossaryFilenamehas been deletedparallelCorpusFilenamehas been deleted
Natural Language Classifier
Property changes
CreateClassifierOptionsmetadataFilenamehas been deletedtrainingDataFilenamehas been deleted
Other
- Old versions of
classify(),createClassifier(),deleteClassifier(),getClassifier(), andgetClassifiers()without options model parameters have been removed
Natural Language Understanding
Model changes
CategoriesOptionsis no longer dynamicMetadataOptionsis no longer dynamicMetadataResultrenamed toAnalysisResultsMetadataSemanticRolesActionrenamed toSemanticRolesResultActionSemanticRolesObjectrenamed toSemanticRolesResultObjectSemanticRolesSubjectrenamed toSemanticRolesResultSubjectUsagerenamed toAnalysisResultsUsage
Other
CategoriesOptionsgetLimit()has been renamed tolimit()
Personality Insights
Other
profileAsCsv()now just accepts a singleProfileOptions profileOptionsparameter
Speech to Text
Property changes
AddCorpusOptionscorpusFilenamehas been deleted
AudioListingdurationtype changed fromDoubletoLong
AudioResourcedurationtype changed fromDoubletoLong
Other
CreateJobOptions.Builderconstructor withInputStream audioandString contentTypeparameters removedRecognizeOptions.Builderconstructor withInputStream audioandString contentTypeparameters removed
Text to Speech
Property changes
AddWordOptionstranslationis now required
AddWordsOptionswordsis now required
Visual Recognition
Property changes
ClassifyOptionsparametersproperty has been deletedimagesFilenamenow required ifimagesFileis specified
CreateClassifierOptionspositiveExamplesFilenameproperty has been deleted
DetectFacesOptionsparametersproperty has been deletedimagesFilenamenow required ifimagesFileis specified
UpdateClassifierOptionspositiveExamplesFilenameproperty has been deleted
Other
- Old API key authentication is no longer supported
CreateClassifierOptionsaddClass()method renamed toaddPositiveExamples()
UpdateClassifierOptionsaddClass()method renamed toaddPositiveExamples()
Non-breaking changes
General
- The core portion of the SDK has been moved to its own repo
- Added
reactiveRequest()execution method (see README section and migration guide)- Thanks for the suggestion @msogrin!
- Null values are returned from the APIs (#959)
com.ibm.jsse2.overrideDefaultTLSis no longer changed (#1020)- IAM authentication is done on a separate thread to play better with Android (#1041)
Assistant v1
Model changes
Counterexample- Now has a builder
CreateCounterexampleOptions- Allows for setting a
Counterexampleobject in the builder
- Allows for setting a
CreateDialogNodeOptions- Allows for setting a
DialogNodeobject in the builder
- Allows for setting a
CreateSynonymOptions- Allows for setting a
Synonymobject in the builder
- Allows for setting a
CreateValueOptions- Allows for setting a
CreateValueobject in the builder
- Allows for setting a
DialogNode- Now has a builder
Example- Now has a builder
Synonym- Now has a builder
Value- Now has a builder
Property changes
CreateEntitycreatedhas been addedupdatedhas been added
CreateIntentcreatedhas been addedupdatedhas been added
DialogRuntimeResponseGenericdialogNodehas been added
DialogSuggestiondialogNodehas been added
Entityvalueshas been added
Intentexampleshas been added
MessageRequestactionshas been added
Workspacecounterexampleshas been addeddialogNodeshas been addedentitieshas been addedintentshas been addedstatusproperty has been addedStatusinterface has been added
Compare and Comply
Model changes
ColumnHeaderIdsaddedColumnHeaderTextsaddedColumnHeaderTextsNormalizedaddedContractTypeaddedKeyaddedKeyValuePairaddedRowHeaderIdsaddedRowHeaderTextsaddedRowHeaderTextsNormalizedaddedValueadded
Property changes
AttributeDURATIONconstant added toTypeinterfacePERCENTAGEconstant added toTypeinterface
ClassifyReturncontractTypeadded
TableskeyValuePairsadded
Discovery
Model changes
SourceOptionsBucketsadded
Property changes
CreateCollectionOptionsZH_CNconstant added toLanguageinterface
CreateCredentialsOptionsCLOUD_OBJECT_STORAGEconstant added toSourceTypeinterface
CredentialsCLOUD_OBJECT_STORAGEconstant added toSourceTypeinterface
CredentialDetailsAWS4_HMACconstant added toCredentialTypeinterfaceaccessKeyIdaddedendpointaddedsecretAccessKeyadded
QueryNoticesResulttitleadded
QueryResulttitleadded
SourceCLOUD_OBJECT_STORAGEconstant added toSourceTypeinterface
SourceOptionsbucketsaddedcrawlAllBucketsadded
SourceStatusQUEUEDconstant added toStatusinterface
UpdateCredentialsOptionsCLOUD_OBJECT_STORAGEconstant added toSourceTypeinterface
Natural Language Understanding
Model changes
CategoriesOptions- Now has a builder
SentenceResultaddedSyntaxOptionsaddedSyntaxOptionsTokenaddedSyntaxOptionsResultaddedTokenResultadded
Property changes
AnalysisResultssyntaxadded
CategoriesOptionsmodeladded
Featuressyntaxadded
Personality Insights
Property changes
ProfileOptionscsvHeadersadded
Speech to Text
Property changes
AddAudioOptionsAUDIO_ALAWconstant added toContentTypeinterfaceAUDIO_ALAWconstant added toContainedContentTypeinterface
CreateJobOptionsAUDIO_ALAWconstant added toContentTypeinterface
RecognizeOptionsAUDIO_ALAWconstant added toContentTypeinterface
Text to Speech
Property changes
GetPronunciationOptionsEN_US_ALLISONV2VOICEconstant added toVoiceinterfaceEN_US_LISAV2VOICEconstant added toVoiceinterfaceEN_US_MICHAELV2VOICEconstant added toVoiceinterfaceDE_DE_BIRGITV2VOICEconstant added toVoiceinterfaceDE_DE_DIETERV2VOICEconstant added toVoiceinterfaceIT_IT_FRANCESCAV2VOICEconstant added toVoiceinterface
GetVoiceOptionsEN_US_ALLISONV2VOICEconstant added toVoiceinterfaceEN_US_LISAV2VOICEconstant added toVoiceinterfaceEN_US_MICHAELV2VOICEconstant added toVoiceinterfaceDE_DE_BIRGITV2VOICEconstant added toVoiceinterfaceDE_DE_DIETERV2VOICEconstant added toVoiceinterfaceIT_IT_FRANCESCAV2VOICEconstant added toVoiceinterface
SynthesizeOptionsEN_US_ALLISONV2VOICEconstant added toVoiceinterfaceEN_US_LISAV2VOICEconstant added toVoiceinterfaceEN_US_MICHAELV2VOICEconstant added toVoiceinterfaceDE_DE_BIRGITV2VOICEconstant added toVoiceinterfaceDE_DE_DIETERV2VOICEconstant added toVoiceinterfaceIT_IT_FRANCESCAV2VOICEconstant added toVoiceinterface