Skip to content

Commit f1b8d9b

Browse files
committed
fix(Discovery): Add missing NluEnrichmentConcepts model
1 parent 5d6d4a7 commit f1b8d9b

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5+
* the License. You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10+
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11+
* specific language governing permissions and limitations under the License.
12+
*/
13+
package com.ibm.watson.developer_cloud.discovery.v1.model;
14+
15+
import com.ibm.watson.developer_cloud.service.model.GenericModel;
16+
17+
/**
18+
* An object specifiying the concepts enrichment and related parameters.
19+
*/
20+
public class NluEnrichmentConcepts extends GenericModel {
21+
22+
private Long limit;
23+
24+
/**
25+
* Gets the limit.
26+
*
27+
* The maximum number of concepts enrichments to extact from each instance of the specified field.
28+
*
29+
* @return the limit
30+
*/
31+
public Long getLimit() {
32+
return limit;
33+
}
34+
35+
/**
36+
* Sets the limit.
37+
*
38+
* @param limit the new limit
39+
*/
40+
public void setLimit(final long limit) {
41+
this.limit = limit;
42+
}
43+
}

discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1/model/NluEnrichmentFeatures.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class NluEnrichmentFeatures extends GenericModel {
2828
@SerializedName("semantic_roles")
2929
private NluEnrichmentSemanticRoles semanticRoles;
3030
private NluEnrichmentRelations relations;
31+
private NluEnrichmentConcepts concepts;
3132

3233
/**
3334
* Builder.
@@ -40,6 +41,7 @@ public static class Builder {
4041
private NluEnrichmentCategories categories;
4142
private NluEnrichmentSemanticRoles semanticRoles;
4243
private NluEnrichmentRelations relations;
44+
private NluEnrichmentConcepts concepts;
4345

4446
private Builder(NluEnrichmentFeatures nluEnrichmentFeatures) {
4547
keywords = nluEnrichmentFeatures.keywords;
@@ -49,6 +51,7 @@ private Builder(NluEnrichmentFeatures nluEnrichmentFeatures) {
4951
categories = nluEnrichmentFeatures.categories;
5052
semanticRoles = nluEnrichmentFeatures.semanticRoles;
5153
relations = nluEnrichmentFeatures.relations;
54+
concepts = nluEnrichmentFeatures.concepts;
5255
}
5356

5457
/**
@@ -142,6 +145,17 @@ public Builder relations(NluEnrichmentRelations relations) {
142145
this.relations = relations;
143146
return this;
144147
}
148+
149+
/**
150+
* Set the concepts.
151+
*
152+
* @param concepts the concepts
153+
* @return the NluEnrichmentFeatures builder
154+
*/
155+
public Builder concepts(NluEnrichmentConcepts concepts) {
156+
this.concepts = concepts;
157+
return this;
158+
}
145159
}
146160

147161
private NluEnrichmentFeatures(Builder builder) {
@@ -152,6 +166,7 @@ private NluEnrichmentFeatures(Builder builder) {
152166
categories = builder.categories;
153167
semanticRoles = builder.semanticRoles;
154168
relations = builder.relations;
169+
concepts = builder.concepts;
155170
}
156171

157172
/**
@@ -239,4 +254,15 @@ public NluEnrichmentSemanticRoles semanticRoles() {
239254
public NluEnrichmentRelations relations() {
240255
return relations;
241256
}
257+
258+
/**
259+
* Gets the concepts.
260+
*
261+
* An object specifiying the concepts enrichment and related parameters.
262+
*
263+
* @return the concepts
264+
*/
265+
public NluEnrichmentConcepts concepts() {
266+
return concepts;
267+
}
242268
}

0 commit comments

Comments
 (0)