Skip to content

Commit b1bd5ef

Browse files
style(java): switch to google formatter
See https://github.com/google/google-java-format
1 parent 2ad3806 commit b1bd5ef

832 files changed

Lines changed: 22427 additions & 23184 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java

Lines changed: 923 additions & 659 deletions
Large diffs are not rendered by default.

assistant/src/main/java/com/ibm/watson/assistant/v1/model/CaptureGroup.java

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,17 @@
1212
*/
1313
package com.ibm.watson.assistant.v1.model;
1414

15+
import com.ibm.cloud.sdk.core.service.model.GenericModel;
1516
import java.util.ArrayList;
1617
import java.util.List;
1718

18-
import com.ibm.cloud.sdk.core.service.model.GenericModel;
19-
20-
/**
21-
* A recognized capture group for a pattern-based entity.
22-
*/
19+
/** A recognized capture group for a pattern-based entity. */
2320
public class CaptureGroup extends GenericModel {
2421

2522
protected String group;
2623
protected List<Long> location;
2724

28-
/**
29-
* Builder.
30-
*/
25+
/** Builder. */
3126
public static class Builder {
3227
private String group;
3328
private List<Long> location;
@@ -37,11 +32,8 @@ private Builder(CaptureGroup captureGroup) {
3732
this.location = captureGroup.location;
3833
}
3934

40-
/**
41-
* Instantiates a new builder.
42-
*/
43-
public Builder() {
44-
}
35+
/** Instantiates a new builder. */
36+
public Builder() {}
4537

4638
/**
4739
* Instantiates a new builder with required properties.
@@ -68,8 +60,7 @@ public CaptureGroup build() {
6860
* @return the CaptureGroup builder
6961
*/
7062
public Builder addLocation(Long location) {
71-
com.ibm.cloud.sdk.core.util.Validator.notNull(location,
72-
"location cannot be null");
63+
com.ibm.cloud.sdk.core.util.Validator.notNull(location, "location cannot be null");
7364
if (this.location == null) {
7465
this.location = new ArrayList<Long>();
7566
}
@@ -89,8 +80,7 @@ public Builder group(String group) {
8980
}
9081

9182
/**
92-
* Set the location.
93-
* Existing location will be replaced.
83+
* Set the location. Existing location will be replaced.
9484
*
9585
* @param location the location
9686
* @return the CaptureGroup builder
@@ -102,8 +92,7 @@ public Builder location(List<Long> location) {
10292
}
10393

10494
protected CaptureGroup(Builder builder) {
105-
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.group,
106-
"group cannot be null");
95+
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.group, "group cannot be null");
10796
group = builder.group;
10897
location = builder.location;
10998
}
@@ -120,7 +109,7 @@ public Builder newBuilder() {
120109
/**
121110
* Gets the group.
122111
*
123-
* A recognized capture group for the entity.
112+
* <p>A recognized capture group for the entity.
124113
*
125114
* @return the group
126115
*/
@@ -131,7 +120,8 @@ public String group() {
131120
/**
132121
* Gets the location.
133122
*
134-
* Zero-based character offsets that indicate where the entity value begins and ends in the input text.
123+
* <p>Zero-based character offsets that indicate where the entity value begins and ends in the
124+
* input text.
135125
*
136126
* @return the location
137127
*/

assistant/src/main/java/com/ibm/watson/assistant/v1/model/Context.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,28 @@
1717
import com.ibm.cloud.sdk.core.service.model.DynamicModel;
1818

1919
/**
20-
* State information for the conversation. To maintain state, include the context from the previous response.
20+
* State information for the conversation. To maintain state, include the context from the previous
21+
* response.
2122
*/
2223
public class Context extends DynamicModel<Object> {
2324

2425
@SerializedName("conversation_id")
2526
protected String conversationId;
27+
2628
@SerializedName("system")
2729
protected SystemResponse system;
30+
2831
@SerializedName("metadata")
2932
protected MessageContextMetadata metadata;
3033

3134
public Context() {
32-
super(new TypeToken<Object>() {
33-
});
35+
super(new TypeToken<Object>() {});
3436
}
3537

3638
/**
3739
* Gets the conversationId.
3840
*
39-
* The unique identifier of the conversation.
41+
* <p>The unique identifier of the conversation.
4042
*
4143
* @return the conversationId
4244
*/
@@ -56,7 +58,7 @@ public void setConversationId(final String conversationId) {
5658
/**
5759
* Gets the system.
5860
*
59-
* For internal use only.
61+
* <p>For internal use only.
6062
*
6163
* @return the system
6264
*/
@@ -76,7 +78,7 @@ public void setSystem(final SystemResponse system) {
7678
/**
7779
* Gets the metadata.
7880
*
79-
* Metadata related to the message.
81+
* <p>Metadata related to the message.
8082
*
8183
* @return the metadata
8284
*/

assistant/src/main/java/com/ibm/watson/assistant/v1/model/Counterexample.java

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,17 @@
1212
*/
1313
package com.ibm.watson.assistant.v1.model;
1414

15-
import java.util.Date;
16-
1715
import com.ibm.cloud.sdk.core.service.model.GenericModel;
16+
import java.util.Date;
1817

19-
/**
20-
* Counterexample.
21-
*/
18+
/** Counterexample. */
2219
public class Counterexample extends GenericModel {
2320

2421
protected String text;
2522
protected Date created;
2623
protected Date updated;
2724

28-
/**
29-
* Builder.
30-
*/
25+
/** Builder. */
3126
public static class Builder {
3227
private String text;
3328
private Date created;
@@ -39,11 +34,8 @@ private Builder(Counterexample counterexample) {
3934
this.updated = counterexample.updated;
4035
}
4136

42-
/**
43-
* Instantiates a new builder.
44-
*/
45-
public Builder() {
46-
}
37+
/** Instantiates a new builder. */
38+
public Builder() {}
4739

4840
/**
4941
* Instantiates a new builder with required properties.
@@ -98,8 +90,7 @@ public Builder updated(Date updated) {
9890
}
9991

10092
protected Counterexample(Builder builder) {
101-
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.text,
102-
"text cannot be null");
93+
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.text, "text cannot be null");
10394
text = builder.text;
10495
created = builder.created;
10596
updated = builder.updated;
@@ -117,9 +108,9 @@ public Builder newBuilder() {
117108
/**
118109
* Gets the text.
119110
*
120-
* The text of a user input marked as irrelevant input. This string must conform to the following restrictions:
121-
* - It cannot contain carriage return, newline, or tab characters.
122-
* - It cannot consist of only whitespace characters.
111+
* <p>The text of a user input marked as irrelevant input. This string must conform to the
112+
* following restrictions: - It cannot contain carriage return, newline, or tab characters. - It
113+
* cannot consist of only whitespace characters.
123114
*
124115
* @return the text
125116
*/
@@ -130,7 +121,7 @@ public String text() {
130121
/**
131122
* Gets the created.
132123
*
133-
* The timestamp for creation of the object.
124+
* <p>The timestamp for creation of the object.
134125
*
135126
* @return the created
136127
*/
@@ -141,7 +132,7 @@ public Date created() {
141132
/**
142133
* Gets the updated.
143134
*
144-
* The timestamp for the most recent update to the object.
135+
* <p>The timestamp for the most recent update to the object.
145136
*
146137
* @return the updated
147138
*/

assistant/src/main/java/com/ibm/watson/assistant/v1/model/CounterexampleCollection.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@
1212
*/
1313
package com.ibm.watson.assistant.v1.model;
1414

15-
import java.util.List;
16-
1715
import com.ibm.cloud.sdk.core.service.model.GenericModel;
16+
import java.util.List;
1817

19-
/**
20-
* CounterexampleCollection.
21-
*/
18+
/** CounterexampleCollection. */
2219
public class CounterexampleCollection extends GenericModel {
2320

2421
protected List<Counterexample> counterexamples;
@@ -27,7 +24,7 @@ public class CounterexampleCollection extends GenericModel {
2724
/**
2825
* Gets the counterexamples.
2926
*
30-
* An array of objects describing the examples marked as irrelevant input.
27+
* <p>An array of objects describing the examples marked as irrelevant input.
3128
*
3229
* @return the counterexamples
3330
*/
@@ -38,7 +35,7 @@ public List<Counterexample> getCounterexamples() {
3835
/**
3936
* Gets the pagination.
4037
*
41-
* The pagination data for the returned objects.
38+
* <p>The pagination data for the returned objects.
4239
*
4340
* @return the pagination
4441
*/

assistant/src/main/java/com/ibm/watson/assistant/v1/model/CreateCounterexampleOptions.java

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@
1414

1515
import com.ibm.cloud.sdk.core.service.model.GenericModel;
1616

17-
/**
18-
* The createCounterexample options.
19-
*/
17+
/** The createCounterexample options. */
2018
public class CreateCounterexampleOptions extends GenericModel {
2119

2220
protected String workspaceId;
2321
protected String text;
2422
protected Boolean includeAudit;
2523

26-
/**
27-
* Builder.
28-
*/
24+
/** Builder. */
2925
public static class Builder {
3026
private String workspaceId;
3127
private String text;
@@ -37,11 +33,8 @@ private Builder(CreateCounterexampleOptions createCounterexampleOptions) {
3733
this.includeAudit = createCounterexampleOptions.includeAudit;
3834
}
3935

40-
/**
41-
* Instantiates a new builder.
42-
*/
43-
public Builder() {
44-
}
36+
/** Instantiates a new builder. */
37+
public Builder() {}
4538

4639
/**
4740
* Instantiates a new builder with required properties.
@@ -109,10 +102,9 @@ public Builder counterexample(Counterexample counterexample) {
109102
}
110103

111104
protected CreateCounterexampleOptions(Builder builder) {
112-
com.ibm.cloud.sdk.core.util.Validator.notEmpty(builder.workspaceId,
113-
"workspaceId cannot be empty");
114-
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.text,
115-
"text cannot be null");
105+
com.ibm.cloud.sdk.core.util.Validator.notEmpty(
106+
builder.workspaceId, "workspaceId cannot be empty");
107+
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.text, "text cannot be null");
116108
workspaceId = builder.workspaceId;
117109
text = builder.text;
118110
includeAudit = builder.includeAudit;
@@ -130,7 +122,7 @@ public Builder newBuilder() {
130122
/**
131123
* Gets the workspaceId.
132124
*
133-
* Unique identifier of the workspace.
125+
* <p>Unique identifier of the workspace.
134126
*
135127
* @return the workspaceId
136128
*/
@@ -141,9 +133,9 @@ public String workspaceId() {
141133
/**
142134
* Gets the text.
143135
*
144-
* The text of a user input marked as irrelevant input. This string must conform to the following restrictions:
145-
* - It cannot contain carriage return, newline, or tab characters.
146-
* - It cannot consist of only whitespace characters.
136+
* <p>The text of a user input marked as irrelevant input. This string must conform to the
137+
* following restrictions: - It cannot contain carriage return, newline, or tab characters. - It
138+
* cannot consist of only whitespace characters.
147139
*
148140
* @return the text
149141
*/
@@ -154,7 +146,8 @@ public String text() {
154146
/**
155147
* Gets the includeAudit.
156148
*
157-
* Whether to include the audit properties (`created` and `updated` timestamps) in the response.
149+
* <p>Whether to include the audit properties (`created` and `updated` timestamps) in the
150+
* response.
158151
*
159152
* @return the includeAudit
160153
*/

0 commit comments

Comments
 (0)