File tree Expand file tree Collapse file tree 3 files changed +0
-40
lines changed
visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v4 Expand file tree Collapse file tree 3 files changed +0
-40
lines changed Original file line number Diff line number Diff line change @@ -248,12 +248,6 @@ public ServiceCall<Collection> createCollection(CreateCollectionOptions createCo
248248 if (createCollectionOptions .description () != null ) {
249249 contentJson .addProperty ("description" , createCollectionOptions .description ());
250250 }
251- if (createCollectionOptions .trainingStatus () != null ) {
252- contentJson .add (
253- "training_status" ,
254- com .ibm .cloud .sdk .core .util .GsonSingleton .getGson ()
255- .toJsonTree (createCollectionOptions .trainingStatus ()));
256- }
257251 builder .bodyJson (contentJson );
258252 ResponseConverter <Collection > responseConverter =
259253 ResponseConverterUtils .getValue (
@@ -381,12 +375,6 @@ public ServiceCall<Collection> updateCollection(UpdateCollectionOptions updateCo
381375 if (updateCollectionOptions .description () != null ) {
382376 contentJson .addProperty ("description" , updateCollectionOptions .description ());
383377 }
384- if (updateCollectionOptions .trainingStatus () != null ) {
385- contentJson .add (
386- "training_status" ,
387- com .ibm .cloud .sdk .core .util .GsonSingleton .getGson ()
388- .toJsonTree (updateCollectionOptions .trainingStatus ()));
389- }
390378 builder .bodyJson (contentJson );
391379 ResponseConverter <Collection > responseConverter =
392380 ResponseConverterUtils .getValue (
Original file line number Diff line number Diff line change @@ -25,12 +25,10 @@ public class CreateCollectionOptions extends GenericModel {
2525 public static class Builder {
2626 private String name ;
2727 private String description ;
28- private TrainingStatus trainingStatus ;
2928
3029 private Builder (CreateCollectionOptions createCollectionOptions ) {
3130 this .name = createCollectionOptions .name ;
3231 this .description = createCollectionOptions .description ;
33- this .trainingStatus = createCollectionOptions .trainingStatus ;
3432 }
3533
3634 /** Instantiates a new builder. */
@@ -66,23 +64,11 @@ public Builder description(String description) {
6664 this .description = description ;
6765 return this ;
6866 }
69-
70- /**
71- * Set the trainingStatus.
72- *
73- * @param trainingStatus the trainingStatus
74- * @return the CreateCollectionOptions builder
75- */
76- public Builder trainingStatus (TrainingStatus trainingStatus ) {
77- this .trainingStatus = trainingStatus ;
78- return this ;
79- }
8067 }
8168
8269 protected CreateCollectionOptions (Builder builder ) {
8370 name = builder .name ;
8471 description = builder .description ;
85- trainingStatus = builder .trainingStatus ;
8672 }
8773
8874 /**
Original file line number Diff line number Diff line change @@ -27,13 +27,11 @@ public static class Builder {
2727 private String collectionId ;
2828 private String name ;
2929 private String description ;
30- private TrainingStatus trainingStatus ;
3130
3231 private Builder (UpdateCollectionOptions updateCollectionOptions ) {
3332 this .collectionId = updateCollectionOptions .collectionId ;
3433 this .name = updateCollectionOptions .name ;
3534 this .description = updateCollectionOptions .description ;
36- this .trainingStatus = updateCollectionOptions .trainingStatus ;
3735 }
3836
3937 /** Instantiates a new builder. */
@@ -89,17 +87,6 @@ public Builder description(String description) {
8987 this .description = description ;
9088 return this ;
9189 }
92-
93- /**
94- * Set the trainingStatus.
95- *
96- * @param trainingStatus the trainingStatus
97- * @return the UpdateCollectionOptions builder
98- */
99- public Builder trainingStatus (TrainingStatus trainingStatus ) {
100- this .trainingStatus = trainingStatus ;
101- return this ;
102- }
10390 }
10491
10592 protected UpdateCollectionOptions (Builder builder ) {
@@ -108,7 +95,6 @@ protected UpdateCollectionOptions(Builder builder) {
10895 collectionId = builder .collectionId ;
10996 name = builder .name ;
11097 description = builder .description ;
111- trainingStatus = builder .trainingStatus ;
11298 }
11399
114100 /**
You can’t perform that action at this time.
0 commit comments