Skip to content

Commit

Permalink
feat(discoveryv1): update based on latest api definitions
Browse files Browse the repository at this point in the history
updated protected methods in model classes and update javadoc strings
  • Loading branch information
jeff-arn authored and apaparazzi0329 committed Mar 15, 2023
1 parent aaf9b77 commit a810f01
Show file tree
Hide file tree
Showing 165 changed files with 800 additions and 166 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2019, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -12,7 +12,7 @@
*/

/*
* IBM OpenAPI SDK Code Generator Version: 3.53.0-9710cac3-20220713-193508
* IBM OpenAPI SDK Code Generator Version: 3.64.1-cee95189-20230124-211647
*/

package com.ibm.watson.discovery.v1;
Expand Down Expand Up @@ -137,8 +137,10 @@
*/
public class Discovery extends BaseService {

/** Default service name used when configuring the `Discovery` client. */
public static final String DEFAULT_SERVICE_NAME = "discovery";

/** Default service endpoint URL. */
public static final String DEFAULT_SERVICE_URL =
"https://api.us-south.discovery.watson.cloud.ibm.com";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2017, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -37,6 +37,11 @@ public static class Builder {
private String fileContentType;
private String metadata;

/**
* Instantiates a new Builder from an existing AddDocumentOptions instance.
*
* @param addDocumentOptions the instance to initialize the Builder with
*/
private Builder(AddDocumentOptions addDocumentOptions) {
this.environmentId = addDocumentOptions.environmentId;
this.collectionId = addDocumentOptions.collectionId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2017, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -33,6 +33,11 @@ public static class Builder {
private String filter;
private List<TrainingExample> examples;

/**
* Instantiates a new Builder from an existing AddTrainingDataOptions instance.
*
* @param addTrainingDataOptions the instance to initialize the Builder with
*/
private Builder(AddTrainingDataOptions addTrainingDataOptions) {
this.environmentId = addTrainingDataOptions.environmentId;
this.collectionId = addTrainingDataOptions.collectionId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2017, 2020.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -58,6 +58,8 @@ public interface Status {
@SerializedName("smart_document_understanding")
protected SduStatus smartDocumentUnderstanding;

protected Collection() {}

/**
* Gets the collectionId.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2019, 2020.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -21,6 +21,8 @@ public class CollectionCrawlStatus extends GenericModel {
@SerializedName("source_crawl")
protected SourceStatus sourceCrawl;

protected CollectionCrawlStatus() {}

/**
* Gets the sourceCrawl.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2019, 2020.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -21,6 +21,8 @@ public class CollectionDiskUsage extends GenericModel {
@SerializedName("used_bytes")
protected Long usedBytes;

protected CollectionDiskUsage() {}

/**
* Gets the usedBytes.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2017, 2020.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -23,6 +23,8 @@ public class CollectionUsage extends GenericModel {
@SerializedName("maximum_allowed")
protected Long maximumAllowed;

protected CollectionUsage() {}

/**
* Gets the available.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2019, 2020.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -20,6 +20,8 @@ public class Completions extends GenericModel {

protected List<String> completions;

protected Completions() {}

/**
* Gets the completions.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2017, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -42,6 +42,11 @@ public static class Builder {
private List<NormalizationOperation> normalizations;
private Source source;

/**
* Instantiates a new Builder from an existing Configuration instance.
*
* @param configuration the instance to initialize the Builder with
*/
private Builder(Configuration configuration) {
this.name = configuration.name;
this.description = configuration.description;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2017, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -40,6 +40,11 @@ public static class Builder {
private List<NormalizationOperation> jsonNormalizations;
private Boolean imageTextRecognition;

/**
* Instantiates a new Builder from an existing Conversions instance.
*
* @param conversions the instance to initialize the Builder with
*/
private Builder(Conversions conversions) {
this.pdf = conversions.pdf;
this.word = conversions.word;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2017, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -60,6 +60,11 @@ public static class Builder {
private String configurationId;
private String language;

/**
* Instantiates a new Builder from an existing CreateCollectionOptions instance.
*
* @param createCollectionOptions the instance to initialize the Builder with
*/
private Builder(CreateCollectionOptions createCollectionOptions) {
this.environmentId = createCollectionOptions.environmentId;
this.name = createCollectionOptions.name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2017, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -37,6 +37,11 @@ public static class Builder {
private List<NormalizationOperation> normalizations;
private Source source;

/**
* Instantiates a new Builder from an existing CreateConfigurationOptions instance.
*
* @param createConfigurationOptions the instance to initialize the Builder with
*/
private Builder(CreateConfigurationOptions createConfigurationOptions) {
this.environmentId = createConfigurationOptions.environmentId;
this.name = createConfigurationOptions.name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2018, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -50,6 +50,11 @@ public static class Builder {
private CredentialDetails credentialDetails;
private StatusDetails status;

/**
* Instantiates a new Builder from an existing CreateCredentialsOptions instance.
*
* @param createCredentialsOptions the instance to initialize the Builder with
*/
private Builder(CreateCredentialsOptions createCredentialsOptions) {
this.environmentId = createCredentialsOptions.environmentId;
this.sourceType = createCredentialsOptions.sourceType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2017, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -54,6 +54,11 @@ public static class Builder {
private String description;
private String size;

/**
* Instantiates a new Builder from an existing CreateEnvironmentOptions instance.
*
* @param createEnvironmentOptions the instance to initialize the Builder with
*/
private Builder(CreateEnvironmentOptions createEnvironmentOptions) {
this.name = createEnvironmentOptions.name;
this.description = createEnvironmentOptions.description;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2018, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -31,6 +31,11 @@ public static class Builder {
private String type;
private EventData data;

/**
* Instantiates a new Builder from an existing CreateEventOptions instance.
*
* @param createEventOptions the instance to initialize the Builder with
*/
private Builder(CreateEventOptions createEventOptions) {
this.type = createEventOptions.type;
this.data = createEventOptions.data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2018, 2020.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -26,6 +26,8 @@ public interface Type {
protected String type;
protected EventData data;

protected CreateEventResponse() {}

/**
* Gets the type.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2018, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -29,6 +29,11 @@ public static class Builder {
private String collectionId;
private List<Expansion> expansions;

/**
* Instantiates a new Builder from an existing CreateExpansionsOptions instance.
*
* @param createExpansionsOptions the instance to initialize the Builder with
*/
private Builder(CreateExpansionsOptions createExpansionsOptions) {
this.environmentId = createExpansionsOptions.environmentId;
this.collectionId = createExpansionsOptions.collectionId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2019, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -25,6 +25,11 @@ public static class Builder {
private String environmentId;
private String name;

/**
* Instantiates a new Builder from an existing CreateGatewayOptions instance.
*
* @param createGatewayOptions the instance to initialize the Builder with
*/
private Builder(CreateGatewayOptions createGatewayOptions) {
this.environmentId = createGatewayOptions.environmentId;
this.name = createGatewayOptions.name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2019, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -33,6 +33,11 @@ public static class Builder {
private InputStream stopwordFile;
private String stopwordFilename;

/**
* Instantiates a new Builder from an existing CreateStopwordListOptions instance.
*
* @param createStopwordListOptions the instance to initialize the Builder with
*/
private Builder(CreateStopwordListOptions createStopwordListOptions) {
this.environmentId = createStopwordListOptions.environmentId;
this.collectionId = createStopwordListOptions.collectionId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2018, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -29,6 +29,11 @@ public static class Builder {
private String collectionId;
private List<TokenDictRule> tokenizationRules;

/**
* Instantiates a new Builder from an existing CreateTokenizationDictionaryOptions instance.
*
* @param createTokenizationDictionaryOptions the instance to initialize the Builder with
*/
private Builder(CreateTokenizationDictionaryOptions createTokenizationDictionaryOptions) {
this.environmentId = createTokenizationDictionaryOptions.environmentId;
this.collectionId = createTokenizationDictionaryOptions.collectionId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2017, 2022.
* (C) Copyright IBM Corp. 2023.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -33,6 +33,11 @@ public static class Builder {
private String crossReference;
private Long relevance;

/**
* Instantiates a new Builder from an existing CreateTrainingExampleOptions instance.
*
* @param createTrainingExampleOptions the instance to initialize the Builder with
*/
private Builder(CreateTrainingExampleOptions createTrainingExampleOptions) {
this.environmentId = createTrainingExampleOptions.environmentId;
this.collectionId = createTrainingExampleOptions.collectionId;
Expand Down

0 comments on commit a810f01

Please sign in to comment.