Skip to content

Commit 0095f12

Browse files
committed
feat(Compare and Comply): Add generated code from newest version of service
1 parent 30a2e05 commit 0095f12

35 files changed

+1084
-614
lines changed

compare-comply/src/main/java/com/ibm/watson/compare_comply/v1/CompareComply.java

Lines changed: 110 additions & 64 deletions
Large diffs are not rendered by default.

compare-comply/src/main/java/com/ibm/watson/compare_comply/v1/model/AddFeedbackOptions.java

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@
2020
*/
2121
public class AddFeedbackOptions extends GenericModel {
2222

23+
private FeedbackDataInput feedbackData;
2324
private String userId;
2425
private String comment;
25-
private FeedbackDataInput feedbackData;
2626

2727
/**
2828
* Builder.
2929
*/
3030
public static class Builder {
31+
private FeedbackDataInput feedbackData;
3132
private String userId;
3233
private String comment;
33-
private FeedbackDataInput feedbackData;
3434

3535
private Builder(AddFeedbackOptions addFeedbackOptions) {
36-
userId = addFeedbackOptions.userId;
37-
comment = addFeedbackOptions.comment;
38-
feedbackData = addFeedbackOptions.feedbackData;
36+
this.feedbackData = addFeedbackOptions.feedbackData;
37+
this.userId = addFeedbackOptions.userId;
38+
this.comment = addFeedbackOptions.comment;
3939
}
4040

4141
/**
@@ -62,6 +62,17 @@ public AddFeedbackOptions build() {
6262
return new AddFeedbackOptions(this);
6363
}
6464

65+
/**
66+
* Set the feedbackData.
67+
*
68+
* @param feedbackData the feedbackData
69+
* @return the AddFeedbackOptions builder
70+
*/
71+
public Builder feedbackData(FeedbackDataInput feedbackData) {
72+
this.feedbackData = feedbackData;
73+
return this;
74+
}
75+
6576
/**
6677
* Set the userId.
6778
*
@@ -83,24 +94,13 @@ public Builder comment(String comment) {
8394
this.comment = comment;
8495
return this;
8596
}
86-
87-
/**
88-
* Set the feedbackData.
89-
*
90-
* @param feedbackData the feedbackData
91-
* @return the AddFeedbackOptions builder
92-
*/
93-
public Builder feedbackData(FeedbackDataInput feedbackData) {
94-
this.feedbackData = feedbackData;
95-
return this;
96-
}
9797
}
9898

9999
private AddFeedbackOptions(Builder builder) {
100100
Validator.notNull(builder.feedbackData, "feedbackData cannot be null");
101+
feedbackData = builder.feedbackData;
101102
userId = builder.userId;
102103
comment = builder.comment;
103-
feedbackData = builder.feedbackData;
104104
}
105105

106106
/**
@@ -112,6 +112,17 @@ public Builder newBuilder() {
112112
return new Builder(this);
113113
}
114114

115+
/**
116+
* Gets the feedbackData.
117+
*
118+
* Feedback data for submission.
119+
*
120+
* @return the feedbackData
121+
*/
122+
public FeedbackDataInput feedbackData() {
123+
return feedbackData;
124+
}
125+
115126
/**
116127
* Gets the userId.
117128
*
@@ -133,15 +144,4 @@ public String userId() {
133144
public String comment() {
134145
return comment;
135146
}
136-
137-
/**
138-
* Gets the feedbackData.
139-
*
140-
* Feedback data for submission.
141-
*
142-
* @return the feedbackData
143-
*/
144-
public FeedbackDataInput feedbackData() {
145-
return feedbackData;
146-
}
147147
}

compare-comply/src/main/java/com/ibm/watson/compare_comply/v1/model/AlignedElement.java

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public class AlignedElement extends GenericModel {
2626
private List<ElementPair> elementPair;
2727
@SerializedName("identical_text")
2828
private Boolean identicalText;
29-
@SerializedName("significant_elements")
30-
private Boolean significantElements;
3129
@SerializedName("provenance_ids")
3230
private List<String> provenanceIds;
31+
@SerializedName("significant_elements")
32+
private Boolean significantElements;
3333

3434
/**
3535
* Gets the elementPair.
@@ -45,7 +45,9 @@ public List<ElementPair> getElementPair() {
4545
/**
4646
* Gets the identicalText.
4747
*
48-
* Specifies whether the text is identical.
48+
* Specifies whether the aligned element is identical. Elements are considered identical despite minor differences
49+
* such as leading punctuation, end-of-sentence punctuation, whitespace, the presence or absence of definite or
50+
* indefinite articles, and others.
4951
*
5052
* @return the identicalText
5153
*/
@@ -54,24 +56,24 @@ public Boolean isIdenticalText() {
5456
}
5557

5658
/**
57-
* Gets the significantElements.
59+
* Gets the provenanceIds.
5860
*
59-
* Indicates that the elements aligned are contractual clauses of significance.
61+
* One or more hashed values that you can send to IBM to provide feedback or receive support.
6062
*
61-
* @return the significantElements
63+
* @return the provenanceIds
6264
*/
63-
public Boolean isSignificantElements() {
64-
return significantElements;
65+
public List<String> getProvenanceIds() {
66+
return provenanceIds;
6567
}
6668

6769
/**
68-
* Gets the provenanceIds.
70+
* Gets the significantElements.
6971
*
70-
* One or more hashed values that you can send to IBM to provide feedback or receive support.
72+
* Indicates that the elements aligned are contractual clauses of significance.
7173
*
72-
* @return the provenanceIds
74+
* @return the significantElements
7375
*/
74-
public List<String> getProvenanceIds() {
75-
return provenanceIds;
76+
public Boolean isSignificantElements() {
77+
return significantElements;
7678
}
7779
}

compare-comply/src/main/java/com/ibm/watson/compare_comply/v1/model/Attribute.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,18 @@ public class Attribute extends GenericModel {
2323
* The type of attribute.
2424
*/
2525
public interface Type {
26-
/** Address. */
27-
String ADDRESS = "Address";
2826
/** Currency. */
2927
String CURRENCY = "Currency";
3028
/** DateTime. */
3129
String DATETIME = "DateTime";
30+
/** Duration. */
31+
String DURATION = "Duration";
3232
/** Location. */
3333
String LOCATION = "Location";
3434
/** Organization. */
3535
String ORGANIZATION = "Organization";
36+
/** Percentage. */
37+
String PERCENTAGE = "Percentage";
3638
/** Person. */
3739
String PERSON = "Person";
3840
}

compare-comply/src/main/java/com/ibm/watson/compare_comply/v1/model/BodyCells.java

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,23 @@ public class BodyCells extends GenericModel {
3535
@SerializedName("column_index_end")
3636
private Long columnIndexEnd;
3737
@SerializedName("row_header_ids")
38-
private List<String> rowHeaderIds;
38+
private List<RowHeaderIds> rowHeaderIds;
3939
@SerializedName("row_header_texts")
40-
private List<String> rowHeaderTexts;
40+
private List<RowHeaderTexts> rowHeaderTexts;
4141
@SerializedName("row_header_texts_normalized")
42-
private List<String> rowHeaderTextsNormalized;
42+
private List<RowHeaderTextsNormalized> rowHeaderTextsNormalized;
4343
@SerializedName("column_header_ids")
44-
private List<String> columnHeaderIds;
44+
private List<ColumnHeaderIds> columnHeaderIds;
4545
@SerializedName("column_header_texts")
46-
private List<String> columnHeaderTexts;
46+
private List<ColumnHeaderTexts> columnHeaderTexts;
4747
@SerializedName("column_header_texts_normalized")
48-
private List<String> columnHeaderTextsNormalized;
48+
private List<ColumnHeaderTextsNormalized> columnHeaderTextsNormalized;
4949
private List<Attribute> attributes;
5050

5151
/**
5252
* Gets the cellId.
5353
*
54-
* A string value in the format `columnHeader-x-y`, where `x` and `y` are the begin and end offsets of this column
55-
* header cell in the input document.
54+
* The unique ID of the cell in the current table.
5655
*
5756
* @return the cellId
5857
*/
@@ -130,68 +129,54 @@ public Long getColumnIndexEnd() {
130129
/**
131130
* Gets the rowHeaderIds.
132131
*
133-
* An array of values, each being the `id` value of a row header that is applicable to this body cell.
134-
*
135132
* @return the rowHeaderIds
136133
*/
137-
public List<String> getRowHeaderIds() {
134+
public List<RowHeaderIds> getRowHeaderIds() {
138135
return rowHeaderIds;
139136
}
140137

141138
/**
142139
* Gets the rowHeaderTexts.
143140
*
144-
* An array of values, each being the `text` value of a row header that is applicable to this body cell.
145-
*
146141
* @return the rowHeaderTexts
147142
*/
148-
public List<String> getRowHeaderTexts() {
143+
public List<RowHeaderTexts> getRowHeaderTexts() {
149144
return rowHeaderTexts;
150145
}
151146

152147
/**
153148
* Gets the rowHeaderTextsNormalized.
154149
*
155-
* If you provide customization input, the normalized version of the row header texts according to the customization;
156-
* otherwise, the same value as `row_header_texts`.
157-
*
158150
* @return the rowHeaderTextsNormalized
159151
*/
160-
public List<String> getRowHeaderTextsNormalized() {
152+
public List<RowHeaderTextsNormalized> getRowHeaderTextsNormalized() {
161153
return rowHeaderTextsNormalized;
162154
}
163155

164156
/**
165157
* Gets the columnHeaderIds.
166158
*
167-
* An array of values, each being the `id` value of a column header that is applicable to the current cell.
168-
*
169159
* @return the columnHeaderIds
170160
*/
171-
public List<String> getColumnHeaderIds() {
161+
public List<ColumnHeaderIds> getColumnHeaderIds() {
172162
return columnHeaderIds;
173163
}
174164

175165
/**
176166
* Gets the columnHeaderTexts.
177167
*
178-
* An array of values, each being the `text` value of a column header that is applicable to the current cell.
179-
*
180168
* @return the columnHeaderTexts
181169
*/
182-
public List<String> getColumnHeaderTexts() {
170+
public List<ColumnHeaderTexts> getColumnHeaderTexts() {
183171
return columnHeaderTexts;
184172
}
185173

186174
/**
187175
* Gets the columnHeaderTextsNormalized.
188176
*
189-
* If you provide customization input, the normalized version of the column header texts according to the
190-
* customization; otherwise, the same value as `column_header_texts`.
191-
*
192177
* @return the columnHeaderTextsNormalized
193178
*/
194-
public List<String> getColumnHeaderTextsNormalized() {
179+
public List<ColumnHeaderTextsNormalized> getColumnHeaderTextsNormalized() {
195180
return columnHeaderTextsNormalized;
196181
}
197182

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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.compare_comply.v1.model;
14+
15+
import com.ibm.cloud.sdk.core.service.model.GenericModel;
16+
17+
/**
18+
* Information defining an element's subject matter.
19+
*/
20+
public class CategoryComparison extends GenericModel {
21+
22+
/**
23+
* The category of the associated element.
24+
*/
25+
public interface Label {
26+
/** Amendments. */
27+
String AMENDMENTS = "Amendments";
28+
/** Asset Use. */
29+
String ASSET_USE = "Asset Use";
30+
/** Assignments. */
31+
String ASSIGNMENTS = "Assignments";
32+
/** Audits. */
33+
String AUDITS = "Audits";
34+
/** Business Continuity. */
35+
String BUSINESS_CONTINUITY = "Business Continuity";
36+
/** Communication. */
37+
String COMMUNICATION = "Communication";
38+
/** Confidentiality. */
39+
String CONFIDENTIALITY = "Confidentiality";
40+
/** Deliverables. */
41+
String DELIVERABLES = "Deliverables";
42+
/** Delivery. */
43+
String DELIVERY = "Delivery";
44+
/** Dispute Resolution. */
45+
String DISPUTE_RESOLUTION = "Dispute Resolution";
46+
/** Force Majeure. */
47+
String FORCE_MAJEURE = "Force Majeure";
48+
/** Indemnification. */
49+
String INDEMNIFICATION = "Indemnification";
50+
/** Insurance. */
51+
String INSURANCE = "Insurance";
52+
/** Intellectual Property. */
53+
String INTELLECTUAL_PROPERTY = "Intellectual Property";
54+
/** Liability. */
55+
String LIABILITY = "Liability";
56+
/** Payment Terms & Billing. */
57+
String PAYMENT_TERMS_BILLING = "Payment Terms & Billing";
58+
/** Pricing & Taxes. */
59+
String PRICING_TAXES = "Pricing & Taxes";
60+
/** Privacy. */
61+
String PRIVACY = "Privacy";
62+
/** Responsibilities. */
63+
String RESPONSIBILITIES = "Responsibilities";
64+
/** Safety and Security. */
65+
String SAFETY_AND_SECURITY = "Safety and Security";
66+
/** Scope of Work. */
67+
String SCOPE_OF_WORK = "Scope of Work";
68+
/** Subcontracts. */
69+
String SUBCONTRACTS = "Subcontracts";
70+
/** Term & Termination. */
71+
String TERM_TERMINATION = "Term & Termination";
72+
/** Warranties. */
73+
String WARRANTIES = "Warranties";
74+
}
75+
76+
private String label;
77+
78+
/**
79+
* Gets the label.
80+
*
81+
* The category of the associated element.
82+
*
83+
* @return the label
84+
*/
85+
public String getLabel() {
86+
return label;
87+
}
88+
}

0 commit comments

Comments
 (0)